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 - selection screen

Former Member
0 Likes
548

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............

4 REPLIES 4
Read only

suresh_datti
Active Contributor
0 Likes
484

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

Read only

0 Likes
484

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

Read only

Former Member
0 Likes
484

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

Read only

aris_hidalgo
Contributor
0 Likes
484

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.