07-15-2008 3:02 PM
Hi Abapers,
I want to delete the last character of my workarea and then store into table.
The workarea says that it is FAX|
I have to remove the last character.
How to do tht.
Please reply.
Thanks
07-15-2008 3:03 PM
hi use the offset values
data: test type string value '1234'.
write:/ test+0(3).
07-15-2008 3:03 PM
hi use the offset values
data: test type string value '1234'.
write:/ test+0(3).
07-15-2008 3:06 PM
07-15-2008 3:06 PM
hiii
you can remove the last character by using OFFSET...take all work area data in one variable..suppose you have it like
w_var(10) type c.
w_var = wa_itab.
w_var+0(10) = ' '.
it will remove last character & will make it as space.
regards
twinkal.
07-15-2008 3:07 PM
hi,
Try this.
len = strlen (string).
subtract 1 from len.
substr = string+0(len).
Store Substr into the table.
Regards
Sumit Agarwal
07-15-2008 3:10 PM
hi rahul,
before storing in Internal table, do sumthing like;
length = strlen(wa-field)
length = length - 1.
wa-field = wa-field+0(length).
clear lenght
With luck,
Pritam.
07-15-2008 3:11 PM
hi
do this in following way
frist find the String length
let it will be
w_str = 'sdn is wonderfull'
now use.
w_len = strlen(w_str) .
now
w_result = w_str+0(w_len - 1).
Cheers
Snehi
07-16-2008 10:57 AM