‎2007 Jan 22 6:49 PM
the problem was that in our company the personal number field is 8-digits long for example if a employee has personal number 1234 thats means internlly sap it is save as '00001234'.it means it has preceding zeros.but unforfunately at the time of data transfer from legacy to sap the field personel no was filled with preceding zeros.
how to write logic for this?
i have two tables : zfm_handy , pa0002(fields in pa0002 is nachn,pa0002)
pernr(personel no )
this is the grid display to get the data from these two tables and display based on pernr.
‎2007 Jan 22 6:50 PM
‎2007 Jan 22 6:52 PM
Hi narendra,
Pass u'r values to this Function module , the field name and the value the output will as desired
<b>CONVERSION_EXIT_ALPHA_OUTPUT</b>
Hope this helps..
Srini
‎2007 Jan 22 7:01 PM
Hi narendra,
If you double click on the Domain of that Particular filed it will show the conversion routine name.Again double click on the name of Conversion routine it will show Conversion exit function modules.Try to use output conversion exit FM.It will add prceeding zeros.
Regards,
AnuRaadhaa...
‎2007 Jan 22 7:27 PM
The data type for PA0002-PERNR is NUMC, not CHAR, so it should work if you SELECT using 1234, 00001234, '1234' or '00001234'.
Rob
‎2007 Jan 22 7:33 PM
Hi Narendra,
Use the Function Module
CONVERSION_EXIT_ALPHA_OUTPUT
CALL FUNCTION <b>'CONVERSION_EXIT_ALPHA_OUTPUT'</b>
EXPORTING
INPUT = FIL_TAB-LOW " You Input value
IMPORTING
OUTPUT = R_AUKO_AUFNR-LOW. " This is the O/p value with precedding 0