SAP ABAP Add Toolbar Button with Icon on Selection Screen
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.
Define text displayed in button in initialization event. You can use just text or just Icon or both of them :)
In this part, we use string text but you can also use variable different situations.
As you can see in this Type Pool, if you use string text or variable type, you can get help here.
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.
Important point is, you can use max 5 button because SAP only allows that much, no other reason…
In conclusion, Check user command in “at selection screen” part of program.
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.