Ansicht
Dokumentation

CRM_BILLING_BUAG_DEFAULT_EC - Propose Contract Account at Order Level

CRM_BILLING_BUAG_DEFAULT_EC - Propose Contract Account at Order Level

ABAP Short Reference   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module determines a default value for the contract account from the sold-to party or the payer. Determination only takes place if the flag "FI-CA Active" is set for the partner. (The flag is actually set in Customizing at client level, but is stored together with the business partner when the business partner is created).

Determination of the default value takes place using the following logic:

  1. The contract account that is flagged as a standard agreement in the master record is proposed. If only one contract account is created in the master record, it is proposed even if it is not flagged as the standard contract account.
  2. If a different payer with a contract account is entered in the contract account, the payer's contract account is copied. (The payer is also copied to the document; see function module CRM_BILLING_BUAG_PAYER_EC.)
  3. The payer has precedence over the sold-to party, meaning that if there is a different payer, their standard contract account has precedence over that of the sold-to party. This logic does not apply if the payer and their contract account have already been derived from the contract account for the sold-to party.

The contract account data from the master record is read by function module CRM_BUPA_FRG0130_READ. Then, the BAdI CRM_BUAG_DEFAULT is called to change the default value. (This BAdI is required, for example, by IS-PS (Public Sector)). The GUID and the ID (number) of the contract account are then written to the billing set by module CRM_BILLING_MAINTAIN_OW.

Example

Two business partners, 1001 and 1002 have the following contract accounts:

Business Partner BA Standard Payer Payer's BA
1001 51 X
52
1002 53 X 1001 52
54

If 1001 is entered as sold-to party, contract account 51 is used as a default value. If 1002 is then entered as the payer, the default value changes to 53. If 1002 is entered as sold-to party instead, 1001 is used as a different payer and contract account 52 is specified as the default value.

Notes

Further information





Parameters

IV_EVENT
IV_HEADER_GUID
IV_OBJECT_GUID
IV_STRVAL_NEW
IV_STRVAL_OLD

Exceptions

Function Group

CRM_BILLING_EC

TXBHW - Original Tax Base Amount in Local Currency   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 3021 Date: 20240523 Time: 111245     sap01-206 ( 62 ms )