‎2008 Dec 04 5:26 AM
Hi ,
In Se80 ...i have created a subscreen.In PAI,we are giving one populating Message.
it has Conitue and Cancel.
Once user clicks for Continue,I want it shld reach in it's initial screen.
leave Screen etc etc is not working ...Code is like that.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = text-006
text_question = wf_text
text_button_1 = co_yes_button
text_button_2 = co_no_button
display_cancel_button = space
popup_type = co_warning
IMPORTING
answer = wf_answer.
CASE wf_answer.
WHEN co_2.
MESSAGE e132(/dceur/zais_msg) .
WHEN co_1.
"I want changes here ..without furthere processing It shld reach in it's initial screen.
ENDCASE.
ENDIF.
Rgds,
Raghav
‎2008 Dec 04 8:27 AM
just try with assigneing the flags .. but while doing that take care of clearing it . while u r in subscreen area and while pressing continue then set that flag eq 'X'. and in the same PBO if the flag is set then call the same screen. just try it.. you will get it..
all the best..
GSANA
‎2008 Dec 04 5:29 AM
Hi,
You can do like.
CALL SCREEN <Initial_screen_No>.Hope it will be helpful to you.
Thanks
‎2008 Dec 04 5:30 AM
Hi
Write " Leave to Screen ____ ( Initial screen no. ).
Thanks
Karan
‎2008 Dec 04 5:33 AM
Hi,
You can do this way :
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = text-006
text_question = wf_text
text_button_1 = co_yes_button
text_button_2 = co_no_button
display_cancel_button = space
popup_type = co_warning
IMPORTING
answer = wf_answer.
CASE wf_answer.
WHEN co_2.
MESSAGE e132(/dceur/zais_msg) .
WHEN co_1.
LEAVE TO SCREEN 0.
ENDCASE.
ENDIF.
thanks.
Rgds,
‎2008 Dec 04 5:33 AM
‎2008 Dec 04 8:05 AM
All is true ..but it is a subscreen ...!! So leave program n set screen program wn't work there ..!!
Is there any other method ..??
‎2008 Dec 04 8:27 AM
just try with assigneing the flags .. but while doing that take care of clearing it . while u r in subscreen area and while pressing continue then set that flag eq 'X'. and in the same PBO if the flag is set then call the same screen. just try it.. you will get it..
all the best..
GSANA
‎2008 Dec 04 8:30 AM
but i don't want it to be executed further after continue ...I want diffrent actions to be executed ..!
Rgds,
Raghav
‎2008 Dec 04 8:36 AM
HI
You are using a subscreen right , you can not use LEAVE SCREEN or CALL SCREEN
so try this out
create another DUMMY screen, create a variable
dynnr type sy-dynnr value 'ANYSCREEN NUMBER WHICH YOU WANT'
in TOP include
in PBO
call subscreen sub including sy-repid dynnr
after the popup the user clicks continue then assign your dummy screen number to the dynnr
regards
Ramchander Rao.K
‎2008 Dec 04 8:43 AM