Symptom
When implementing the DMEE_OUTPUT_POSTPROCESSING BAdI in the development tenant and attempting to call a class generated from a Custom Business Object (CBO), the following error appears:
"The use of Class &1 is not allowed"
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a Custom Business Object in the Customizing tenant (100).
- In the Development tenant (080), implement the DMEE_OUTPUT_POSTPROCESSING BAdI.
- Attempt to call the CBO-generated class within the BAdI implementation.
- Observe that the error "The use of Class &1 is not allowed" appears.
Cause
The Custom Business Object is part of Key-User Extensibility, maintained in the Customizing tenant (100). The DMEE_OUTPUT_POSTPROCESSING BAdI is part of Developer Extensibility, handled in the Development tenant (080). Objects created for Key-User Extensibility cannot be consumed in Developer Extensibility directly due to the layered architecture of SAP S/4HANA Cloud Public Edition.
Resolution
There are two options:
-
To retrieve data from the Custom Business Object in Developer Extensibility, refer to the SAP Help Portal documentation on Data Retrieval for Custom Business Objects.
-
As an alternative using Key-User Extensibility, use the FBL_EVENT_06 event available in the Custom Logic app. This event allows filling values into custom fields (ZREFxx) in FPAY* structures. These ZREF fields can then be used as a mapping source in the Map Format Data for Payments app.
For more details on the layering of extensibility, refer to the SAP Community blog post Layering of Key User Extensibility and Developer E... - SAP Community.
Keywords
DMEE, DMEE_OUTPUT_POSTPROCESSING, BAdI, Custom Business Object, CBO, Key-User Extensibility, Developer Extensibility, class not allowed, payment format, FBL_EVENT_06, ZREF, Map Format Data, SAP S/4HANA Cloud Public Edition , KBA , CA-GTF-CSC-DME , Data Medium Exchange Engine , Problem
SAP Knowledge Base Article - Public