09-26-2013 1:31 PM
Hi All,
I need to store more than 255 characters in a database table. So I changed the table field from character to string. But when I am referencing that table in programs I am receiving following error
"**************" must be a flat structure. You cannot use intern
strings, references, or structures as components. ."
Please suggest how to resolve this issue.
09-26-2013 1:52 PM
09-26-2013 2:35 PM
Hi Steven,
Is CHAR_512 is data type or Data element. Will that store upto store 512 characters? I want to store more than 1000 characters. Please suggest
09-26-2013 1:52 PM
You need to create a data element with type String and use in table that Data element then this kind of error won't be there.
09-26-2013 1:52 PM
Hi,
You can create the domain like CHAR255 instead of declaring it as a string.
Thanks
Pavan.N
09-26-2013 1:53 PM
09-26-2013 1:54 PM
What is the longest data you can conceive of needing to store?
Neal
09-26-2013 2:36 PM
09-26-2013 3:31 PM
Hi,
is possible to create a field in data table with predefined type equal STRING.
Regards.
09-26-2013 3:45 PM
Hi,
You can use fields in tables of type string, however you cannot use them in key fields, nor can you use them in a where condition.
Check the sap help for more info about data type string
Kind regards, Rob Dielemans
09-26-2013 3:51 PM
09-27-2013 3:53 PM
Hi Rob,
The field which I declared as string is not a key field.But when I am referencing that field in programs,For example(Declaring field string TABLES : ZTEST). I am getting below error.
"ZTEST" must be a flat structure. You cannot use intern
strings, references, or structures as components. ."
09-30-2013 9:12 AM
Hi,
I believe tables is obsolete try the following
data ztest type ztest.
this should create a structure like your database table.
Kind regards, Rob Dielemans
10-08-2013 7:05 PM
Hi Rob,
When I change from tables:ztest to data: ztest type ztest. I couldn't see any error. Is there any difference between these two statements? Can I replace tables ztest with data ztest type ztest in my program. Kindly let me know.
Thanks,
Gowri.
10-09-2013 9:10 AM
I don't know when the ABAP gets compiled for runtime what exactly the differences are. But you should just look in the help on the tables statement. It has become obsolete and you can't use it in classes. (CTRL+F8 in abap editor and then type tables)
10-09-2013 12:49 PM
Gowrinath,
I'd really like to know what your final solution to this was...
Neal