10-04-2007 7:40 AM
Hi,
There is a custom screen that i have designed and i want to add the display-change button on the toolbar. Can anybody tell me how do i do that. Thanks.
10-04-2007 7:41 AM
Goto the layout & drag push button on screen.
name it as Display & Change respectively.
Handle the events in Usercommand for both push button.
10-04-2007 7:42 AM
you can handle this display change button in PF-STATUS of the screen....
10-04-2007 7:43 AM
by using PF STATUS u can do it. i mean u can create ur own menu in se41
and include that in ur report with the statement,
SET PF-STATUS 'ZMENU'.
or elase, write the above statement and just double click on the Z menu , u can create ur own application tool bar, menu bar , function keys.
10-04-2007 7:43 AM
Hi,
Create GUI STATUS for your program and in the PBO of the screen where you want to add this button use the statement SET PF-STATUS to call the GUI status.
In the GUI STATUS you need to create function code under Application Toolbar.
Then this button will appear on the applicatio toolbar.
Regards,
Sesh
10-04-2007 7:48 AM
Hi Ritwik, Welcome to SDN...
You can infact do it this way
My code explains you for a report program, but you can use the similar code in your dialog program.
PARAMETERS : p_c RADIOBUTTON GROUP r1 USER-COMMAND m1.
PARAMETERS : p_c2 RADIOBUTTON GROUP r1 DEFAULT 'X'.
PARAMETERS : p_date TYPE sy-datum.
SELECT-OPTIONS : so_date FOR sy-datum.
AT SELECTION-SCREEN OUTPUT.
IF NOT p_c IS INITIAL.
LOOP AT SCREEN.
IF screen-name NE 'P_C' AND
screen-name NE 'P_C2'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF NOT p_c2 IS INITIAL.
LOOP AT SCREEN.
screen-input = 1.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
Happy Coding
Regards
Gopi