cancel
Showing results for 
Search instead for 
Did you mean: 

Custom conversion routines

Former Member
0 Kudos

Hi,

I have a Z field which should be shown on the user screen as RCO*** where *** is any number which user enters , where as it should be stored into the table as ***CO . Thus i want to create a conversion routine like ALPHA at the domain level.

But how do we create a custom Z conversion routine ?

Kunal

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Kunal,

Pls find some description about the conversion routine. It might be helpful to you.

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.

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.

Cheers,

Vikram

Pls reward helpful replies!!!

LucianoBentiveg
Active Contributor
0 Kudos

You need first to create FMs CONVERSION_EXIT_ZMINE_OUTPUT and CONVERSION_EXIT_ZMINE_INPUT, then you can create a Z domain in SE11 and assign ZMINE like convertion routine.

Regards.

Former Member
0 Kudos

Hi Kunal,

You can create conversion routine thru SE37 tcode. Your conversion routine is basically a FM and then attach this routine to the domain of the Z Field.

Cheers,

Vikram

Pls reward helpful replies!!!