cancel
Showing results for 
Search instead for 
Did you mean: 

Shared variables passing in two subreports...not to main report

former_member557357
Participant
0 Kudos

Hi,

I have three subreports ( overdue items, owing fines, misc fines) which are posted in details sections like detail a,b,c,. Main section is empty as I donot want my reports to be filtered at all. The main report has all students#. The whole idea is if any student has one or more items like overdue or fine or misc, it will show on my report. I have a hard time grouping by homeroom followed by student # and suppressing data those who do not have either overdue fine, misc fines or overdue items as my detail section has only student#. If I run without grouping, it works perfect, no issue at all.

How can I achieve the result?

My second issue is, I have added bill payment report in detail section as 4th report as subreport, but I have a hard time using shared variable as I am unable to pass shared variable from one sub report to another sub report. But, if I put my bill payment sub report in the detail section, shared variable works great, but it filters my other report (overdue report). Is there any way I can achieve both results?

Please help!

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member557357
Participant
0 Kudos

Thank you Abhilash, it worked perfectly.

abhilash_kumar
Active Contributor
0 Kudos

Hi Mona,

I'd recommend posting separate issues as separate discussions. The first issue looks very similar to the one you posted here:

https://answers.sap.com/questions/12849889/question-about-subreport-group-header.html

For the second question, you need to make sure:

1. The subreport where the shared variable is initialized and assigned a value is placed in a section "above" the section that holds the other subreport or formula

2. The section that holds the subreport that initializes the shared variable should not be suppressed.

3. The shared variable isn't being reset in another formula between the sections.

-Abhilash