Skip to Content
author's profile photo Former Member
Former Member

Conversion Routines

Hi all,

What do we mean by Conversion Routines and exactly where do we use them.

Regards,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Nov 28, 2007 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 28, 2007 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 04:40 AM

    Thanks for the information.

    points aswarded accordingly

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.