11-28-2007 3:47 AM
Hi all,
What do we mean by Conversion Routines and exactly where do we use them.
Regards,
11-28-2007 4:55 AM
hi
conversion routines are which changes from display format to sap format and vice versa
As the name goes they are primarly used for converting the values from target variable to source variable.
They are mostly used to store the data differently in database. for this the function modules we use CONVERSION_EXIT_ALPHA_INPUT and CONVERSION_EXIT_ALPHA_OUTPUT which is used to remove or add leading zeros to the data variable before soting the data in the database.
Regards
Nagesh.Paruchuri
11-28-2007 4:58 AM
Hi Somya,
<b>what are conversion routines??</b>
Depending on the data type of the field, there is a conversion when the contents of a screen field are converted from display format to SAP-internal format and vice versa. If this standard conversion is not suitable, it can be overridden by defining a conversion routine in the underlying domain.
Conversion routines are identified by a five-place name and are stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:
CONVERSION_EXIT_xxxxx_INPUT
CONVERSION_EXIT_xxxxx_OUTPUT
The INPUT module converts from display format to internal format, and the OUTPUT module converts from internal format to display format.
<b>When do use them??</b>
If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically when entries are saved in this screen field or when values are displayed in this screen field. The conversion routine of the domain is also triggered when the field contents are output with the WRITE statement.
Thanks,
Vinay
12-04-2007 4:40 AM