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

FM

Former Member
0 Likes
1,198

Hi Gurus,

What is the purpose of the CONVERSION_EXIT_ALPHA_INPUT FM. At what scenario we have to use this conversion.

Regards

Ravi

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
1,177

hi,

it will converts any number into a string fill with zeroes

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = wf_version
            IMPORTING
              output = wf_version.


Example:

input = 123 
output = 0000000000000...000000000000123

Rgds

Anversha

9 REPLIES 9
Read only

anversha_s
Active Contributor
0 Likes
1,178

hi,

it will converts any number into a string fill with zeroes

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = wf_version
            IMPORTING
              output = wf_version.


Example:

input = 123 
output = 0000000000000...000000000000123

Rgds

Anversha

Read only

Former Member
0 Likes
1,177

hi

<b>CONVERSION_EXIT_ALPHA_INPUT</b> - converts any number into a string fill with zeroes-right

example:

input = 123

output = 0000000000000...000000000000123

CONVERSION_EXIT_ALPHA_OUTPUT - converts any number with zeroes-right into a simple integer

example:

input = 00000000000123

output = 123

regards

ravish

<b>plz reward points if helpful</b>

Read only

Former Member
0 Likes
1,177

Hi,

The FM is used for putting leading zeroes to the value passed as input.

The scenario can be..Lets say if you get a sales order number 2390 in a file..

If you use a select using this number...You may not get a record..

Instead you to convert to 0000002390 to select the record...

Thanks,

Naren

Read only

Former Member
0 Likes
1,177

Hi

Conversion exit ALPHA, external->internal

ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.

Example:

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

1. '1234 ' --> '00001234'

2. 'ABCD ' --> 'ABCD '

3. ' 1234 ' --> '00001234'

Regards,

Raj

Read only

former_member225631
Active Contributor
0 Likes
1,177

It converts the value of a field as in data base from output format.

for example if vbeln = '11' it will change to '0000000011'.

Read only

Former Member
0 Likes
1,177

Hi Ravi,

Check this info.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = wf_version

IMPORTING

output = wf_version.

Example:

input = 123

output = 0000000000000...000000000000123

Regards

Read only

0 Likes
1,177

dear ravi,

whats the difference betwwen nagraj answer and my answer.

Be a good player in SDN!

Rgds

Anver

Read only

0 Likes
1,177

Hi Anversha,

Sorry for that. Its mistaken. Some times it will happen.

Thanks

Ravi

Read only

0 Likes
1,177

Hi Ravi,

Its Ok, i just mentioned only.

Regards

Anversha