Category Archives: SAP ABAP

Focus On SAP ABAP Articles And Training

  • 10 Must Know SAP ABAP Character String Coding Techniques

    Declaring C and N Fields This article will discuss character strings. When creating programs, fields defined as char­acter strings are almost always used. In SAP, there are two elementary data types used for character strings. These are data type C, and data type N. Data type C. Data type C variables are used for holding […]

  • How To Modify Data In A SAP Database Table Using ABAP

    Authorisations When writing programs using open SQL, one has to bear in mind the concepts of authorisation in an SAP system. An SAP system has its own security tools to ensure that users can only access data which they are authorised to see. This includes individual fields as well as individual records. The way authorisations […]

  • SAP ABAP Debugger Scripting

    SAP ABAP Debugger Scripting is a new tool added in SAP Netweaver 7.0 EHP2. It is a feature available in the new ABAP debugger. However, just like some of the other debugger options, you need to check whether the security team has provided access for the debugger script tool.

    Most of ABAP programmers regularly use Break-Points & Watch-Points for debugging. These are necessary in an ABAP programmers role to find the bugs in custom developments, analyze the Standard SAP program or find a BADi for that matter. So where does this Debugger scripting come into play?

    Designed To Make Debugging ABAP Code Easy

    The debugger scripting is a tool is designed to make debugging easy. Sometimes debugging can be very tiresome, especially when debugging SAP standard code is involved. The debugger scripting tool can sometimes come to the rescue of ABAP programmers, as it helps automate the process of debugging.

    Some of the benefits of Debugger Scripting are:

    1. Automation of repeatedly changing the value of some variable in debugging – You can write a script to do all the changes required.
    2. Perform any custom trace possible – Even track the call to the ABAP stack. It can be used to trace when new programs are called, as the ABAP stack is updated every time a new program is called.
    3. Create custom (conditional) watch-points and break-points. script watch-points & break-point are different from the normal debugger watch-points or break-points. Scripts can be implemented for these to work only when required.
    4. Program Tools for standard tasks like checking data consistency, test error handling, etc.
    5. It can help make the debugging to be user interactive (pop-up based) where one can enter the value, rather can each time double clicking on the variable to change the value. Since the script can be saved and loaded again, this makes the task for programmer easier to use.

    A Debugger script is simply a local Object Oriented ABAP program that is run by the New ABAP Debugger. The script uses the ADI (ABAP Debugger Interface) to automate actions and to add capabilities that otherwise would not be available.

    So Let’s Take A Look At The Debugger Scripting Tool.

    In the new ABAP debugger there is a separate TAB “Script” after the TAB “Diff”(Diff-Tool).

    Fig 1 – Tool View

    In this TAB, are various options for creating and executing an ABAP script. Let us explore these options.

    There is a standard create Create_Button button, to create a new script, as per our debugging requirement. Each new script that is created has four methods that can be implemented. These methods are triggered at specific moments and thus it defines their purpose. Also as you can see in Fig 1, all this code is generated automatically whenever a script is created.

  • SAP ABAP Select-Option Fields LOW-HIGH

    Today I am going to answer a question from one of the students in the SAP ABAP Beginners course: Hi , I am little bit not sure about how low and high field work here . when we can set the max or min value that we want to include or exclude in our report […]

  • What Is The Purpose Of An Internal Table In ABAP

    Today I am going to answer the question of What Is The Purpose Of An Internal Table. In the ABAP Beginners course I do go through internal tables and show you how to create them and different types of internal tables we can create, but to answer this question of “What is the purpose of […]

  • What is the importance of Key Fields and Foreign Key in SAP

    What is the importance of Key Fields and Foreign Key in SAP? This was a question asked by one of my SAP ABAP course students so I recorded this video to answer the question and share with everyone. Click here to join the email list and get notified of new updates.