Skip to Content

Where does tcodes on command line gets stored?

Introduction:

I was working on one issue in one SAP landscape on my PC and later opened another landscape and observed that the transaction codes (tcodes) which are there in command line (history) were same. 

Then I started searching for the table or a location where the transaction codes (tcodes) are getting stored which we entered on command line in SAP R3 system. Finally, after lot of search and some reading I found out the location.

This is very simple but interesting thing to know how Operating system stores the SAP commands.

Details:

Let’s first see the list of transactions which are entered on command line. Later we will be getting the same list from OS level.

Logon to your SAP R3 system and see the history of tcodes on command line.

/wp-content/uploads/2013/10/1_293144.png

Now find out the location where this tcodes are getting stored at OS level.

Go to Start -> Run -> regedit and click ok. It will open the following screen.

/wp-content/uploads/2013/10/2_293145.png

Expand the node HKEY_USERS.

/wp-content/uploads/2013/10/3_293147.png

After that expand the selected node and again expand it.

Click on Software -> SAP -> SAPGUIFront.

/wp-content/uploads/2013/10/4_293149.png

Finally, expand the SAPGUIFront and click on Code. It will open the desired list of all tcodes which user has entered on the command line on a SAP system in that particular Computer.

/wp-content/uploads/2013/10/5_293150.png

Please note the path and you can directly open it and then compare it with your systems command line list.

However, I did not want to find only this location. My next question was what about the all other transactions which are not in this list which user entered on the command line.

For that we need to go to my computer and click on Search and search the following path.

SAPHistory<User Name>.mdb

Once you click on Search it will give you the access file.

/wp-content/uploads/2013/10/6_293151.png

Remember this file is Password protected and you must have the database access password in order to open it.

/wp-content/uploads/2013/10/7_293152.png

Enter the Password and it will give you more details.

Happy Learning!

Additional Information (based on questions/suggestions):

Below settings on SAP GUI ->Options -> Local Data can be checked upon.

tcode - local data setttings.png

104 Comments
You must be Logged on to comment or reply to a post.