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

ZUP_TEST must be flat structure.

Former Member
0 Likes
2,604

Hi,

I am new to ABAP. I am trying to create one function module. I ahve written this code inside that

DATA CNT TYPE I.

SELECT * FROM ZUP_TEST2 CLIENT SPECIFIED

INTO TABLE WA.

But while checking that i am getting this error

"ZUP_TEST2" must be flat structure.you cannot use internal tables, strings, references, or structures as components

Regards,

H.V.Swathi

Hi,

I am new to ABAP. I am trying to create one function module. I ahve written this code inside that

DATA CNT TYPE I.

SELECT * FROM ZUP_TEST2 CLIENT SPECIFIED

INTO TABLE WA.

But while checking that i am getting this error

"ZUP_TEST2" must be flat structure.you cannot use internal tables, strings, references, or structures as components

Regards,

H.V.Swathi

7 REPLIES 7
Read only

Former Member
0 Likes
1,134

hi ,

How you defined the WA? ave you defined it under tables and refering to table using LIKE ZUP_TEST2.

Please check.

Thanks,

Vamshi

Read only

Former Member
0 Likes
1,134

Hi,

Is ZUP_TEST2 your dictionalry table?

Also what is the field WA. Is it a workarea or an internal table?

Regards,

Ankur Parab

Read only

Former Member
0 Likes
1,134

is ZUP_TEST a custom table created in dictionary ( Database )?

If yes,

Then, You need to define first

TABLES: ZUP_TEST. and then start your coding

Read only

0 Likes
1,134

Hi,

I have defined wa under tables and refering to table using LIKE ZUP_TEST2.

Regards,

H.V.Swathi

Read only

0 Likes
1,134

Define your Code in this way,

DATA :

WA Type standard table of ZUP_TEST2.

Read only

0 Likes
1,134

Hi,

Is the Z table active?

Regards,

Ankur Parab

Read only

0 Likes
1,134

Yes that z table is active.

Regards,

H.V.Swathi

Edited by: H.V Swathi on May 14, 2009 7:22 AM