SAP Knowledge Base Article - Public

2814286 - How To Display the Description Data instead of the Code Data of Custom Codelist Values on a Custom Print Form

Symptom

You click the Preview Button to display the Print Form for your Custom Business Object and some fields display incorrect values.

Preview Wrong Data.png

Environment

  • SAP Cloud Application Studio
  • SAP Cloud for Customer
  • SAP Business ByDesign

Reproducing the Issue

Prerequisites:

  1. You have created a Custom Solution in the Cloud Application Studio.
  2. You have created a Custom Business Object (BO).
  3. You have created a Custom Business Configuration Object (BCO).
  4. You have created a Custom Business Configuration Set for your Custom BCO (BCC).
  5. You have created a Print Form for your Custom BO.
  6. You have enabled Preview Functionality for your Print Form.

Cause

The Print Form displays the Code Data defined in the BCC instead of the Description Data.

BCC values.png

Resolution

Use a Transient Element to store the Description Data:

  1. Open your Custom BO in your Custom Solution.
  2. Add a new Transient Element to the BO:

Transient Element.png

  1. Create an AfterLoading Script File for your Custom BO.
  2. Populate the Transient Element with the Description Data of your BCC:

 Populate data.png

  1. Add the New Transient Element to the Form Data Structure of your Custom Print Form (.fthd file).
  2. Open your Custom Print Form in Adobe LiveCycle Designer (.xdp file).
  3. Drag and drop your New Transient Element to the Design View:

LiveCycle Drop.png

  1. Close the LiveCycle Designer and Save and Activate your Solution.
  2. You will now see the Description Data displayed on your Print Form:

Preview Correct.png

See Also

Community:

Step by Step to create an Adobe Print form in Cloud application Studio

Keywords

Preview, Display, BCC, BCO, BO, Print, Form, LiveCycle, Designer, Transient, Business, Configuration, Set, Object, Wrong, Correct, Adobe, UI, AfterLoading, After-Loading, PDI, custom PDF Preview , KBA , AP-RC-BDS-BC , ByDesign Studio Business Configuration , How To

Product

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