2007 Apr 03 5:42 AM
Hi experts,
Plz tell is there any fucton module which converts SPACE or BLANK as ZERO'S.
Thanks and regards
vinay
2007 Apr 03 5:43 AM
Hi,
You can use translate..
Example
DATA: V_CHAR(10) VALUE '1212 9 '.
TRANSLATE V_CHAR USING ' 0'.
Thanks,
Naren
2007 Apr 03 5:44 AM
Hi,
Instead of Function Module, u can use REPLACE command.
REPLACE ALL OCCURENCES OF ' ' IN STR WITH '0'.
This will work fine.
Regards,
Himanshu
2007 Apr 03 5:45 AM
to replace the leading zeroes with space, use this
CONVERSION_EXIT_ALPHA_INPUT.
or ,
use TRANSLATE V_CHAR USING ' 0'.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |