Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_COPAACTUALS_POSTCOSTDATA

Former Member
0 Likes
811

Hi All,

I'm using FM BAPI_COPAACTUALS_POSTCOSTDATA for posting copa documents. This FM is returning sucess but I'm not able to get the document number from the return tables.

User is requesting for the posted document number. Can anyone please suggest how to handle this?

Thanks in advance!

Regards,

Ratna

2 REPLIES 2
Read only

Former Member
0 Likes
524

Hi

This BAPI will not return the document number .

You can try BDC for t-codes KE21 or KE21N which will return you the document number.

Regards

Sathar

Read only

uygur_burak
Active Contributor
0 Likes
524

Hello Ratna,

If this BAPI returned initial, it means CO-PA document created.

Yes you're right, you couldn't get document number. But you should select CO-PA document from CE1XXXX table after creation. (XXXX : Operating concern code)

When you execute BAPI_TRANSACTION_COMMIT after main BAPI execution, system filled database tables.

Regards,

Burak