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

CONVERSION_EXIT_ALPHA_INPUT

Former Member
0 Likes
509

Hi,

How does FM Determine how many leading 0's to add coz I dont see an import export param for that.

I have a field which is char(17). Now from the input field value I want to add leading 0's.

How can this be done? Please advice.

Thanks,

CD

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
456

it will always add so many, that the field will be to its full length. in the specific case the field will be 17 characters long, so if currently contains 123, than it will get 14 zeros

3 REPLIES 3
Read only

former_member156446
Active Contributor
0 Likes
456

hi there

ur field is 17 charac .. think you have 4 charracters input the rest will be filled by zeros...

17 - 4 = 13 no. of zeros.

writing a small sample code.. would have been more useful to u..

Edited by: J@Y on Dec 19, 2008 10:05 AM

Read only

JozsefSzikszai
Active Contributor
0 Likes
457

it will always add so many, that the field will be to its full length. in the specific case the field will be 17 characters long, so if currently contains 123, than it will get 14 zeros

Read only

Former Member
0 Likes
456

Why Don't you bother to read Documentation of FM?

Well enough information with good example is already there!!

Example:

(Input field and output field are both eight characters in length)

1. '1234    ' --> '00001234'
2. 'ABCD    ' --> 'ABCD    '
3. ' 1234   ' --> '00001234'