cancel
Showing results for 
Search instead for 
Did you mean: 

FormulaField.usecount not correct inside subreport

filippo_menditto
Participant
0 Kudos

Hi, I'm using a code to remove all not used FormulaField in a report. The code i like:

For Each myformulaField As FormulaField In eport.DataDefController.DataDefinition.FormulaFields)

If myformulaField.UseCount = 0 Then I

endif

next

This code work correct for FormulaField in a report but don't work in subreport. The usecount value is always 0 for Formulafields in subreport.

Have any idea ?

Filippo

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Filippo,

You don't have any code to open the subreport and get it's formula fields

See this sample I wrote, in the drop down list box on the right side select formula fields, it scans for subreports and show them also.

https://launchpad.support.sap.com/#/notes/1985571

Don

Answers (0)