2016 Jun 04 5:22 AM
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.....
2016 Jun 04 5:37 AM
Hi Sai,
You can use FM POPUP_TO_CONFIRM to get response from user and process your program based on the response.
Regards,
Rachit.
2016 Jun 04 5:53 AM
But i want close control for standard information message using Message statement type 'I'
2016 Jun 04 6:16 AM
Can u explain more on close control from message. Please share the code snippet to understand the requirement.
2016 Jun 04 6:25 AM
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
2016 Jun 04 6:33 AM
Have you tried using Message 'xxxxx' type 'I' display like 'I'
2016 Jun 04 6:41 AM
Already tried this statement but unable to find control of close button.
2016 Jun 04 6:52 AM
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 ?
2016 Jun 04 6:58 AM
i am repeating this message 5 times when user clicks close button still message is repeating.....
2016 Jun 04 7:14 AM
2016 Jun 04 7:19 AM
2016 Jun 04 7:35 AM
May I know what is the purpose of showing message 5 times. Is there no other logic attached to it ?
2016 Jun 04 7:42 AM
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....
2016 Jun 04 7:49 AM
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 ?
2016 Jun 04 8:49 AM
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.
2016 Jun 04 10:00 AM
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'