Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Table from Different ABAP system in ABAP CDS View

Khushdeep
Explorer

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

4 REPLIES 4

matt
Active Contributor

That's nice. And...?

keremkoseoglu
Contributor

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.

0 Kudos

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

ThorstenHoefer
Active Contributor
0 Kudos

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/