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

Convert JSON to CDS file

yemramirezca
Associate
Associate
1,683

Hello,

From the documentation here https://cap.cloud.sap/docs/cds/js-api#cds-compile and the image here https://cap.cloud.sap/docs/cds

I understand that with CAP you can have the parsing from CDS to CSN and CSN to JSON. (cds.compile.to.json (csn) → json). However I'm working on a scenario that requires the other direction. From JSON write the CDS files, is there already a way to achieve this?

Thank you.

View Entire Topic
chgeo
Product and Topic Expert
Product and Topic Expert
0 Kudos

At the moment there is no API to generate CDL (i.e. cds syntax) out of csn/json.

Please note that you can still reference csn files from cds with the normal `using ...` syntax.

gregorw
SAP Mentor
SAP Mentor
0 Kudos
Hi Christian, are they any news to convert csn back to CDS?