Step 1: Setup a break point
Step 2: Execute the program
System will automatically open DEBUGGER
We can analyze
- Code flows
- Data Variables
- Values
- Step-by-Steps functionality
Setup a break point on line no 20,25,30
Execute and see if Debugger launches
Change the value stax before assigning to fs1 to new value : 9
Also check fs2 once the assignment from fs1 is complete
Change the fs2 tax rate to 10
Execute F8 and check if the values are computed correctly
SAP Value must be 500X9% = 545
IBM Value must be 800X10% = 880
Please set a break point on 25
Once bp hits, create a conditional BP on Line 31
Fs1-tax_amount > 7
Press F8 – our break point must hit
Come back again with different condition
Fs1-tax_amount > 10
Check the behavior – bp should not hit
BRB 
Go to debugging
Setup couple of break points
Select Breakpoint Checkbox
Click menu Debugger> Debugger Session > Save
Name anything for debug session
Select file and provide file name e.g. DEBUG_CONFIG
Click ok
Restart debugging again
And choose same menu options
Click menu Debugger> Debugger Session > LOAD
Give the file name DEBUG_CONFIG
Your BPs are Restored
do 5 times.
itab-f1 = sy-index * 10.
itab-f3 = 'XX'.
itab-f2 = itab-f4 = sy-index.
read table itab
with key f1 = itab-f1
binary search
transporting no fields.
if sy-subrc <> 0.
insert itab index sy-tabix.
endif.
enddo.
F1 F2 F3 f4
10 1 XX 1
20 2 BB 2
30 3 XX 3
40 4 DD 4
50 5 XX 5
Transaction to Analyze ABAP Program
SAT
DBTABLE
1
2
3
itab
Day 3 whiteboard.pptx bootcamp for SAP ABAP
Day 3 whiteboard.pptx bootcamp for SAP ABAP

Day 3 whiteboard.pptx bootcamp for SAP ABAP

  • 3.
    Step 1: Setupa break point Step 2: Execute the program System will automatically open DEBUGGER We can analyze - Code flows - Data Variables - Values - Step-by-Steps functionality
  • 4.
    Setup a breakpoint on line no 20,25,30 Execute and see if Debugger launches Change the value stax before assigning to fs1 to new value : 9 Also check fs2 once the assignment from fs1 is complete Change the fs2 tax rate to 10 Execute F8 and check if the values are computed correctly SAP Value must be 500X9% = 545 IBM Value must be 800X10% = 880
  • 6.
    Please set abreak point on 25 Once bp hits, create a conditional BP on Line 31 Fs1-tax_amount > 7 Press F8 – our break point must hit Come back again with different condition Fs1-tax_amount > 10 Check the behavior – bp should not hit BRB 
  • 7.
    Go to debugging Setupcouple of break points Select Breakpoint Checkbox Click menu Debugger> Debugger Session > Save Name anything for debug session Select file and provide file name e.g. DEBUG_CONFIG Click ok Restart debugging again And choose same menu options Click menu Debugger> Debugger Session > LOAD Give the file name DEBUG_CONFIG Your BPs are Restored
  • 16.
    do 5 times. itab-f1= sy-index * 10. itab-f3 = 'XX'. itab-f2 = itab-f4 = sy-index. read table itab with key f1 = itab-f1 binary search transporting no fields. if sy-subrc <> 0. insert itab index sy-tabix. endif. enddo. F1 F2 F3 f4 10 1 XX 1 20 2 BB 2 30 3 XX 3 40 4 DD 4 50 5 XX 5
  • 20.
    Transaction to AnalyzeABAP Program SAT
  • 22.