Skip to Content
Technical Articles
Author's profile photo arghadip kar

How to Stop your SAP Debugger on Update of Standard Table or Selection of Tables with Wildcard also in any Transaction Code?

Introduction

SAP Debugging is a skill that is very important for A Technical Consultant as well as Functional Consultant. SAP Debugging can be compared to the Pressure Monitor, Glucose Monitor Device etc used to check up our Body. For any WRICEFF Development a SAP Consultant does, they use Debugging to find the following

  1. Find issue in the code.
  2. Understand the Process Flow.
  3. Identify the exact Enhancement needed to be implemented to do Magic for the Business.
  4. Identify the Different Database Table that stores data.
  5. Testing your Development
  6. Find missing Configuration table not maintained 🙂

It is always very important to find at what Point in Standard code or Custom Code the following is happening

  • Standard Table is getting Updated
  • Particular table is being Read.

Also check the following blog which will help you a lot

https://blogs.sap.com/2020/07/15/in-sap-how-to-find-a-table-behind-a-transaction-code/

Solution

How to Stop the Debugger at the exact position where Standard Table is getting Updated.

Go To Transaction Code BP in SAP S/4 HANA

Now I wish to update the Title to Mr.

I will make the Changes and type /h in command bar or OK code area and hit Enter and Save

Debugger Screen shows up and I will go to Script Tab as shown below

Now I will first select Load Script and then mention Script Names as RSTPDA_SCRIPT_BP_CHANGE_TAB

Now hit Execute or F8 in keyboard

Now Select Script

We will again hit Execute as we do not know the Table it will be updated. If you know please mention

Wala it stopped at the portion of code it is updating. Now here you can find what are the places you can find enhancement point,

 

How to Stop the Debugger at the exact position where Particular Table or Tables are being read?

Start Debugger by Entering /H in Command Bar

Now I wish to find some specific table that is being read in ME23N Transaction Code

 

Debugger Screen appears and we will go to Script Tab.

 

We will click on Load Script and Enter Script Name as RSTPDA_SCRIPT_BP_SELECT_TAB1

We will click on Start Script and enter the Database Table as EK*. If you wish to see whether there is any Custom Table being read you can put Z* or Y* also.

Wala it stopped the exact Select and will stop for other select also that starts with table Name EK*

This is very useful.

 

Conclusion

Please use this blog both in SAP ECC and SAP S/4 HANA. The Update script may not work for some Standard Transaction Code but for the new ones like BP Transaction it works like a Charm.

 

For video version please check below.

 

Assigned Tags

      16 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo flavio ciotola
      flavio ciotola

      Thank you Arghadip, really useful and informative! Will for sure try this at the very next occasion 🙂

      Thanks again, Flavio

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Thanks a Lot.

      Author's profile photo Amal Touzani
      Amal Touzani

      Thank you , this is very useful 🙂

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Glad you all liked it,

      Author's profile photo Daniel Chi Poon
      Daniel Chi Poon

      Thanks mr arghadip kar for your article and for sharing this info. Many times even at a Sap business side we not own a sap client for applying to technical tests. Success in your articles and posts !.

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Glad you all liked it,

      Author's profile photo Sumit Thakur
      Sumit Thakur

      Nice tip...good technique to find out exact point in less time..good job..

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Glad you all liked it,

      Author's profile photo Gaurav Banerjee
      Gaurav Banerjee

      Thanks a lot for sharing..such a great technique..will surely save hours of debugging.

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Glad you all liked it,

      Author's profile photo Harvinder Singh
      Harvinder Singh

      Thanks arghadip, used this trick recently which saved a lot of time. Keep posting such blogs...

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Glad you all liked it,

      Author's profile photo Jigang Zhang
      Jigang Zhang

      Thanks for sharing, very useful tips!

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Glad you all liked it,

       

      Author's profile photo Amrinder Singh
      Amrinder Singh

      It's really a great piece of information shared. Thank you..!! I have a query to ask here like from where you are getting the script name as you highlighted one "RSTPDA_SCRIPT_BP_SELECT_TAB1". Is there any way to search them?

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Follow this path as mentioned below