08-20-2007 9:41 AM
Hello,
in my program I'm using the CALL TRANSACTION-statement which calls a program using a SELECTION-SCREEN. After the called program has finished, there is a LEAVE TO SCREEN 0 statement.
So I have the problem, that my dialog is using CALL TRANSACTION, the called program does its job and after it, it leaves to the SELECTION-SCREEN and doesn't go back to the calling dialog. What do I have to do?
thx
08-20-2007 9:45 AM
Hi Mike,
Instead of LEAVE TO SCREEN 0, try SET SCREEN (scrnumber). This might help you in displaying the screen that you are interested.
<i>Reward points for informative answers.</i>
Best Regards,
Ram.
08-20-2007 9:47 AM
ok this is a solution, i also thought about, but I don't want to modify the called program.
08-20-2007 9:50 AM
so I think I have to use the LEAVE PROGRAM-statement in the called program, but I don't want to change the called program. Isn't there an other way to solve this problem?
08-20-2007 9:51 AM
Try filling called program's selection screen fields with SET PARAMETER statements, and then use CALL TRANSACTION...AND SKIP FIRST SCREEN.
And in the called program, instead of using LEAVE TO SCREEN 0, simply use LEAVE PROGRAM (that's if you can modify it).
Try this.
Regards,
Please reward points if helpful.