Application Development 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: 

Problem with field type STRING in table

gopalkrishna_baliga
Participant
0 Kudos

Hi Experts,

I am new to ABAP. I have created a new transparent table which hold error info. One of the field has to store data of size about 1500 char.

Since CHAR type is not acceptable for this field So I gave STRING type. Now when I try to create a TABLE parameter in a RFC enabled functional module using "LIKE YERROR" Then I get a error:

"YERROR must be a flat structure. You cannot use internal tables, strings, references, or structure as component"

Why is this error? How to resolve it? Is it because I have used a field of type STRING in the table? If this is the problem then what other type can I use?

What are other know problems with using STRING type?

Please help!

Thanks

Gopal

7 REPLIES 7

Former Member
0 Kudos

try to decalre it of type

<b>LCHR</b>

lchar can hold long chars

former_member181962
Active Contributor
0 Kudos

YOu can use the data element: CHAR2000.

Regards,

Ravi

former_member188685
Active Contributor
0 Kudos

Hi,

Try to declare it as type LCHR , it can hold up to 32000 chars.

Regards

vijay

0 Kudos

try Declaring it as <b>LCHR</b>

0 Kudos

Why don't you use TYPE instead of LIKE -;)

Greetings,

Blag.

0 Kudos

FLAT types can be referred only by LIKE and not TYPE....this was the error message....

Former Member
0 Kudos

hi,

take the datatype LCHR.

thanks,

priya.