‎2009 Mar 17 8:11 AM
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
‎2009 Mar 17 8:33 AM
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
‎2009 Mar 17 8:14 AM
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]
‎2009 Mar 17 8:15 AM
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.
‎2009 Mar 17 8:16 AM
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...
‎2009 Mar 17 8:17 AM
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
‎2009 Mar 17 8:19 AM
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
‎2009 Mar 17 8:33 AM
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
‎2009 Mar 17 11:55 AM
Please use a more informative subject in future. Do not have your subject in ALL CAPITALS.