cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Include Structure in CAP

former_member643578
Participant
0 Likes
637

Hello...

In ABAP we have include and append structures. I want to achieve the same thing in CAP.

First of all I have type AdditionalFields with 4 fields and i deployed to the sqllite database. After that i added ztest field in AdditionalFields type. I want to replicate the ztest field automatically in database table without using "cds deploy --to sqlite" command. but it is not working. How can i achieve this? Please help me...

Accepted Solutions (1)

Accepted Solutions (1)

gregorw
SAP Mentor
SAP Mentor

Why should it be possible without a cds deploy? Also in ABAP you have to activate your changes so the additional column is created in the database.

Answers (1)

Answers (1)

gauravkr75
Product and Topic Expert
Product and Topic Expert

You can look into the concept of 'Aspects' in CAP model to simulate the ABAP include structure functionality.

https://cap.cloud.sap/docs/cds/cdl#aspects