Application Development 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: 

Conversion Routine

Former Member
0 Kudos
108

Can someone explain what are the conversion routines are for?

thanks.

4 REPLIES 4

Former Member
0 Kudos
72

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.

Former Member
0 Kudos
72

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.

for details, [conversion|;

Search in SDN u will get a lot of material on it.

Regards,

archana

former_member205763
Active Contributor
0 Kudos
72

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к

Former Member
0 Kudos
72

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