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
SAP CLOUD APPLICATION STUDIO
SAP BUSINESS BYDESIGN
SAP HYBRIS CLOUD FOR CUSTOMER
Reproducing the Issue
Open the solution in SDK.
- Select and activate the KUT field in the CustomerObjectReferences.ref file for the respective XBO.
- Navigate to the ABSL file created for the Enhancement Implementation.
- Use the KUT field in the coding.
- Save and Activate.
- Error appears.
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.
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.
CustomerObjectReferences in BADI PUBLIC Syntaxt error in generated ABAP method Error in Enhancement Implementation , KBA , public , syntaxt error in generated abap method , customerobjectreferences in badi , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem