Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LOCK UNLOCK PRODUCTION VERSION HOW ?

Former Member
0 Likes
2,326

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 ......

2 REPLIES 2
Read only

Former Member
0 Likes
1,180

Hi Varun,

What you want to lock unlock (TCode or User)....?

Read only

Former Member
0 Likes
1,180

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