Skip to Content
author's profile photo Former Member
Former Member

Problem with BAPI_TRANSACTION_COMMIT

Hello all,

I am running into a issue here and hope someone can help me figure out what's goin on here. I have a custom report with BAPI for goods movement called twice inside this program. BAPI structure inside my program is something like this.

BAPI_GOODSMVT_CREATE

BAPI_TRANSACTION_COMMIT

BAPI_GOODSMVT_CREATE

BAPI_TRANSACTION_COMMIT

This program is working fine when I run it individually but my issue is when I call this program from a custom function module by using 'CALL TRANSACTION' statement, the control jumps out of the custom program after first BAPI_TRANSACTION_COMMIT statement. I am wondering why this is happening. Any thoughts are much appreciated. Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 13, 2009 at 08:57 PM

    Call transaction terminates when it encounters a COMMIT when you are using "USING bdcdata" option. Now if you want to bypass this, you will have to also use "OPTIONS FROM opt" and set RACOMMIT = 'X' to avoid commit terminating the call transaction.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 13, 2009 at 09:00 PM

    Instead of using call transaction to your program try to use SUBMIT your program AND return.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.