SAP Training – Blog

  • 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 Add Favorites To Your SAP Menu

    Are you struggling to remember SAP transaction codes? Are you using too many clicks to drill down to the SAP transactions you frequently use? A super useful feature that many consultants and SAP users forget is: FAVORITES on the SAP menu.

    Creating Favorites allow you to build your own SAP personalized menu. The transactions you use day in day out will be just a click away and named according to your preferences.

    SAP Favourite Basics

    You can manage your own SAP menu Favorites in 2 ways:

    1. The SAP menu bar:
      SAP Favourite Menu Bar
    2. Right click on the Favorites folder to access its context menu:SAP Favourite Context Menu

    Using the Favorites menu on the SAP menu bar or the context menu of the Favorites folder, you can:

  • 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.

  • Expand Your Horizons

    We need to talk about something that, let’s face it, many IT professionals are a bit uncomfortable with. While there are those of you out there who are social chameleons, able to adapt to any situation you find yourself in and thrive, there are still those of us who struggle with no small amount of […]

  • Over-Doing It – Don’t Be A SAP YES Man

    Anyone who is in any aspect of business, whether it’s operations, IT, finance, or any other field, knows that hard work is highly valued. We obtain bragging rights for the number of hours we have worked this week, not the amount of time we saved ourselves by finding a more efficient method of performing a […]

  • How to NOT Crash and Burn Your SAP Career

    Chances are, there are times in your life where you have become frantic and felt out of control. These feelings can arise in a variety of circumstances: a missed deadline at work, in the midst of a traumatic accident, or during any number of high-stress situations. Sometimes, the situation is actually dire, warranting your intense […]