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

REGARDING SUBMIT

Former Member
0 Likes
798

Please use a more informative subject in future. Do not have your subject in ALL CAPITALS.

hI i want to call a report with selection screen and pass the selection screen values and execute it.

i want to pass the fields of this tbl_infile to the selection screen of another program please guide

program name for eg sample

LOOP AT tbl_infile into wa_infile.

SUBMIT

ENDLOOP.

Edited by: Matt on Mar 17, 2009 12:55 PM

1 ACCEPTED SOLUTION
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
768

Hi,

Use:-


LOOP AT itab INTO wa.
  WAIT UP TO 5 SECONDS. "to commit the work done

  SUBMIT <report_name> WITH <parameter_name> = <value>
                       WITH <parameter_name> = <value>
                       AND RETURN. "to return back for next loop data
ENDLOOP.

Here <parameter_name> are the parameters in report <report_name> and <value> refers to the value to be passed to execute <report_name>.

Hope this helps you.

Regards,

Tarun

7 REPLIES 7
Read only

Former Member
0 Likes
768

Parameters in target program is say:

P1,P2

Use:

Submit 'XXX' with P1 = <Passing parameters>

with P2 = <Passing parameters>

VIA SELECTION SCREEN

AND RETURN.

[Submit for selection screem values|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm]

Read only

Former Member
0 Likes
768

LOOP AT tbl_infile into wa_infile.

submit PROG_NAME with p_field1 eq wa_infile-field1

with p_field2 eq wa_infile-field2

and return.

endloop.

Read only

Former Member
0 Likes
768

Hi,

use this.

SUBMIT report2 WITH s_carrid IN r_carrid

WITH s_connid IN r_connid AND RETURN.

s_carrid ,s_connid are selection screen fields of another report i.e, report2.

r_carrid,r_connid are ranges filled with required data...

Read only

Former Member
0 Likes
768

Hi,

You can use the SUBMIT WITH SELECTION-TABLE ..... option. Below is the documentation.

[http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm]

regards

sankar

Read only

Former Member
0 Likes
768

hi Revanth,

you can take help from this code...

SUBMIT ztest

WITH so_met IN sel_mat

WITH pa_werks EQ l_werks

AND RETURN.

hope it will help you.

regards,

Lokesh

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
769

Hi,

Use:-


LOOP AT itab INTO wa.
  WAIT UP TO 5 SECONDS. "to commit the work done

  SUBMIT <report_name> WITH <parameter_name> = <value>
                       WITH <parameter_name> = <value>
                       AND RETURN. "to return back for next loop data
ENDLOOP.

Here <parameter_name> are the parameters in report <report_name> and <value> refers to the value to be passed to execute <report_name>.

Hope this helps you.

Regards,

Tarun

Read only

matt
Active Contributor
0 Likes
768

Please use a more informative subject in future. Do not have your subject in ALL CAPITALS.