2013 Dec 18 5:53 AM
hi experts ,
goodmorning all ,
can any one tell in production version on which feilds are considering to lock and unlock is done .
actuvally i am prepairing Z transaction for cs02 . so in this i have to set lock and unlock production version .
how can i set this production version lock and unlock .
and also tell me that production vertion and lock unlock fields where these fields are storing ...
thanks all in advance ......
hi experts ,
goodmorning all ,
can any one tell in production version on which feilds are considering to lock and unlock is done .
actuvally i am prepairing Z transaction for cs02 . so in this i have to set lock and unlock production version .
how can i set this production version lock and unlock .
and also tell me that production vertion and lock unlock fields where these fields are storing ...
thanks all in advance ......
2013 Dec 18 6:20 AM
2013 Dec 18 6:33 AM
Hi,
First identify the concern table for cs02. And then create the Lock object by se11. In that please mentioned the table name and provide the mandt and primary key field in lock Parameter tab.Save and activate. The two function module viz 'ENDEQUEUE' and 'DEQUEUE' are generated. Use them in your z program. After you commit the work, release the lock by using DEQUEUE FM.
CALL FUNCTION 'ENQUEUE_EZCOLOR'
EXPORTING
MODE_AUSP = 'E'
MANDT = SY-MANDT
OBJEK = IT_ZCOLOR-OBJEK
ATINN = IT_ZCOLOR-ATINN
ATZHL = IT_ZCOLOR-ATZHL
MAFID = IT_ZCOLOR-MAFID
KLART = IT_ZCOLOR-KLART
ADZHL = IT_ZCOLOR-ADZHL
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
regards
Jigar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |