Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
miltonc
Product and Topic Expert
Product and Topic Expert
Github repository:

To be published soon...

 

Introduction:

  • In this session, we will look at how to implement actions in Cloud Application Programming Model


 

Synopsis:

  • In OData specifications, Actions are operations exposed by an OData Service that may have side effects when invoked

  • Actions may return data

  • You can learn more about Actions in OData in the following blog - https://www.odata.org/blog/actions-in-odata/


 

Steps:

  • In this example, we have 2 entities: Projects and Users

  • There is a 1 to many relationship between Projects and Users.  So a Project can have multiple Users, while a User can belong to only 1 Project

  • We will look at how we can move a User from one Project to another

  • We have also introduced a few hypothetical business requirements that need to be met before a User can be moved from one Project to another

  • Also, we will return a custom object as the response


 

YouTube link:

https://youtu.be/Vi_NaD2eXkg

 

Conclusion:

  • This video should give you a clear idea on how to implement actions in Cloud Application Programming Model

  • If you have any questions or comments, please list them below and I will be happy to answer


 

Previous post:

https://blogs.sap.com/2020/08/23/how-to-implement-functions-cloud-application-programming-model/

 
3 Comments