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.

Similar Messages

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

  • 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

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

  • Prevent oracle suppresses the leading zero

    Hi guys,
    What is the best way to prevent oracle from suppressing leading 0 while convert a number to char. I am using Release 11.2.0.1.0.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select to_char(0.01) from dual;
    TO_
    .01I can achieve this by using decode, for example:
    SQL> select decode(instr(to_char(0.01), '.'),
      2                1,
      3                '0' || to_char(0.01),
      4                to_char(0.01)) val
      5    from dual;
    VAL
    0.01
    SQL>But it doesn't look very pretty, is there a better way to do this please? Please note my data is mixed with values with or without decimal places. When the value is greater equal than 1, i want to have the output as same as to_char(val), the padding zero only applies to when the value is between 0 to 1. Many thanks.
    Best regards,
    Pete

    Many thanks Justin, but it doesn;t give quite what i want
    SQL> select to_char(1, '0.99') col from dual;
    COL
    1.00
    SQL>Please note my data is mixed with or without decimal places, for example value 123, i just want to show 123, NOT 123.00 instead. At the moment i am using decode to do this as:
    SQL> select decode(instr(to_char(123), '.'),
      2                1,
      3                '0' || to_char(123),
      4                to_char(123)) val
      5    from dual;
    VAL
    123
    SQL>It works but it looks ugly to me, I wonder is there a better way to do this please?
    Cheers,
    Pete

  • 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

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

  • How can i avoid leading zeros for a field in smartform?

    how can i avoid leading zeros for a field in smartform?

    Hi,
    Using the Symbols.
    &symbol(Z)&  Omit Leading Zeros  &symbol(S)&  Omit Leading Sign 
    &symbol(<)&  Display Leading Sign to the Left 
    &symbol(>)&  Display Leading Sign to the Right 
    &symbol(C)&  Compress Spaces 
    &symbol(.N)&  Display upto N decimal places 
    &symbol(T)&  Omit thousands separator 
    &symbol(R)&  Right justified 
    &symbol(I)&  Suppress output of the initial value 
    Regards,
    Shiva Kumar

  • 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

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

Maybe you are looking for

  • Dunning letter with multi currency

    Hi How to set dunning letter with multi currency.I have this customer that have multi currency transaction.How do i set the dunning letter to show multi currency value.Thanks

  • Is keynote just for os x mavericks?

    Is keynote just for os x mavericks? I want to uninstall os x mavericks, but I don't know can I have it again or not?

  • Business Objects Core Dumps

    Hi, We are experiencing problems with Business Objects, in the past, from time to time we were required to re-start BO because BO was crashing. But, now this is happening more regularly, almost daily. We have reports that take 12 hours approx. to com

  • How can I check my Icloud email in my pc

    how can I check my Icloud email in my pc

  • Package invalid

    El paquete DBMS_ASYNCRPC_PUSH aparece descompilado genera el siguiente error: PLS-00753: malformed or corrupted wrapped unit. ya se ha ejecutado los siguientes scripts ( utlrp.sql and utlprp.sql), se ha ejecutado los siguiente comandos Exec dbms_ddl.