abap-file-formats
abap-file-formats copied to clipboard
use `.acds` extension for DDL?
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 ?
//cc: @BeckerWdf is there an easy answer?
File name pattern is
<object_name>.<object_type>.[abap|json|acds|...]
//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.
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.
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
serialization and deserialization in progress, https://github.com/abapGit/abapGit/blob/fcf1674cd8e3069ffdd9325d518f193410745b62/src/objects/tabl/zcl_abapgit_object_tabl_ddl.clas.abap
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.
it will be different file names, so it is possible to determine the parser from the filename
.tabl.something or .what.something
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.