‎2007 Aug 19 5:46 PM
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.
‎2007 Aug 19 5: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.
‎2007 Aug 19 6: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