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

calling 3 programs

Former Member
0 Likes
815

Hi,

I want to call 3 executable program in a seperate one ececutable program.because 3 different user using 3 different program and the head want to use all 3 programs. my question is how to call an executable program in an another executable program.

thanks,

Madhu

7 REPLIES 7
Read only

amit_khare
Active Contributor
0 Likes
788

Create Tcode for the Porgrams. and do CALL TRANSACTION.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
788

If the 3 programs have tcodes u can use

CALL TRANSACTION <tcode>.

else use

SUBMIT <report>.

Reward if useful

Read only

Former Member
0 Likes
788

Hi Madhu,

Use<b> SUBMIT REPORT <REPORT_NAME></b> to execute a report from another report.

Check this code.If Users are USR1,USR2 and USR3 respectively and their manager is MGR then

IF SY-UNAME = 'USR1'.

SUBMIT REPORT <USR1-REPORT> AND RETURN.

ENDIF.

IF SY-UNAME = 'USR2'.

SUBMIT REPORT <USR2-REPORT> AND RETURN.

ENDIF.

IF SY-UNAME = 'USR3'.

SUBMIT REPORT <USR3-REPORT> AND RETURN.

ENDIF.

IF SY-UNAME = 'MGR'.

SUBMIT REPORT <USR1-REPORT> AND RETURN.

SUBMIT REPORT <USR2-REPORT> AND RETURN.

SUBMIT REPORT <USR3-REPORT> AND RETURN.

ENDIF.

Thanks,

Vinay

Read only

gopi_narendra
Active Contributor
0 Likes
788

create a new report with 3 radio buttons and for each radio buttons use the

CALL TRANSACTION statement for each 3 reports(create 3 tcodes for all 3 programs)

Regards

Gopi

Read only

Former Member
0 Likes
788

Hi,

Create a new program and use the following statements to call other reports.

You can use SUBMIT PROGRAM....RETURN Statement.

You can also use Call Transaction <TCODE> statement.

Regards,

Shruthi

Read only

Former Member
0 Likes
788

ANSWERED

Read only

Former Member
0 Likes
788

Hi Madhu,

Calling of 3 executable programs in one executable program can be done by..

Writing the submit command and using return.

A very simple example is:

REPORT ZEXAMPLE1.

submit zexample and return.

submit zexample2 and return.

write: 'Bye mandeep'.

This program is calling two programs zexmaple and zexample2 in the program

zexample.Like this you can call 3 programs in the same program.

I hope this will solve your purpose...

Kindly reward points if contents are helpful...

Regards,

Mandeep.