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: 

Add remaining zero

Former Member
0 Kudos

Hi,

I have a vendor that i am receiving. I'd like to add the additional zeros to make it a full number.

For example, If a vendor is 111, it should be 000000111. I don't want to create a logic for it - i believe there is a function module available. Please help.

Thanks,

John

4 REPLIES 4

Former Member
0 Kudos

Hi John,

Please check the function

CONVERSION_EXIT_ALPHA_INPUT

regards

Caglar

Former Member
0 Kudos

Dear John,

For vendor (LIFNR) it is CONVERSION_EXIT_ALPHA_INPUT.

Go to the domain of the field that you are using. You would find the conversion exit under output characteristics in field conversion routine. Double click on the routine it would display you both input and output conversion exits.

Go to SE11

-> enter domain.

-> enter the dataelement and display -> double click on domain.

Regards,

Srilatha.

Former Member
0 Kudos

Hi John,

To know the FM which will convert the domain values to internal or external format just go tho the domain.

Now in your case domain and data element is LIFNR.

Now if you go to SE11 and chek the EXIT routinee for the domain you can find ALPHA there. So just double click on the same you will get the conversion FM.

In this way you can find for any domain.

Reward points if useful.

Regards,

Atish

former_member194669
Active Contributor
0 Kudos

Hi,

check this


data: v_matnr like mara-matnr,
c_test(10) value '1234'.

unpack c_test to v_matnr.

v_matnr now contains 000000000000001234 .

aRs