Skip to Content
-2

Message with one confirmation button

Hello,

I want to display a popup message with one okay button.To do that I have tried the following FM:

  1. CCMS_POPUP_INFOTEXT
  2. POPUP_FOR_INTERACTION
  3. POPUP_TO_INFORM

The first has a bug,it duplicates the text when I move from a tab to another in the same transaction,the last two display the text as I want it however the message popup is too big for that small text and the client has demanded it to be smaller and centered.

If I do it:

MESSAGE 'This is information message' TYPE 'I'. *it displays at the bottom,not smth I want

I want the user to stay in the same screen not exit!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 21, 2018 at 04:14 PM
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
     EXPORTING
     TITEL = 'Warning'
     TEXTLINE1 = '....'
     " TEXTLINE2 = ' '
     START_COLUMN = 27
     START_ROW = 8.
    Add comment
    10|10000 characters needed characters exceeded

  • Nov 21, 2018 at 02:56 PM

    Hi Johnu,

    You can use this FM :POPUP_TO_CONFIRM and pass the text you want to pass.

    If you have mote than 1 line you can also use this FM COPO_POPUP_TO_GOON

    Hope it helps,

    Kr,

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 21, 2018 at 04:33 PM

    Hi,

    In addition to what has already been said, there are many POPUP* functions that indicate in their description that they are obsolete and to use POPUP_TO_CONFIRM. This one has documentation with examples and you can check demo program RSSPO120.

    Always look at the attributes because some of the other POPUP functions are indicated as "obsolete".

    In addition, you may find something like the following comment:

    *"----------------------------------------------------------------------
    
    * This function module is obsolete                                     *
    
    * Please use POPUP_GET_VALUES                                          *
    
    *-----------------------------------------------------------------------
    
    
    

    So, POPUP_TO_CONFIRM should be able to do what you want.

    Add comment
    10|10000 characters needed characters exceeded