Application Development 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: 

call program from program

Former Member
0 Kudos

i have prog call z_prog

in the middle of tje pro i want to write

if x = 2

call z_prog2

endif.

how i can do it right.

4 REPLIES 4

Former Member
0 Kudos

Hi

depends on the type of your program, if it's a report use SUBMIT statament, if a module poole use CALL TRANSACTION statament:

1) SUBMIT z_prog2 AND RETURN.

2) IF ZXXX is transaction assinged to Z_PROG2

CALL TRANSACTION 'ZXXX'.

Max

Former Member
0 Kudos

Try the keyword SUBMIT.

Sudha

former_member181962
Active Contributor
0 Kudos

If it is an include program, then you can use

Include <Program name>.

former_member184495
Active Contributor
0 Kudos

hi,

report zprg1.

...

if x = 2.

submit zprg2 and return.

endif.

cheers,

Aditya.