Hi Experts,
I am using BAPI_ACC_DOCUMENT_POST for AR posing, But some company codes do posting in CO-PA.
I am filling the CRITERIA and VALUEFIELD tables of the BAPI with the following values:
CRITERIA:
Field Names:
VKORG <value>
VTWEG <value>
SPART <value>
WERKS <value>
MATNR <value>
PRCTR <value>
BUKRS <value>
KUNWE <value>
KNDNR <value>
VALUEFIELD:
AWTYP = BKPFF
the FI document gets posted and the profit segment (co-pa) fields are also populated correctly. But there are no accounting documents created.
But when i do the posting manually in FB01 and save the FI document and go the account documents i can see the "Accounting document" "Controlling Document" and "Profitab. Analysis".
I want to achieve the same using the BAPI. Can anyone please help in this ?
Thanks !
Ravi Aswani