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

export and import internal tables, variables between different BG programs

Former Member
0 Likes
633

Hi,

i need to design a program PROGRAM 1 which schedules PROGRAM 2 and PROGRAM 3 in back ground and waits for the completion of 2 and 3.

A). how to schedule program 2 and program 3 in background from PROGRAM 1

B). how to achieve communication between PROGRAM 1 and

PROGRAM 2 ....and... PROGRAM 1 and PROGRAM 3.

How to pass internal tables and variables ( to and fro) between those programs .

Your help would be appreciated.

Thanks,

Kranthi.

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
601

Hi try that:

try:

1) fm job_open

2a) submit report 2

2b) submit report 3

3) fm job_close

you can pass internal tables by file transfer

sample:

Andreas

Hi,

i need to design a program PROGRAM 1 which schedules PROGRAM 2 and PROGRAM 3 in back ground and waits for the completion of 2 and 3.

A). how to schedule program 2 and program 3 in background from PROGRAM 1

B). how to achieve communication between PROGRAM 1 and

PROGRAM 2 ....and... PROGRAM 1 and PROGRAM 3.

How to pass internal tables and variables ( to and fro) between those programs .

Your help would be appreciated.

Thanks,

Kranthi.

3 REPLIES 3
Read only

Former Member
0 Likes
601

Hi Using JOB_OPEN,JOB_START,JOB_CLOSE

you can achieve...

using sy-subrc you can find the info of completion...

regards

vijay

please reward for helpful answers..

Read only

andreas_mann3
Active Contributor
0 Likes
602

Hi try that:

try:

1) fm job_open

2a) submit report 2

2b) submit report 3

3) fm job_close

you can pass internal tables by file transfer

sample:

Andreas

Read only

kanthimathikris
Advisor
Advisor
0 Likes
601

In pgm1 write the below code for passing the internal table to pgm2

EXPORT i_department TO MEMORY ID 'ZZ_MEM_ID'.

submit pgm2 AND RETURN.

In pgm2 write the below code to get the internal table

import i_department from MEMORY ID 'ZZ_MEM_ID'.

Message was edited by: Kanthimathi Krishnan