Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

AMDP exporting problem

hossain_rajib55
Participant
0 Likes
2,419

Hello Expert!!!

Having problem when creating amdp class,Below problem screen short is given could you please help to resolve it.

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
2,312

I think the compilator would like to have a dictionnary element for the type of ET_MARC

Read only

matt
Active Contributor
2,312

Not all the components are elementary (as the error says). One is structured. Look them up to find out which one.

Read only

FredericGirod
Active Contributor
2,312

Ah good point matthew.billingham , WERKS is a structure, you should used WERKS_D

Read only

2,312

Correct, only scalar type can be used in AMDP. WERKS is a structure.

Read only

2,312

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!.

Read only

former_member15471
Participant
0 Likes
2,311

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! 🙂