on 03-22-2006 7:09 PM
Hello All,
I need to trim space from beginning and end of a string.
For example -
astring = ' hello123 '.
I need to get astring as 'hello123'.
Thanks in advance.
Viren
Hello,
Try,
SHIFT ASTRING RIGHT DELETING TRAILING SPACE.
Hope this helps!!
Gabriel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
DATA: ASTRING(50) type c.
p_field = 'Welcome to SAPDev'.
CONDENSE ASTRING NO-GAPS. "ASTRING must be of type character
<i>*Result of p_field would be: 'WelcometoSAPDev'</i>.
Thanks
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Viren,
You can code like this
WRITE ASTRING TO ASTRING NO-GAP.
Hope this will help.
Regards,
Ferry Lianto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you don't want any spaces, then all you have to do is
CONDENSE astring NO-GAPS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.