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_DISPLAY_TEXT_USER_BUTTON

Former Member
0 Likes
1,377

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

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
873

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.

Read only

Former Member
0 Likes
873

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.