Re: Material number with leading zeros (40 char long)

Hello Experts,
I am working on SAP ME 6.1.4.15.
I am having a problem with the material number appearing in production order / planned order request document in MEINT and failing there since the material it is looking for is with leading zeros (for example 1291 appearing as 0000000000000000000000000000000000001291) - a total of 40 char long.
But this material exists in ME as 1291 only. Can any one throw any light on this as to what could be the reason and how to solve it?
Thanks
Srinivas

Dear Srinivas,
SAP Note 1799009 - 'Presence of leading zeros is inconsistent over IDOC thus SAP MEINT cannot handle all inbound IDOC consistently' should help to resolve the problem.
Regards,
Alex.

Similar Messages

  • Need formula to take text from one cell, add that to a serial number with leading zeros

    I'm trying to create a spreasdheet cell that simplifies creating videotape Numbers from a job name in cell and appends a serial number with leading zeros, and that would survive an export to EXCEL.
    The result would look like
     A Column
    Job Name
    B ColumnTape #
    Formula needed for B
    ClientName-TapeType-
    ClientName-TapeType-001
    =
    ClientName-TapeType-
    ClientName-TapeType-002
    =
    I've tried using a custom cell format that had the text in front of the (Integer) drag and drop, with three integers and leading zeros.
    That worked, but requires recreating the custom cell format for each client and tape type.
    So, I've used the formula =A2& in order to play around with different things, but haven't hit on something that adjusts for increased numbers and retains the leading zeros.
    I don't mind doing a starter for the first row and then adding +1 in the formulas for the rows below.
    I've done that using the custom cell formats for the first B cell and then using =Bx+1 in the following cells.  It works, but I'm hoping to find something simpler or that can be copied and pasted in multiple rows on one paste.
    Thanks in advance.
    Suggestions much appreciated!
    Ted

    Ted,
    This expression in B will give you the pattern I believe you are looking for:
    =A&RIGHT("00"&ROW()-1, 3)
    Here's a screen shot...
    Jerry

  • EBS check number with leading zeros

    When we upload EBS, we are getting the check number in the record 16 (reference field). But unlike the check number posted in SAP, the check number in the BAI file has 2 leading zeros. Now since check number is coming in record 16, instead of record 88 we are not able to solve this problem through String configuration.
    So, we thought of following solutions(Options):
    1.    Modify the check lot numbers to have two leading zeros plus associated changes like the form and so on.
    2.    Modify the check number in the incoming file u2013 strip the check number with two leading zeros with the use of customer enhancement. (After upload and before posting)
    Can we solve the problem of leading zeros (before the check number) through any configuration steps instead of changing the SAP script form for check(Check lot) or going for customer enhancement.
    Thanks
    Ron

    You are correct, since the check numbers are coming through only in the 16 records and not in the 88 records, you cannot use a search string to resolve the issue with leading zeros.  Also, I do not know of any other configuration that can be used to reformat the reference values in the 16 records.
    The 2 solutions you have listed are both valid options.  Although with the first option (changing the check lots), you would need to make sure the business users approved of changing the check lots before going forward with that option.  And you would still have to manually clear checks that had been issued prior to the check lot change.
    At my company, we went with the second option - using ABAP code to update the check numbers from the file to match those in SAP (we actually had to add leading zeros to the check numbers).  In our case, we had already created a pre-processor program for other re-formatting of the file that was needed prior to loading it into SAP - so we added the check number logic to that.
    However, if you do not have a pre-processor program, I know there is a user exit available for EBS - exit EXIT_RFEBBU10_001, include ZXF01U01.  I have heard of others using this exit to update the check numbers from 16 records.  The exit is called during the FF.5 processing.
    Regards,
    Shannon

  • How can I format a number with leading zeros?

    I need to convert an int to occupy exactly 3 positions in a StringBuffer... I need the space in the StringBuffer to be filled with leading zeros where appropriate. Can anyone show me how to do this correctly please ?
    At the moment I am using a pretty dumb workaround to fill the target with "000" first and then parse the int into either 1 2 or 3 positions depending on its value ... it works, but there must be a more correct way to do this ...
    Thanks in advance ...

    Have you had a look at the class java.text.DecimalFormat? It does exactly what you want... example:
    StringBuffer sb = new StringBuffer();
    DecimalFormat format = new DecimalFormat("000");
    format.format(2, sb, new FieldPosition(0));
    System.out.println(sb);
    prints out the string 002.

  • Auto increment number with leading zeros

    hello,
    i have data column (serial number) that auto generate from script component, i'm using counter +1 and it successful store the number to my db. but the problem is there any idea to store the number to 00001 rather that 1.
    im using this method in my script component
    dim counter as integer = 0
    counter =counter + 1
    row.NoSerial = counter
    TQ

    Why should you send it through the file? WHy not simply create a calculated column based on identity field or sequence based field (if 2012 version and above)  in the destination table and ignore it from the file altogether. ANyways its going to be
    a sequential auotogenerated value isnt it?
    http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server
    If you want to bring it as  00001 etc you need to make it as varchar and use derived column expressions in SSIS as source is text file.
    I would prefer doing this in sqlserver if its just a sequential number and has no direct relationship to the incoming file data fields.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Create Master Data with leading zero

    Dear Expert,
    Our customer request to create Customer Master/Vendor Master/Material Master with leading zero. For example: they want to create Customer 0234578.
    I can do that for material, would you please advise how to do the same for customer/vendor?
    Thanks you,

    Dear Mr.
    Our customer number is in numeric, then this error happen. If customer number constants 1 char, then system will keep zero leading (ex: 012A4) But if customer number constants only numeric, even i type zero, system will remove leading zero.(01234 ==> 1234)
    Please help.

  • Materials with leading zeros - consequences of changes

    Hello,
    In Trx OMSL is defined that materials will be shown with leading zeros (checkbox marked).
    My client is already using logistics functions involving materials and wants to change this material representation with leading zeros to material without leading zeros (Lexicografic).
    the config setting appears quit easy but Im not sure what the effects will be - if there any!?
    Anyone has done this kind of change and what were the consecuences?
    Thanks for any answer.
    Aart

    Thanks Guys,
    Ill Try to focus my question.
    In OMSL my customer has not marked the checkbox: Lexicographic
    in OMSL my customer has marked the checkbox: Leading zeros
    my customer uses matererials with internal and external number asignment.
    Material with internal number asignment behave like this
    MM03: 000000000050000010  (and the material number is show like this in ME23N, MIRO etc.)
    MARA: 000000000050000010
    OMCV-CONVERSION_EXIT_MATN1_INPUT :  
    50000010  -> 000000000050000010
    MAterial with external number asignment behave like this
    MM03:    5101377600TF
    MARA:   5101377600TF
    OMCV-CONVERSION_EXIT_MATN1_INPUT :  
    5101377600TF  -> 5101377600TF
    The behaviour of the leading zeros is especialy a problem in trx like ME23N and MIRO.
    My question is:
    If I change in OMSL and unmark the checkbox "leading zeros" , what consecuences will this have for the materials with external number asignment - if there are any?
    Can I try this out in DEV and after this reset the flag "leading zeros"?
    Thanks for any answers.
    Aart

  • Sequence with leading zeros

    Hi,
    I have a column SRL_NUM with datatype varchar2(4 char).I have 3000 records in this table and want to make SRL_NUM like 0001,0002,0003 etc.It should increment but entire 4 characters should be filled.How do i do this?
    Thanks.

    user10698496 wrote:
    I have a column SRL_NUM with datatype varchar2(4 char).I have 3000 records in this table and want to make SRL_NUM like 0001,0002,0003 etc.It should increment but entire 4 characters should be filled.How do i do this?Why is the sequence a varchar2 and not a number?
    IMO it makes more sense to use a native number data type as that is what a sequence generator outputs - and then render that as a text string with leading zero as "+how it looks like+" is a presentation layer issue.
    I would not use a numeric sequence generator to generate unique strings as surrogate key values. There are inherent problems with mixing data types like that.

  • Mateiral no. with leading zero

    Dear Experts,
    My case is that I created a material with ext no. assignment e.g. 1234 via BAPI without leading zero. In OMSL, the 2 checkboxes do not check anyaway.
    I check it does exist in MARA, MARC and store with leading zero.
    But I try to display MM03 for that material and enter 1234, the error says "The material 1234 does not exist or is not activated".
    I check that in debugger mode, there is leading zeros added for that material whcih leads to this result.
    Do you know how to solve it?
    Thanks.

    Hi dear,
    Note the following
    1.Lexicographical Indicator: - The appearance of the material no on the front end is governed by this indicator. This indicator is relevant only for numeric material numbers either internally or externally defined.
    2.If the Lexicographical Indicator is not set (indicator is not ticked) incase of external material number assignment, the material numbers are stored with leading zeros. i.e. pure numeric material no 5007453 may look like 0005007453 if the material no length maintained as 10.
    3.If the Lexicographical indicator is set (indicator is ticked) incase of the external material number assignment, the material numbers are not stored with leading zeros. i.e. pure numeric material no 5007453 will look like as 5007453.
    4.If the Lexicographical indicator is set (indicator is ticked) incase of internal material assignment, the material numbers would be padded with leading zeros
    5.This indicator can not be changed once there are numeric materials numbers in the system.
    6.Leading zero indicator: - Along with Lexicographical indicator there is leading zero indicator on the same screen. If the indicator is set (ticked) material number is shown with leading zero, but if the Lexicographical indicator is ticked leading zero indicator is ignored by the system.
    5007453     Material no length 10    External No range   Indicator Not ticked     Result   0005007453
    5007453     Material no length 10    External No range   Indicator Ticked     Result   5007453
    5007453     Material no length 10    Internal No range    Ticked Ticked     Result   0005007453

  • EAN number missing leading zeroes

    Hi,
    I have configured two types of EAN/UPC numbers, one being 12 characters and one being 14.  In our business, we have a situation where a material has a case UPC number 00099999123456 and a package UPC of 099999123456.
    When these values are displayed on the material master I will see either
    099999123456  or
    00099999123456 
    but not both values with the correct number of leading zeroes.
    Is there a way to have the correct value with the right number leading zeros when the EAN number is the same except for the leading zeroes?
    The standard conversion routines i've looked at do not take into account there could be a different number of leading zeroes based on the EAN type assigned as the type is not a import parameter for  CONVERSION_EXIT_EAN11_OUTPUT.
    thanks!

    Hi,
    As per your query this is related to your configuration setting. Pls consult with SD/FI consultant and also consult with ABAPER. If configuration is ok then may be your have develop a programe and the programe may be wrong.
    Anil

  • ABAP-based web service returns numeric values with leading zeros

    Hi SOA experts,
    I have created a web service out of an ABAP function module. Beside other values, this service returns a list of document numbers. All of these numeric values are returned by the web service with leading zeros, but we do want these values w/o leading zeros.
    Any ideas how I can tell the web service to not print any leading zeros?
    Thanks in advance for your help!
    Kind regards, Matthias
    PS: The according function module does not print any leading zeros for the numeric values

    hi,
    just a guess: I'd try to use I instead of NUMC for the document numbers.
    NUMC is no number but a character string with numeric characters only. only some display routines in SAP know that this string of numerals represents a number and omit leading zeroes.
    my 2 cents,
    anton

  • Download records to EXCEL file with  Leading Zero's for numbers

    Hi All,
    I am able to download the data to EXCEL file on the presentation server.
    There are few fields (Plant,SalesOrder Number ..with Leading Zero's) in the record.
    These values are downloaded with out Leading Zero's to excel( EX: 0000004122 as 4122).
    Please help me to download the data to EXCEL file with leading zero's.
    Thanks and Regards,
    KC

    >
    Krishna Chaitanya  G wrote:
    > The excel file which is to be downloaded..will be used by some other program..to upload the values to the sap.
    > It matters there....
    > KC
    HI KC,
    then no need to download the zeros,
    after uploading, loop at that uploaded internal table and use CONVERSION_EXIT_APLHA_INPUT and pass the vbeln(without zeros) to this FM, it will return the value with added zeros.
    hope this solves your query
    a small example
    Loop at itab into is.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    INPUT = is-vbeln "(  this is without zeros)
    IMPORTING
    OUTPUT = is-vbeln. "( this is with leading zeros)
    modify itab from is.
    endloop.
    Edited by: Soumyaprakash Mishra on Oct 6, 2009 2:16 AM

  • SD Document flow with Leading zeros

    Hi All,
    We have issue with docuemnt flow, when we click document flow sales order or delivery or billing its showing leading zeros, My client  don't want any leading zeros in docuemnt flow.
    For example -
    if i click on document flow its showing - 00500005 (SO ) 008000674 -Delivery - - Billing - 0090000012,
    Can any other guide us what could be a issue with leading zeros or any config setting is missing.
    Regards
    Nishad

    dear friend,
    it depends on how do you set up the number ranges
    for example, run VN01 and look how your sales orders are numbered.
    regards,
    p.s. create a new number range without leading zeroes and test it
    but i suggest you will not change the current settings , it is 'too late' , so tell your client it is standard

  • Padding a julian date with leading zeros ?

    Hi,
    I have gernerated a julian date, which I am appending to another two digit number to create a five digit serial number.
    Is there a simple way to pad the first 99 days with leading zeros ( i.e. 001, 002....025...099) so that I maintain a five digit serial number ?
    I am using   Get Date In Time/Seconds > Number To Decimal String > Unbundle >Number to Decimal String.
    Thank you in advance for any advice,
    Alan

    Here's the simplest way to do it (with he 2 digit number), I believe:
    Message Edited by Matthew Kelton on 02-21-2008 12:43 AM
    Attachments:
    Julian1.png ‏3 KB
    Julian2.png ‏2 KB

  • Export to Excel - data with leading zeros

    Does anyone have any tips or tricks for running a query then exporting to Excel without dropping leading zeros from the data?
    Examples: numeric Item codes with leading zeros, telephone numbers that have been entered with no spaces.
    Regards,
    Douglas McDove

    < Font Color="RED" Size = 3 Face=Verdana>
    I liked the challenge and therefore.......I got this for you
    </Font>
    SELECT CHAR(28) + T0.CardCode [BP Code\] FROM  [dbo\].[OCRD\] T0
    SELECT CHAR(29) + T0.CardCode [BP Code\] FROM  [dbo\].[OCRD\] T0
    SELECT CHAR(30) + T0.CardCode [BP Code\] FROM  [dbo\].[OCRD\] T0
    SELECT CHAR(31) + T0.CardCode [BP Code\] FROM  [dbo\].[OCRD\] T0
    Any of the above 4 should work.  T0.CardCode is the database field I tested, you can substitute this with any database field and it should work.
    Regards
    Suda

Maybe you are looking for