There’s no direct way how to search for a string across all methods of a Web Dynpro, it is always possible to search in just one method only. Using the approach I’m going to present it is possible to find the SAP internal name of the impementing class and then search across the whole class in classic SE24 transaction for editing classes. Continue reading
Category Archives: ABAP
ABAP – Advanced debugging
I believe that most of you know how to debug the basic report or class methods etc.
But things can become complicated when debugging is needed for a backround job, RFC function module or even some user-exit which is being triggered in an update task. E.g. when you update material master in ECC using MM02, you can’t easily debug all user-exits because they’re triggered in separate process independent on session you are currently running.
In this article I’d like to present several useful debugging tricks you can use in your more complex scenarios. Continue reading
ABAP – Currency conversions
In this article I’d like to show an easy approach on how to convert an amount given in one currency to another currency. Continue reading
ABAP – Debug CIF interface from ECC to APO
It it (almost) impossible to debug CIF interface on inbound side because the data being sent from ECC to APO is passed via RFC enabled functions which are called “remotely” from ECC. Therefore it is not possible to just put break point in target (APO) system and expect that debugger will start when you send data from source (ECC) system. Continue reading
ABAP – Treating different number formats
You might face a problem when users have number format set differently in their user profiles (TCode SU01, table USR01). By default there are 3 formats available and this can cause troubles when processing user entered data and converting it into internal SAP DB format. Continue reading
ABAP – Export Transport request to local file system
All development or customizing in SAP is written into a transport request unless it is a local object not intended to be transported ($TMP package). Sometimes it might be useful to backup your development but in SAP this task is quite complicated to export all programs, classes, standard texts, …
Therefore there is an option to export the whole development encapsulated on a transport request level. And that’s what this article is about – exporting development encapsulated in a transport request to local file system. Continue reading
ABAP – Validation of manual input
I faced a scenario where I had an ALV grid where all columns were made generic of type (let’s make it simple) CHAR255. Each column has its name in field catalog in format TABNAME-FIELDNAME (+ more human readable column header texts of course). What I needed to achieve was to make validation of data that user entered in the ALV cells. Since the cell validation is not available by default (because of type CHAR255) I had to make it dynamically.
In this article I’d like to share my solution Continue reading
ABAP – create dynamic variable knowing reference tabname and fieldname
If you want to create a variable during runtime knowing only the reference table name and its field name (in string form), you can achieve it following the code presented in this article Continue reading
ABAP – ALV custom toolbar button + Import data from clip board
In this code example I’ll show how to add custom button to your ALV toolbar. This custom button will import data from clipboard into the ALV grid. This can solve issue with classic Ctrl+C and Ctrl+V where there’s a problem that new rows are NOT created in the ALV grid automatically – this will be solved by the extra toolbar button Continue reading
ABAP – ALV Context menu + keep row selection after a filter is applied
Standard functionality of an ALV grid offers row selection by clicking on the row headers. You can also use Ctrl or Shift keys to do mutliple row selection. Drawback of this is when you need to select some rows and apply some filters at the same time. Setting or deleting filter (or any operation which does grid refresh) clears the row selection. If you need to keep the row selection together with functionality of filter (and others), you can follow my little suggestion Continue reading