01-15-2013 7:27 AM
Hi All,
I am using conversion_Exit_alpha_input function module for zeros to be added in personel number.
But in output it's not showing the zeros.
Please help.
01-15-2013 7:32 AM
That is standard behavior, during output an implicit call of conversion_exit_alpha_output is executed.
(Move the internal value to a character field without conversion-exit or use search tool fir the multiple keywords/statements used to force display of zeroes, depending on the tool used to display data)
Regards,
Raymond
01-15-2013 7:36 AM
Hi Santhosh,
Can u show the code for how u r passing the parameters and what is the length of the personnel number field?
01-15-2013 7:43 AM
Hi Santosh,
What mechanism are you using to display the report?? I mean ALV or classic report?
If classic report, then try using the FM just before displaying.
You can also check the consistency of the data in debugging.
01-15-2013 7:50 AM
Hi Santosh,
Try this code as below:
If the input field name for POSNR is POSNR_IN.
Output field
DATA: POSNR_OUT TYPE POSNR_VA.
*--- Call CONVERSION_EXIT_ALPHA_INPUT
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = POSNR_IN
IMPORTING
output = POSNR_OUT.
Regards,
Debopriya Ghosh
01-15-2013 8:01 AM
01-15-2013 9:02 AM
If we use alpha_input conversion routine you will get out the pernr with addition of zero's in general. Even I got it previously also.
Otherwise you can attach the code screenshot you are using, so that you will get answer quickly.
Regards,
Praveen Chitturi.
01-15-2013 11:24 AM
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = pernr_pernr
importing
output = gs_output-colgid
01-15-2013 11:30 AM
Hi Santosh,
Your Function module is correct but check wether your import and export parameters length is same.
Thanks
Mani
01-15-2013 11:46 AM
01-15-2013 11:49 AM
Hi Santosh,
Can you please post your code with two parameters declaration.
Thanks
Mani
01-15-2013 1:03 PM
Hi Santhosh,
The FM won't work with character values.
Can you please tell what values are you passing?
If possible, please put a screenshot of the variable declaration and a sample value.