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

Getting an error message while trying to use a ZTABLE with TABLES statement

Former Member
0 Likes
1,028

Hi All,

I wanted to use a ZTable with the TABLES statement, but it is throwing an error saying " Ztable must be a flat structure. you cannot use internal tables, strings, references or structures as components."

What might be the reason for this error??

Thanks in advance.

Hi All,

I wanted to use a ZTable with the TABLES statement, but it is throwing an error saying " Ztable must be a flat structure. you cannot use internal tables, strings, references or structures as components."

What might be the reason for this error??

Thanks in advance.

5 REPLIES 5
Read only

Sm1tje
Active Contributor
0 Likes
853

This Ztable, is this a transparent table (structure) or is it a table type?

In case of table type, you should use USING or CHANGING parameter.

Might be better to paste part of your code here, and do not forget to tell how this Ztable is defined (Data dictionary or even local type).

Read only

Former Member
0 Likes
853

the Ztable is a transparent table, and it is a Data dictionary object.

Read only

Sm1tje
Active Contributor
0 Likes
853

So where are you using this TABLES statement?

In a report as data declaration, in a (sub)routine or even in ABAP (local) classes (OO)?

Better past (part of the) code here for better understanding.

Read only

Former Member
0 Likes
853

thanks guys... i got it... i had included a string field in the ztable...

Read only

Former Member
0 Likes
853

Hi Radhika,

Create the table type for the ztables in se11

Regards,

Sravanthi