2604776 - Unable to Use KUT Fields in PDI Enhancement Implementation

SAP Knowledge Base Article - Public

2604776 - Unable to Use KUT Fields in PDI Enhancement Implementation

Symptom

You will receive the below errors while you activating the ABSL file created for the enhancement implementation.

Error in activation of runtime object

Syntax error in generated ABAP method

Environment

SAP CLOUD APPLICATION STUDIO

SAP BUSINESS BYDESIGN

SAP HYBRIS CLOUD FOR CUSTOMER

Reproducing the Issue

  1. Open the solution in SDK.
  2. Select and activate the KUT field in the CustomerObjectReferences.ref file for the respective XBO.
  3. Navigate to the ABSL file created for the Enhancement Implementation.
  4. Use the KUT field in the coding.
  5. Save and Activate.
  6. Error appears.

Cause

The activation fails because accessing KUT field is not currently supported in BADI implementation. So when the code in the backend is generated for the corresponding ABSL, declaration to handle KUT fields are skipped, leading to errors in generated ABAP.

Resolution

Currently KUT fields are not supported to use in the ABSL for the BADI Implementation. As a workaround you can use the extension fields in XBO.

Keywords

CustomerObjectReferences in BADI PUBLIC Syntaxt error in generated ABAP method Error in Enhancement Implementation , KBA , customerobjectreferences in badi , syntaxt error in generated abap method , public , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem

Product

SAP HYBRIS C4C ADDINS 1802 ; SAP HYBRIS C4C ADDINS 1805 ; SAP Hybris Cloud for Customer 1711