2013 Jan 15 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.
Hi Nagamani,
Import and export parameters length is also same.
2013 Jan 15 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
2013 Jan 15 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?
2013 Jan 15 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.
2013 Jan 15 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
2013 Jan 15 8:01 AM
2013 Jan 15 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.
2013 Jan 15 11:24 AM
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = pernr_pernr
importing
output = gs_output-colgid
2013 Jan 15 11:30 AM
Hi Santosh,
Your Function module is correct but check wether your import and export parameters length is same.
Thanks
Mani
2013 Jan 15 11:46 AM
Hi Nagamani,
Import and export parameters length is also same.
2013 Jan 15 11:49 AM
Hi Santosh,
Can you please post your code with two parameters declaration.
Thanks
Mani
2013 Jan 15 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.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |