Skip to Content
avatar image
Former Member

Submit and return

Dear All,

I am executing program A. From program A, i am calling program B using SUBMIT command. But after using the submit statement, the control goes to the program B output and stays there. I want the control to come back to next statement of program A after submit command and not interested in displaying the output of program B.

Any idea how to avoid the result screen of program B and control comes back to program A after submit command.

Any pointers in this direction will be helpful.

Best Regards,

Tarun

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

9 Answers

  • avatar image
    Former Member
    Sep 15, 2008 at 10:10 AM

    Hi

    Try to use the option EXPORTING LIST TO MEMORY:

    SUBMIT <REPORT> EXPORTING LIST TO MEMORY AND RETURN.

    Max

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 10:10 AM

    With SUBMIT statement use AND RETURN addition.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 10:10 AM

    Hi,

    You can call executable programs from other ABAP programs using the following statement:

    SUBMIT prog|(field) [AND RETURN] [options].

    Check this link:

    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm

    http://www.sapdevelopment.co.uk/reporting/rep_submit.htm

    Hope this helps you

    Thanks,

    Ruthra

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 10:10 AM

    SUBMIT <report> EXPORTING LIST TO MEMORY AND RETURN.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 10:11 AM

    H,

    Use SUBMIT ZREPORT AND RETURN.

    Regards,

    Rama.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 10:11 AM

    Hi,

    You can use the Call screen 'A' option after executing B program

    Regards

    Pavan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 10:12 AM

    Hi,

    Instead of SUBMIT ZREPORT,

    Use SUBMIT ZREPORT AND RETURN.

    Regards,

    Rama.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 10:13 AM

    Check if you have used SUMIIT AND RETURN statement.

    Regards,

    Aparna Gaikwad

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 15, 2008 at 10:13 AM

    Tarun,

    We need to pass the input to the selection-screen of the program B that you are calling from program A.

    say,

    SUBMIT ZCHECK WITH p_werks = p_werk

    WITH s_eindt IN s_eindt

    WITH s_lifnr IN s_lifnr

    WITH s_matnr IN s_matnr

    WITH s_bsart IN s_bsart

    WITH s_ekgrp IN s_ekgrp

    WITH r_out = r_out

    WITH r_down = r_down

    EXPORTING LIST TO MEMORY.

    AND RETURN.

    You can use export-import concept to get the output of program B into program A for further processing.

    K.Kiran.

    Add comment
    10|10000 characters needed characters exceeded