ISM_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