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

Conversion_exit_alpha_input?

Former Member
0 Likes
2,340

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,784

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

Read only

Former Member
0 Likes
1,784

Hi Santhosh,

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

Read only

former_member491621
Contributor
0 Likes
1,784

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.

Read only

reachdebopriya
Active Participant
0 Likes
1,784

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

Read only

Former Member
0 Likes
1,784

Use

OVERLAY perno WITH '00000000'.

Regard's

Smruti

Read only

Former Member
0 Likes
1,784

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.

Read only

0 Likes
1,784

call function 'CONVERSION_EXIT_ALPHA_INPUT'

exporting

input = pernr_pernr

importing

output = gs_output-colgid

Read only

0 Likes
1,784

Hi Santosh,

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

Thanks

Mani

Read only

0 Likes
1,784

Hi Nagamani,

Import and export parameters length is also same.

Read only

0 Likes
1,784

Hi Santosh,

Can you please post your code with two parameters declaration.

Thanks

Mani

Read only

former_member491621
Contributor
0 Likes
1,784

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.