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

FM Error with strings

Former Member
0 Likes
418

Hello World!

Right now, I am creating a function module w/c has this requirement:

Import:

I_PERNR type PERSNO

Export:

E_PERNRDATA LIKE Z_EE_DATA

TABLES:

T_DESC LIKE Z_EE_STR_DESC

Now, when I try to activate this FM, there is an error stating that Z_EE_STR_DESC must be a flat structure. You cannot use IT, strings, ref, or structures as components. The structure of Z_EE_STR_DESC is this:

PERNR type persno

NAME type char30

DESC type string --> this must be a string because this must hold large string data/description. and I think this is the cause of the error. are there any way to do this?

Please advise,

Thanks!

Mrac

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
367

You probably need an lchar data type in that table or, since the use of tables except in remote enabled FM's is obsolete anyway, why not just export the values you need if a single set or create a table type with the lchar and necessary length field and try to use that.

1 REPLY 1
Read only

Former Member
0 Likes
368

You probably need an lchar data type in that table or, since the use of tables except in remote enabled FM's is obsolete anyway, why not just export the values you need if a single set or create a table type with the lchar and necessary length field and try to use that.