Need to put procedding zero before a number

hi
i wnat to put zero digit bofre a number which is coming in a variable...pls sugest for that
do we use concatenate or i dont want to use alpha input etc functionon module only one zero i want to put not all empty space to zero
so pls suggest how to put a zero before a number
egang;e number in varialbe as comiing is 587
i want it like to be 0587 ie zero in fron of it
rgds
arora

Hi Arora,
Proceed as follows.
DATA: v_cout TYPE charn.  "Here replace 'n' by any number say char20
v_cout = '123456'.
CONCATENATE '0' v_cout INTO v_cout.
WRITE:/ v_cout.
Now the output gets displayed as 0123456.
If this doesn't work out then send me your code so that I can modify the same and send it back to you.
Reward accordingly.
Thanks and Regards,
Maddineni Bharath.

Similar Messages

  • Need to show leading zeros in the number field when printed from RDF

    We have a requirement to show leading zeros in the rdf output.
    We cannot use a format mask to achieve the same as the length of the field is not fixed.
    for ex if we have 0.68 then the same is printed in RDF as .68
    we cannot use a format mask as the length of the field is not fixed.
    we need to
    Kindly suggest if any solution exists for the same.

    the numbers after the decima can be anything..
    it can range between 2 to 10 or more...
    as told by you if we put the format as to_char(.68,'90.99') it shall give 0.68 but what for numbers like0.678,0.4567,0.765433 it will display only 2 digits after the decimal...
    The requirement is to dispaly the number as it is ,only the zeroes before the decimal should stay intact..
    we are not able to achieve this in rdf output..
    if it is
    0.678 then 0.678 shld be dispalyed
    0.4567 then 0.4567
    0.765433 then 0.765433
    one format mask shld wrk for all the above..
    we would not be changing the format mask for each number....

  • Prefixing zero before a number

    Hi all
    i have a variable whose length shud be 9 always and sometimes it can be less than 9. To make it 9 always I'll be adding some zeros to it. Is there any method in java which adds 0's before a number?
    Reagards
    LaV

    LaVz wrote:
    Hi all
    i have a variable whose length shud be 9 always and sometimes it can be less than 9. To make it 9 always I'll be adding some zeros to it. Is there any method in java which adds 0's before a number?
    Reagards
    LaVcheck out the Formatter class
    http://java.sun.com/javase/6/docs/api/java/util/Formatter.html

  • Function Module to put leading zero

    Hi,
    Function that puts leading zeros. I am getting a text file which has got cost center as 1234, but i need to put leading zero in order to check the availability of the value in the table csks.
    I want a function module which puts leading zero.

    hi,
    Use FM <b>'CONVERSION_EXIT_ALPHA_INPUT'</b>
    <b>FU CONVERSION_EXIT_ALPHA_INPUT</b>
    Text
    Conversion exit ALPHA, external->internal
    ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.
    Example:
    (Input field and output field are both eight characters in length)
    1. '1234    ' --> '00001234'
    2. 'ABCD    ' --> 'ABCD    '
    3. ' 1234   ' --> '00001234'
    Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.
    Parameters
    INPUT
    OUTPUT
    Exceptions
    Function Group
    ALFA
    Regards,
    Santosh

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

  • I had a prepaid card added to my i tunes and now the game is asking to be updated and before i can update i need to put in the prepaid card information but i threw the card away there was no more money on it what do i do?

    I had a prepaid card added to my i tunes and now the game is asking to be updated and before i can update i need to put in the prepaid card information but i threw the card away there was no more money on it what do i do?

    I just found another address book entry that was repeated 2473 times!!!   This is a just a little ridiculous, don't you think?   And why that one?  Most are ok but ....

  • How do i find out what my serial number is? I cannot find the software and need to put it on a new computer. How do I do this?

    I cannot find the software and need to put it on a new computer. How do I do this? I do not remember where the software is yet it is on my computer along with Photoshop CS6 extended. I have that disk but cant find anything else.

    gr8gear,
    You can see (only) part of the registration number under Help>About Illustrator.
    If you have registered it with Adobe (optional up to CS4), you should be able to see it on your products page
    https://www.adobe.com/account/my-products-services.html
    Otherwise, you may ask in a chat here (depending on version):
    Creative Cloud support (all Creative Cloud customer service issues, chat open between 5AM and 7PM PST/PDT on workdays)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html
    Serial number and activation support (non-CC, chat open between 5AM and 7PM PST/PDT on workdays)
    http://helpx.adobe.com/x-productkb/global/service1.html

  • Purchased adobe acrobat x serial number does not work after two computers i need it put on a third computer help

    I purchase adobe acrobat x   I put it on two computers in my office I need to put it on one more but the serial number does not work anymore   is there a way to put it one the third computer?

    Also, you can only use it on two computers if they belong to the same person, are used only by that one person, and are not used at the same time. To install on two computers for two people needs two licenses. Adobe sell volume licenses, but do not sell an "all the computers in the office" license.

  • New CS6 on disk for Mac will not take my valid serial number; do I need to register the product before it will accept serial number and load on my Mac Book Pro?

    New CS6 on disk for Mac will not take my valid serial number; do I need to register the product before it will accept serial number and load on my Mac Book Pro?

    Hi Erwin,
    Please go through the below forum link and check.
    https://forums.adobe.com/thread/1079210
    Regards,
    Anand

  • I'm having trouble formatting a book I'm writing using Pages. I need to put my name and book title in the upper left hand corner of EACH page- opposite the page number. How do I do this?

    I'm having trouble formatting a book I'm writing using Pages. I need to put my name and book title in the upper left hand corner of EACH page- opposite the page number. How do I do this?

    And if this is the new IOS Pages v2 (or the older IOS Pages 1.7.2), you click the wrench icon and then Document Setup. Tap the document header to edit it, and apply the same instructions that I gave previously for OS X Pages v5.
    The process for Pages ’09 v4.3 is slightly different. You click the Header, and enter your document title and your name as previously described. You will need Menu > View > Show Ruler. Click once in the ruler at the first or second mark after the 7 inch (roughly 18cm). This will set a tab. Now position the insertion mark behind your title and tab once to the mark you set. Now you can Menu > Insert > Auto Page Numbers ...

  • I'm trying to install Design sutie 5.5 but lost theserial number. It is on an older computer that is crash and i need to put it on a newer computer how can i get it.

    I'm trying to install Design sutie 5.5 but lost theserial number. It is on an older computer that is crash and i need to put it on a newer computer how can i get it?

    If you registered the software when you first installed it then you should be able to find the serial number available thru your Adobe account online.

  • [Tweak needed] - Generate a Complex Password without the number 0 (zero)

    Hi there,
    I've been reading this forum a lot, and happens to be the first time I need to post something on my own.
    I've found this very useful piece
    of code from your script repository and I've been able to tweak it for my needs but for one thing: eliminate the number 0 (zero) from the list of possible list of numbers to be used.
    I know I could read the string and if 0 (zero) is found, reject the password, but would rather understand/find a way how to make it not an option at all to generate
    the password.
    Thanks a lot in advance for your answers.
    Patrick

    Change the following line in the script:
    iAsc = Int(Rnd*10)+48
    To: 
    iAsc = Int(Rnd*9)+49
    The original code generates a random ASCII character value for the numbers 0 to 9 (ASCII 48 to 57). The new code generates a random ASCII character value for the numbers 1 to 9 (ASCII 49 to 57).
    As has been mentioned already, by not allowing zeros you are effectively (slightly) weakening your algorithm for generating complex passwords.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Where can I find the registration number of my product? I need to put it on a different computer.

    Where can I find the registration number of my product? I need to put it on a different computer.

    If you registered the product with Adobe the number should be in your account.
    You will need to come here via your web browser
    https://forums.adobe.com/thread/1595271
    Then click on the red Adobe logo (top let on the page) and choose manage account. You should then be able to browse your purchase history and registered products.

  • DELETE ZERO BEFORE NUMBER

    hallow
    i have field type numc20 and i wont to delete all zero before num
    how can i do that
    example
    i have
    000000000317
    i wont 317
    REGARDS

    hi,
    CONVERSION_EXIT_ALPHA_OUTPUT is the Fm used for giving desired o/p and takes a input from user
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        input         = int [int is avaraible of type num20
    IMPORTING
      OUTPUT        = k. [ resultant value by FM]
    if useful reward some points.
    with regards,
    suresh.

  • 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

Maybe you are looking for