Application Development 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: 

How to find Transactions/Programs are Active or Locked

Former Member
0 Kudos

Hello Friends,

How to find, what are all the Transactions/Programs are Active/Locked in the Production(PRD) Environment.

Is there any table or transactions available to find it out?

Please assist.

Regards,

Shrinivas

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

- To be confirmed : look at field CINFO in table TSTC, if it contains hexadecimal values of '80', '01', '02' or '20' it is locked (not sure, check)

- Use a call 'DY_CHECK_TRANSACTION' id 'TX' <tcode> if sy-subrc = 3 the transaction is locked.

- Use a call FM AUTHORITY_CHECK_TCODE, if NOT_OK is raised and the message i348(s#) is sent the transaction is locked

- First check via AUTHORITY-CHECK OBJECT 'S_TCODE' ID 'TCD' FIELD <tcode> and if the object is allowed but NOT_OK is raised by the FM AUTHORITY_CHECK_TCODE, the transaction is locked.

Regards,

Raymond

8 REPLIES 8

GauthamV
Active Contributor
0 Kudos

You can check all the transactions active based on user using SM04 transaction.

SM01 transaction can be used for lock/unlock of transactions.

Former Member
0 Kudos

hai guru,

please check the t-code sm12 if the program is locked or not.

thanks,

anji.

nabheetscn
Active Contributor
0 Kudos

Use SM04/SM12 will give you who is working on what and which are the objects and locked since when..

Nabheet

Former Member
0 Kudos

Check transaction SM50.

Thanks

Shantanu

raymond_giuseppi
Active Contributor
0 Kudos

- To be confirmed : look at field CINFO in table TSTC, if it contains hexadecimal values of '80', '01', '02' or '20' it is locked (not sure, check)

- Use a call 'DY_CHECK_TRANSACTION' id 'TX' <tcode> if sy-subrc = 3 the transaction is locked.

- Use a call FM AUTHORITY_CHECK_TCODE, if NOT_OK is raised and the message i348(s#) is sent the transaction is locked

- First check via AUTHORITY-CHECK OBJECT 'S_TCODE' ID 'TCD' FIELD <tcode> and if the object is allowed but NOT_OK is raised by the FM AUTHORITY_CHECK_TCODE, the transaction is locked.

Regards,

Raymond

Former Member
0 Kudos

Hello friends,

I got answer for this.

use standard program 'RSAUDITC'( Audit Info System: Display Locked/Unlocked Transactions).

execute this program and you can give programs list.

it will display locked programs list.

BR

Srinivasareddy

0 Kudos

Hello srinivas ,

                        i need to check whether a tcode is locked or no ,

and i need to check in the middle of my z program .

if its locked then i need to do an operation and else i need to perform another .

**in the middle of the program i need to check .

former_member210642
Participant
0 Kudos

Hi,

Check for SM12 Transaction .

defnately u get .