SAP Knowledge Base Article - Public

2713787 - How to Add AccountName to Custom OData Service Based on Opportunity Collection

Symptom

You created a custom odata service using the business object Opportunity root node, but you could not find the field AccountName to add to the service.

Environment

  • SAP Cloud for Customer.

Reproducing the Issue

  1. Go to the Administrator work center, in OData Service Explorer view.
  2. Select the filter Custom OData Service.
  3. Click on New and create the service.
  4. Add the Business Object Opportunity and select the Root node.
  5. You do not find the AccountName field.

Cause

The AccountName field is under DisplayNameSuitableForLogonLanguage under the label of FormattedName.

Resolution

  1. You can find the AccountName field by navigating to the below path:
  2. Expand the Opportunity root node
  3. Find the ProspectParty node and expand it.
  4. Expand AddressSnapshot. 
  5. Expand DisplayNameSuitableForLogonLanguage.
  6. See the field FormattedName.

Keywords

accountname, opportunity collection, custom odata service , KBA , LOD-CRM-OPP , Opportunity Management , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions