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

Problem with field type STRING in table

gopalkrishna_baliga
Participant
0 Likes
3,212

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
Read only

Former Member
0 Likes
1,432

try to decalre it of type

<b>LCHR</b>

lchar can hold long chars

Read only

Former Member
0 Likes
1,432

YOu can use the data element: CHAR2000.

Regards,

Ravi

Read only

Former Member
0 Likes
1,432

Hi,

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

Regards

vijay

Read only

0 Likes
1,432

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

Read only

0 Likes
1,432

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

Greetings,

Blag.

Read only

0 Likes
1,432

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

Read only

Former Member
0 Likes
1,432

hi,

take the datatype LCHR.

thanks,

priya.