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.

Similar Messages

  • I have accidentally deleted a large number of develped images in Lightroom before I did a backup. I reimported the original raw files back into Lightroom hoping the develop settings would be re-established but no luck. Notice system mau have done an auto-

    Question?
    I have accidentally deleted a large number of develped images in Lightroom before I did a backup. I reimported the original raw files back into Lightroom hoping the develop settings would be re-established but no luck. Notice system mau have done an auto-backup as have an lrcat-journal file. Can I use this to restore my develop settings. I also have jpgs generated from all the deleted images.

    Hello,
    if you have a backup of your catalog you can do the following:
    1. Backup your catalog first
    2. Restore your backup catalog to some location
    3. Open your current catalog and select "files->import from another catalog".
    4. Select your backup catalog and your lost images. LR ask you if you want to overwrite the current settings or save them as a virtual copy.
    As an alternativ you can open your backup catalog, select the "lost" images and save the development settings as xmp sidecar fiels (using ctrl-s). Then open your current catalog, seletct the images and use "Metadata->Read Metadata from files".

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

  • When using a chart in Pages, the first zero is deleted in any number beginning with a zero

    When using a chart in Pages, the first zero is deleted in any number beginning with a zero (for example, 055). How do I stop this?

    The leading zero in the value 55 is unnecessary, so Numbers eliminates it for cells formatted as Number or Automatic. A cell formatted as Text prior to making the entry will take whatever you type into it and keep it as entered. A cell formatted as Numeral System will display as many places as you tell it to, and will add zeros as necessary without your even having to type them in.
    Jerry

  • How to delete a delivery number/note

    Hi All
    How to delete a delivery number/note
    Thanks for the help
    Rajendra Prasad

    Hello,
    Start with checking the document flow. If the invoice has already been generated to that specific delivery you need to cancel the invoice before you delete the outbound delivery.
    Step 1: T Code VF11 helps you to cancel billing document.
    Step 2: Then use T Code VL09 and reverse the goods movement by entering the values in the fields. Once you reverse the documents then you can delete the outbound delivery in VL02N under menu bar Outbound Delivery u2013 Delete.
    Step 3: If PGI has not done you can cancel the outbound delivery by editing the picking quantity to zero. If Warehouse Management installed then you can cancel all the transfer orders before you delete the outbound delivery.
    If invoice has not created and PGI done then proceed with
    step 2.
    If  PGI has not done and Picking completed then proceed with step 3.
    Regards,
    Vamsi

  • Reconciliation difference must be zero before reconciling  [Message 3821-8]

    Dear Experts,
    Are there any possible solutions to retrieve the AP Invoice & CN that has been manually deleted from database? My backup database is not working and I have made mistakes by adding 2 invoices & 1 CN in the live system. 
    Problems:
    I have created AP CN 2872 by copying from AP INV 56482 with partial amount (Inv total =15345.77 while CN total = 11205.65). Then I cannot find that AP CN in the list available in Outgoing Payment as it’s already being knocked off by the AP Inv. I need to get the manual AP CN to make the payment. Also, I found that the balance due of AP INV 56482 was incorrect as it was being deducted by CN 2872. So we have tried to create another AP invoice to cancel that AP CN. Unfortunately the balance due in Outgoing Payment is not tally with BP balance. Then, I have deleted the wrongly created invoices & CN in database and recreate the CN using SQL. Now, I am getting this error message “Reconciliation difference must be zero before reconciling  [Message 3821-8]” when I tried to add the Outgoing payment.
    I have messed up the tables. I have gone through SAP Note 1258628 & 1264090 but still do not know how to solve my problems yet.
    Kindly assist me on the above issue.
    Thanks & BR,
    Leng

    Hi
    Check log tables: ADOC, ADOx - maybe you'll be able to find your data there. You'll still need to take care about lots of things: header and lines for docs, reconciliation, accounting etc.
    but this just as an emergency - as Frank stated: you broke the rules and cannot count on SAP support.
    Maybe your database's recovery model is set to 'Full' - in such case you could be able to make restore to point in time. Otherwise do what Frank suggested.
    Kind regards,
    Radek

  • Impossible to delete an item number of a PO of the previous year

    Hello,
    I have a question.
    Closing Operations (Carryforward of Open Items) were not made yet.
    We want to delete in 2011 an item number of a purchase order (created in 2010 with doc date of the year 2010).
    The System informs us that  It is not possible to change document in fiscal year 2011 because the document was updated as open commitment in fiscal year 2010 in Funds Management.
    System : SAP ERP 6.0 /7.0 - EHP 4 - FM BCS
    In our old  system SAP 4.7 enterprise (FM) , It was possible to delete an item number of a purchase order of a previous year (when Closing Operations (Carryforward of Open Items) were not made yet).
    Isn't it possible any more to delete in 2011 an item number of a purchase order created in 2010 before Closing Operations ?
    Thanks for your answer.
    Fabian

    Hi,
    I believe, you have PBET activated. In this case, modification of the commitment should be indeed made in the same year.
    Regards,
    Eli

  • Oracle Error 01034 After attempting to delete a large number of rows

    I sent the command to delete a large number of rows from a table in an oracle database (Oracle 10G / Solaris). The database files are located at /dbo partition. Before the command the disk space utilization was at 84% and now it is at 100%.
    SQL Command I ran:
    delete from oss_cell_main where time < '30 jul 2009'
    If I try to connect to the database now I get the following error:
    ORA-01034: ORACLE not available
    df -h returns the following:
    Filesystem size used avail capacity Mounted on
    /dev/md/dsk/d6 4.9G 5.0M 4.9G 1% /db_arch
    /dev/md/dsk/d7 20G 11G 8.1G 59% /db_dump
    /dev/md/dsk/d8 42G 42G 0K 100% /dbo
    I tried to get the space back by deleting all the data in the table oss_cell_main :
    drop table oss_cell_main purge
    But no change in df output.
    I have tried solving it myself but could not find sufficient directed information. Even pointing me to the right documentation will be higly appreciated. I have already looking at the following:
    du -h :
    du -h8K ./lost+found
    1008M ./system/69333
    1008M ./system
    10G ./rollback/69333
    10G ./rollback
    27G ./data/69333
    27G ./data
    1K ./inx/69333
    2K ./inx
    3.8G ./tmp/69333
    3.8G ./tmp
    150M ./redo/69333
    150M ./redo
    42G .
    I think its the rollback folder that has increased in size immensely.
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 10800
    undo_tablespace string UNDOTBS1
    select * from dba_tablespaces where tablespace_name = 'UNDOTBS1'
    TABLESPACE_NAME BLOCK_SIZE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS
    MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS CONTENTS LOGGING FOR EXTENT_MAN
    ALLOCATIO PLU SEGMEN DEF_TAB_ RETENTION BIG
    UNDOTBS1 8192 65536 1
    2147483645 65536 ONLINE UNDO LOGGING NO LOCAL
    SYSTEM NO MANUAL DISABLED NOGUARANTEE NO
    Note: I can reconnect to the database for short periods of time by restarting the database. After some restarts it does connect but for a few minutes only but not long enough to run exp.

    Check the alert log for errors.
    Select file_name, bytes from dba_data_files order by bytes;
    Try to shrink some datafiles to get space back.

  • Leading zero before decimal point

    Hi,
    I am trying to format a number so that there is a leading zero before the decimal point.
    I am trying
    select to_char(.75,'999,999.99') from dual;
    But this gives me only .75 as output.
    I want 0.75
    Is there any easy way to get it (I guess it would be possible with all sorts of decode and lpad combinations, but I want to avoid that! I'm sure there must be some easy way!)

    this?
    SQL> SELECT TO_CHAR('.75','990.99') FROM dual;
    TO_CHAR
       0.75
    SQL> ed
    Wrote file afiedt.buf
      1* SELECT TO_CHAR('.75','999.99') FROM dual
    SQL> /
    TO_CHAR
        .75
      1* SELECT TO_CHAR('.75','099.99') FROM dual
    SQL> /
    TO_CHAR
    000.75

  • Sapscript delete zero

    Hello Experts,
    I have one problem in one sapscript. The problem is that i display in two columns two fields I_LTAP-CHARG and I_LTAP-VLENR.
    After to pass them to my form i delete zero at the left with the MF: CONVERSION_EXIT_ALPHA_OUTPUT.
    The first column is for I_LTAP-CHARG and the last one is for I_LTAP-VLENR.
    In the sapscript, i call them like this: &I_LTAP-CHARG& and &I_LTAP-VLENR&.
    So, the problem that the first field I_LTAP-CHARG is displayed correctly but for  I_LTAP-VLENR
    is truncated in the begin.
    Example:  I_LTAP-VLENR = 00000000001200000565
    After the call of CONVERSION_EXIT_ALPHA_OUTPUT --> I_LTAP-VLENR = 1200000565
    And in the form the value displayed is : 00000565 (Without the two first caracters)
    I switch the order of the columns but the same problem, i change the Alignment for paragraph format and the tabulation but always the same problem.
    What i don't understand is why the problem occurs just for I_LTAP-VLENR and not for I_LTAP-CHARG and just before Write_Form of the main the value of I_LTAP-VLENR  is always correct 1200000565 but when we display the form the value displayed no es correct, why the system truncates the two first letters!!!!
    If can anybody explain me why and what is the solution for this problem.
    Thank you very much.

    Hi Bhupal,
    Thank you for your response.
    I tried  &I_LTAP-VLENR(Z)&     but doesn't work!!!!
    What i don't understand why the same logic works for I_LTAP-CHARG and not for I_LTAP-VLENR!!!!!!!!!!!!!!!!!!!!!!
    Thank you very much, if you have any other idea give me it pleassse.

  • Deleted zero

    Hi all,
    i have small prob.... how i want to delete zero in string format... let say i have 123000 and i want to get output 123 or i have 1200000 so i want to be 12...
    can someone help me...
    Thanks...

    Hi,
    u can do it in number of ways.
    Use TCODE SU3
    Select default tab and select radio button 123467.89 in decimal notation and save it.
    or u can try :
    if you want to do this through ABAP program.
    1. to delete trailing spaces.
    SHIFT <V_VARIABLE> RIGHT DELETING TRAILING '0'.
    to delete leading zeroes,
    SHIFT <VARIABLE_NAME> LEFT DELETING LEADING '0'.
    only for one abap program, u can use set country command
    for all programs :
    sap menu>system->go to user profil->own data>default --> and choose ur format.
    or u can use these fms also..
    CONVERSION_EXIT_ALPHA_INPUT Conversion exit ALPHA, external->internal
    CONVERSION_EXIT_ALPHA_OUTPUT Conversion exit ALPHA, internal->external
    reward if it helps..
    Regards,
    Omkar.

  • Order number range - delete an unused number range

    Hi,
    I created two number ranges 60000000 - 69999999 / 61000000 - 61999999 for co orders. In the meantime the requirements changed so that we only need one number range 60000000 - 61999999.
    How do I delete an unused number range? In t-code KONK I can select the range but when I try to delete it by Edit - Delete interval this menu action is not selectable.
    It's not really a problem as it is still in the developement system but it would be nice to eliminate this one.
    Thanks a lot in advance,
    hansi

    HI,
    T-code KONK, choose "maintain (f6)" flag the intervall to be deleted, press "maintain (strg + f5)" mark the selected number range and tick the "delete interval" button.
    Maybe its necessary to set the number status back to zero...
    Best regards, Christian

  • Deleting zeroes

    Hi,
    I am capturing coset center values from BAPI which is of type string.
    i declared it as string and displaying value in webdynpro java.it is taking zeroes before the values of cost center if the cost center is number.for eg : if the cost center value is 88888 in the R/3, it is displaying as 00088888.if the cost center value is D30045 it is displaying as D30045, not taking any zeroes before the value.how to omit the zeroes before the cost center value.
    pls guide me .
    Regards,
    Pavani

    Hi Pavani
    Same problem is already disucssed in forums
    Re: Removing leading zeros in a column
    Please go through this wiki.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/java/remove%252bleading%252band%252btrailing%252bzeros%252bfrom%252ba%252bstring

  • Deleting Zeros

    HI EXPERTS,
    Field1 = CAL_0000138171_XYZ
    Hw to delete zeros between  CAL_ and XYZ.
    ie output should be FIELD1 =  CAL_138171_XYZ.
    if   FIELD1 = 0000138171
    I can use  this SHIFT  FIELD1 LEFT DELETING LEADING '0'.
    But hw to do first one.
    Please help me.

    Hi,
    Actually you can use Replace as it is the easiest and efficient way to solve your requirement. But you need to utilize the REGEX addition, try as follows;
    DATA field1 TYPE string.
    field1 = 'CAL_0000138171_XYZ'.
    WRITE : / 'Before Replace :' , field1.
    REPLACE REGEX '_0*0' IN field1 WITH '_'.
    WRITE : / 'After Replace :' , field1.
    Output:
    Before Replace : CAL_0000138171_XYZ
    After Replace : CAL_138171_XYZ
    This will be more efficient then SPLIT & SHIFT.
    REPLACE REGEX '_0*0' IN field1 WITH '_'.
    Regards
    Karthik D

  • I am trying to delete a large number of songs from my Itunes library without having to delete them one at a time.  How do I do that?

    I am trying to delete a large number of songs from my itunes library without having to do it one at a time.  How can I do this.  All of my songs have check marks by them.  Help!

    Then I suspect you do not have iTunes Match enabled. Using that "delete all" command in the Settings does not remove the music from the cloud, nor does it disable iTunes Match. With iTunes Match enabled you will still see all the music.
    So go to Settings > iTunes and App Store and make sure iTunes Match is set to ON (green).

Maybe you are looking for

  • 10.5.4 update - not letting me logon

    i just installed the newest 10.5.4 updates for my imac. everything restarted and it came to the logon screen (which never happened before) and I enter my password and the screen goes away, then a few seconds later it comes up again. I know the passwo

  • Weblogic GC Problem - Please assist

    Hi, I am working on WebLogic(for the first time) with a sun JVM on a 8 CPU solaris machine, we have set the GC algorithm as, "-Xms2048m -Xmx2048m -XX:NewSize=576m -XX:MaxNewSize=576m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:SurvivorRatio=8 -Xverify

  • Mail is acting up

    Email remains in Draft after it has been sent. Find 10 copies of 1 sent email in the Sent Folder. Mail is coming in slowly. Have you encountered the same issues? Thanks.

  • Sybase group to oracle roles

    I've been testing Sybase to Oracle migration using SQL Developer 3.1.06 release. I dont see the user/groups on the Sybase is not getting converted in respective roles in Oracle. Am i missing something here? Any help is much appropriated. Thanks ~ G

  • New Window or New Tab not working in Safari Ver 6

    When I click to either open a new window or a new tab in Safari it does not act normally as it does on other computers.  Instead it basically gives me a blank window replacing whatever is currently open.  I have noticed that if I go to full screen mo