01-16-2006 12:46 PM
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.
01-16-2006 12:47 PM
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
01-16-2006 12:47 PM
01-16-2006 12:53 PM
If it is an include program, then you can use
Include <Program name>.
01-17-2006 1:49 AM
hi,
report zprg1.
...
if x = 2.
submit zprg2 and return.
endif.
cheers,
Aditya.