‎2006 Aug 21 5:34 PM
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
‎2006 Aug 21 10:31 PM
Hi
Please let me know if you need more information.
Regards,
Challa
‎2006 Aug 21 11:31 PM
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