cancel
Showing results for 
Search instead for 
Did you mean: 

CR4E - How to pass a range parameter

alexander_stettler
Participant
0 Kudos

Hi experts,

I have a little issue with the parameter handling of a main and its sub report. The sub report has one range (or interval) parameter - a composed string (company code and date: "2   20120431") - and the main report has one single value parameter for the company code ("2   ") and one range parameter for a date interval ("20120431"). All parameters are defined by a BEX query...

I thought, that I can use a formular in the parameter link of the sub report. But it seams that it's not allowed to create a range as a return value of a formular. Also the attempt to create a link like "2   20120431 - 2   20120531" (like the input variant of a interval in the selection screen of a BEx Query) failed.

Has someone of you an idea what I can do to pass a manually created range parameter?

Best Regards,

Alex

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Did you try the shared varaibles.  You can declare two variables as shared in the main report and store the values.  Place them in the main report above the subreport.  Also declare the same variables in the subreport.

I think this should work.

alexander_stettler
Participant
0 Kudos

Hi Veni,

Thanks for your reply...

Yes, I've already tried a shared variable, but I can't choose it in the "Subreport Data Passing Links" definition...

Best Regards,

Alex

abhilash_kumar
Active Contributor
0 Kudos

Hi Alex,

Which two parameters are you trying to link?

- Abhilash

alexander_stettler
Participant
0 Kudos

Hi Abhilash,

I want to link a composed value with a string range:

- The composed value (string) consists of a company code (single value) and a calendar date (date range). Both values are parameters of the main report.

- The sub report has one parameter, a string range. This parameter must be linked with the composed value.

Due to the fact, that the main report contain the date range and the sub report a string range, I have to create a string range of the composed value. And at this point i find myself in a big hole...

Best Regards,

Alex