‎2015 Nov 16 11:37 AM
Hi.
I'm developing some usabilities in some already existing Zprograms.
I read the help on LEAVE PROGRAM statement but it does not explains how to get out all the programs sequence.
I have this specific scenario of calling programs in sequence:
1-Main Transaction 'A' -->
2-call transaction 'B-GRID' -->
3-call transaction 'C' --> call transaction 'B-GRID' --> call transaction 'C' -->
4-in C, BACK to Main Transaction 'A'.
I'm back to A. Once I click BACK/EXIT from A, it backs to C, but once in A, I want to LEAVE ALL.
thank you in advance.
‎2015 Nov 16 3:38 PM
Hi. Solved with leave program statement, to return :
from C back to B,
and B back to A.
Solution:
- Executed process:
1-Main Transaction 'A' --> call transaction 'B-GRID' --> call transaction 'C' .
- Leave process
2-transaction 'C' --> leave program.
3-transaction 'B-GRID' --> leave program
4-Main Transaction 'A' --> leave program (leaves all the process)
Conclusion I have forgoten: call transaction statement adds another program to the group/stack, in the other hand, leave program statement backs in process naturally in the sap kernel.