![]() The key fields of a table included in a Lock Object are called lock arguments and they are used as input parameters in function modules. Step 7 − Click Lock Modules and the following screen will open. ![]() To check function modules, we can use Go to → Lock Modules. ![]() Automatically 2 function modules will generate. Step 5 − Click on Lock parameter tab, the following screen will appear. Step 4 − Enter the table name in Name field and select the lock mode as Write Lock. Step 3 − Enter the short description field and click on Tables tab. Enter the name of lock object starting with E and click the Create button. Step 2 − Click ‘Lock Object’ radio button. The Enqueue server sets the lock and the program is finally ready to access data. Then this request goes to the Enqueue server and the lock is created in the lock table. Lock Mechanismįollowing are the two main functions accomplished with the lock mechanism −Ī program can communicate with other programs about data records that it is just reading or changing.Ī program can prevent itself from reading data that has just been changed by another program.Ī lock request is first generated by the program. Tables whose data records are to be locked must be defined in a Lock Object, along with their key fields. Lock objects are used in SAP to avoid the inconsistency when data is inserted into or changed in the database. Data records are accessed with the help of specific programs. Lock Object is a feature offered by ABAP Dictionary that is used to synchronize access to the same data by more than one program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |