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

conversion_exit_alpha_input

what is the purpose of function module 'coversion_exit_alpha_input'?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2008 at 04:05 PM

    CONVERSION_EXIT_ALPHA_INPUT - converts any number into a string fill with zeroes-right

    example:

    input = 123

    output = 0000000000000...000000000000123.

    For EG:

    ur updating the table through BDC,LSMW,etc.

    in ur flat file one of the field value is 123, but the table is accepting only with 000000123 , in this scenario we have to use this function module.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2008 at 04:05 PM

    Append 0's at the left in a variable.

    example..

    if u have a

    DAta: var(8) value '3'.

    after the function you obtain

    var = '00000003'

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2008 at 04:08 PM

    hi,

    It formats the field according SAP Internal.

    For Ex :

    you are giving the Porchase order number as : 1234.

    But actually the value which get stored in Data base is : 0000001234.

    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

    EXPORTING

    input = v_kunnr

    IMPORTING

    output = v_kunnr.

    if you use the value withoud aading leading zeros, then your query does not work as it has leading zeros in database.

    So, you need to pass the value to this function module......so you will get out put with leading zeros.

    Regards

    Sandeep REddy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2008 at 04:46 AM

    Hi,

    The use of "CONVERSION_EXIT_ALHA_INPUT" is to add leading zeros.

    For example consider that in your internal MATNR values are there and its length of only 5(EG: 45231), but if u compare this value to the database table and even if the value in database table it will not match because in database it is stored as 18-digit as (000000000000045231) leading zeros added to the value.

    So before compare the MATNR value in your internal table, you need to use "CONVERSION_EXIT_ALHA_INPUT" for the particular field, so that you can get the correct output.

    Regards,

    Raghu

    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.