cancel
Showing results for 
Search instead for 
Did you mean: 

How to add fetch multiple lines of record from a CDS view in a BADI and show it in adobe form

Sampath4
Explorer
0 Kudos
114

In SAP Public cloud, I want to fetch multiple lines of record from a CDS VIEW inside a BADI and then show those values in a table inside adobe form. The problem is, the BADI executes only once, and I am able to fetch only one record at a time and show it in the adobe form, what I need is to fetch multiple records at once and display them all in the adobe form template

View Entire Topic
Maciej__Galica
Explorer
0 Kudos

Hello @Sampath4 ,

I dont think there is a straight forward approach. However you can create a custom field and add the field to the odata service in the form at Line item level and find an enhancement that triggers at item level and adjust/validate with custom logic inside your BADI. Also make sure to disable the usage where its not necessary to avoid any inconsistencies.