09-04-2008 2:56 PM
experts,
can we padd up spaces to a value which is less than its
declared length ,if so ,how.
ex : val type char10.
val = 'ABCDE'.
if i use strlen ( val ) it should return me 10.
how to solve the above problem.
thanks in advance.
09-04-2008 3:00 PM
REPORT ZTEST_LENGTH.
data: str(10).
data: len type i.
str = 'ABC'.
describe field str LENGTH len IN CHARACTER MODE.
write len.
09-04-2008 3:08 PM
hi babu,
if we take your example,
when we use
write 😕 str = 'ABC'.
a list gets generated, now when i click on ABC ,
all the value ie of length 10 should be highlighted together.
how to do that.
thanks in advance.
09-04-2008 3:14 PM
Hi,
Check this.
DATA: var1(10) TYPE c VALUE 'ABC'.
WRITE:/1 var1.
SHIFT var1 RIGHT DELETING TRAILING space.
WRITE:/1 var1.
Thanks,
Vinod.
09-04-2008 3:15 PM
09-04-2008 3:15 PM
09-04-2008 3:26 PM
hi babu,
if i use
write:/ str right-justified
str gets printed right side,that's not the case.
ABC should be left alligned along with the spaces
concatenated to the right . and when i place the cursor
the total length of the field should be highlighted.
thanks in advance.
09-04-2008 3:00 PM
Use
CONVERSION_EXIT_ALPHA_INPUT
and then check whether you are getting the correct value..