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

call program from program

Former Member
0 Likes
573

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
Read only

Former Member
0 Likes
549

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

Read only

Former Member
0 Likes
549

Try the keyword SUBMIT.

Sudha

Read only

Former Member
0 Likes
549

If it is an include program, then you can use

Include <Program name>.

Read only

former_member184495
Active Contributor
0 Likes
549

hi,

report zprg1.

...

if x = 2.

submit zprg2 and return.

endif.

cheers,

Aditya.