on 06-20-2007 8:19 PM
Hi all,
I'm trying to extract data from a field that contains hyphens. I want the data to the right of the hyphen only. This data can be different lengths.
Sample data:
0105-GROC
0890-PHARMA
In the above samples, I want to extract GROC in the first, PHARMA in the second.
Any suggestions?
Thanks
Charla
If the no of characters to theleft is constant, then you can use offset to trim them off and get only the chars to the right of hypen.
Ravi Thothadri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Charla,
Try this one. The syntax given above is wrong because of the ":".
DATA: leftstr TYPE string,
rightstr TYPE string.
* Please replace <your field here with the field from your trans structure>
SPLIT trans_structure-<your field here> AT '-' INTO leftstr rightstr.
RESULT = rightstr.
Hope this helps.
You must be secure that your transfer rules are activated....
And Check if theres any initial routine that could filter some values.....
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.