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

Please Help using BAPI_TRANSACTION_COMMIT in BDC session

Former Member
0 Likes
585

Hi,

I am using custom transaction to create vendor invoices by using function module BAPI_INCOMINGINVOICE_CREATE and it creates the invoice and go to BAPI_TRANSACTION_COMMIT to commit the database updates.

The problem is when i am creating the invoice for multiple PO's using BDC session method this program executes only of one PO's and commits created invoice data and comes out of the program with out continuing to further steps after BAPI_TRANSACTION_COMMIT FM execution. Please advise me how to resolve this.

Regards,

Challa

2 REPLIES 2
Read only

Former Member
0 Likes
461

Hi

Please let me know if you need more information.

Regards,

Challa

Read only

uwe_schieferstein
Active Contributor
0 Likes
461

Hello Challa

The command

CALL TRANSACTION USING...

has to optional addition

OPTIONS FROM ls_options.

where ls_options is of type CTU_PARAMS.

In the documentation of CALL TRANSACTION is says that if RACOMMIT = 'X' then CALL TRANSACTION USING... is not completed by COMMIT.

I guess the commit work does prematurely finish your BDC session if this option is initial.

Regards

Uwe