SAP Knowledge Base Article - Public

2801953 - Business Object message is truncated to 255 characters

Symptom

You define a custom message in the Cloud Applications Studio that is 400 characters long and are only able to see 255 characters in the Front-End UI.

Environment

  • SAP Cloud Applications Studio
  • SAP Hybris Cloud for Customer
  • SAP Business ByDesign

Reproducing the Issue

As a prerequisite you have previously:

  1. Created a Custom Message in the Cloud Applications Studio that is longer than 255 characters.
  2. Opened the Front-End UI and performed necessary steps which has raised the Custom Message.
  3. You see that only 255 characters are visible.

Cause

The UI framework truncates the message to only 255 characters during the execution of the call stack.

Resolution

To get around this limitation you can do the following:

  1. You can raise multiple custom messages, using 255 characters as a guideline for each separate message or,
  2. place multiple placeholders (&) in your custom message remembering that each placeholder can only contain up to 255 characters as visible in the screenshot below.

kba_messages.png

Keywords

SDK, Cloud Applications Studio, 255 Characters, Limit, UI, Message, Custom Message, Raise Error, PDI , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions