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

Module Programming...!!

Former Member
0 Likes
871

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
849

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

9 REPLIES 9
Read only

Former Member
0 Likes
849

Hi,

You can do like.

CALL SCREEN <Initial_screen_No>.

Hope it will be helpful to you.

Thanks

Read only

Former Member
0 Likes
849

Hi

Write " Leave to Screen ____ ( Initial screen no. ).

Thanks

Karan

Read only

Former Member
0 Likes
849

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,

Read only

Former Member
0 Likes
849

You can try.


set screen 0.
leave screen.

Regards

Sam

Read only

0 Likes
849

All is true ..but it is a subscreen ...!! So leave program n set screen program wn't work there ..!!

Is there any other method ..??

Read only

Former Member
0 Likes
850

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

Read only

0 Likes
849

but i don't want it to be executed further after continue ...I want diffrent actions to be executed ..!

Rgds,

Raghav

Read only

0 Likes
849

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

Read only

Former Member
0 Likes
849

Try using Exit statement.

Thanks,

Lakshmi