Application Development 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: 

Conversion_exit_alpha_input?

Former Member
0 Kudos

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.

11 REPLIES 11

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Santhosh,

Can u show the code for how u r passing the parameters and what is the length of the personnel number field?

former_member491621
Contributor
0 Kudos

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.

reachdebopriya
Active Participant
0 Kudos

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

Former Member
0 Kudos

Use

OVERLAY perno WITH '00000000'.

Regard's

Smruti

Former Member
0 Kudos

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.

0 Kudos

call function 'CONVERSION_EXIT_ALPHA_INPUT'

exporting

input = pernr_pernr

importing

output = gs_output-colgid

0 Kudos

Hi Santosh,

Your Function module is correct but check wether your import and export parameters length is same.

Thanks

Mani

0 Kudos

Hi Nagamani,

Import and export parameters length is also same.

0 Kudos

Hi Santosh,

Can you please post your code with two parameters declaration.

Thanks

Mani

former_member491621
Contributor
0 Kudos

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.