Application Development 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: 

string

Former Member
0 Kudos

I have 10 records in my table and i am displaying in a single row

ex: 2 3 hello

4 7 idiididi

o/p

2 7 hello ididiidii

in my scenario i have more than 255 characters.

in my function module i have created a structure where i have a field with 2500 characters

and in function module m y final internal table is also having same 2500 characters

ex:zchar type zlchar-> this is of 2500 characters

but in internal table it is taking only 255 characters

and if iam declaring as string the same problem.

Please reply if any body is aware of this

regards

jansi

2 REPLIES 2

Former Member
0 Kudos

Hi ,

its taking 2500 characters ...

i tried this with the folllowing codes ... check that once

data : b TYPE i VALUE 0,

c(2500) TYPE c .

WHILE 1 = 1.

CONCATENATE 'a' c INTO c .

add 1 to b .

if b > 2500 .

BREAK-POINT.

exit.

ENDIF.

ENDWHILE.

WRITE : / c .

CLEAR b.

FIND ALL OCCURRENCES OF 'a' in c in CHARACTER MODE match COUNT b .

WRITE:/ b .

here i got 2500 in variable b ....

hope this will help ....

Former Member
0 Kudos

hi,

Output length will be 255, so use offset addressing. like for ex: str10(255) str1255(255).

Regards,

Azim.