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

how to call a exec prog in another prog

how to call a exec prog in another prog.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2005 at 07:15 AM

    Hi,

    SUBMIT

    Basic forms:

    1. SUBMIT rep.

    2. SUBMIT (name).

    Additions:

    1. ... LINE-SIZE col

    2. ... LINE-COUNT line

    3. ... TO SAP-SPOOL List output to the SAP spool database

    4. ... USING SELECTION-SCREEN scr

    5. ... VIA SELECTION-SCREEN

    6. ... AND RETURN

    7. ... EXPORTING LIST TO MEMORY

    8. ... USER user VIA JOB job NUMBER n

    9. ...Various additions for passing parameters to rep

    10. ... USING SELECTION-SETS OF PROGRAM prog

    Effect

    Calls report rep.

    Regards,

    Andrej.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2005 at 07:24 AM

    Hi,

    If you want to call external program from ABAP, you can do it using "Execute external operating system commands", tr.code SM69. Save the exec program in the work directory of the SAP server. Create a new command (SM69). Execute the command, using FM 'SXPG_CALL_SYSTEM'.

    Svetlin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 19, 2005 at 07:15 AM

    Hi,

    what do you mean exactly ?

    calling a form in another program?

    e.g.: PERFORM init_bgr00(rfbibli0) USING bgr00.

    or dynamic:

    PERFORM (RNAME) IN PROGRAM (PNAME).

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2005 at 07:29 AM

    Hi Ateeq

    As Andrej told about 'SUBMIT', it will serve your purpose.

    If you just want to call the another program, just use:

    SUBMIT repname.

    But, if you want to process the another program and to continue processing of calling program, use:

    SUBMIT repname AND RETURN.

    Regards

    Ashish Jain

    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.