on 2024 Dec 09 3:35 PM
Hello colleagues,
Is there a way to create a new OData service with CDS view, to reuse in the service implementation an existing ABAP code and this to happen by not using transaction SEGW? AMDP is not an option because it does not allow execution of such old code as i know.
I would like to create an OData service by using a CDS view (let's sat newly created).
I would like also to reuse an existing logic which have already been written in ABAP code in lets say a soubroutine in include file. This subroutine would return a simple variable of type FLAG. And based on the value in this flag - different set of entries have to be passed as an OData result.
To reuse the existing logic i have to: perform sub in program using...
Is this possible to happen when we use just a new CDS tech. (@odata.publish true) and NOT in transaction SEGW ( for SEGW is clear _DPC class allowes us to reuse such kind of logic) ?
*lets assume that there is some implemented algorithm in ABAP which i do not have time to analyze and rewrite, but just want to reuse somehow.
* PS - what if the subroutine would return an internal table which result should be the result of the OData service?
Request clarification before answering.
it is called custom entity, google it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
46 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.