EAN values truncationg the leading zeroes

Hi experts,
I have created two new EAN category for one category accepts one leading zeroes another category accepts two leading zeroes.
In the material master i am trying to enter the same EAN values with different unit of measure system accepts the EAN value for one UOM and when i am trying to enter the same value for another UOM with two leading zeroes the leading zeroes are truncating.I can see the below warning message.When i press enter the leading zeroes are truncated.
_EAN already used for unit of measure EA of this material_
Please help me how to solve the issue.

i guess this is coming because you have already mentioned the EAN no in one material amster and the data is maintained at client level so system is not allowing redundntcy

Similar Messages

  • Losing the leading zero in binary values

    Hi all,
    I�m currently creating some basic examples of bitwise operations and I�ve just noticed that I�m losing the leadnig zero of a binary value ( e.g.
    decimal 1 (expecting to see bin of 0001) is manifesting as 1
    decimal 16 (expecting to see bin of 00010000) is manifesting as 10000
    below is a full example
    import static java.lang.Integer.*;
    public class BitExample {
    public static void main(String[] args) {   
    System.out.println(
         toBinaryString(0x1) + '\n' +
         toBinaryString(0x16) + '\n' +
         toBinaryString(0x6a) + '\n' +
         toBinaryString(0x80)
    I can see I�m missing something, but not sure what. Can you help?
    Many Thanks
    Giles

    which obviously returns a very different resultNo it does not ... let's translate the example to decimal (with additions instead of bitwise operations, but that doesn't change anything:
    1234 +
    0001
    1235and
    1234 +
    1
    1235both notations are correct, aren't they? Now the second one doesn't look so nice (and usually the 1 should be right-aligned to be easily readable, but it isn't wrong, because of this.
    The same is true for binary operations. The problem is, that while learning bitwise operations it's easier to unserstand if you always write the leading zero (as you do in your example).

  • How to get the leading zeros for decimal values?

    Hi,
      How i wil get the leading zeros for decimal values.For CONVERSION_EXIT_ALPHA_INPUT it is not working.Now iam using overlay condition for getting leading zeros.But iam getting the value like 00013.500.But as per my requirement i want to display this value 0000013.5.
    my code is
                    overlay w_MetLife_detail-rdempsalary with '000000000'
                    data :rdempsalary     type char9
    Please help me on this.
    Regards,
    Sujan

    Hi
    For more info,
    The function of the statement UNPACK is based on the fact, that the BCD display of a decimal place corresponds to the second half-byte of code of a digit in the most character representations. This conversion is commonly called "unpacking".
    The statement PACK to pack is obsolete and can be replaced by MOVE.
    If destination is specified as untyped field symbol or as untyped formal parameter and is not flat and not character-type during execution of the statement, then an untreatable exception occurs in Unicode programs. In non-Unicode programs, an exception occurs only with deep types, whereas flat types are treated as character-type types.
    Example
    After the assignments,char1 and char2 contain the values "123.456" and "0000123456".
    DATA: pack  TYPE p LENGTH 8 DECIMALS 3 VALUE '123.456',
          char1 TYPE c LENGTH 10,
          char2 TYPE c LENGTH 10.
    MOVE   pack TO char1.
    UNPACK pack TO char2.
    Regards

  • How can we put the leading zeros for the extract file.

    hello experts..
           Iam extracting values from one ztable in this for one filed length will be 2, for this field i need leading zero s at the time of extract... please help me....

    Hi,
    Declare the field as NUMC data type, automatically you will get the leading zeroes.
    Regards,
    Subramanian

  • How to maintain the leading zeros

    Hi all,
    I need help on this.
    I have field KNB1-KUNNR its real value for example is 0000000001,so there is leading zeros,but then everytime the program output the report leading zeros are removed. I need to display the leading zeros as is.
    By the way KNB1-KUNNR is declared as knb1-kunnr LIKE knb1-kunnr.
    thanks!

    Hi..
    Use this code for adding leading zeros for a particular field.
           CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
               input         =  p_kunnr
            IMPORTING
              OUTPUT     = p_kunnr.
    Use this code for removing leading zeros for a particular field.
           CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
             EXPORTING
               input         =  p_kunnr
            IMPORTING
              OUTPUT     = p_kunnr.

  • 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

  • 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

  • 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

  • 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 remove the leading zeros on jpg files?

    I'm looking for a way to remove the leading zeros on over 1000 jpg files, without changing the remaining digits in the file name. Is there some automated "batch" script?
    i.e going from 003405607.jpg  to  3405607.jpg

    You could write an AppleScript. but it will be easier to get and use a third-party file renaming utility. I use the freeware NameChanger which works quite well.
    https://www.macupdate.com/app/mac/21516/namechanger
    Regards.

  • How to suppress the leading zeros , -ve sign in scripts

    Hi all,
    I was asked to suppress the leading zeros in a field while using a script.
    also how to suppress the negative sign in the scripts.
    Regards,
    Saroja.

    hi Saroja,
    <u>Sign</u>
    &ITCDP-TDULPOS& -> 100.00-
    &ITCDP-TDULPOS(S)& -> 100.00
    <u>zero</u>
    &DAY& -> 01
    &DAY(Z)& -> 1
    Hope this helps,
    Sajan Joseph.

  • 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.

  • Not to loose the leading zeroes

    Hi ,
    We are passing a data in table to the application server
    I have a variable zipcode in the table
    it is described as
    final_tab-zip   = p0006-pstlz(5).
    "zip is decalred as zip(5)
    Now I am passing the table as comma delimited file to application server.
    The problem is in the process..we are loosing the leading zeroes..
    if say zip is 08801..
    we see it as 8801...
    How can we preserve the leading zeroes when we transfer the data..
    Any change need to be done while decalration or transfer..
    Thank you.

    I am moving the field to the string and passing it to the file
    code is like this
    LOOP AT final_tab.
        DO.
          ASSIGN COMPONENT sy-index OF STRUCTURE pm_tab TO <fs>.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          IF sy-index EQ 22.
            IF <fs> NE space.
              CONCATENATE string <fs> INTO string.
            ENDIF.
          ELSEIF sy-index EQ 1.
            IF <fs> EQ space.
              MOVE ',' TO string.
            ELSE.
              CONCATENATE string <fs> ',' INTO string.
            ENDIF.
          ELSE.
            IF <fs> EQ space.
              CONCATENATE string ',' INTO string.
            ELSE.
              CONCATENATE string <fs> ',' INTO string.
            ENDIF.
          ENDIF.
        ENDDO.
        APPEND string TO itab .
        CLEAR  string.
      ENDLOOP.
    Edited by: KUMAR BOJEDLA on Sep 5, 2008 11:10 AM

  • 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.

Maybe you are looking for

  • How to change document gamma (or create a "false profile")

    Although there has been much recent criticism of the notion of "false profiles," generally associated with the person who espouses it, I would like to be able to convert a document which is in, e.g., Adobe RGB with a gamma of 2.2 to one of the same c

  • How to start the Oracle 8i client in redhat 7.2?

    I have installed properly oracle 81 client and server properly. I wanna access anothe linux server. But I don't know how to start the clent ?..And what are should be done to access the remote oracle server? Thanks

  • Need to decommission a Windows 2003 server....

    I have a Windows 2003 DC with all the FSMO roles.  It was the first DC of the domain I also have 3 other DCs that are Windows 2008 R2.   All of the DCs are global catalogs.   DHCP Server is running on the Windows 2003 DC.   All of the DCs run DNS Ser

  • Change the look of a disabled component

    Can anyone clue me in on how to change the look of a component like a jScrollPane when it is disabled? I need to change the foreground/background so it will be easier for people to read. I've looked around for an answer since i'm sure it's simple eno

  • Help with a simple task

    Hi, I'm quite new to AS so this is actually quite simple but is something I've yet to figure out. My flash movie comprises of several sections, and all these can be accessed from the main menu. Right now, what I'm doing is to preload all the sections