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

SUBMIT a program

Former Member
0 Likes
670

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.

5 REPLIES 5
Read only

Former Member
0 Likes
638

Use:

CALL TRANSACTION AND SKIP FIRST SCREEN....

Read only

Former Member
0 Likes
638

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

Read only

0 Likes
638

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

Read only

Former Member
0 Likes
638

try this fm

WS_EXECUTE

Read only

RaymondGiuseppi
Active Contributor
0 Likes
638

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