Symptom
- Unable to add the standard ResultReasonCode field to the Opportunity History data source (ID: CODOPPHHB).
- The ResultReasonCode is not available as a standalone attribute in the standard Opportunity data source.
- The ResultReasonCode is linked to the status and stored in a related node (Opportunity Status History or Reason Assignment).
Environment
SAP Cloud for Customer
Reproducing the Issue
- Navigate to Business Analytics work center.
- Open Design Data Source work center view.
- Locate and open the data source with ID CODOPPHHB.
- Attempt to add the field "Reason for Status" or "ResultReasonCode" to the data source.
Cause
- The ResultReasonCode is not a standalone attribute in the standard Opportunity data source. It is linked to the status and stored in a related node (Opportunity Status History or Reason Assignment).
Resolution
- Use the data source that includes Opportunity Status Reason, such as Opportunity Status History.
- Join CODOPPHHB data source with the Opportunity Header in a Combined Data Source.
- Design the report using Combined Data Source as in step 2 to display:
-
- Opportunity ID
- Current Status
- Result Reason Code / Description
Alternatively, for won/lost analysis:
- Utilize the standard report template for opportunity analysis.
- Include the reason field from the appropriate data source.
Keywords
opportunities, add, data source, result reason code, opportunity history, design data report, status, opportunity analysis, reporting issue, , KBA , LOD-CRM-OPP , Opportunity Management , AP-RC-ANA , C4C, ByD, Travel: Analytics Tools & Frameworks , Problem
Product
SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions
SAP Knowledge Base Article - Public