‎2009 Mar 18 2:07 AM
Hi all,
I am facing a problem with READ TEXTPOOL...
DATA: BEGIN OF t_pool OCCURS 0.
INCLUDE STRUCTURE textpool.
DATA: END OF t_pool.
PARAMETERS: p_repid LIKE trdir-name,
READ TEXTPOOL p_repid INTO t_pool LANGUAGE syst-langu.
In text elements we have ordinary length and maximum length. Now, as TEXTPOOL structure has no maximum length, t_pool is getting only ordinary length and hence when I create textelements through t_pool, it's giving even maximum length same as ordinary length.
I need to fetch both ordinary and maximum lengths as provided in the program. Is there any way to so that?
Thanks a lot.
‎2009 Mar 18 5:15 PM
The READ TEXTPOOL gives back the maximum length in the field LENGTH.
You can calculate the actually used length by inspecting the string value in field ENTRY.
best wishes
Ed
‎2009 Mar 18 5:15 PM
The READ TEXTPOOL gives back the maximum length in the field LENGTH.
You can calculate the actually used length by inspecting the string value in field ENTRY.
best wishes
Ed
‎2009 Mar 19 1:54 AM
Hi,
It's not considering maximum length for LENGTH, but is fetching defined length.
‎2009 Mar 19 2:03 AM
‎2009 Mar 19 2:30 AM
hi
se38->text elements->change
you can see one text has two length of it. one is 'dlen' that is definition of it and you can not edit it, the secondary is 'mlen' that is maximum of current text and you can set value of it 1<= current text<=132.
when you use 'READ TEXTPOOL' , you can get length of ENTRY. THIS LENGTH is 'mlen'.