how will you go for row level locking of a z table
Answers were Sorted based on User's Feedback
Answer / kubera naidu
Hi Swapna,
1)Create a lock object, suppose EZLOCK in SE11 for the table
ZLOCK (having fields..field1, field2, field3).
2)Activate it, system will automatically generates two
function modules for locking and unlocking.
3) How to use them in program ?
Here you go..
loop at itab into wa_tab.
* For Locking the table ZLOCK
CALL FUNCTION 'ENQUEUE_EZLOCK'
EXPORTING
mode_ZLOCK = 'E'
mandt = sy-mandt
field1 = wa_zlock-field1
field2 = wa_zlock-field2
field3 = wa_zlock-field3
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
* For Unlocking the table ZLOCK
CALL FUNCTION 'DEQUEUE_EZLOCK'
EXPORTING
mode_ZLOCK = 'E'
mandt = sy-mandt
field1 = wa_zlock-field1
field2 = wa_zlock-field2
field3 = wa_zlock-field3
endloop.
Regards,
Kubera Naidu.
Is This Answer Correct ? | 19 Yes | 2 No |
Answer / balraju
by using an function module enqueue_table name inside a loop
end loop
Is This Answer Correct ? | 6 Yes | 4 No |
plz listen carefully sir,in alv reports how i insert logo into alv grid(if it is tcode 'oaer' )?tell me procedure, in the same report how insert background logo tell me the procedure please?
in interactive reports i can use hide field for secondary list out put in ALVs for secondary list as a out put which field r u using?in interictive list ican use HIDE in ALVs which field r u using?
What are Lock Objects, and their Differences
What is the difference between data elements and domains? : abap data dictionary
how to print a logo in script
In the MM module for finding out the standard cost what is the view one has to look at?
What is exception class and test class. How to use it?
What is dynamic action? : sap abap hr
for uploading master data(ex:customer data) into sap, which methods you prefer? call transaction/session/lsmw/bapi? why?
What are different ways in which data upload can be done using LSMW?
Can I write COMMIT and ROLLBACK in user-exit?
What is the significance of at line-selection event?