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

Call Screen

Former Member
0 Likes
532

Hi All,

I have a call screen 100 stmt in my ABAP code.In PAI of this screen i have continue button.When i click on this button , i want my next line in ABAP code under call screen stmt to be executed.There is only one screen in my whole program ie 100.Rest is just abap code.

pls suggest.

3 REPLIES 3
Read only

Former Member
0 Likes
505

Hi,

You could do it this way......in the PAI of 100, at the user command 'continue'......set a variable as a flag to 'X' and call the same program or transaction using call-transaction....then it will again call the same transaction or program....then you can keep a check using the flag set in PAI of 100 to determine which portion of the code you want to execute using the flag set.

The flag will help you to execute the code from the next statement of the continue command.

Hope it helps,

Thanks,

Sandeep.

Read only

Former Member
0 Likes
505

Hi Amardeep,

do you have any at selection-screen events written in your program....

if so , put one if condition on all the at selection-screen events....

if sy-ucomm NE <function_code of continue button>.

I think it should work.

Regards

Siddarth.

Read only

Former Member
0 Likes
505

Hi

Check out this link:

http://help.sap.com/abapdocu/en/ABAPCALL_SCREEN.htm

It says that :

The called dynpro sequence is terminated as soon as one of the involved dynpros branches to a next dynpro with number 0. The program continues after CALL SCREEN.

So in your continue button: CALL SCREEN 0.

Then your screen 100 will close and program execution will start from the line after CALL statement.

Hope this helps

Regards,

Jayanthi.K