Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use .acds extension for DDL? #575

Open
larshp opened this issue Dec 10, 2023 · 8 comments
Open

use .acds extension for DDL? #575

larshp opened this issue Dec 10, 2023 · 8 comments

Comments

@larshp
Copy link
Collaborator

larshp commented Dec 10, 2023

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 larshp changed the title use .acds extension for ddl? use .acds extension for DDL? Dec 10, 2023
@albertmink
Copy link
Contributor

albertmink commented Dec 14, 2023

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

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

@BeckerWdf
Copy link
Contributor

//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
Copy link
Contributor

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.

@larshp
Copy link
Collaborator Author

larshp commented Dec 17, 2023

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
Copy link
Collaborator Author

larshp commented Jan 4, 2024

@schneidermic0
Copy link
Contributor

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.

@larshp
Copy link
Collaborator Author

larshp commented Jan 12, 2024

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

.tabl.something or .what.something

@schneidermic0
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants