Fonction SAP BAPI_ADMGMTCOAEXT_SAVE - IS-M/AM: BAPI Export Contract

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COANUMBER BAPIBUSISM012_HEAD-COA_NUMBER N 6 Contract Number
HEADER BAPIBUSISM012_HEAD u 267 X Contract Header

Paramètre Reférence Long. Facultatif Description
EXTENSION_IN BAPIPAREX 990 X Requirements (Customer Fields)
PARTNER BAPIBUSISM012_BP 83 X Assigned Business Partners
REQUIREMENT BAPIBUSISM012_REQ 535 X Requirements
RETURN BAPIRET2 548 X Return Parameters
SCALE BAPIBUSISM012_SCALE 258 X Contract Scales

Functionality
This method is used to transfer contracts from the AdvertisingManagement component to an external system.
The system accesses this method each time a contract is created ormodified in Advertising Management. It is also accessed if theAdMgmtCOA.SaveProxies method isexecuted.
Exported information can be used for contract determination in arecipient system that represents a simplified version of contractdetermination in Advertising Management
.

Notes
INCLUDE ISM_BAPI_OUTBOUND_PROXY
User-defined fields:
Use the ExtensionIn parameter and theISM_AM_COAEXT_BAPI BAdI to enhance thefunctions of this BAPI.

Example
This example shows how contract determination can be replicated in anexternal system if data for this BAPI has been saved as follows indatabase tables in the external system: In a HEADER table for thecontract header, a PARTNERS table for the business partner and aREQUIREMENTS table for the requirements.
The following select statement determines an ad item for a billingdataset using the contracts that can be assigned to its booking unit(including conditions and rate indicators) because the advertiser isthe contract holder or a beneficiary. It is assumed that no exclusiverequirements are available here.
select coa_number coa_item_no
cond_value_1 cond_value_2
qual_for_discount qual_for_bonus
cnts_twd_discount cnts_twd_bonus
from header
join partners on header~coa_number = partners~coa_number
join requirements on header~coa_number = requirements~coa_number
where contract_status <> "final settlement performed"
and validity_start <= [service date]
and validity_end >= [service date]
and partn_role in ("contract holder", "beneficiary")
and partner = [advertiser]
and item_type_ad = "X"
and requirements~salesorg = [sales organization]
and requirements~distr_chan = [distribution channel]
and requirements~division = [division]
and booking_unit = [booking unit].

Further information
Additional information is available in the SAP Library underSAP Media -> Advertising Management -> Contract.
INCLUDE BAPI_ADMGMTCOA_COANUMBER OBJECT DOKU ID TX
INCLUDE BAPI_ADMGMTCOA_HEADER OBJECT DOKU ID TX
INCLUDE BAPI_ADMGMTCOA_EXTENSION OBJECT DOKU ID TX
INCLUDE BAPI_ADMGMTCOA_PARTNER OBJECT DOKU ID TX
INCLUDE BAPI_ADMGMTCOA_REQUIREMENT OBJECT DOKU ID TX
INCLUDE ISM_BAPI_RETURN OBJECT DOKU ID TX
INCLUDE BAPI_ADMGMTCOA_SCALE OBJECT DOKU ID TX