You integrate CRM Sales with the account assignment manager and you require an additional account assignment for intercompany sales in the account assignment manager.
Add the fixed value "002" to the domain "IAOM_CRM_SALES_ADD_ACC_ASS_TYP" with the short text "Additional CO-PA Account Assignment for "Intercompany Sales"". The account assignment manager can now create an additional account assignment.
Use transaction SAAB to add the checkpoint group IAOM_CRM_ACC_DOC, "CRM: Account assignment determination billing document" in the "CRM" package.
Use transaction SAAB to add the checkpoint group IAOM_CRM_SALES, "CRM SALES: Account assignment management" in the "CRM" package.
Find more information on SAP Transaction Codes
Implement the correction instructions in the specified sequence. The corrections create the new class CL_SERVICE_AAM_CRM_SALES and the new function module CRM_CO_SLS_ACC_CREA_INTERCOMP.
The function module CRM_CO_SLS_ACCOUNTING is called in ERP to create the account assignment objects. The component AC_IB_LEVEL of the structure of the table IT_BAPISDCO controls whether the account assignment is created for the delivering party or the selling party. Description:
AC_IB_LEVEL = '00': Not intercompany sales, a common account assignment for the delivering party and the selling party
AC_IB_LEVEL = '01': Intercompany sales, account assignment for the selling party; this account assignment is created without a plant
AC_IB_LEVEL = '02': Intercompany sales, account assignment for the delivering party
When the log point of the checkpoint group IAOM_CRM_SALES is activated using transaction SAAB, the component AC_IB_LEVEL is logged.
The form routine GET_ACCOUNT_ASSIGNMENT of the function group ACC9 is called in ERP to read the account assignment with regard to billing. The business scenario is the scenario "CRM_SALES". The component BILL_CATEGORY of the field string GS_BAPI_ACCIT which account assignment is read to the delivering or selling party.
BILL_CATEGORY = 'A': Account assignment of the delivering party for the internal invoice of the delivering party to the selling company code.
BILL_CATEGORY <> 'A' (usually BILL_CATEGORY = ' '): Account assignment of the selling party for the invoice to customers.
When the log point of the checkpoint group IAOM_CRM_ACC_DOC is activated using transaction SAAB, the component BILL_CATEGORY is logged.
Find more information on SAP CRM Tutorials