‎2009 Feb 06 7:43 AM
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.
‎2009 Feb 06 7:51 AM
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.
‎2009 Feb 06 7:51 AM
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.
‎2009 Feb 06 8:23 AM
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