2023 Nov 20 2:02 PM
Hello All,
How does framework handle Skip, top, Orderby, expand etc.. parameter in CDS Based odata service ? IN SEGW Projects, these require ABAP coding to send the data in response.
is there any documentation regarding this topic ? Kindly help with the flow.
Regards,
Nikhil Kulkarni
2023 Nov 20 9:39 PM
Hi Nikhil,
this all is handled out of the box by the underlying SADL framework when using OData Services using the Referenced Data Source approach as described here:
Referencing a Data Source (sap.com)
and here
Generating OData Service With Auto-Exposure | SAP Help Portal
Please note that in newer releases of SAP S/4HANA one would use CDS view entities instead of CDS Views (that require to have an additional DDIC structure).
Kind regards,
Andre
2023 Nov 20 9:39 PM
Hi Nikhil,
this all is handled out of the box by the underlying SADL framework when using OData Services using the Referenced Data Source approach as described here:
Referencing a Data Source (sap.com)
and here
Generating OData Service With Auto-Exposure | SAP Help Portal
Please note that in newer releases of SAP S/4HANA one would use CDS view entities instead of CDS Views (that require to have an additional DDIC structure).
Kind regards,
Andre
2023 Nov 23 3:54 AM
2024 Jul 12 9:04 PM
I am using a custom CDS view wrapped with RDS approach implemented to fetch Product Master(API_PRODUCT) & Customer Master(API_BUSINESS_PARTNER) data.
Upon applying the paging($top, $skip) to extract the full load data from the data provider system(S/4 2021), does SADL implement LIMIT & OFFSET during every HTTP request ?
2024 Jul 16 7:28 AM
To be honest, I don't understand your question.
You said that you have built a custom CDS view with RDS. So you should be able to test yourself and see whether $top and $skip are handeld correctly.
I would expect that an RDS based service should do this, if not, this is probably an error and you can raise a ticket.
However it is also not clear for me what you are doing when you write that you have created a custom CDS view to product master API_PRODUCT and customer master API_BUSINESS_PARTNER.
API_PRODUCT and API_BUSINESS_PARTNER are SEGW projects, not CDS views. So I am wondering what your custom CDS view looks like.
Here as always it would help to provide code snippets of what you have developed so it is easier to judge what might have gone wrong here.
Kind regards,
Andre