on 10-02-2012 3:01 PM
Hello Experts,
I need your help for solving an issue. I have to extract data from an open hub. one of ma fields has as properties Character string, Lenght= 25 and conversion routine= ALPHA.
When i do the extraction, in this fields, I have some leading zero in the file ( such as " 000024"), the issue is that I don't want this leading zero.
How Can I Do ???
Hi,
Please use LEFT DELETING LEADING in your transformation (Field routine) to handle leading zero's. Sample code is given below.
DATA: VAR1 TYPE C LENGTH 25.
VAR1 = SOURCE_FIELDS-XYZ.
SHIFT VAR1 LEFT DELETING LEADING '0'.
RESULT = VAR1.
Thanks,
Ranga.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.