Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Passing Parameters to anf from Sub-Reports

I have a report with two subreports in it, and I want to be able to tell the main report about the data in the sub-report so I can supress a detail section if the sub-report contains certain data. How do I pass a parameter from the sub-report to the main report?

Former Member
Former Member replied

Hi dhillard,

I have a slightly different aproach to your problem:

In the main report type the following code:

shared booleanvar n;

if Count() > 10

then n:= true

else n:= false;

n;

In the subreport type a similar code of the type:

shared booleanvar n;

if n = true then

crGray

else

crSilver

This should work fine.

Thanks,

Amogh

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question