We have a Fiori interface, which gets data from SAP GW. Now we create function modules that provide the data. To do this, we go to the SEGW and create an entity and have SAP generate the implementation automatically.
We do this by clicking on "GetEntitySet" -> Assign to Data Source" in the tree "Service Implementation -> Entity -> Right click and assign the RFC created before. SAP now creates an automatic implementation.
Is it possible that we can send a specific error message from the RFC module to the frontend? We do not work in the generated DPC class, but only in the RFC module!
From here, please correct me, we have no access to the DPC classes or the gateway context. An example without ABAP OO would be great :)