‎2007 Apr 20 7:37 AM
Hi ,
Is their any function module available to split alphabets and number from a given string?
Thanks.
‎2007 Apr 20 7:52 AM
do like this.
data : text(40) type c value 'as1232ws5r',
num(20),
chr(20),
pos type i,
len type i,
dat.
len = strlen( text ).
do len times.
dat = text+pos(1).
if dat ca sy-abcde.
concatenate chr dat into chr.
elseif dat ca '0123456789'.<or you can use else>
concatenate num dat into num.
endif.
pos = pos + 1.
enddo.
regards
shiba dutta
‎2007 Apr 20 7:54 AM
Check for each character one by one with CA '0123456789' & then get it in different variable.
sandeep