2009 Dec 11 4:19 AM
Can someone explain what are the conversion routines are for?
thanks.
2009 Dec 11 4:46 AM
hi,
conversion takes place when converting the contents of a screen field from display format to SAP-internal format and vice versa and when outputting with the ABAP statement WRITE, depending on the data type of the field.
if standard conversion is not suitable, it can be overridden by specifying a conversion routine in the underlying domain.
A conversion routine is identified by its five-place name and is 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 performs the conversion from display format to internal format. The OUTPUT module performs
the conversion from internal format to display format.
If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically each time an entry is made in this screen field or when values are displayed with this screen field.
hope this will surely help you !!!
Thanks & Regards,
Punit Raval.
2009 Dec 11 5:19 AM
Hii,
Covversion routines are used to convert from external display format to internal storage format and vice-versa. Requirement of these conversion routines is due to vast increase in the number of different values to be stored in the database for a particular domain.
for example:
domain for the language field spras is char data type length 1.
Internally it is stored as single character field but for for external display it displays corresponding lang.
Search in SDN u will get a lot of material on it.
Regards,
archana
2009 Dec 11 6:50 AM
see this sap help
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee19446011d189700000e8322d00/frameset.htm
From next time please do search the forums once before posting a question.
кu03B1ятu03B9к
2009 Dec 11 8:26 AM
Hi,
Check with the followng links
[Conversion routines|http://help.sap.com/saphelp_nw04/helpdata/en/2b/e9a20d3347b340946c32331c96a64e/content.htm]
[How to use conversion routine for a field|http://wiki.sdn.sap.com/wiki/display/Snippets/Howtofindaconversionroutineforany+field.]
Hope this helsp you.
Regards,
Rajani