Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

fuction module

Former Member
0 Likes
433

Hi experts,

Plz tell is there any fucton module which converts SPACE or BLANK as ZERO'S.

Thanks and regards

vinay

3 REPLIES 3
Read only

Former Member
0 Likes
418

Hi,

You can use translate..

Example

DATA: V_CHAR(10) VALUE '1212 9 '.

TRANSLATE V_CHAR USING ' 0'.

Thanks,

Naren

Read only

Former Member
0 Likes
418

Hi,

Instead of Function Module, u can use REPLACE command.

REPLACE ALL OCCURENCES OF ' ' IN STR WITH '0'.

This will work fine.

Regards,

Himanshu

Read only

Former Member
0 Likes
418

to replace the leading zeroes with space, use this

CONVERSION_EXIT_ALPHA_INPUT.


or ,

use TRANSLATE V_CHAR USING ' 0'.