cancel
Showing results for 
Search instead for 
Did you mean: 

Message with one confirmation button

former_member2492
Active Participant
0 Kudos

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!

SimoneMilesi
Active Contributor
0 Kudos

Sorry, i'm not sure i understand your issue 😕
Why cannot you use the simple message? It stays on tha same window on my system, just it pops up..

former_member2492
Active Participant
0 Kudos

No strangely it display at the bottom of my screen

SimoneMilesi
Active Contributor
0 Kudos

Are you in module pool? in which moment are you calling the message statement?

Because i remember there is a case where a message type I looks like S (on the bottom bar).

You can try POPUP_DISPLAY_MESSAGE

former_member2492
Active Participant
0 Kudos

simone.milesi yes,but if I do it like that ,it exits me from screen.

Accepted Solutions (1)

Accepted Solutions (1)

former_member2492
Active Participant
0 Kudos
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
 EXPORTING
 TITEL = 'Warning'
 TEXTLINE1 = '....'
 " TEXTLINE2 = ' '
 START_COLUMN = 27
 START_ROW = 8.

Answers (2)

Answers (2)

Phillip_Morgan
Contributor
0 Kudos

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.

former_member2492
Active Participant
0 Kudos

Please read the question I already have tried that

0 Kudos

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,

former_member2492
Active Participant
0 Kudos

..._to_confirm have tried is not what I want,you cant remove the yes,no,cancel button