2

Access RAP CDS behavior implementations (backend), via the Business App.Studio-U...

 1 year ago
source link: https://answers.sap.com/questions/13752962/zugriff-rap-cds-verhaltensklassenimplementierungen.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Nov 09 at 02:00 PM

Access RAP CDS behavior implementations (backend), via the Business App.Studio-UI5 (Frontend) button

339 Views Last edit Nov 12 at 02:00 PM 8 rev

Hello,

I have a question and I couldn't solve it.

I have a backend application with RAP that includes CDSs, CDs view, CDS Projection, Service definition, Service Binding and CDS-Behaviour and CDS-Behviour Implementation Classes. With this, a connection to a room in fiori UI is already implemented automatically.

I can also access this backend RAP from a fiori UI application with SAP BAS (Business Application Studio).

Problem: I want to be able to access this backend RAP from a SAPUI5 (not fiori UI) application with SAP BAS(Business Application Studio). But unfortunately I can't find it.

Here's what I want to do: I can't stay flexible and free with Fiori. I want to implement my own UI with SAPUI5 and I want to reach the backend (I want to use RAP - CDS Behavior Implementation Classes) with a button, for example.

my problem is with both RAP and (SAP Business Application Studio - SAPUi5).

We can make Fiori applications very easily with RAP in your teachings. I have implemented all of these. It's running well.

Fiori applications contain about 6 different "Floorplan". In other words, we can say 6 different templates or templates. But I don't need these templates in my UI part. We have a Business Logic (Unmanaged Scenario) of our own in the project we have done, and also a Fiori UI does not appeal to us (for this project) as we have a UI-Design of our own.

We want to design the front end with XML and Javascript codes (SAP Business Application Studio - SAPUi5). However, I'm running into a problem and I can't find any resources about it anywhere.

Problem: I can't find how to access our RAP project (Behavior Implementation Class in RAP) that we have created via SAP BAS SAPUI5, for example, when clicking a button.

Normally I can access my oData data. But how do I access the Behavior Implementation Class in RAP?

Fiori templates are not always a suitable choice for users. In some projects we want to use our own User Interface to be more flexible. You have already shown that we can normally access our RAP project (Backend - Behavior Implementation Class in RAP) with Fiori Templates. For example, with an "action"-button on Fiori, we can easily access the Behavior Implementation Class in RAP in the backend. But when we want to do it with SAPUI5 instead of Fiori, how do we do it?

In summary: How can we reach backend (Behavior Implementation Class in RAP and RAP) via frontend (SAP BAS-SAPUI5 part) (not Fiori - with SAP UI5). (like "-action" logic in Fiori) I want to reach Behaviour-Class in RAP with a button in SAPUI5. Unfortunately, this is not available in either RAP training or SAPUI5 training. I couldn't find any source. How can I do that?

Orhan


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK