2016 Feb 23 2:22 AM
Hi Experts,
We have a requirement to show popup message and that popup message has to disappear after sometime.Kindly anyone advise how to achieve this?
Thanks & Regards,
Anusha.B
Hi Experts,
We have a requirement to show popup message and that popup message has to disappear after sometime.Kindly anyone advise how to achieve this?
Thanks & Regards,
Anusha.B
2016 Feb 23 2:32 AM
2016 Feb 23 4:43 AM
Hi,
Can you mention some more details whether it belongs to normal ABAP( if it is normal Abap,then through which it should be displayed either through messages or module pool programming ) or Webdynpro Abap..
Regards,
Rohan
2016 Feb 23 5:31 AM
Hi Anu,
I am not sure in SAP provided such kind of FM related to message. This a HTML, JAVA script related functionality what you are looking in ABAP side.
You can try a work around solution in ABAP through CL_GUI_TIMER class.
1. create a customer pop-up screen
2. Display message (code will be in PBO)
3. Initialize Timer Class in PBO and set the timer interval as per you requirement
4. In timer event trigger PAI event. use CL_GUI_CFW=>SET_NEW_OK_CODE
5. Close the open pop-up window (leave screen).
Regards,
Praveer.
2016 Feb 23 5:55 AM
Hello Anu,
GET TIME.
<Write your logic for pop up>.
ZTIME = SY-UZEIT + 30.<add the time in seconds after which the pop up has to disappear>
DO.
GET TIME.
IF SY-UZEIT >= ZTIME.
EXIT.
ENDIF.
ENDDO.
Regards,
Thanga
2016 Feb 23 5:59 AM
Hi All,
Thank you all for your replies.
I want from the normal abap program.
2016 Feb 23 6:14 AM
Hi Anu,
The provide solution is in normal ABAP only, not you have to try some class to get the process as per your requirement.
As per your requirement there is not direct FM in SAP you have to user Timer class to close the pop-up window.
Regards,
Praveer.
2016 Feb 23 6:15 AM
2016 Feb 23 7:29 AM