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

Self destructive popup message

former_member569532
Participant
0 Likes
1,180

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,031
  • POPUP_WITH_TABLE_DISPLAY
  • POPUP_TO_CONFIRM_STEP
  • POPUP_TO_DECIDE_WITH_MESSAGE
  • POPUP_TO_DECIDE
  • POPUP_TO_SELECT_MONTH
  • POPUP_TO_CONFIRM_WITH_VALUE
  • POPUP_TO_CONFIRM_WITH_MESSAGE
  • POPUP_TO_DISPLAY_TEXT
  • POPUP_TO_CONFIRM
  • POPUP_TO_CONTINUE_YES_NO
  • POPUP_TO_CONFIRM_DATA_LOSS

Different Pop_Ups in ABAP - ABAP Development - SCN Wiki

Read only

Former Member
0 Likes
1,031

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

Read only

ipravir
Active Contributor
0 Likes
1,031

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.

Read only

ThangaPrakash
Active Contributor
0 Likes
1,031

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

Read only

0 Likes
1,031

Hi All,

Thank you all for your replies.

I want from the normal abap program.

Read only

0 Likes
1,031

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.

Read only

0 Likes
1,031

Doesn't the above code looks like a normal ABAP program?

Read only

0 Likes
1,031

Hi All,

I have replied to roshan sriram question.