‎2019 Nov 12 9:18 AM
Hello Expert!!!
Having problem when creating amdp class,Below problem screen short is given could you please help to resolve it.

‎2019 Nov 12 9:35 AM
I think the compilator would like to have a dictionnary element for the type of ET_MARC
‎2019 Nov 12 10:05 AM
Not all the components are elementary (as the error says). One is structured. Look them up to find out which one.
‎2019 Nov 12 12:09 PM
Ah good point matthew.billingham , WERKS is a structure, you should used WERKS_D
‎2019 Nov 12 12:16 PM
Correct, only scalar type can be used in AMDP. WERKS is a structure.
‎2019 Nov 12 2:31 PM
Hello, good morning, when you declare the TY_GRN structure, you must declare the werks column as type WERKS_D, since WERKS is the structure and WERKS_D the data element. Good Luck!.
‎2020 Apr 08 1:38 PM
Hi Rajib,
In the TYPES of your code, you need to consider the data element of the domain that you are trying to use.
In your case, you have to change the type of WERKS to WERKS_D.

I tried to replicate that which seems to work fine.:

There is no error now!
Thanks! 🙂