Push button
Dear all,
May i know how can i create push button on report/list?
Pls comment.
Thanks.
press F1 on ABAP keyword SELECTION-SCREEN
Hi
study the following example
--------------------------------------------------------------------------------
Report Demo.
Tables SSCRFIELDS
SELECTION-SCREEN:
PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1.
PUSHBUTTON 2(10) TEXT-001 USER-COMMAND CLI2.
AT SELECTION-SCREEN.
CASE SSCRFIELDS.
WHEN 'CLI1'.
FLAG = '1'.
WHEN 'CLI2'
FLAG = '2'.
START-OF-SELECTION.
BUT1 = 'BUTTON 1'.
CASE FLAG.
WHEN '1'.
WRITE :/ 'BUTTON 1 CLICKED'.
WHEN '2'.
WRITE :/ 'BUTTON 2 CLICKED'.
------------------------------------------------------------------------------
Regards
Salil
Hi Guys,
Thanks for your valuable comment. But for your info, i want to create a push button on REPORT/LIST but not in the selection-screen.
Any idea?
Thanks.
Create your own PF-Status. The simplest way is to copy the standard status (e.g. SAPMSSY0 PICK) to your program and then add the button.
Create your own PF-Status. The simplest way is to copy the standard status (e.g. SAPMSSY0 PICK) to your program and then add the button.
Hi Hans Hermann,
Thanks again. For your info, i don't want my button appear on the application toolbar, but i want it display on the body of the report/list itself.
May i know can i achieve that?
Thans in advance.
you can't. you can use icons and the HOTSPOT addition.
Or you have to call a PBO/PAI screen from your report to display the data with a button.