01-02-2019 5:32 AM
Hi,
We have a requirement, where we have to access data from the different(ERP) system with ABAP CDS View.
How can we achieve this?
Regards,
Khushdeep Singh
01-02-2019 8:10 AM
01-02-2019 1:33 PM
If you need to access remote data from within the CDS view, you can achieve this with help of virtual elements. With the help of IF_SADL_EXIT_CALC_ELEMENT_READ, you can run any custom code within your CDS view to calculate some fields. Your custom code can also access a remote system over RFC or something. For this to work, you need to publish the CDS view as an OData service, though.
03-28-2019 5:53 AM
Hi Kerem,
Thanks for your response.
I have tested your approach and its working fine.
But our requirement is to get data in CDS View only.
Regards,
Khushdeep
02-22-2023 12:02 PM
Hi,
you can expose the data from the CDS view as oData and consume it in a remote abap system.
https://blogs.sap.com/2021/02/08/consume-odata-deep-structure-in-abap/