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

Flat Structure

Former Member
0 Likes
6,886

I have defined a structure "my_structure" in Data Dictionary whose fields are all type string.

In my report I write "TABLE: my_structure."

It's shown this message:

"my_structure" must be a flat structure. You cannot use internal tables, strings, references, or structures as components.

What is wrong?

What can I do to use my_structure?

Simone

1 ACCEPTED SOLUTION
Read only

ak_upadhyay
Contributor
0 Likes
5,035

Hi Simone,

Flat structures contain only fields of the elementary types C, N, D, T, F, I, P, and X, or structures containing these types.

Flat structures contain only elementary data types with a fixed length (no internal tables, reference types, or strings).

In a flat structure, every field either refers to a data element or is directly assigned a data type, length and possibly decimal places.

Try to change ur field type.

Reward points if helpful....

Regards

AK

5 REPLIES 5
Read only

ak_upadhyay
Contributor
0 Likes
5,036

Hi Simone,

Flat structures contain only fields of the elementary types C, N, D, T, F, I, P, and X, or structures containing these types.

Flat structures contain only elementary data types with a fixed length (no internal tables, reference types, or strings).

In a flat structure, every field either refers to a data element or is directly assigned a data type, length and possibly decimal places.

Try to change ur field type.

Reward points if helpful....

Regards

AK

Read only

Former Member
0 Likes
5,035

Hi,

1.You cann't create the domain with Strings.

2.Just create with chars ,dats etc.

Regards,

If helpful reward with points(Don't forget).

Read only

Former Member
0 Likes
5,035

In your structure replace all predefined type strings with some data elemnts like char256.

Read only

Former Member
0 Likes
5,035

hi,

Create domains with char256 instead of string.

this will solve the problem for sure.

reward if useful.

Read only

Former Member
0 Likes
5,035

Hi,

In structure,u have to use the fields that must be defined already.i.e) if u use the matnr the component type is 'matnr' that u defined already in mara table...i am thinking that u cant create ur own component type in structure.i hope it helps.

Thank u,

Manjula Devi.D