Monday 10 August 2020

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.

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

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

Now I wish to update the Title to Mr.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

Now hit Execute or F8 in keyboard

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

Now Select Script

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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,

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

Debugger Screen appears and we will go to Script Tab.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

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

This is very useful.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Certifications

No comments:

Post a Comment