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 using CONVERSION_EXIT_ALPHA_INPUT

Former Member
0 Likes
4,021

Hi all ,

When i am using BAPI_SALESORDER_CREATEFROMDAT2 , i got to know for some fields i have to use

CONVERSION_EXIT_ALPHA_INPUT for getting correcting value .

Why we use CONVERSION_EXIT_ALPHA_INPUT and for what fields we use this , Since when i gone thru the

Return (bapiret2) i got to know this .

can u explain Please .

Points will be rewarded

Thanks

Raj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,044

Hi,

just to understand the concept let me givbe an example. Go to se11-->mara->Double click ob field type MATNR which will take you to the domain MATNR->Double click on Domain MATNR. Now under 'Output Charasteristic' take note of conversion routine where MATN1 is visible. Just double click on it Which will display 2 routines CONVERSION_EXIT_MATN1_INPUT & OUTPUT. So whenever there is a routine present at the domain level for all those fields you will have to use the CONVERSION_EXITS. Conversion Exit INPUT is to convert the data keyed in by the user or coming from flat file input into a foramt which is used to stote this in SAP. CONVERSIONEXIT_MATN1_OUTPUT will be to display the values after converting it from SAP Internal format

I hope this clarifies the matter,

Regards

Raju Chitale

3 REPLIES 3
Read only

Former Member
0 Likes
2,044

Hi

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'

Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.

Regards,

Abhishek

Read only

mvoros
Active Contributor
0 Likes
2,044

Hi,

check documentation for CONVERSION_EXIT_ALPHA_INPUT in SE37. It is well described there. Basically you have to use it for all document number fields because doc number '123' is not same as '00123'. This was just simple example.

Cheers

Read only

Former Member
0 Likes
2,045

Hi,

just to understand the concept let me givbe an example. Go to se11-->mara->Double click ob field type MATNR which will take you to the domain MATNR->Double click on Domain MATNR. Now under 'Output Charasteristic' take note of conversion routine where MATN1 is visible. Just double click on it Which will display 2 routines CONVERSION_EXIT_MATN1_INPUT & OUTPUT. So whenever there is a routine present at the domain level for all those fields you will have to use the CONVERSION_EXITS. Conversion Exit INPUT is to convert the data keyed in by the user or coming from flat file input into a foramt which is used to stote this in SAP. CONVERSIONEXIT_MATN1_OUTPUT will be to display the values after converting it from SAP Internal format

I hope this clarifies the matter,

Regards

Raju Chitale