2009 May 13 12:43 PM
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
2009 May 13 12:46 PM
hi ,
How you defined the WA? ave you defined it under tables and refering to table using LIKE ZUP_TEST2.
Please check.
Thanks,
Vamshi
2009 May 13 12:47 PM
Hi,
Is ZUP_TEST2 your dictionalry table?
Also what is the field WA. Is it a workarea or an internal table?
Regards,
Ankur Parab
2009 May 13 12:47 PM
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
2009 May 13 12:51 PM
Hi,
I have defined wa under tables and refering to table using LIKE ZUP_TEST2.
Regards,
H.V.Swathi
2009 May 13 12:55 PM
Define your Code in this way,
DATA :
WA Type standard table of ZUP_TEST2.
2009 May 13 1:24 PM
2009 May 14 5:11 AM
Yes that z table is active.
Regards,
H.V.Swathi
Edited by: H.V Swathi on May 14, 2009 7:22 AM