cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Bapi_acc_document_post for FI and CO-PA posting.

raviaswani1982
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Ravi,

Are you passing the value fields and characteristics in the corresponding BAPI's structures VALUEFIELD and CRITERIA ?

Regards,

Glauser