11-21-2007 6:28 AM
11-21-2007 6:30 AM
Hi,
Conversion routines are the routines which convert the data from external sap format to sap format and vice-versa.
regards,
Santosh thorat
11-21-2007 6:32 AM
For any field like sales order length is 10 characters.
If u enter sales order 3456, then it means u r entering 4 characters, it has to convert into 10 characters with 0s like 0000003456.
sap takes 3456 as 0000003456.
while displaying it converts from 0000003456 to 3456
for this we need conversions
11-21-2007 6:34 AM
Hi,
A conversion routine conv is represented by two function modules that adhere to the naming convention CONVERSION_EXIT_conv_INPUT|OUTPUT. In these function modules, no statements can be executed that interrupt the program flow or end a SAP LUW. A conversion routine can be assigned to a domain in the ABAP Dictionary. If a screen field refers to a domain with a conversion routine, the system automatically executes the function module ..._INPUT for every input in the relevant screen field and the function module ..._OUTPUT when values are displayed in this screen field and uses the converted content in each case. If a data object refers to such a domain, the function module ..._OUTPUT is executed for the output of the data object in a list and the converted content is displayed.
Also check this Link
http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21ee19446011d189700000e8322d00/content.htm
A function module which convert the internal representation of a field into its external representation(Depending upon the user settings) and vice versa.
Example :
data : auart like vbak-auart.
auart = 'TA'.
CALL FUNCTION 'CONVERSION_EXIT_AUART_INPUT'
EXPORTING
input = auart
IMPORTING
OUTPUT = auart.
write:/ auart.
reverse it with 'CONVERSION_EXIT_AUART_OUTPUT'
Check the below link :
http://help.sap.com/saphelp_nw2004s/helpdata/en/07/d63a68db9110459d63c495b16f522e/frameset.htm
Reward if helpful.
Regards,
Harini.S