abap-file-formats icon indicating copy to clipboard operation
abap-file-formats copied to clipboard

use `.acds` extension for DDL?

Open larshp opened this issue 1 year ago • 8 comments

TABL objects are defined in DDL in Eclipse, https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/abenddicddl_define_table.htm

given

define table demo_blob_table {
  key name : abap.sstring(255) not null;
  picture  : abap.rawstring(0);
}

would the ddl file for this be named demo_blob_table.tabl.acds ?

larshp avatar Dec 10 '23 13:12 larshp

//cc: @BeckerWdf is there an easy answer?

File name pattern is <object_name>.<object_type>.[abap|json|acds|...]

albertmink avatar Dec 14 '23 10:12 albertmink

//cc: @BeckerWdf is there an easy answer?

File name pattern is <object_name>.<object_type>.[abap|json|acds|...]

Data Defintions (DDLS) uses ddls.acds. See https://github.com/SAP/abap-file-formats/tree/main/file-formats/ddls

So I also would says that TABLs also use the CDS syntax so .tabl.acds would be ok from my point of view.

BeckerWdf avatar Dec 14 '23 10:12 BeckerWdf

TABL objects are defined in DDL in Eclipse, https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/abenddicddl_define_table.htm

Don't confuse the term "Data Definition Language" (DDL) with the object type "CDS Data Definition" (DDLS) though.

BeckerWdf avatar Dec 14 '23 10:12 BeckerWdf

https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abencds_ddl_glosry.htm

Dictionary DDL is based on the syntax of CDS DDL in ABAP CDS.3

https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/abencds_ddl_glosry.htm

The data definition language of ABAP CDS

I'm not really sure what it means, but seems like DDL and ABAP CDS is related somehow

larshp avatar Dec 17 '23 10:12 larshp

serialization and deserialization in progress, https://github.com/abapGit/abapGit/blob/fcf1674cd8e3069ffdd9325d518f193410745b62/src/objects/tabl/zcl_abapgit_object_tabl_ddl.clas.abap

larshp avatar Jan 04 '24 13:01 larshp

Currently, different parsers are used for CDS and TABL. This might have an impact on the decision of the file extension. I have involved further colleagues to get insights here.

schneidermic0 avatar Jan 12 '24 08:01 schneidermic0

it will be different file names, so it is possible to determine the parser from the filename

.tabl.something or .what.something

larshp avatar Jan 12 '24 09:01 larshp

I know some registrations which use only the last extension (in your case .something) for registration. But you are right. At least the implementation should be capable to distinguish between .tabl.something and .what.something.

schneidermic0 avatar Jan 12 '24 15:01 schneidermic0