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

error with string type in ztable

0 Likes
1,113

halo fellow SAPiens,

i have made a Ztable with one of the fields being a string with length 1024.....it is activated.............now when i use it in my program it gives me an error saying "TABLE MUST BE A FLAT STRUCTURE....U CANNOT USE INTERNAL TABLES,STRINGS,REFERENCES OR STRUCTURES AS COMPONENTS"..........

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,024

please make Your data element as

" ->  MAX_SEGM

.. it is char type and has lenght of 8164 ..

which has more than your and accepts the table field of reffering the above field inyou program .

reward points if it is usefull ...

Girish

8 REPLIES 8
Read only

Former Member
0 Likes
1,024

Hi,

Take that as Charecter type then this will work

Regards

Sudheer

Read only

0 Likes
1,024

but char can only be of max size 255..........me want more than tht (1024).............

Read only

0 Likes
1,024

Hello,

Please create a domain and in the definition.........

Data type <b>CHAR</b> Character string

No. characters <b>1024</b>

Decimal places 0

Output length 1024

Then assign this domain to the date element and inturn to the table field of your choice..

Hope the suggestion proved useful

Reward if helpful

Regards

Byju

Read only

0 Likes
1,024

hey it says........."GIVE A VALUE BETWEEN 0-255"..................1024 NOT VALID

Read only

0 Likes
1,024

Hi...

You have to Use the Data type LCHR (Long Character) field for this purpose.

<b>Reward if Helpful.</b>

Read only

0 Likes
1,024

but it only shows a single character....like if i i/p "hallo every body".............it only shows "h" in the o/p i.e. in the table................

Read only

Former Member
0 Likes
1,025

please make Your data element as

" ->  MAX_SEGM

.. it is char type and has lenght of 8164 ..

which has more than your and accepts the table field of reffering the above field inyou program .

reward points if it is usefull ...

Girish

Read only

0 Likes
1,024

hey......MAX_SEGM dint help..............it says............"ENTER A VALID VALUE"