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

Leave Program Group/sequence

glauco
Active Contributor
0 Likes
395

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.

1 REPLY 1
Read only

glauco
Active Contributor
0 Likes
376

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.