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

How to post a cross-company invoice using the BAPI_TRANSACTION_COMMIT?

Former Member
0 Likes
431

Hi

I would like to post an inter-company invoice using the BAPI_TRANSACTION_COMMIT.

There is a comp_code in the header strusture. The BAPI's documentation says that this is possible and in the ACCOUNTGL table there is a field COMP_CODE.

The only problem is that the field is not there…

Does anybody know whet to do?

Thanks,

Magdalena

Hi

I would like to post an inter-company invoice using the BAPI_TRANSACTION_COMMIT.

There is a comp_code in the header strusture. The BAPI's documentation says that this is possible and in the ACCOUNTGL table there is a field COMP_CODE.

The only problem is that the field is not there…

Does anybody know whet to do?

Thanks,

Magdalena

2 REPLIES 2
Read only

Former Member
0 Likes
407

BAPI BAPI_TRANSACTION_COMMIT is not used for a specific application, but needs to be called always after any BAPI is called to post the data that were changed in the BAPI to the database.

You need to find the BAPI that is used to post the invoice and then call BAPI_TRANSACTION_COMMIT.

Always do:

call function 'BAPI_application_specific'

if sy-subrc eq 0.

call function 'BAPI_TRANSACTION_COMMIT'.

endif.

Check the documentation you have to see if you can find the application specific BAPI.

Hope that helps,

Michael

Read only

0 Likes
407

Hi Michael

I meant to say BAPI_ACC_BILLING_POST, not commit!...

Could you please try again ...

Magda