Want to hide/eliminate the leading Zeros in the Variable popup for0MATERIAL

I have a requirement where 0MATERIAL is having leading zeros and it has the MATN1 conversion routine in the production system.I want to only remove the leading zeros in the Variable popup in report for 0 MATERIAL witohut changing the definition of the object as it has too much production data to change.
Best Regards
Tagore

Hi,
You will have to write some code in F4 help BADI, please refer the sap note 1416952. And you can take help of following function module to remove leading zeros,
CONVERSION_EXIT_ALPHA_OUTPUT.
If above thing doesn't help then you will have to create virtual key figure.
Regards,
Durgesh.

Similar Messages

  • Is there a way to remove the leading zero from the 24 hour time display in iOS8?

    In the previous versions of iOS, the 24 hour time format for some regions dropped the leading zero from single digit hours: 1:23 for example.
    In iOS8, it appears that once 24 hour time format is toggled, the time is always displayed as four numbers: 01:23 for example.
    Is there a way to revert to this older format without leading zeroes?

    Yes, a colleague of mine was able to figure it out. Just double-click the chapter title in the .aggr project. It places it into edit mode and allows you to remove the ".swf" extension as well as make any other changes to the name that you want. It's so easy now that we know how to do it, but it was tricky to figure out since the chapter list does not appear editable at first.

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

  • Leading zero for the instance

    hi,
    my numbers looks like 0 or -0,23 or ,45...
    but i want to have a leading zero, e.g. 0,0 or 0,45
    i know that i can use to_char(xxx,'format') in queries,
    but i want to have the leading zero for the whole instance.
    is that possible?
    thx.

    In cas you use SQL*Plus for your queries modify your login file
    SET NUMFORMAT ...http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch3.htm#1005686

  • 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

  • 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

  • Need leading Zeros in the excel sheet which is sent from ABAP

    Hi ,
    I am downloading data from SAP to excel sheet using the WS_DOWNLOAD Function Module. The numeric data in not having leading zeros.  if it is 0010 it is displaying 10 in the excel sheet . i need the leading zeros in the excel sheet. without manulally changing it to Text in the excel sheet .
       Is there any way to do it .
    Thanks,
    Chetan

    Hi Chetan,
      CALL FUNCTION 'WS_DOWNLOAD'
        EXPORTING
          filename                = w_file_path
          filetype                = 'DBF'                       "declare the File type as DBF then leading zeros will appear
          write_field_separator   = 'X'
          confirm_overwrite       = 'X'
        TABLES
          data_tab                = Itab.
    Regards,
    Prabhudas

  • BAPI to remove leading zeros from the serial number

    Hi All ,
    plz can anybody suggest me the alternative BAPI for 'BAPI_SERVNOT_MODIFY_DATA ',whose function is to delete the leading zeros,from the serial number.
    Thanks.

    Perhaps instead of using a BAPI you can code it like this.
    DATA:serial(10) TYPE n VALUE '0000340078',
    pos TYPE i VALUE 1.
    START-OF-SELECTION.
      WHILE pos <= 10 AND serial+pos(1) = 0.
        pos = pos + 1.
      ENDWHILE.
      REPLACE ALL OCCURRENCES OF '0' IN serial(pos) WITH space.
      WRITE serial.

  • 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

  • About FF_5(RFEBKA00), how to delete the leading zero by using user exit

    The program RFEBKA00  can handle input files that don't carrry the leading zeros on the check number field.
    But the Table PAYR stores check number with leading zeros
    While inbound, the program will don't work well.
    How should i enhance the program?
    Thanks a lot
    Daniel

    Hi,
    Create a new program that will read the fields..
    Then put the leading zeroes in the check number field..
    And then modify the file..
    You can use the FM CONVERSION_EXIT_ALPHA_INPUT to put leading zeroes..
    Thanks,
    Naren

  • About FF_5(RFEBKA00), how to delete the leading zero by using user ex

    The program RFEBKA00 can handle input files that don't carrry the leading zeros on the check number field.
    But the Table PAYR stores check number with leading zeros
    While inbound, the program will don't work well.
    How should i enhance the program?
    Thanks a lot
    Daniel

    Hi,
    Please do not open duplicate threads for the same question..
    Please close this thread..
    Thanks,
    Naren

  • Suppressing Leading Zeroes in the Query output

    Hi,
    I have selected a data field(0MATERIAL) as a free characteristics, It displays text and key and the key has leading zeroes.
    In the infoobject 0MATERIAL, ALPHA conversion routine is not selected, I can't change and insert the ALPHA right now because it would end up with reloading a large volume of data in different targets. To avoid this or to reduce the impact, in the reverse way,
    Could it be possible to suppress this leading zeroes at the query level? I was hoping that there would be a change that I could make at the query level, since it is 0Material and am looking at the point of minimal impact.
    Thank You.

    Hi Senthil,
    create InfoObject ZMATERIAL like a copy of 0MATERIAL, delete all the attributes and insert ALPHA conversion.
    Insert this ZMATERIAL like display attribute of 0MATERIAL. In InfoSource for 0MATERIAL map also ZMATERIAL with the same field that is feeding 0MATERIAL (MATNL). In your query insert 0MATERIAL and ZMATERIAL, and then hide 0MATERIAL (you need to insert also 0MATERIAL because ZMATERIAL is only in display), you will see only the values of ZMATERIAL, that is the material without the zeros in front.
    You can also decide to transform ZMATERIAL like navigational attribute, but in this case you have to change all the structure where do you want ZMATERIAL, because you need to flag it like navigational in that specific structure.
    Ciao.
    Riccardo.

  • 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

  • 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

Maybe you are looking for