The leading zero in serial number..

Hi all,
Does anyone happen to know how to stop SAP from erasing the leading zero when entering a Serial number. I'm using profile 0003 (standard) and when a GR is posted the leading zeros are removed?
Any help would be greatly appreciated.
Best regards
Begüm A.

In the Standard SAP system, it is not possible to stop it from truncated the leading zeros.
But if you are using  ECC6.0 and using Industrial Solutions, you may use the modification
introduced by note 198285 to achieve this functionality.

Similar Messages

  • How to retain the leading zeroes in a number in the excel output.

    Hi All,
    I have a requirement to display the numbers as text in the excel output. Ex: 001 should be displayed as 001 and not 1, as it happens in excel.
    I know displaying 001 as '001' works, but this is not acceptable.
    Also, I need to send a huge file (>20MB) through bursting as an Email, but the mail is not received even the bursting program finishes in success. I tried the zipping option as well but in vain. I know this can be done via FTP but I need to send it through email.
    Thanks,
    Rahul

    Maverick,
    See the admin these:
    Administration and Developer's Guide
    Report Designer's Guide
    Here:
    http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/xmlpdocs-084437.html
    This will give details on how to split the output into multiple files during bursting. If my memory serves me correctly, it is in the admin guide.
    Kurz
    Edited by: Kurzweil4 on Dec 6, 2010 9:11 AM
    Edited by: Kurzweil4 on Dec 6, 2010 9:11 AM

  • Document Templates in MS Word - how to cut the leading zeroes in number

    Hello CRM gurus !
    We use document templates in MS Word but have the document number printed with the leading zeroes.
    example we have now:
    0005000681
    example we want to have:
    5000681
    Question - how to do that?
    Is that in standard? The document number is the ObjectID tag as far as I know. Do I need to create another tag?
    Or may be just call a function? Do I need to change my current Web Service Tool? Is that some extra ABAP to be inserted?
    Thank you very much.

    Hi,
    have you tried to use this function call to delete de leading zeros?:
         CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
           EXPORTING
             input  = value
           IMPORTING
             output = value.
    Best regards
    Manfred

  • The leading zeros are removing from Number field

    Hi,
    How can i keep the leading Zeros in the number field. For eg, when validating the field, 00123 becomes 123, how to prevent it,
    Thanks in advance

    Hi
    I tried with LPAD(:numberfield,5,'0') in the validate field, but it is not working, I am getting the error , it is not a procedure....., I working with Forms 10g
    Thanks in advance

  • Remove the leading Zero from the Query output in SAP BW ?

    Hi
    Experts,
    Vendor Number loaded  as   (0000010076) from R/3 to SAP BW.
    How to remove  Prefix  of Zero for  the Vendor Number(0000010076)  from Quey outpt.
    Regards.
    ASIT

    Hi,
    Please check out this thread.
    Remove leading zeros
    Also check if there is any conversion routine used for that particular infoobject.
    If ALPHA conversion is selected for your infoobject then it will automatically take away the leading zeros at query level.
    Regards,
    AL
    Edited by: AL1112 on Sep 16, 2011 9:15 AM

  • How can I format a cell in Numbers to have leading zeros in a number?

    I imported a spreadsheet from Excel (Office 2014, Win 7) through iCloud and some numbers were formatted to have leading zeros (012358) in the original Excel file but the leading zero format was lost in Numbers.  Is there a way to format cells to have a number displayed with the leading zero in Numbers?  The leading zero is part of an identification and is important to the numbers (0027 is not the same as 27 in these records).
    thanks,
    Bob

    James has the formating part, but if you already did the import you can use the following formula to replace the zeros that were leading if you know it is a four digit reference number....
    =right("000" & A2,4)
    copy those values into your text formatted column from James' answer and you got it.
    Jason

  • Appending leading zeros to material number

    Hi,
    I want to form a object key for material number. so i need to append leading zeros to material number. but i am getting "TYPE CONFLICT" shot dump in FM 'BAPI_OBJCL_GETDETAIL'.
    The following code is giving the dump.
    data: wa_object(18) type c.
    wa_object = '100301010'. "Material No
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = wa_object
        IMPORTING
       OUTPUT        =  wa_object.
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
      EXPORTING
        OBJECTKEY              =  wa_object
        OBJECTTABLE            = 'MARA'
        CLASSNUM               = 'FINISHED_MATERIAL'
        CLASSTYPE              = '001'
        KEYDATE                = SY-DATUM
        UNVALUATED_CHARS       = ' '
        LANGUAGE               = SY-LANGU
      TABLES
        ALLOCVALUESNUM         = IT_ALLOCVALUESNUM
        ALLOCVALUESCHAR        = IT_ALLOCVALUESCHAR
        ALLOCVALUESCURR        = IT_ALLOCVALUESCURR
        RETURN                 = IT_RETURN
    but if I hard code to 18 characters, the following code is working fine:
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
      EXPORTING
        OBJECTKEY              =  '0000000000100301010'
        OBJECTTABLE            = 'MARA'
        CLASSNUM               = 'FINISHED_MATERIAL'
        CLASSTYPE              = '001'
        KEYDATE                = SY-DATUM
        UNVALUATED_CHARS       = ' '
        LANGUAGE               = SY-LANGU
      TABLES
        ALLOCVALUESNUM         = IT_ALLOCVALUESNUM
        ALLOCVALUESCHAR        = IT_ALLOCVALUESCHAR
        ALLOCVALUESCURR        = IT_ALLOCVALUESCURR
        RETURN                 = IT_RETURN
    Please tell me how to rectify the short dump which uses Conversion_exit_alpha_input.
    Thanks .
    Sankar

    Hi Shankar,
    When ever u pass parameters to any function module the type of parameters must match with the ones defined in function module. Here u defined ur object key like this
    data: wa_object(18) type c.(18 digits). But the in function module it referenced with BAPI1003_KEY-OBJECT (50 digits). So u have to define the variable with BAPI1003_KEY-OBJECT.
    Check this solution. It will work for u.
    data: wa_object(18) type c,
               wa_object1 TYPE BAPI1003_KEY-OBJECT.
    wa_object = '100301010'. "Material No
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    INPUT = wa_object
    IMPORTING
    OUTPUT = wa_object.
    wa_object1 = wa_object.
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    OBJECTKEY = wa_object1
    OBJECTTABLE = 'MARA'
    CLASSNUM = 'FINISHED_MATERIAL'
    CLASSTYPE = '001'
    KEYDATE = SY-DATUM
    UNVALUATED_CHARS = ' '
    LANGUAGE = SY-LANGU
    TABLES
    ALLOCVALUESNUM = IT_ALLOCVALUESNUM
    ALLOCVALUESCHAR = IT_ALLOCVALUESCHAR
    ALLOCVALUESCURR = IT_ALLOCVALUESCURR
    RETURN = IT_RETURN
    Thanks,
    Vinod.

  • Leading Zeros in SU Number

    We are using SU Managment
    How do we get rid of leading zeros in SU# number range. System is storing pallet ID # with leading zeros in the LEIN table. This is causing issues while we retrive SU data from the tables, systems ask to enter the SU#  number with leading zeros.
    My Pallet Tag is printed with out leading zeros SU # 1234567890 and when the user tries to put away using LM02 system does not read the pallet ID. It looking for 00000000001234567890.
    Even on desktop LS33 if I try to display a pallet with SU # 1234567890 system looks for SU Num. with leading zeros.  Is there a way to get the leading zeros off from SU#
    Appriciate your help

    Please check in SPRO whether the conversion exit is maintained for Storage Unit Management. Follow the below path to do so.
    SPRO -> Storage Unit Management - > Master Data - > Define Number Ranges. In the Pop Up choose "Conversion exit for storage unit number" .
    Here you can define the "length of SU Numbers "
    Regards,
    Kumaran

  • How to remove leading zero from Material Number

    Hello Everyone,
    I need to figure it out how to remove leading zero from material number. Cureently extractor is sending material number as 100663. But when comes into BI i am getting as "000000000000100663" and similariy in report it is appearing as "000000000000100663". Now my client wants me to exclude preceeding zero for a material in all the reports.
    Is there any setting in query desinger to handle this issure or in the backend.
    Need your inputs.
    Thanks,
    Lasya.

    Hi
    you can use the function Module
    CONVERSION_EXIT_ALPHA_OUTPUT in the start routine
    to test this go to SE37  --- give the CONVERSION_EXIT_ALPHA_OUTPUT -
    >display -
    > F8
    in the input give 000000456
    and execute
    the out put will be 456
    for getting Zeros you can use
    CONVERSION_EXIT_ALPHA_INPUT--- to remove leading zeros
    Santosh
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:52 PM
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:54 PM

  • Need to strip the leading ZERO using ABAP code.

    Hi Friends,
    I got a situation where i got customer number called 011. I need to write an ABAP in Transformation to strip the leading ZERO , 11 should be posted to the master data attribute. could you help me in the logic pls.
    Thanks in advance,

    hi friends, i got a prob again, as i mentioned if i got 0 as prefix its deleting but if any 3 digit is comming it's converting in to 2 digit, as i mentioned if the prefix is 0(zero) then only i need to delete the zero.
    Is there any other solution for this..
    thansk in advance.

  • Truncating the leading zeros which has both numbers and characters

    Hello Everyone,
    Can anybody pls help me to truncate the leading zeros in the incoming file structure which has both the numbers and characters.
    Thanks,
    Chinna

    HI,
    Write a UDF like this ..
    public class test {
    public static void main(String[] args) {
    System.out.println(args[0].replaceAll("^0*",""));
    Also you can use XSLT for this.
    Try the XPath function number($string) in your XSLT and see if it does what you want. Since it turns any XPath object into a number, the leading zeros won't appear.
    Use it ike this
    <xsl:variable name="a">
    <xsl:call-template name="removeLeadingZeros">
    <xsl:with-param name="phone">
    <xsl:value-of select="EVENT/ContactPhone"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:variable>
    <xsl:template name="removeLeadingZeros">
    <xsl:param name="phone"/>
    <xsl:message>
    <xsl:value-of select="$phone"/>
    </xsl:message>
    <xsl:choose>
    <xsl:when test="starts-with($phone,'0')">
    <xsl:call-template name="removeLeadingZeros">
    <xsl:with-param name="phone">
    <xsl:value-of
    select="substring-after($phone,'0' )"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$phone"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    Regards
    Aashish Sinha
    PS : Reward Point if Helpful

  • How could I thoroughly close the Leading Zero function of Material No.?

    There are only a checkbox in SPRO with the function Leading Zeros of Material No. in
    Material Master->Basic Settings->Define Output Format of Material Numbers.
    But this function either make the Material ID full of Leading Zeros or delete all the Leading Zeros of it.
    Could I make the Material ID as normal string type without those functions?
    Because I want to set my Material ID as different between '0001234' or '00001234'.
    Could any one help me? Thank you very much.

    Hi,
    Yes, of course you can, on the screen "Define Output Format of Material Numbers", you can find an indicator "Lexicographical", If this indicator is set, material numbers are stored as follows:
    If the material number (numeric or not purely numeric) was assigned externally, it is stored left-justified as entered.
    Example
    Defined length: 8 characters
    Externally assigned number: 123
    Stored number: 123
    Note
    Any leading zeros that may have been entered are stored too. This makes it possible to distinguish between the material numbers 123 and 0123.
    If the material number (numeric only) was assigned internally, it is padded with leading zeros to the defined length and stored left-justified.
    Example
    Defined length: 8 characters
    Internally assigned number: 123
    Stored number: 00000123
    Activate it and make the number is assigned externally, then you can realize your request!
    Good luck
    Tao

  • Truncating the leading zero's

    Hi experts,
    I have an ALV output, in which one of the fields is equipment number (equi-equnr).
    There are some leading zero's that I need to truncate from the ALV output.
    How can I achieve this? The code is as given below:
      fieldcatalog-fieldname   = 'EQUIPMENT_NUMBER'.
      fieldcatalog-seltext_m   = 'Equipment Number'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    Thanks,
    Ajay.

    Hello,
    Your requirement is that you need to display the equipment number in the ALV without the leading zeroes.
    Ypur code is
    fieldcatalog-fieldname = 'EQUIPMENT_NUMBER'.
    fieldcatalog-seltext_m = 'Equipment Number'.
    fieldcatalog-col_pos = 5.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    Just before append statement add the following
    fieldcatalog-no_zero = 'X'.
    Now try the same it should solve your problem.
    Regards,
    Sachin
    Edited by: Sachin Dargan on Jan 19, 2010 7:34 AM

  • Delete some of the leading zeros

    Hi All,
    Just wondering how I can delete some of the leading zeros, but keep two of them.
    My field incoming will be '0000000003'. I want to use DELETE LEADING '0', but I want my output to be '003'.
    This field incoming can also contain text instead of a number, so I don't want to mess around with field lengths.
    Any suggestions?
    Thanks
    Charla

    Hi Charla,
    try to use "Write to".
    example:
    <b>parameters: num(10) type N.</b>
    user digit "20"
    num has the value: "0000000020"
    <b>write num+7(3) to num.</b>
    num has now the value: "020"
    <b>write: num.</b>
    Regards
    Allan Cristian

  • Truncating the leading zeros

    hi,
    Could anybody pls tell me how do i truncate the leading zeros in the incoming file structure.
    Thanks,
    Chinna

    Hi,
    Check this thread, i laready answered it there.
    Suppressing leading zeroes during mapping
    For you i pasting the solution here.
    Write a UDF like this ..
    public class test {
    public static void main(String[] args) {
    System.out.println(args[0].replaceAll("^0*",""));
    Also you can use XSLT for this.
    Try the XPath function number($string) in your XSLT and see if it does what you want. Since it turns any XPath object into a number, the leading zeros won't appear.
    Use it ike this
    <xsl:variable name="a">
    <xsl:call-template name="removeLeadingZeros">
    <xsl:with-param name="phone">
    <xsl:value-of select="EVENT/ContactPhone"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:variable>
    <xsl:template name="removeLeadingZeros">
    <xsl:param name="phone"/>
    <xsl:message>
    <xsl:value-of select="$phone"/>
    </xsl:message>
    <xsl:choose>
    <xsl:when test="starts-with($phone,'0')">
    <xsl:call-template name="removeLeadingZeros">
    <xsl:with-param name="phone">
    <xsl:value-of
    select="substring-after($phone,'0' )"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$phone"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    Regards
    Aashish Sinha
    PS : Reward Point if Helpful

Maybe you are looking for

  • Error while connecting through DB adapter in ESB

    ESB is getting data from siebel , but while sending to database through DB adapter , it gets the following error An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: e

  • ORA-01578: ORACLE data block corrupted on tables in sysaux tablespace

    Dear Experts, From the alert log file we noticed data block corruptions on one of our datafiles. After further investigation, we realized that the corruptions were on 3 of the AWR related tables in the SYSAUX tablespace: 1. WRH$_LIBRARYCACHE 2. WRH$_

  • Norton Problems

    Hi, I recently migrated all my files, apps, etc from an older iMac (G4) to a less older iMac (G5). I had Norton Systemworks (utilities and antivirus) on the older iMac and it came over as well. Since the application is outdated, I wanted to get rid o

  • Nokia 6630 trouble sending text messages

    im having trouble with my nokia 6630 it wont send text messages it just keeps saying general:memory full. close some applications and try again. i have done this and it still didnt work so i completely deleted everything off my phone restored it to f

  • I am trying to print from iphoto to my hp photosmart wireless printer

    i get an error message when im trying to print from iphoto to my hp photsomart wireless printer