Application Development and Automation 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: 
Read only

Popup Message Help

Former Member
0 Likes
1,501

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,421

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.

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,422

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.

Read only

Former Member
0 Likes
1,421

Thanks for the suggestion.

However, that handles option one about using a text table, but I also need it to handle dialog buttons.

Read only

0 Likes
1,421

HI,

Pass

task       = 'DECIDE'  In FM COPO_POPUP_TO_DISPLAY_TEXTLIST

Or Check this FM POPUP_WITH_TABLE

Read only

Former Member
0 Likes
1,421

Try Function module.

POPUP_DISPLAY_TEXT_USER_BUTTON

Read only

former_member376453
Contributor
0 Likes
1,421

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

Read only

former_member156446
Active Contributor
0 Likes
1,421
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'.
......
...
Read only

Former Member
0 Likes
1,421

Hi Avinash,

That is super close to what I need. Can you modify the buttons to be something other than transfer, etc..???

Read only

0 Likes
1,421

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

Read only

Former Member
0 Likes
1,421

Thanks for everyone's help.