‎2006 Sep 03 11:31 PM
Hi all
I want to call a REPORT using SUBMIT and at the same time this REPORT has a selection screen with two parameters P_FIELD1 and P_FIELD2. I want to also pass two values to this two parameters when I call the REPORT.
Someone please help me.
Waiting............
‎2006 Sep 03 11:37 PM
fill those parameters in your current program & pass them to the SUBMIT statement as follows..
SUBMIT <REPORT> with P_FIELD1 = <value>
with P_FIELD2 = <value>
AND RETURN.
~Suresh
‎2006 Sep 03 11:54 PM
Usually I preferr to use Suresh's suggestion, sometimes you may need to pass values dynamically to the SUBMIT statement, in that case, you can do it like this.
report zrich_0001.
data: iparms type table of RSPARAMS with header line.
iparms-selname = 'P_FIELD1'.
iparms-kind = 'P'.
iparms-low = 'Value1'.
append iparms.
iparms-selname = 'P_FIELD2'.
iparms-kind = 'P'.
iparms-low = 'Value2'.
append iparms.
submit zrich_0005
with selection-table iparms
and return.
Regards,
RIch Heilman
‎2006 Sep 04 1:28 AM
Hi,
You can do that in few ways take a look at the link below to find out more about the various options
http://www.geocities.com/SiliconValley/Campus/6345/submit_i.htm
Cheers
VJ
‎2006 Sep 04 2:51 AM
Hi,
Please take a look at the example below:
SUBMIT zdealer_contacts_add_edit AND RETURN
WITH p_kunnr = v_kunnr
WITH p_name1 = p_name1 "AVH
WITH p_cdseq = space
WITH p_flag = 'A'
WITH p_addr = it_zts0001-zaddress
WITH p_pers = it_zts0001-zcperson
WITH p_numb = it_zts0001-zcnumber
VIA SELECTION-SCREEN.
Hope this helps...
P.S. Please award points for useful answers.