How do you supress the leading Zeros from a numeric value

For example:
v_tmp = '0005'.
where v_tmp is of type NUMC(6),i can't change the data type as i get this value from a database table.
how do i convert v_tmp to '5'?
Thanks in advance.

data : v_int type i.
v_int = v_tmp.
If you want to move it to a CHAR variable, follow as below
data : v_numc(6) type n,
       v_char(10) type c.
       v_char = v_numc.
       condense v_char.
   SHIFT v_char LEFT DELETING LEADING '0'.
Regards
srikanth
Message was edited by: Srikanth Kidambi

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.

  • How can we remove the following zeros from quantity field ?

    Hi All.
    how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
    eg:getting output zqty = 2.000
    but i need           zqty = 2.
    help me to reslove this issue.
    Regards.
    jay

    Hi,
      While populating the field catlog do the following thing to   avoid zeros.
      wa_fieldcat-tabname = 'I_OUTPUT'.    " Curr
      wa_fieldcat-fieldname = 'FWAER'.
      wa_fieldcat-seltext_l = text-023.
      wa_fieldcat-no_zero = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR  wa_fieldcat.
    Thanks,
    Khushbu.

  • I just synced my iPhone and lost all the info in notes from my phone. It was replaced with whT was on my iMac how do you make the sync go from phone to desktop and not the other way around

    I Just synced my iPhone and lost all the info in notes I had on the phone. How do you have the info sync from phone to desktop and not the other way around as I usually make contact changes etc on my phone. I would then like to be able to sync that info from desktop to ipad thanks

    It does make sense.  The iPhone is a one-person device and just syncs to one computer.
    The way it should work is as follows:
    Old computer content ---> New computer
    New computer <---> syncs to iPhone
    But the way you are trying to operate sounds like:
    Old computer content ---> iPhone
    ... and ...
    New computer content <---> iPhone
    So simply move your old stuff (either directly from iTunes, or from a computer backup) to the new computer, have it all there, then sync your iPhone to the new machine.

  • How do you change the background color from black to another color on i movie

    How do you change the background color from black to another color on i movie

    You post your question in the iMovie forum.

  • HT4913 How do you download the entire library from match to a new computer?

    How do you download the entire library from iTunes Match to a new computer?

    Download each song individually.
    Or the faster method is to COPY the ENTIRE iTunes folder from the old computer or the backup of the old computer to the new computer.

  • How do you resize the pixel count from 4000  to 1600 in iPhoto

    How do you resize the pixel count from 4000 to 1600 in iphoto?

    In the Export Dialogue (File -> Export) note the options at Size. This will allow you to specify a maximum length or breadth for the shot.
    Regards
    TD

  • How do you keep the browser heading from showing?

    How do you keep the browser heading from showing in the
    output? I did this once but can't figure out how!
    Thanks in advance,
    Rosie

    You asked...
    quote:
    Is there a way to shrink the application you're capturing so it
    fits within a given capture window rather than requiring scrolling,
    or would I have to go back to the application developers for that?
    (I realize that would shrink the size of everything on the screen,
    but in some cases, that would be worth it to be able to show a
    window without scrolling.
    If, by "shrink" ... you mean by using the AppSizer, the
    answer is "not really". You can configure AppSizer to a defined
    size, then with the mouse pointer double-arrowed on the "edge" of a
    window, right-click and your window-size selections will appear in
    the AppSizer "list" (that you set up) and can be selected there.
    But there is no re-scaling of the window contents, if that is
    what you mean, so the smaller window may now require scrolling.
    But keep in mind that if you use the recording option for
    "Software Simulation" > "Custom Size", you can then snap the
    application window to that size...

  • How do you remove the SIM card from one iPhone 5 and place it in another?

    how do you remove the SIM card from one iPhone 5 and place it in another?

    With a paper clip?  Refer to the User Guide.

  • How do you remove the simm card from the iphone 4s with no side hole?

    How do you remove the simm card from the iphone 4s when it has no side hole.  The phone was purchased from Verizon so it not a clone or a demo to my knowledge.

    Verizon is a CDMA carrier.  I think your phone may be a 4, and not a 4s.  The CDMA iPhone 4 does not have a sim slot, because it doesn't use a sim.

  • How do you remove the blue dot from next to the podcasts.

    How do you remove the blue dot from next to the podcasts. I listen to 100s of podcasts on my ipod so the blue dot does not leave itunes. I use the blue dot to identify which podcasts are new. It used to be easy to remove the blue dot just play the podcasts for a second in more recent versions of itunes it is harder one has to play it for longer and half the dot is left. How do I select a dozen podcasts and mark them as used. I mean remove the blue dot.

    Hi,
    To Mark as Watched Right Click on the Podcast...
    To Select more than One Podcast... Shift Click...

  • How do you update the schema password from Oracle Enterprise Manager...

    How do you update the schema password from Oracle Enterprise Manager...

    Or do you mean, change the SYSMAN's password?
    If this is the case, I suggest you to refer to this link --> EM HowTo Reset sysman Password
    ~ Madrid

  • How do you update the schema password from OEM

    How do you update the schema password from Oracle Enterprise Manager...

    There is a metalink article on changing the SYSMAN password, assuming that's what you're referring to. See Metalink Note 270516.1

  • When playing songs in iTunes playlist, How do you keep the next song from jumping to next song? I am working on song list updating other tracks info and then the next song starts and I lose my spot in song list?

    When playing songs in iTunes playlist, How do you keep the next song from jumping to next song? I am working on song list updating other tracks info and then the next song starts and I lose my spot in song list?

    Max OSX 10.6.8, iTunes 11.1
    I had a similar problem: I wanted to synch my playlist to my iphone. I like to have my playlist sorted by genre. But under each genre, albums are not sorted by the track numbers. This is a problem, especially when I am listening to club mixes when the DJ smoothly transitions from 1 track sequentially to the next one. Under the properties of each audio file, the Track Numbers and Disc Numbers are already there.
    My perfect solution was to turn On Sorting - Sort Album under View>Show View Options. Then, select all the songs in that album (Shift click, Cmd click, etc) , and Edit multiple item information (Cmd I). You will see Info-Video-Sorting-Options buttons. Click on Sorting. Then, under Sort Album, Enter the name of the album. Then OK.
    You should now have the playlist sorted by Genre, then each album individually sorted by track numbers. On your playlist you should see, if you scroll right, the column added called "Sort Album".
    Hope this helps.

  • Removing leading zeros from a string value

    Hi All,
    i have a Requirement like , i need remove leading zeros from a string value,
    like , 00Raj00Shekar==>Raj00shekar,
    how can i do this ?
    if it is only with the custom functions ,where can add the fuction in Jdeveloper and SOA Middle ware?
    Thanks in Advance,
    Raj

    Hi Raj,
    you can use below function to get the desired output in xsl.
    <xsl:value-of select='translate(oraext:left-trim(translate(<inpString>,"0"," "))," ","0")'/>
    HTH,
    Regards,
    Vikas Manchanda

Maybe you are looking for