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

set parameters for dynamic selection report

Former Member
0 Likes
819

Hi all,

Please find below code.. parameters KS7 and KS8 are on static slection parameter and GJR, VPE, BPE are on dynamic selection parameters for transaction KSB2. But, when I run program, values are passing to parameters KS7 and KS8 but not to GJR, VPE, BPE.

set parameter id 'KS7' field co_podat-low. "from date

set parameter id 'KS8' field co_podat-high. "to date

set parameter id 'GJR' field P_RYEAR.

set parameter id 'VPE' field SO_PERIO-LOW.

set parameter id 'BPE' field SO_PERIO-HIGH.

submit rkaep000

with p_tcode = 'KSB2' "non display param

with p_kokrs = p_kokrs "non display param

with kostl = it_outputsum-profctr

with kstar = it_outputsum-acct

with p_disvar = '1SAP' "non display param

and return.

What would be reason?

Thanks

Shashi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
601

at the time of you code being executed the fields may not be available (Defined)..

You can put a breakpoint on the same & check the RC (Sy-Subrc) for the SET PARAMETER statement

Regards,

Gaurav

2 REPLIES 2
Read only

Former Member
0 Likes
602

at the time of you code being executed the fields may not be available (Defined)..

You can put a breakpoint on the same & check the RC (Sy-Subrc) for the SET PARAMETER statement

Regards,

Gaurav

Read only

0 Likes
601

Hi Gaurav,

When I execute I can c values in flieds.

Cheers