cancel
Showing results for 
Search instead for 
Did you mean: 

Can types in .cds files be compiled to .hdbtabletype?

SAPSupport
Employee
Employee
141

Hello,

Is there any way to annotate types in .cds files in order for them to be compiled to .hdbtabletypes so we can use them as IN/OUT params in procedures?

Many thanks,

------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Kudos

Hello,

See the following documentation: https://cap.cloud.sap/docs/cds/annotations

Best Regards,
SAP Support

Answers (1)

Answers (1)

patricebender
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

there is no way to generate `.hdbtabletype` with the @sap/cds-compiler.

The chapter on using native SAP HANA Artifacts may be helpful.

Best Regards,

Patrice

former_member748
Participant
0 Kudos

Hello patricetao ,

Do you know if it's planned to be supported in future?

I'm asking because in Neo XS Classic environment the types defined in *.hdbdd files were becoming table types and we could use them to define the type of procedure parameters. The entities which were defined previously in *.hdbdd files can now be defined in *.cds files and they become .hdbtable in Cloud Foundry (CAP with HDI db module).

I know we can directly define the native HANA artifacts .hdbtabletypes under db/src folder, but was wondering if cds compiler will support this feature in future.

Thanks,

Stefania

patricebender
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi stefania-santimbrean,

I spoke to the colleagues in the compiler team. This feature won't be supported in the future.

Best Regards,

Patrice