SAP ABAP Add Toolbar Button with Icon on Selection Screen

Ahmet Acar
2 min readAug 27, 2019

I n this article, I will talk about add new toolbar (max 5) in ABAP report to make program more interactive to user on selection screen. We will using SSCRFIELDS structure, SSCRFIELDS structure stores the selection screen fields. You must declare this structure as an interface work area using the TABLES statement.

Declare TABLES statement

Define text displayed in button in initialization event. You can use just text or just Icon or both of them :)

First way

In this part, we use string text but you can also use variable different situations.

Second way

As you can see in this Type Pool, if you use string text or variable type, you can get help here.

Type Pool: ICON

Furthermore, activate toolbar in selection screen. In this part, we using 2 function key because I want to put just 2 button in toolbar but you may be want more or less button.

Activate toolbar buttons

Important point is, you can use max 5 button because SAP only allows that much, no other reason…

SSCRFIELDS

In conclusion, Check user command in “at selection screen” part of program.

user command

Thank you for reading. Stay tuned!

What do you guys think? I love to know your thoughts. Kindly like, share or comment below.

Ahmet Acar.

--

--

Ahmet Acar

SAP ABAP Developer, Computer Engineer, Amateur Basketball Player.