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

SUBMIT a program

Hi All,

We have a program2 and we want to call another program1.

- the program1 contains a screen with two input fields ( pa1 and pa2).

- the program2 contains tratement and recuper a values of two variables ( var1 and var2).

We want when we call the program1 automatically the pa1 take var1 as value and pa2 take var2, without displaying screen of the program1.

We have implimented this code, but it doesn't work:

SUBMIT zprogram1 USING SELECTION-SCREEN 200

with pa1 = var1

with pa2 = var2.

thank you in advance.

Mll Mat.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 03:33 PM

    Use:

    CALL TRANSACTION AND SKIP FIRST SCREEN....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 03:34 PM

    Hi,

    please check this and try to do it as per

    SUBMIT report1 USING SELECTION-SCREEN '1100'

    WITH SELECTION-TABLE rspar_tab

    WITH selcrit2 BETWEEN 'H' AND 'K'

    WITH selcrit2 IN range_tab

    AND RETURN.

    Use Get and Set paramenter ID for the same

    call transaction and skip will be for transacation not for reports

    Edited by: sabyasachi kar on Dec 18, 2008 4:35 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      The key word SUBMIT call the screen of the program1, but we want to have only the result of prorgam1.

      There is not a function module to call program or any way to have the result of a prorgam !?

      Thanks in advance.

      Mll Mat.

      Edited by: mll mat on Dec 19, 2008 10:10 AM

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 09:13 AM

    try this fm

    WS_EXECUTE

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 19, 2008 at 09:24 AM

    You screen 0200 must be a selection-screen to fulfil you request via a [SUBMIT|http://help.sap.com/abapdocu/en/ABAPSUBMIT_INTERFACE.htm] statement.

    Read also Abap online documentation for [CALL DIALOG|http://help.sap.com/abapdocu/en/ABAPCALL_DIALOG.htm] (but is not this statement obsolete?)

    Regards

    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.