Skip to Content
avatar image
Former Member

Conversion exit..

Hi guyz..!

In a report of i need to modify .. one of the data output type..

right now its (say GL acc HKONT) coming 589040 ..but it

should come out as 0000589040 ..with leading zeros..!

how do i do it with conv exits...?

please help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 19, 2007 at 04:56 PM

    Hi Jaif,

    You can use CONVERSION_EXIT_ALHA_INPUT.

    In the export part send your variable & the import part you'll get the desired output. Declare the import variable of the length that you want as output.

    Reward all helpful answers.

    Regards,

    Siddhesh sanghvi.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 19, 2007 at 05:00 PM

    Hi Jaif,

    Use CONVERSION_EXIT_ALPHA_INPUT function module to convert from external to internal format.

    Check this code.

    DATA: V_HKONT(10).

    LOOP AT ITAB.

    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

    EXPORTING

    INPUT = ITAB-HKONT

    IMPORTING

    OUTPUT = V_HKONT.

    WRITE:/ V_HKONT.

    ENDLOOP.

    Otherwise, Simply declare a variable of type N with 10 length.

    DATA V_HKONT(10) TYPE N.

    LOOP AT ITAB.

    V_HKONT = ITAB-HKONT.

    WRITE:/ V_HKONT.

    ENDLOOP.

    Thanks,

    Vinay

    Add comment
    10|10000 characters needed characters exceeded