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

Reading Textpool

Former Member
0 Likes
895

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
703

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

4 REPLIES 4
Read only

Former Member
0 Likes
704

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

Read only

0 Likes
703

Hi,

It's not considering maximum length for LENGTH, but is fetching defined length.

Read only

Former Member
0 Likes
703

Hi Ed,

Thanks a lot. You are right.

Read only

Former Member
0 Likes
703

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'.