‎2010 Nov 12 6:54 AM
Hi All
When I run my program for the first time it is succesfull and goes back to selection screen(1000) when I enter new values and try to exucute it goes out of the program back to the main menu. Anyone know why this is happning?
‎2010 Nov 12 6:57 AM
‎2010 Nov 12 7:04 AM
Hi
I think it is something with the transaction. When I run it from se80 it works the fine the first time and at end of program I set
LEAVE TO TRANSACTION 'ZMMP' and them when I run again in drops out. And when I run it from the transaction on the firs one it drops out. Any idea why this is happning?
‎2010 Nov 12 7:17 AM
Hi
have you tried to replace LEAVE TO TRANSACTION wirh CALL TRANSACTION
Max
‎2010 Nov 12 7:26 AM
‎2010 Nov 12 7:10 AM
‎2010 Nov 12 7:34 AM
Hi,
In addition to the suggestions by others, you can use the INITIALIZATION event and refresh the global data. I guess when you click on BACK, again give the selection screen values and re-execute, probably you have a check somewhere in your code that fails because some global variable or global internal table still has data and could have exited from the program. If you clear your global variables and internal tables in your INITIALIZATION event, every time you execute your program, they will be fresh for use
I am just guessing that this could be the problem.
‎2010 Nov 12 10:01 AM
Try using CALL SELECTION-SCREEN 1000 in case your selection screen number is 1000 otherwise supply the correct number.
If output is coming just after selection-screen execution then you can use LEAVE TO SCREEN 0 as well.
Thanks
Munish Garg