03-25-2009 6:21 PM
I need a popup message dialog that allows me to do two things, 1. is to enter multiple lines of
text like a text table, and 2. be able to have dialog to allow the user to select yes or no.
Z_POPUP_TEXTLIST2 handles option 1.
POPUP_WITH_2_BUTTONS_TO_CHOOSE handles option 2.
I cannot find a function or method that will allow both.
Anyone have a suggestion?
Thanks
Stephen
03-25-2009 6:26 PM
Hi
Check this FM COPO_POPUP_TO_DISPLAY_TEXTLIST
CALL FUNCTION 'COPO_POPUP_TO_DISPLAY_TEXTLIST'
EXPORTING
task = 'DECIDE'
titel = 'TEST POPUP '
IMPORTING
function = g_func
TABLES
text_table = it_data.
03-25-2009 6:26 PM
Hi
Check this FM COPO_POPUP_TO_DISPLAY_TEXTLIST
CALL FUNCTION 'COPO_POPUP_TO_DISPLAY_TEXTLIST'
EXPORTING
task = 'DECIDE'
titel = 'TEST POPUP '
IMPORTING
function = g_func
TABLES
text_table = it_data.
03-25-2009 6:28 PM
Thanks for the suggestion.
However, that handles option one about using a text table, but I also need it to handle dialog buttons.
03-25-2009 6:31 PM
HI,
Pass
task = 'DECIDE' In FM COPO_POPUP_TO_DISPLAY_TEXTLIST
Or Check this FM POPUP_WITH_TABLE
03-25-2009 6:29 PM
03-25-2009 6:29 PM
Try popup_to_confirm.
Kuntal
PS: Sorry, suggested FM will not work for you, as you need to input multiple lines.....
Edited by: Kuntal Nandi on Mar 25, 2009 1:31 PM
03-25-2009 6:33 PM
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Warning!!' "title
text_question = 'Your text here'
text_button_1 = 'Yes'
icon_button_1 = 'ICON_OKAY' "buton OK
text_button_2 = 'NO'
icon_button_2 = 'ICON_CANCEL' "buton cancel
default_button = '2'
* display_cancel_button = 'X'
start_column = 25
start_row = 6
IMPORTING
answer = answer " catch the user responce
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
IF answer = '1'.
......
...
03-25-2009 6:39 PM
Hi Avinash,
That is super close to what I need. Can you modify the buttons to be something other than transfer, etc..???
03-25-2009 6:40 PM
HI,
You have no choice to modify the text from transfer to as per your requiremnt
Check this FM
POPUP_WITH_TABLE
POPUP_WITH_TABLE_DISPLAY
Edited by: Avinash Kodarapu on Mar 26, 2009 12:12 AM
03-27-2009 6:47 PM