Can we use COMMITWORK statements in BADI

Answer Posted / asin

We should not use Commit in Badi as it will lead to data inconsistencies.
The data gets updated if commit statement is used in a BADI implemented in a particular standard program. After the execution of transaction if in case it fails/terminates the data/records are supposed to be rolled back or not save but then due to use of Commit it leads to inconsistency.

Is This Answer Correct ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is asynchronous and synchronous update?

567


What are extracts?

558


What is the function of a data element? : abap data dictionary

574


What will happen when we use single buffered selected?

616


What is the use of enqueue function module? : sap abap data dictionary

577






How to define selection screen?

589


In which time constraint does the infotype records depend on the subtype ? : abap hr

629


Explain what are the different functions used in sap script?

542


What is tcode se16? For what is it used.

579


How to eliminate duplicate entries in internal tables? : abap data dictionary

776


Is a logical database a requirement/must to write an abap/4 query?

576


Exception handling and how does it transfer from called method to calling method?

863


I am trying to automate a manual processing of iDOCs in BD87. I used the following code to pass idoc-id to global variable 'DCN' and then skip the first screen of BD87 to go to processing directly. After running this code SET PARAMETER ID 'DCN' FIELD itabhdr-idoc_id. CALL TRANSACTION 'BD87' AND SKIP FIRST SCREEN. it takes me to the first screen because it cannot recognize my idoc-id. How I can pass idoc-id to global? I have used the above code to goto VA02 with VBELN and it worked perfectly.

1758


What are standard layouts sets in the sap script?

544


What are the three hierarchical levels of data types and objects?

573