SAP Knowledge Base Article - Public

3012089 - Text Element Display Type for Extension Business Objects

Symptom

Due to a limitation on Extension Business Objects (XBO), you are restricted from using certain Text Types. You need to use the data types LongText, MediumText or ShortText on a Standard Screen but you notice that by default it displays as a TextEdit instead of an InputField.

Environment

  • SAP Cloud for Customer
  • SAP Cloud Applications Studio

Reproducing the Issue

 Prerequisites:

  • You have created a Custom Solution with an XBO.
  • You have added one of the above data types as an element.

Steps to Reproduce:

  1. In the studio, right-click on the XBO and click Enhance Screens.
  2. Select your required screen to open the UI Desinger.
  3. Select the Extensibility Explorer tab.
  4. Select the anchor you want to extend to (must correspond to a Node where the element can be found).
  5. Click Add Extension Field to ... (if available).
  6. Note that there is no option to adjust the Display Type.

Cause

The underlying data type for these three data types is below:

LongText LEN120_LANGUAGEINDEPENDENT_Text
MediumText LANGUAGEINDEPENDENT_LONG_Text
ShortText LANGUAGEINDEPENTANT_MEDIUM_Text

These data types default to TextEdit and you cannot change the Display Type for Extension Fields on a Standard Screen.

Resolution

Option 1:

You can use certain ID, Name and Description data types and these elements will display as InputFields. For example, "BusinessPartnerID" can store up to 60 alphanumeric characters and will display as an InputField.

Option 2:

You can adjust the Display Type on an Embedded Component (EC) bound to the XBO.

See Also

Refer to this blog post for info on Text Types: Text Types Usage

Keywords

PDI, SDK, Display Type, enhance screens, Name, Description, Extension Field, Extensibility , KBA , AP-RC-BDS-EXT , ByDesign Studio Extensibility , Problem

Product

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