Monthly Archive for February, 2011

ABAP Debugging a Popup Window

To enter a debugging mode we simply type “/h” in the command field. But do you ever wonder how to enter a debugging mode on a popup window? I mean there is no command field to type in the “/h”.

I stumble upon this really great SDN article about ABAP debugging tips and found out that there is actually 2 ways to debug a popup window.

Option 1: From any SAP windows click the “Generate a Shortcut” button sap_shortcuticon and in the window that appears make the below changes and click “Finish”. A file will be generated on the location you specified. Now drag the file onto the popup window and your ABAP debugger should be switched on!

Make sure to set the Title, Type, Command, and Location.
sap_shortcut

Option 2: Create a text file (any file name will do) anywhere on your computer where you could easily get it, and type the code below and save it:
[codesyntax lang="c++" lines="no" title=""]
[FUNCTION]
Command=/h
Title=Debugger
Type=SystemCommand
[/codesyntax]

Same thing with option 1, you may drag this file onto the popup window to switched on the ABAP debugger.
Enjoy!

Creative Commons License

SAP: Quick Way To Search For Enhancement Points

Enhancement Points allow you to modify standard SAP code, but in a structured way that will allow you to upgrade and deploy enhancement packs without the conflicts of traditional modifications. Enhancement points are basically can be found at certain defined points within the ABAP code. This allow you to add your own custom code which will be executed as if it had been hard coded into the code using a modification. Unlike hard coded modifications, these will not be lost during upgrade or patching exercises.

It is hard to tell which enhancement points are available for the process you want to customize. There’s very little documentation, and it could take an SAP developer several hours to find the best point. But thanks to Panaya team, we can now enjoy ABAPNinja.

ABAPNinja is a free web site that allows us to quickly search for the best enhancement points for our business process. How did they do it? According to their website, deciding which enhancement points impact a given transaction, directly or indirectly, is not an easy feat, to say the least. There are some 13,000 enhancement points, and over 60,000 SAP transactions, which gives over a billion possible combinations. They have have analyzed close to 250 Million lines of ERP 6.0 code, using Panaya’s program comprehension technology, and a grid of 50 servers over a period of one month, to compile this huge database. Then then used Ruby on Rails to format the data as web pages.

Try it out now, go to www.abapninja.org and enjoy searching for enhancement points!
ABAPNinja.org

Where to download MiniSAP

MiniSAP is a trial version or sneak preview of SAP software. It is a downscaled version of SAP system without the SAP applications (FI, CO, MM, SD, HR etc.). This is very helpful to those who are just starting to learn ABAP.

MiniSAP are available via the SAP Developer Network (SDN)
- register yourself.
- go to software download page.
- you will see different trial versions of SAP software with different system requirements.

Below are the links on some of the trial version of SAP you can download:

-SAP NetWeaver AS ABAP 7.02 SP6 32-bit Trial
-SAP NetWeaver 7.01 SR1 SP3 Developer Edition
-SAP NetWeaver 7.01 SR1 SP3 ABAP Trial Version
-SAP NetWeaver 7.01 ABAP Trial Version
-SAP NetWeaver 7.0 - Trial Version on Linux

Once you finished installing a MiniSAP, you have to determine your hardware key to apply for an evaluation license key: You may refer to SAP Sneak Preview License Key Request for a complete instructions.

Creative Commons License

SAPlink

Ever wonder if it is possible to copy or download your ABAP programs, functions, classes, tables, smartforms, etc. and share it to other programmers or use it when you needed it on other SAP systems? Well EnterpriseGeeks created a project called SAPlink which enables us to share abap codes, objects and components.

SAPlink is a project that aims to make it easier to share ABAP developments between programmers. It provides the ability to easily distribute and package custom objects.

Below is the site for the complete instructions on how to install and use SAPlink.
SAPlink User Documentation

Creative Commons License