2009 Dec 15 5:11 AM
Hi All,
I am using fm POPUP_DISPLAY_TEXT_USER_BUTTON. Only this fm caters my need. Now the problem is that i need to set one of its button as default. I have searched in the fm, it doesn't have any option for setting one of the buttons as default. Please help asap.
Thanks in advance.
Rittu Chaudhary
Hi All,
I am using fm POPUP_DISPLAY_TEXT_USER_BUTTON. Only this fm caters my need. Now the problem is that i need to set one of its button as default. I have searched in the fm, it doesn't have any option for setting one of the buttons as default. Please help asap.
Thanks in advance.
Rittu Chaudhary
2009 Dec 15 5:28 AM
I think its not possible to make one buttons as default.
Please check the example program RSSPO601
CLEAR USER_BUTTONS.
USER_BUTTONS-TEXT = 'Schließen'(002).
USER_BUTTONS-ICON_ID = ICON_CLOSE.
USER_BUTTONS-ICON_TEXT = 'Beenden'(003).
APPEND USER_BUTTONS.
CALL FUNCTION 'POPUP_DISPLAY_TEXT_USER_BUTTON'
EXPORTING
POPUP_TITLE = 'Ein Test'(001)
TEXT_OBJECT = 'SWB_HINT_COND_EDITOR'
DISPLAY_OK_BUTTON = ' '
DISPLAY_CANCEL_BUTTON = ' '
IMPORTING
ANSWER = ANTWORT
TABLES
USER_BUTTONS = USER_BUTTONS
PARAMETER = PARAMETER
EXCEPTIONS
ERROR_IN_TEXT = 1
TEXT_NOT_FOUND = 2
OTHERS = 3.
a®
2009 Dec 15 5:44 AM
Hi,
Can u try this FM
COPO_POPUP_TO_DISPLAY_TEXTLIST . It takes TLINE (Long Text) structure as input.
DATA : tline TYPE TABLE OF tline,
l_line TYPE tline.
l_line-tdline = 'SDN rocks'.
APPEND l_line TO tline.
CALL FUNCTION 'COPO_POPUP_TO_DISPLAY_TEXTLIST'
EXPORTING
task = 'DISPLAY' " Can be 'DECIDE' or 'DISPLAY'
titel = 'SDN'
* IMPORTING
* FUNCTION = " Optional Fcode
TABLES
text_table = tline
.Thanks.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |