Application Development 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: 

Popup problem

Former Member
0 Kudos

Hello

I'm facing a little problem concerning popup display.

When I display a popup for confirmation, the user has to specify if he wants to continu or not.

I he chooses YES, the process continu but, the popup is still displayed.

How could I specify, that when the user chooses YES, the popup has to disappear and tell the user that he has to wait while processing?

Thank you

Karim

9 REPLIES 9

Former Member
0 Kudos

What u r using for this POP-UP function module or u have created it in Module Pool..

If u have created in module pool... u have to use LEAVE TO SCREEN 0.

Former Member
0 Kudos

I'm using POPUP_TO_CONFIRM.

Do you know how to display a "wait message" while processing?

0 Kudos

U can simply put

WAIT FOR n SECONDS.

and in status message.. put indicator.. using FM <b>RM_SAPGUI_PROGRESS_INDICATOR</b>

check and reward points if useful..

regards

Prax

0 Kudos

In POPUP_TO_CONFIRM doesn;t show such problem... it disappears when u click YES or NO...

tell me the code u r using..

0 Kudos

hi,

just try by checking with ANSWER .

if answer = '1'.(if 'yes' is selected).

call the FM RM_SAPGUI_PROGRESS_INDICATOR (suggested by Prax)

endif.

Former Member

Former Member
0 Kudos

I know that the popup should disappear. But it's not the case.

When I clik on 'YES' the process continu but only the text of the popup disappear.

And of course I can't clik on YES or NO anymore (the process is running).

Could somebody help me Please?

Karim

0 Kudos

Hi,

Try using the FM:

DATA: X_ANS(1) TYPE C.

call function <b>'POPUP_TO_CONFIRM_STEP'</b>

exporting

  • DEFAULTOPTION = 'Y'

textline1 = 'Do you want to continue'

  • TEXTLINE2 = ' '

titel = 'Please Confirm'

  • START_COLUMN = 25

  • START_ROW = 6

  • CANCEL_DISPLAY = 'X'

IMPORTING

ANSWER = X_ANS.

WRITE: / X_ANS.

or

<b>POPUP_TO_DECIDE_INFO</b> .

Parameters required for this FM is the Text you require to display on the popup window.

Two buttons automatically comes on this window a Tick and a x sign if you click tick the output varaible ANSWER is J else it is A .

Hope this helps.

Reward if helpful.

Regards,

Sipra

Former Member
0 Kudos

Hi Karim,

Better you take the value of the field ANSWER from the function module

POPUP_TO_CONFIRM then write the following.

IF answer = 1.

write your code here.

ELSE.

No process.

ENDIF.