cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a custom internal table along with CDS data in ALV

archana_a2
Participant
0 Kudos

Hi All,

I need to display CDS view data along with an internal table data.

Generally to display CDS view as an ALV we use cl_salv_gui_table_ida=>create_for_cds_view and populate the field catalog and set the view parameter values.

How do we append an internal table data along with the CDS view data and display in a siingle ALV.

Kindly guide. Thanks in advance for your valuable information.

Thanks & Regards,

Archana A

maheshpalavalli
Active Contributor
0 Kudos

Any reason why you want to append the data seperately?

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor
0 Kudos

Hi Archana A,

It is not possible to do that as alv is tightly integrated to the CDS view..

What you can do is union between those two tables, which will solve your issue.

https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abencds_f1_union.htm

BR,

Mahesh

Answers (2)

Answers (2)

shanthi_bhaskar
Active Contributor
0 Kudos

if you are using the AMDP coding then you can use the Union

archana_a2
Participant
0 Kudos

Hi Mahesh,

Yes, business requirement is as such that we need to append a custom table data which will have historic data along with CDS data which will have current data. Aggregating both data as per our requirement is not possible in CDS. So is there any way to append the CDS data along with an internal table data and display in alv.

Thanks a lot for your help Mahesh!!