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

close command control in sap information message pop up

Former Member
0 Likes
2,502

Hi everyone, well i am using a information message in program by message statement type  'I' i just want close button control.When ever user clicks close button i need to write some program can anybody suugest me.....

Hi everyone, well i am using a information message in program by message statement type  'I' i just want close button control.When ever user clicks close button i need to write some program can anybody suugest me.....

15 REPLIES 15
Read only

rachit_gupta1
Participant
0 Likes
2,372

Hi Sai,

You can use FM POPUP_TO_CONFIRM to get response from user and process your program based on the response.

Regards,

Rachit.

Read only

0 Likes
2,372

But i want close control for standard information message using Message statement type 'I'

Read only

0 Likes
2,372

Can u explain more on close control from message. Please share the code snippet to understand the requirement.

Read only

0 Likes
2,372

Actually i used a statement Message 'xxxxx' type 'I' in an enhancement after repeating this message some n times using Do statement for information when ever message repeating if user clicks 'x' (close)symbol in information message i need to write some program

Read only

0 Likes
2,372

Have you tried using Message 'xxxxx' type 'I' display like 'I'

Read only

0 Likes
2,372

Already tried this statement but unable to find control of close button.

Read only

0 Likes
2,372

Once the user clicks the tick on popup, the control is returned to the program itself. You can process your logic further. What exactly you want to do with control ?

Read only

0 Likes
2,372

i am repeating this message 5 times when user clicks close button still message is repeating.....

Read only

0 Likes
2,372

Please paste your code here.

Read only

0 Likes
2,372

DO 5 TIMES.

MESSAGE 'XXXX' TYPE 'I' DISPLAY LIKE 'I'.

ENDDO.

Read only

0 Likes
2,372

May I know what is the purpose of showing message 5 times. Is there no other logic attached to it ?

Read only

0 Likes
2,372

we want to give some information to user if it comes once they will enter without reading message if it prompts for some time at least they will read....

Read only

0 Likes
2,372

Sai, this is unusual requirement. However, the code snippet shared by you will work fine to show message 5 times. After that the regular execution will happen. So what exactly is holding here ?

Read only

former_member230215
Participant
0 Likes
2,372

Hi,

Repeating the message is a not a good practice. Instead, you can use function module suggested by rachit gupta. Still if you want to use that do loop, use condition if sy-index eq 5. leave program or leave screen or something like that in the do loop.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,372

A popup issued by MESSAGE ... TYPE 'I' has an OK button and a little X button in the window corner as in (almost) any Windows window, but you can't differentiate what has been pressed.

Solutions:

1) define and use a boolean variable to display the popup once

2) if you want Something really complex for nothing, create your own popup with a checkbox "do not display this message again" (unfortunately I don't know any standard popup solution for that)

By the way, MESSAGE ... TYPE 'I' DISPLAY LIKE 'I' is exactly the same as MESSAGE ... TYPE 'I'