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

Bapi followed by BDC

Hi all,

I have a requirement wherein i am calling a BAPI follwed by a BDC to achieve a upload of databse.Now my problem is that the BAPI call will be successful only if i call BAPI_TRANSACTION_COMMIT.

But it may so happen that my bdc fails.In that case i dont want my BAPI to make the changes.How can i have a check on these as whenever my BDC fails the BAPI should be rollbacked.

Itz an urgent issue.Plz reply soon..

Useful answers will be rewarded..

Thanks & Regards,

Arun

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2007 at 08:05 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 30, 2007 at 08:06 AM

    Hi,

    If u r using a CALL TRANSACTION u can check SY-SUBRC of CALL TRANSCATION, and then proceed as u like.

    Thanks

    Pradeep

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2007 at 08:12 AM

    Hello Arun

    after BDC if you using call transaction you can check sy-subrc.

    if it is 0 then use BAPI_TRANSACTION_COMMIT else use FM BAPI_TRANSACTION_ROLLBACK to revert changes.

    reward points if helpful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02:40 PM

    THANKS

    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.