on 03-12-2024 12:10 PM
Hello experts,
We have a CDS. The problem is that we are in a very low version of ECC, so many options are not available when creating the CDS. The solution was to
My question is: In SE11 – How can I create the table with the structure of the CDS? (Something like include/ append structure). I wish to tie the table's structure to the CDS's structure (For the possibility that one day the structure of the CDS will be change).
Thankyou in advanced
Hagit Samet
You cannot, But you can use an CDS entity in an Abap program TYPES definiton.
"A CDS entity (CDS view, CDS table function, CDS hierarchy, or CDS abstract entity) also represents a structured type and can be used as such in ABAP programs but not in the ABAP Dictionary."
Did you try to create such a small program, that use some RTTI tool to dynamically get the field list of a such defined structure and then update the ddic table definition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The RTTI class wont update ddic objects, you use the returned infomation to update the table definition (using FM such as DD_TABL_GET and DD_TABL_PUT)
(Seems answer was truncated?)
@Raymondthank you for your answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
9 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.