Symptom
You have defined a custom field in Cloud Application Studio but in UI it shows both code and value in the drop down.
- The data type of the field is of type Amount
- Amount is a Compound field(Content and CurrencyCode)
- For the field CurrencyCode, CodePresentationMode selected as CodeOnly but the field is showing both Code and Description in the dropdown.
Environment
- SAP Cloud for Customer
- SAP Business ByDesign
- SAP Cloud Application Studio
Reproducing the Issue
- Login to frontend UI
- Navigate to the relevant screen where the field is added
- In the UOM field, click on the drop down arrow,
- You can see the currency codes are displaying along with the description
Cause
Currently the CodePresentationMode-CodeOnly will be displaying both the Code and Description for the CurrencyCode field.
Resolution
This is the current standard behavior for the standard data type Amount. You can create a custom codelist to suffix your need to display CodeOnly in UI.
Keywords
amount field, currency code, description, custom dropdown field, codeCurrency, presentation mode, code only, uom, code and description , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , AP-RC-BDS-BO , ByDesign Studio BO definition/generation , Problem
SAP Knowledge Base Article - Public