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

Program drops out on second exucute

Former Member
0 Likes
849

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?

7 REPLIES 7
Read only

Former Member
0 Likes
823

Hi

How do you run it?

Max

Read only

0 Likes
823

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?

Read only

0 Likes
823

Hi

have you tried to replace LEAVE TO TRANSACTION wirh CALL TRANSACTION

Max

Read only

0 Likes
823

This message was moderated.

Read only

Former Member
0 Likes
823

Hi,

Could you ckeck debug mode?.

Regards,

Gaito

Read only

Former Member
0 Likes
823

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.

Read only

Former Member
0 Likes
823

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