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: 

Popup Message Help

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

9 REPLIES 9

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks for the suggestion.

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

0 Kudos

HI,

Pass

task       = 'DECIDE'  In FM COPO_POPUP_TO_DISPLAY_TEXTLIST

Or Check this FM POPUP_WITH_TABLE

Former Member
0 Kudos

Try Function module.

POPUP_DISPLAY_TEXT_USER_BUTTON

former_member376453
Contributor
0 Kudos

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

former_member156446
Active Contributor
0 Kudos
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'.
......
...

Former Member
0 Kudos

Hi Avinash,

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

0 Kudos

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

Former Member
0 Kudos

Thanks for everyone's help.