06-10-2011 9:36 AM
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,
06-10-2011 10:13 AM
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.
06-10-2011 10:13 AM
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.
06-10-2011 11:25 AM
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.
06-10-2011 11:42 AM
In that FM you are calling a screen.
you have to change the PF status of that screen.
06-10-2011 12:41 PM
06-10-2011 10:50 AM
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.
06-10-2011 11:02 AM
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..