Conversion Exit ALPHA

Question: Hello All,

I want to store the serial number of an article with leading zeroes. If I enter number 00100 for example than the number will be stored as 100 because of conversion exit ALPHA.

For me the 00 is very important because it has a meaning. How can we store the number with the 00 ?

I know if we make it alphanumeric that the 00 will be stored.

Best regards,
Yoolb
_________________
PRO IT
Consulting for You and Me
Http://www.proit.be

Answer:
Take a look on how SAP declares the MATNR .. internally, it is stored with leading 0s.

Answer:
Hi wiraone,

If you try to store 00100 in field serial number (length 18 char) than it will fill the serial number with 13 extra leading zeroes and you loose your first 2.

Store 00100 becomes 000000000000000100 internally and 100 in output.

That is NOT what I want. I want to store 00100 and output 00100.

best regards,
yoolb

BTW. for matnr you have an option in customizing called lexicograph, means no conversion routine.
_________________
PRO IT
Consulting for You and Me
Http://www.proit.be

Answer:
In your case, dont use ALPHA. because it always displays '00100' as '100' and stores 100 as '000000000000000100'. As long as that Conversion FM is used in Domain of that Data Element you would have that problem.
_________________
Gladiator.

Answer:
Hi Gladiator,

Nice try but wrong answer. Standard SAP serial number has domain GERNR and uses conv routine ALPHA. I cannot delete the conversion routine without changing standard SAP.

So skipping the conversion routine is not an option.

Best regards,
Yoolb
_________________
PRO IT
Consulting for You and Me
Http://www.proit.be

Answer:
In that case, use the full 18 characters, don't make any changes to the Domain or anything like that, then in your program truncate the field to the last five digits.

Otherwise define yourself a new domain that has the characteristics that you require (ie length 5 etc) and use that.
_________________
Regards

R


Abap KC
SFMDR

Answer:
We cannot use our own domain because every action is done in standard SAP.

We cannot truncate our field because the length of our serial number is dynamic.

Other suggestions ????

Best regards,
Yoolb
_________________
PRO IT
Consulting for You and Me
Http://www.proit.be

Answer:
Okay off the wall suggestion of the day - what happens if you upload space then the serial number - i.e. ' 00100'. That would force the ALPHA conversion routine to treat the number as character information. Would this be a problem? Or concatenate a letter S00100 before each serial number (or is that unacceptable to your business users?)
_________________
Kind Regards

Rosie Brent

Please remember to search the forum and check the FAQ before posting questions, thank you.

Tuly Idiot most of the time, part-time Guru

Answer:
Hello,

My project is for the governement. Do I need to say more??

3 companies use these serial numbers. So adding a Letter to the serial number would mean that we should convert them in each user exit where the serial numbers are used.

They want to see there original serial numbers and nothing else.

I looked everywhere and I think we cannot use the standard. We will negotiate further with SAP.

Thx anyway,

Best regards,
Yoolb
_________________
PRO IT
Consulting for You and Me
Http://www.proit.be
Copyright ?2007 - 2008 www.jt77.com