10-23-2006 10:03 AM
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.
10-23-2006 10:06 AM
it depends of the Badi, sometimes you can't make commit work inside a Badi ...
Fred
10-23-2006 10:06 AM
it depends of the Badi, sometimes you can't make commit work inside a Badi ...
Fred
10-23-2006 10:16 AM
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