08-31-2016 9:55 AM
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
09-01-2016 5:41 PM
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
09-02-2016 6:46 AM
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
09-02-2016 6:49 AM
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
09-02-2016 11:06 AM
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
09-14-2016 9:04 AM
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
07-22-2022 3:16 PM
try CDS virtual element then in a method class you can call a FM.