Show TOC

App Extensibility: My OpportunitiesLocate this document in the navigation structure

Use

You can extend My Opportunities according to your business needs for different aspects.

Example

To add a field at the top of the opportunity create view, the following extensibility entities are available on the different layers. You have to extend each of these entities according to your specific business needs:

UI

Back End/ABAP

View

Extension Point

Design Time: Gateway Entity

Design Time: Extension Include (in DDIC Structure)

Run Time: Superclass and Method to Be Redefined

S5.view.xml

opportunityCreateContentTopExtension

Opportunity

CRMT_ODATA_OPPT_HEADER_INCL

CL_CRM_OPPORTUNITY_DPC_EXT

For more information about extension hooks and extension points for the My Opportunities app, visit the SAP Fiori apps reference library at https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/index.html?appId=F0012.

Note To display the extensibility information about the My Opportunities app in the SAP Fiori apps reference library, click the IMPLEMENTATION INFORMATION tab on the App Details page that is displayed.
Back-End Extensibility

Business Add-Ins (BAdIs)

The following BAdIs are available for extensibility purposes:

  • CRM_OPPORTUNITY_ODATA_BD in enhancement spot CRM_OPPORTUNITY_ODATA_ENH

    You can use this BAdI to define your own logic for reading, creating, or changing opportunities. This is necessary if, for example, you want to add your own fields, or use different processing logic for existing fields.

    You can find the BAdI in Customizing for SAP CRM, under Start of the navigation path Customer Relationship Management Next navigation step Transactions Next navigation step Settings for Opportunities Next navigation step BAdI: Extension of Opportunity OData Service End of the navigation path

  • CRM_DETERM_ORG_ODATA_BADI

    You can use this BAdI to define your own determination rule for sales organization.

  • CRM_DETERM_BP_ODATA_BADI

    You can use this BAdI to customize your own business partners when non business partners provided by the system meet your business needs.

Extension Includes

The following extension includes are available:

DDIC

Extension Include

Use

CRMT_ODATA_OPPT_CURRENCY

CRMT_ODATA_OPPT_CURRENCY_INCL

Allows you to extend the Currency entity for opportunities

CRMT_ODATA_OPPT_ATTACHMENT

CRMT_ODATA_OPPT_ATTACHMNT_INCL

Allows you to extend the Attachment entity for opportunities

CRMT_ODATA_OPPT_CHANGEDOC

CRMT_ODATA_OPPT_CHANGEDOC_INCL

Allows you to extend the Change Document entity for opportunities

CRMT_ODATA_OPPT_NOTES

CRMT_ODATA_OPPT_NOTES_INCL

Allows you to extend the Note entity for opportunities

CRMT_ODATA_OPPT_STATUS

CRMT_ODATA_OPPT_STATUS_INCL

Allows you to extend the Status entity for opportunities

CRMT_ODATA_OPPT_PRIORITY

CRMT_ODATA_OPPT_PRIORITY_INCL

Allows you to extend the Priority entity for opportunities

CRMT_ODATA_OPPT_PROCESS_TYPE

CRMT_ODATA_OPPT_PROC_TYPE_INCL

Allows you to extend the Process Type entity for opportunities

CRMT_OPPT_ODATA_PRODUCT

CRMT_ODATA_OPPT_PRODMASTR_INCL

Allows you to extend the Product entity for opportunities

CRMT_ODATA_OPPT_SALES_STAGE

CRMT_ODATA_OPPT_SALESTAGE_INCL

Allows you to extend the Sales Stage entity for opportunities

CRMT_ODATA_OPPT_USER_STATUS

CRMT_ODATA_OPPT_USER_STAT_INCL

Allows you to extend the User Status entity for opportunities

If there are additional fields available in the OData service, you can display these fields on the UI. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Extension Points End of the navigation path.

Note

If you wish to redefine the OData classes to extend the app, then you have to use the following methods:

Scenario

Class

Method

Create

CL_CRM_OPPORTUNITY_DPC_EXT

/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_DEEP_ENTITY

Update

CL_CRM_OPPORTUNITY_DPC_EXT

/IWBEP/IF_MGW_APPL_SRV_RUNTIME~PATCH_ENTITUY

OData Services

When you use the My Opportunities app in offline mode, the wrapper service CRM_ODATA calls the app-specific OData service CRM_BUPA_ODATA internally. If you extend this service and use the app offline, you must ensure that the wrapper service CRM_ODATA takes your extensions into account.

Register your additional or extended entities in Customizing for SAP CRM, under Start of the navigation path Customer Relationship Management Next navigation step Transactions Next navigation step Settings for Opportunities Next navigation step Define Settings for the "My Opportunities" App Next navigation step Register Extensions for CRM OData Service End of the navigation path.

The CRM_ODATA service is available as of the following backend releases:

  • SAP enhancement package 4 (SP02) for SAP CRM 7.0

  • SAP enhancement package 3 (SP12) for SAP CRM 7.0

Front-End Extensibility

Extension Points

If there are additional fields available in the OData service, you can display these fields on the UI. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Extension Points End of the navigation path.

UI Controller Hooks

If there are additional UI controller hooks available in the controller code, you can add own code. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step UI Controller Hooks End of the navigation path.

Display of UI Controls

For more information about hiding UI controls, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Hiding UI Controls End of the navigation path.

More Information

For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori End of the navigation path.