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: 

Use of ABAP Functional Module in ABAP CDS Views

Former Member
0 Kudos

Hello All,

In our operational BW reports which are based on ABAP CDS Views created in S4HANA System, we need to use functional module to populate few fields in the ABAP CDS View.


Can you please let us know if this is feasible else suggest an alternate solution.


Regards,

Purnima

6 REPLIES 6

pfefferf
Active Contributor
0 Kudos

Hello Purnima,

it is not possible to use an ABAP function module in a CDS view.

Depending on what you need to do (what is unknown so far ) there are different options.

Regards,

Florian

Former Member
0 Kudos

Hello Florian,

The requirement is to populate few fields in the CDS view for which the functional logic includes usage of standard ABAP Functional Module.

Regards,

Purnima

pfefferf
Active Contributor
0 Kudos

As I said it is not possible to use ABAP function modules for that.

"Populating field" can mean different things. Do you have an example.

If it is not possible using "standard CDS mechanisms" maybe things like CDS Table functions etc. can help.

Regards,

Florian

amol_samte
Contributor
0 Kudos

Hello Pornima,

If you must want to populate some fields from FM then you required to decode the logic into a feasible way to fit into CDS.

1. You can decode  logic(like tables, joins, conditions etc) and incorporate in CDS view.

2.If logic is too complicated you can built it into a HANA view and later you can create a external view and can be used in CDS(thus complex process.. but workable)...

-Amol S

Message was edited by: Amol Samte

Former Member
0 Kudos

Depends on the scenario, you probably can use CDS with parameters where FM to be used on AS ABAP and calculated values can be passed to CDS or vice versa

Thanks,

Sumit

MauriSoberanes
Explorer
0 Kudos

try CDS virtual element then in a method class you can call a FM.