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

updating inside badi

Hello.

Prompt, please, who collided: inside of a method badi would like to make updating of data in the table of the dictionary. Updating I confirm (commit work and wait), but it does not occur. Whether is what or feature for updating inside badi? In advance thanks, Anton.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 23, 2006 at 09:06 AM

    it depends of the Badi, sometimes you can't make commit work inside a Badi ...

    Fred

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      you should never issue COMMIT from within the BADI, because the calling transaction will do the COMMIT at thge right time after completion of all critical updates.

      Note: Your COMMIT will commit everything to the database, not only your database updates.

      If you do update/insert, this takes effect inside the LUW immediately but can not be ssen from outside before the transaction commits all pending database requests.

      If you can't see your data in the database after the transaction is completed successfully, you either never updated the database or you tried to modify a SAP standard table which is later accessed (and modified) by the tranaction.

      If you want to modify SAP standard data, find a BADI with internal tables in the interface. Modify the internal tables and let the transaction write them to the database. Update/Insert should be done only for Z-tables.

      Regards,

      Clemens

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.