10-07-2008 10:08 AM
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
10-07-2008 11:01 AM
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 ....
10-07-2008 11:24 AM
hi,
Output length will be 255, so use offset addressing. like for ex: str10(255) str1255(255).
Regards,
Azim.