08-03-2012 6:30 AM
Hi All,
I have a field which is of type char and length 50.
I have to delete the last 10 charcters of the field and store the same to internal table.
Kindly help me on this.
Thanks,
Neha
Moderator Message: Basic question on string operations. Thread locked.
Message was edited by: Suhas Saha
08-03-2012 6:39 AM
08-03-2012 6:44 AM
hi neha ,
TRY THIS :
parameter : p_char(30) type c.
data : lw_string(30) type c.
lw_string = p_char.
shift lw_string right by 10 PLACES. " Removes last 10 character
condense lw_string. " condensing the space after shifting it to right
WRITE lw_string.
regards ,
Yogendra Bhaskar