Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Display-Change Button

Former Member
0 Kudos

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.

5 REPLIES 5

former_member223537
Active Contributor
0 Kudos

Goto the layout & drag push button on screen.

name it as Display & Change respectively.

Handle the events in Usercommand for both push button.

Former Member
0 Kudos

you can handle this display change button in PF-STATUS of the screen....

hymavathi_oruganti
Active Contributor
0 Kudos

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.

0 Kudos

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

gopi_narendra
Active Contributor
0 Kudos

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