cancel
Showing results for 
Search instead for 
Did you mean: 

Call ABAP Program from AMDPs

shilpas
Explorer
0 Kudos

Hi Experts

I have been trying to understand if we can call an ABAP program from AMDP or any other feature provided in the latest S/4 HANA version.

Can find a lot blogs to call a procedure or CDS view from ABAP but I am looking for a solution to do the vice versa.

Requirement is - there is a complex ABAP program logic which finally populates entries into a custom table, we want to leverage this logic and build a CDS view on top of it so that it can be exposed to the Analytics. So, we should be able to trigger this ABAP program as and when required.

Please pour in your inputs, will be happy to add more details if needed.

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayCR
Active Contributor
0 Kudos

Hello Shilpa,

I am not sure if you understood the purpose of CDS view or AMDP its to optimize the way you access the data with code push down functionality.

Why do you want to call a program from CDS or AMDP.

Instead replace the complex ABAP logic into CDS views call them in your program to simplify your logc.

Thanks,

Vijaya Simha Chintarlapalli Reddy

shilpas
Explorer
0 Kudos

Understand the CDS/AMDP advantage Vijaya, but this is just a one of kind of requirement which we have.

The logic inside the ABAP program is pretty extensive and tough to replicate, so am looking for options to leverage it rather than do the logic from scratch.

VijayCR
Active Contributor
0 Kudos

I dont think you can write any ABAP coding inside the CDS views or the AMDP class method implementation.

But you can try this ADBC, Stored Procedure here you can mix abap and SQL script.

https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abenadbc_procedure_abexa.htm

VijayCR
Active Contributor
0 Kudos

Did you find any solution for this ?