- Repository Function no updated.
- Custom Function used on the report, uses the old code, instead of the new updated one.
- After updating a Customer Function stored in the repository, it does not update it when viewed in Crystal Reports, or in SAP BI LaunchPad.
- A Custom Function is saved to the Repository and is used in report formula. When the Custom Function stored in the Repository is modified, the change should appear in all the reports with Formulas using the Custom Function. However, the change does not appear on the reports.
- Note: Images and data in this SAP Knowledge Base Article is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
- SAP Crystal Reports 2013
- SAP Crystal Reports 2016
- SAP Crystal Reports 2020
- SAP BusinessObjects Business Intelligence platform 4.1
- SAP BusinessObjects Business Intelligence platform 4.2
- SAP BusinessObjects Business Intelligence platform 4.3
Reproducing the Issue
- In Crystal Reports, create a report of any data source.
- Create a Custom Function.
- Add the Custom Function to the SAP BusinessObjects Enterprise Repository.
- Create a formula on the report using the Custom Function stored in the Repository.
- Insert the formula on the report.
- Save the report to SAP BusinessObjects Enterprise Repository.
- Update the Custom Function, and re-add it to the Repository.
- Re-open the report in Crystal Reports designer, or refresh the report in SAP BI LaunchPad, and notice the change to the Custom Function is not picked up.
- Report was saved with the option "Enable Repository Refresh" unchecked.
- Custom Functions stored in the Repository, and used in reports formulas will only pick the latest update when the option "Enable Repository Refresh" is checked. Otherwise, when evaluating the formula, even if the Custom Function is connected to the Repository, it will take a copy of the Custom Function stored in the report file.
- Check the option "Enable Repository Refresh", for each report that uses the Custom Function stored in the Repository:
- In Crystal Reports designer, open the report stored on the SAP BusinessObjects Enterprise Repository.
- Under the menu "File", select "Save As..."
- At the bottom of the "Save As" window, check the option "Enable Repository Refresh"
- Still in the "Save As" window, save the report in the same folder, and with the same name.
- When the following warning will display, click "Yes"
<Report File Name.rpt> already exists.
Do you want to replace it?
Now, when viewing the report in SAP BI LaunchPad, or opening the report in Crystal Reports designer, it will first retreive the updated copy of the Custom Function stored in the Repository, before refreshing the report
- Login to the Central Management Console (CMC)
- Navigate to the report.
- Right click on the report and select in the contextual menu "Refresh Options"
- Check the option "Use Object Repository when refreshing report"
- Click on the "Refresh Report" button.
Now, the report will be using the latest update of the function.
For each report that uses the function that was updated in the repository, perform the above steps.
CR, Repository Custom Functions, Report custom functions, Custom function not updated, reporting tab , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , BI-BIP-ADM , BI Servers, security, Crystal Reports in Launchpad , Problem
SAP Crystal Reports 2011 ; SAP Crystal Reports 2013 ; SAP Crystal Reports 2016 ; SAP Crystal Reports 2020