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: 

Changing Interface Elements in Modal Dialog Box

Former Member
0 Kudos

Hi SDNers,

I am using a modal dialog box screen. I want to change one of the interface elements. I want to change the OK icon (Enter) to SAVE icon. Is it possible? If yes how.

Thanks,

1 ACCEPTED SOLUTION

0 Kudos

Hi,

I am not sure which Fm you are using for calling the Modal Dialog Box. I am considering it as POPUP_TO_CONFIRM and please find the details.

the FM is have following IMPORT parameters.

TEXT_BUTTON_1

ICON_BUTTON_1

TEXT_BUTTON_2

ICON_BUTTON_2

DEFAULT_BUTTON 1

DISPLAY_CANCEL_BUTTON X

For TEXT_BUTTON_1 give the tex SAVE and the ICON_BUTTON_1 as ICON_SYSTEM_SAVE.

If not this FM let me know what exactly you are using to display the dialog box.

6 REPLIES 6

0 Kudos

Hi,

I am not sure which Fm you are using for calling the Modal Dialog Box. I am considering it as POPUP_TO_CONFIRM and please find the details.

the FM is have following IMPORT parameters.

TEXT_BUTTON_1

ICON_BUTTON_1

TEXT_BUTTON_2

ICON_BUTTON_2

DEFAULT_BUTTON 1

DISPLAY_CANCEL_BUTTON X

For TEXT_BUTTON_1 give the tex SAVE and the ICON_BUTTON_1 as ICON_SYSTEM_SAVE.

If not this FM let me know what exactly you are using to display the dialog box.

0 Kudos

Thanks for all your replies. I havee created a custom FM for the standard one CATSXT_SIMPLE_TEXT_EDITOR. As it has as its screen type Modal Dialog Box, it does not have any Interface buttons on the screen. Here I am not able to find any buttons is the issue.

0 Kudos

In that FM you are calling a screen.

you have to change the PF status of that screen.

0 Kudos

Thanks all My problem is solved.....

Former Member
0 Kudos

Hi,

It can be possible. you can refer program DEMO_DYNPRO_STATUS_ICONS

MODULE set_icon OUTPUT.

  SET PF-STATUS 'SCREEN_100'.

  CASE value.
    WHEN 1.
      icon_name = 'ICON_GREEN_LIGHT'.
      icon_text =  text-003.
    WHEN 2.
      icon_name = 'ICON_YELLOW_LIGHT'.
      icon_text =  text-002.
    WHEN 3.
      icon_name = 'ICON_RED_LIGHT'.
      icon_text =  text-001.
  ENDCASE.

  CALL FUNCTION 'ICON_CREATE'
       EXPORTING
            name                  = icon_name
            text                  = icon_text
            info                  = 'Status'
            add_stdinf            = 'X'
       IMPORTING
            result                = status_icon
       EXCEPTIONS
            icon_not_found        = 1
            outputfield_too_short = 2
            OTHERS                = 3.

Regards

Ravi.

Former Member
0 Kudos

Hi,

Modal Dialog Boxes means your call this code in your program.


CALL SCREEN <scrn>
     STARTING AT <X1> <Y1>
     ENDING AT   <X2> <Y2>.

1) double click on the Screen Number and click layout button.

2) Double click on the OK ICON.

3) in the Screen attributes Icon Name is there

4) type the name as 'ICON_SYSTEM_SAVE'

Your Icon will be changed. After Activate the screen and hole prg.

Hope it will useful

Regards,

Dhina..