Application Development 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: 

Submitting Report with selection screen options

Former Member
0 Kudos

Hi all,

I have a situation, in my report i am using a selection screen which contains input select-options are store(range), date (from ..to)....after that i am calling other report with submit.. in that report, selection screen fields store and date fields will be inserted by previously entered values... we have to pass parameters to the second selection screen... how can we do this.. can anybody help me ...

Thanks

R Nittala

4 REPLIES 4

Former Member
0 Kudos

With a SUBMIT statement !

Check the online help.

Regards,

Erwan.

Former Member
0 Kudos

Hi Rajesh,

I think you can make it thru


SUBMIT report WITH param IN range.

... where "range" is an internal table (it's recommended to declare it as "RANGES range FOR ...", filled with the specification of all the values/ranges/exclusions/patterns etc.

Pls let us know if it helped. BR,

Alvaro

former_member214131
Active Contributor

Hello,

Here is the sample...

SUBMIT ztest

WITH sel_mat IN sel_mat "Sel Opt

WITH sel_wrk EQ l_werks "Parameter

WITH sel_anw EQ '3'

WITH sel_alt EQ '01'

WITH p_aennr EQ p_baennr "Parameter

AND RETURN.

You need to fill the Select Option / Parameters from the calling program.

Hope this helps you.

Regds, Murugesh AS

0 Kudos

Hi Rajesh,

I think that you will find this FM - 'RS_REFRESH_FROM_SELECTOPTIONS' really helpful. All you have to do is give the input as the report whose selection screen you need in the next report you will submit.

Example:

DATA T_rsparams TYPE TABLE OF rsparams.

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

EXPORTING

CURR_REPORT = <Report Name>

  • IMPORTING

  • SP =

TABLES

SELECTION_TABLE = T_rsparams

  • EXCEPTIONS

  • NOT_FOUND = 1

  • NO_REPORT = 2

  • OTHERS = 3

.

SUBMIT <Report Name> WITH SELECTION-TABLE T_rsparams

AND RETURN.

Regards,

Aditya

Edited by: Aditya Niyogi on Oct 16, 2008 12:30 PM