Skip to Content
author's profile photo Former Member
Former Member

export and import internal tables, variables between different BG programs

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 02, 2005 at 07:00 AM

    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: how-to-find-the-job-has-failed-in-back-ground

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 02, 2005 at 06:56 AM

    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..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 07:00 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.