‎2007 Dec 14 7:08 AM
How can i extract the Alpha chars from the following string:
eg.
0900000101135ABC
0900000101135DEFG
Is there a std fn mod for extracting ABC and DEFG from the above strings..???
Output
ABC
DEFG
‎2007 Dec 14 7:49 AM
Hi,
You can use : STRING_SPLIT_AT_POSITION function module.
give value of string as the value provided. e.g 0900000101135ABC
give the position as the data size. I assume that the 90.... is a billing document number or a material document number.
So you can give the size as data size of document number,
Regards,
Narayani
‎2007 Dec 14 7:49 AM
Hi,
You can use : STRING_SPLIT_AT_POSITION function module.
give value of string as the value provided. e.g 0900000101135ABC
give the position as the data size. I assume that the 90.... is a billing document number or a material document number.
So you can give the size as data size of document number,
Regards,
Narayani
‎2007 Dec 14 7:56 AM
Hi Naveen
In case you do not find a FM then try this pseudo code...
cnt = 0.
DO 10 TIMES.
replace all occurences of cnt in your string with space. "please chk the right syntax for replace
cnt = cnt + 1.
ENDDO.
condense to remove spaces.
‎2007 Dec 14 8:06 AM
FIND ALL OCCURRENCES OF REGEX '(D*)'
IN '0900000101135ABC' SUBMATCHES s1.
write:/ s1.