05-25-2006 3:31 PM
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
05-25-2006 3:33 PM
05-25-2006 3:33 PM
05-25-2006 3:34 PM
Hi,
Try to declare it as type LCHR , it can hold up to 32000 chars.
Regards
vijay
05-25-2006 3:36 PM
05-25-2006 5:24 PM
05-11-2010 11:05 AM
FLAT types can be referred only by LIKE and not TYPE....this was the error message....
05-25-2006 3:36 PM