Skip to Content
avatar image
Former Member

Custom conversion routines

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 12, 2006 at 06:30 PM

    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!!!

    Add comment
    10|10000 characters needed characters exceeded

  • May 12, 2006 at 06:30 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 12, 2006 at 06:39 PM

    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!!!

    Add comment
    10|10000 characters needed characters exceeded