on 2012 Apr 17 3:19 PM
Hi
I have one variable X whose value is 'LONDON'.I have one other variable Y whose value should be first letter of X.
So Y=L
I wrote ABAP statement Y=X + 0(1) but its not working.How to do this?
Thanks.
Hi Simon,
DATA:
x TYPE C LENGTH 10,
y TYPE C LENGTH 1.
x = 'LONDON'.
CONDENSE x.
y = X(1).
Then y becomes 'L'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Simon,
SHIFT X LEFT DELETING LEADING SPACE.
Y = X+0(1).
If X is stored as e.g. CHAR10, then it may look like ' LONDON'.
BR
Ondrej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.