09-27-2006 9:49 AM
Hi all. Is anybody know if it's possible to set status without application toolbar? I meen if I use status without any buttons on application toolbar, there is a blank line on the screen in place of it. How can i remove it?
09-27-2006 9:51 AM
Its a standard feature provided by SAP.
we can NOT hide the application tool bar,even if we dont have any buttons on it.
Regards
srikanth
09-27-2006 9:51 AM
Its a standard feature provided by SAP.
we can NOT hide the application tool bar,even if we dont have any buttons on it.
Regards
srikanth
09-27-2006 9:56 AM
If you are using module pool then you can use a opup screen or subscreen for this purpose.
For creating buttons on the selection screen without using application toolbar,you can have a look at the following code :
REPORT demo_sel_screen_pushbutton.
TABLES sscrfields.
DATA flag(1) TYPE c.
SELECTION-SCREEN:
BEGIN OF SCREEN 500 AS WINDOW TITLE tit,
BEGIN OF LINE,
PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
PUSHBUTTON 12(10) text-020 USER-COMMAND cli2,
END OF LINE,
BEGIN OF LINE,
PUSHBUTTON 2(10) but3 USER-COMMAND cli3,
PUSHBUTTON 12(10) text-040 USER-COMMAND cli4,
END OF LINE,
END OF SCREEN 500.
AT SELECTION-SCREEN.
MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.
CASE sscrfields-ucomm.
WHEN 'CLI1'.
flag = '1'.
WHEN 'CLI2'.
flag = '2'.
WHEN 'CLI3'.
flag = '3'.
WHEN 'CLI4'.
flag = '4'.
ENDCASE.
START-OF-SELECTION.
tit = 'Four Buttons'.
but1 = 'Button 1'.
but3 = 'Button 3'.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
CASE flag.
WHEN '1'.
WRITE / 'Button 1 was clicked'.
WHEN '2'.
WRITE / 'Button 2 was clicked'.
WHEN '3'.
WRITE / 'Button 3 was clicked'.
WHEN '4'.
WRITE / 'Button 4 was clicked'.
WHEN OTHERS.
WRITE / 'No Button was clicked'.
ENDCASE.
09-27-2006 9:56 AM
You cannot set the status without application toolbar. application toolbar will there when you are defining any status.
Best Regards,
Vibha
*Reward points if it helps