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: 

Using SAP Standard program in ABAP CDS View

3,317

Hi,

Is it possible to call a standard SAP program from ABAP CDS view? Could anyone please advise how that can be done if possible?

Regards,

Tejaswini

1 ACCEPTED SOLUTION

former_member527468
Participant
459

Hi Tejaswini,

Its not possible to access ABAP reports from CDS views. We had also come across such situations where we wanted to use ABAP function modules in our CDS. However, since it is not possible, we ended up decoding the FM logic and implementing it in a table function and used it in our CDS view.

Thanks,

Ajith

8 REPLIES 8

former_member527468
Participant
460

Hi Tejaswini,

Its not possible to access ABAP reports from CDS views. We had also come across such situations where we wanted to use ABAP function modules in our CDS. However, since it is not possible, we ended up decoding the FM logic and implementing it in a table function and used it in our CDS view.

Thanks,

Ajith

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos
459

Just think a little about CDS and answer the question yourself.

Former Member
459

NO you can not call another program from inside a CDS. It is meant for building complex data calculation and consumption views with added features extended via the annotations as in case of CDS based Fiori app development but calling a program like we do in normal ABAP with CALL Tx or SUBMIT are not it's intention.

0 Kudos
459

wow what a answer

Srbh93
Explorer
459

Understand that in basic terms, ABAP CDS view is just a SELECT Query with few advance functions and not the actual editor for writing complex logic hence it cannot be used to call anything.

former_member189849
Contributor
459

HI can we do looping in CDS view or can we call the class and methods in CDS view?

0 Kudos
459

Can we do complex calculations in CDS view, if yes please provide sample logic or links.