cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected result using bapi BAPI_COPAACTUAL_POSTCOSTDATA

former_member196574
Participant
0 Kudos

Hello,

I am using bapi BAPI_COPAACTUALS_POSTCOSTDATA to mimic transaction KE21N and post manual CO-PA item, however, every execution the bapi creates two line items, one for the paledger I want/informed in the input fields and another one for the other paledger (for example, B0 is what I want but it creates one line for 10 too). Is there a way to prevent this behavior? Posting the item using transaction KE21N generates only one line item.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196574
Participant
0 Kudos

Solved.

You need to pass the field VALUTYP with the values 5 for ledger B0 and 6 for ledger 10.