Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can I write COMMIT and ROLLBACK in user-exit?

Answer Posted / krishna davuluri

Hi,

Coomit and Roll back in the User exit should not be used.
Because while executing userexit its not allways sure that
all needed values for database updations are present or
not.hence we should not use COMMIT or ROLLBACK, of work.
Also userexit is expected to add new functionality to
existing functionality, its not supposed to make any
changes in the existing functionality.

Suppose if you take Userexit SAVE_DOCUMENT_PREPARE.Systems
goes through the user exit more than once and COMMIT or
ROLLBACK may cause inconsistencies.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of indexes in abap?

1113


What is a predefined type in abap?

1129


What is repository info. Systems?

1066


Which objects are independent transport objects? : abap data dictionary

983


What are the different types of operators in the sap abap?

1077


What are the two methods for modifying sap standard tables?

1292


What is a modification assistant?

1003


What is a view in sap? : abap data dictionary

1013


What will be your approach towards optimizing legacy code? Will you suggest change in technology? Does OO ABAP bring any performance benefits? How will you deal with queries in a loop? How will you optimize nested loops?

1335


What is macro? : abap hr

1076


Give an example of interface from your project explaining why you used it?

1337


What are the types of records that are transferred to sap r/3 and used by interfaces? : abap bdc

1098


What is img? : sap abap hr

1114


What is your approach for writing a bdc program? : abap bdc

1003


How do you save data in bdc tables? : abap bdc

1060