ABAP – Using dynamic variables in program selection screen variants

SAPI believe you once had to solve a requirement (if not, you’ll definitely receive one in future) where you had to design a SELECTION-SCREEN parameters which value has to be dynamically updated according to results of the program – eg. last processed IDOC number, Purchase/Sales Order number or just the last date when the report was executed. Continue reading

ABAP – How to search across Web Dynpro methods

SAPThere’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

ABAP – Advanced debugging

SAPI 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

Dynpro – How to disable functions instead of hiding them in a screen

SAPIf you need to manipulate with a screen dynamically, sometimes you need to enable/disable some functions/buttons in the toolbar. Standard exclusion of function when setting PF-STATUS will by default hide the excluded functions. But what if you want to display them, but just in disabled state ? Continue reading