ABAP – Load user-specific selection screen variant during program initialization

When user starts a program/report in SAPGUI, he want’s to have some speicific fields to be pre-filled with fixed values. This is true especially on more complex selection screens. So he must either create a transaction which executes the report with selected variant, or he can start the program directly and choose the variant on the selection screen manually.

But there’s also another option – load the variant dynamically by ABAP coding, during the INITIALIZATION event… Continue reading

ABAP – ALV with custom F4 field

Here you can find a code snippet about how to enable specific fields of your ALV to be F4 responsive with a custom programmed search help. Continue reading

ABAP – POPUP_TO_CONFIRM with dynamic text

If you need to display dynamic text in an e.g. confirmation dialog, in which you need to place several variables (different for each popup) you can use function module POPUP_TO_CONFIRM and the parameter table. Continue reading

ABAP – Create new SET/GET Parameter ID

If you need to create your own parameter id which can be bound to a data element or which you can use in your abap commands SET/GET PARAMETER ID, you can follow the steps described below. Continue reading

ABAP – Select ALV layout on the selection screen

If you want to offer your users to have a parameter on the selection screen where they can select layout of the ALV to be displayed, you can use the following code snippet Continue reading

ABAP – CALL TRANSACTION USING BDC

SAPIn the following code snippet you can find an example on how to trigger a transaction HU03 (display handling unit details) with given HU number via batch input. Continue reading

ABAP – Dynamically show and hide ALV (as sidebar)

SAPQuite frequently I’m getting requests to create an ALV report where only the “header data” is displayed…but after clicking on a hotspot area in that ALV, another grid (ALV) is to be displayed with detailed information (displayed as a sidebar on the screen, not as a new, modal screen). And of course, this sidebar should be possible to be closed/hidden. Continue reading

ABAP – SET PARAMETER ID and ME33L

SAPI need to display a scheduling agreement after click on hotspot (containing SAG document number) in ALV.

Continue reading

ABAP – Additional button in the selection screen toolbar

SAPIn this short code snippet you can find out how to add additional buttons to the selection screen and trigger user-defined functions based on what user clicks on.

This specific example shows how to display current report’s documentation.

Note: The INFO button is added to the selection screen automatically once you maintain the report’s documentation, but the following code should serve as a reference on how a similar thing can be done manually. Continue reading

ABAP – Grouping fields in field catalog

SAPIn some cases you find a report with ALV output where there are maybe hundreds of fields available to be displayed. This can be VERY confusing for the user when he tries to select just few fields he wants to display but all fields are listed in one HUGE list together.

Continue reading