Ansicht
Dokumentation

CRM_BUPA_FACTSHEET - BAdI: Retrieval of Data for Account-Related Key Figures

CRM_BUPA_FACTSHEET - BAdI: Retrieval of Data for Account-Related Key Figures

General Data in Customer Master   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the OData service that delivers the following account-related key figures:

  • Opportunities
  • Revenue (last year, current year)

The OData service and the key figures are consumed in the My Accounts app, for example.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

You can find example implementations in the BAdI Builder on the Enhancement Spot Element Definitions tab in the Implementation Example Classes section.

The following example implementations are available:

  • CL_CRM_BP_ODATA_EX_FACTSHEET_L
This example implementation runs on any database, but with a large data volume, an SAP HANA database is required since mass data is selected and aggregated in real time.
For the revenue key figures, this example implementation selects and aggregates the amounts of billed sales orders. For the opportunities key figure, it selects all opportunities and aggregates the expected revenue.
There is no authorization check.
  • CL_CRM_BP_ODATA_EX_FACTSHEET_H
This example implementation runs on an SAP HANA database only since it selects data from virtual data models.
For the revenue key figures, this example implementation selects and aggregates the amounts of all sales orders that have status Releasedor Completed. For the opportunities key figure, it selects all opportunities and aggregates the expected revenue.
The following authorization check is available: The example implementation selects only the sales orders and opportunities that belong to the sales organization to which the user of the app is assigned as employee responsible. If the user is not assigned to any sales organizations, no sales orders or opportunities are selected.
This example implementation serves as a fallback implementation if no implementation is created.






CL_GUI_FRONTEND_SERVICES - Frontend Services   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2528 Date: 20240523 Time: 160642     sap01-206 ( 50 ms )