Free SAP Training & Tutorial A Free SAP Functional And Technical Tutorial And Training For ABAP, SAP QUERY, ALV, SMARTFORMS, SD, PP, MM, QM, FICO
01.09.2010 | Author: | Posted in ABAP 

Today I want to share something that can be useful for ABAPER when you have to debug a program, sometimes it’s necessary to manipulate certain values while we debug a program, using ABAP debugging tool now we can do just that! We can actually change the values of a parameter of a data column while the program is on the debug mode.

Below I just created a sample code for our debugging purpose. In the code below you will see 3 variables, the first two variables have a values of 5 and 10, the result will be passed onto the third variable (v_C)

Z_REPORT_DEBUG.

data:
v_a type i VALUE 5,
v_b type i VALUE 10,
v_c type i.

v_c = v_a + v_b.

WRITE v_c.

Now set the break point on the v_c = v_a + v_b line. (see picture below).

09012010-dcv-01

Run the program (F8). Now you will be entering the debugging mode and stopping at your breakpoint line.

Now double click each variable v_a and a_b until you see the value of each variable on the right pane. As you can see below, the value of v_A = 5 and V_B = 10, so let’s change v_B into 20.

09012010-dcv-02

To change the variable’s value, double click the pencil button on the side of the value. Enter 20 in the val box and press enter until the box has turned gray again.

09012010-dcv-03

Okay, now press F8 to resume the program. You will see that the value now is 25 as the result from adding 20 and 5.

Popularity: 1% [?]

 


 
 

Related Tutorial " ABAP" 

  •  
     
    Recent Tutorials
    Create Table Maintenance Display In SAP Create table display to maintain tables values using SM30
    Create Table Maintenance Generator In SAP Maintaining SAP Transparent table values using maintenance generator
    Table Relationship In SAP Learn How To Find Tables Relationships in SAP
    Convert Number To words Using ABAP Find out how to convert numbers into words Using ABAP
    How To Maintain Long Text Object in SAP Maintain long text object in SAP
    How To Know What TCODE Used In ABAP Program Find TCODE For your ABAP Program Report
    How does CRM Work? Learn how CRM system works to run your business
    Why SAP CRM is the Best Choice? The reasons why CRM application is the best choice
    Difference Between CRM System and CRM Strategy What's the difference between CRM system and its strategy
    CRM for a Better Customer Service Learn how CRM could make your customer service much better
    Costs of Implementing CRM Software Learn the how much cost you need to prepare when implementing CRM
     
    Popular Tutorials
  • (none)
  •  
    Categories
    ABAP   Basis & Configuration  
    ALV SAP BW (Business Warehouse)
    BAPI   SAP Interview Questions
    SAP Tables   SAP Overview
    Transaction Codes FI SAP Query
      MM SAP Script  
      PP SAP Tutorial FI Module
      QM   MM Module
      SD   PM Module
    SAP Functional MM   PP Module
      SD   QM Module
    White Papers     SD Module
    Uncategorized   SmartForms  
      User-Exits  
     
     

     

    Home | About | Contribute | Privacy

    Copyright 2011 freesaptutorial.com.

    Free SAP Tutorial is not associated with SAP AG in Germany or in any other country.

    SAP is a registered trade mark of SAP AG.