cancel
Showing results for 
Search instead for 
Did you mean: 

Using ABAP environment on SCP

zzomdd
Discoverer

Hi experts.

We have a question regarding the use of ABAP environment on SCP. We know that it is possible to publish CDS and use them from a Fiori application to make use of the data. However, we wanted to know if it is possible to publish functions or methods built in ABAP and use them in the same way as a CDS from a Fiori application. For example, build the screens of an ABAP report using fiori screens and, from those screens, call some function or method where the logic is encapsulated.

Thanks in avance.

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

Hi Miguel,

as described in my blog

https://blogs.sap.com/2019/03/01/how-to-implement-a-custom-entity-in-the-abap-restful-programming-mo...

the new ABAP RESTful Programming Model supports so called "custom entities".

Custom entities are a special type of CDS views where the data is not read via a select statement from an underlying table or view but where the developer has to create a class that implements a certain interface that contains a select method.

The name of the class is added to the DDL source code of this custom entity via the following annotation:

@QueryImplementedBy:'zcl_cq_product_via_rfc'

So yes, you can use classes for function modules to retrieve data (even via RFC to your on premise backend) to build OData service for SAP Fiori applications in SAP Cloud Platform ABAP environment.

Best regards,

Andre

Answers (0)