07-11-2007 4:22 PM
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
07-11-2007 4:35 PM
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.
07-11-2007 4:37 PM
I'm using POPUP_TO_CONFIRM.
Do you know how to display a "wait message" while processing?
07-11-2007 5:00 PM
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
07-11-2007 5:02 PM
In POPUP_TO_CONFIRM doesn;t show such problem... it disappears when u click YES or NO...
tell me the code u r using..
07-11-2007 5:33 PM
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.
07-11-2007 5:23 PM
Hi,
Check the following links:
http://www.sap-img.com/fu013.htm
http://www.sap-img.com/fu006.htm
http://www.sap-img.com/abap/abap-pop-up-window.htm
REgards,
Bhaskar
07-12-2007 8:44 AM
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
07-12-2007 2:19 PM
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
07-12-2007 10:06 AM
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.