Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to write coding for this one.

Former Member
0 Likes
633

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.

5 REPLIES 5
Read only

Former Member
0 Likes
600

fiels in pa0002 is nchn and vorna

Read only

Former Member
0 Likes
600

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

Read only

Former Member
0 Likes
600

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...

Read only

Former Member
0 Likes
600

The data type for PA0002-PERNR is NUMC, not CHAR, so it should work if you SELECT using 1234, 00001234, '1234' or '00001234'.

Rob

Read only

Former Member
0 Likes
600

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