Right deleting

Hi experts,
I have itab like this.
MENGE
1.000
1.000
2.000
Here, Iam trying to delete .000
why shift deleting trailing 0 is not working??
how to delete this??
thanks
kaki

Hi kaki,
1. It won't work because
   menge itself (by definition)
   has 3 decimals.
2. Instead use another vartiable
type i.
3.
report abc.
data : menge like ekpo-menge.
data : m type i.
menge = '1'.
m = menge.
write :/ menge.
write :/ m.
regards,
amit m.

Similar Messages

  • 'SHIFT variable RIGHT deleting trailing space' not working

    I have a character field in a transaction that occasionally gets populated with a value that has a space at the end or at the beginning or both. This is causing the dataload to fail. I added code below to remove these spaces from the end and beginning-
    SHIFT <variable> RIGHT deleting TRAILING space.
    SHIFT <variable> LEFT deleting LEADING space.
    The SHIFT LEFT works perfectly and deletes the space at the begining of the value but SHIFT RIGHT does not delete the space at the end for some reason. I tried defining the variable as a char (16), string but nothing seems to make it work.
    Note: I cannot use CONDENSE because the value can have spaces in between that we cannot delete.
    Any ideas why shift right wouldn't work?

    Hi Maanasa,
                           First of all Shift works only with string datatype. So transfer the contents of that character field into a string datatype and do the shift operation.
    Declare a string variable of that type. Data v_str type string.
    Pass the contents of the character field into the string.
    And do the shift operation on the string and pass the value of the string back to the character field.
    Shift v_str by 1 places right.
    Please try this.
    Thanking you,
    Jerry

  • RIGHT DELETING TRAILING SV_SPACE

    SHIFT GT_T_DATA-EBELN  RIGHT DELETING TRAILING SV_SPACE.
    in the above line GT_T_DATA is an internal table , I am not able to understand the meaning of RIGHT DELETING TRAILING SV_SPACE . Please help me in this issue .
    Sabyasachi

    Check it.I am sending it from SAP HELP.
    Variant 4
    SHIFT c LEFT DELETING LEADING c1.
    Variant 5
    SHIFT c RIGHT DELETING TRAILING c1.
    Effect
    (Variant 4/variant5). Shifts the contents of c to the left or right for as long as the string begins or ends with a character contained in c1.
    If c does not begin or end with a character from c1, it remains unchanged.
    Example
    DATA: ALPHABET(15) VALUE '     ABCDEFGHIJ',
          M1(4)        VALUE 'ABCD',
          M2(6)        VALUE 'BJJCA '.
    SHIFT ALPHABET LEFT DELETING LEADING M1.
    The field ALPHABET remains unchanged.
    SHIFT ALPHABET LEFT DELETING LEADING SPACE.
    The field ALPHABET now has the following contents:
    'ABCDEFGHIJ     '.
    SHIFT ALPHABET RIGHT DELETING TRAILING M2.
    ALPHABET now has the following contents:
    '      ABCDEFGHI'.
    Note
    Performance:
    For performance reasons, you should avoid using SHIFT in WHILE loops.
    The runtime required to shift a field with length 10 by one character to the right or left requires about 5 msn (standardized microseconds). A cyclical shift requires around 7 msn. The runtime for the ... LEFT DELETING LEADING ... variant is around 3.5 msn, for ...RIGHT DELETING TRAILING... around 4.5 msn.

  • Mac's keyboard left to right Delete ?

    When a PC person types a mistake they can delete letters from left to right or right to left using backspace or delete keys ! The Mac keyboard only has delete which deletes from right to left! How can a Mac person use the keyboard to delete from left to right ?

    I don't know how old your Mac keyboard is, but all recent (last few years) Mac keyboards have had a forward-delete key. Under the F14 key, there's the help key, then below that is the forward delete key.
    Interestingly, why would you post this queston in an iPhoto 6 discussion board? Oh well fortunately the question was simple enough.
    Cheers

  • HP dv-5-1108ax: some keys on keyboard not working - left, right, delete, pg up, pg down

    I have looked on multiple different forums and websites to find a solution to my problem but havnt been successful yet. About a month ago the following keys stopped working:leftright arrowdeletepg downpg upend insert I am running vista and have not made any changes that I can think of that would cause this problem. I have tried the following:running the computter in safe mode to see if the keys work - unsuccessfulusing the onscreen keyboard - all of the keys workIf anyone has a solution please let me know. Your help would be greatly appreciated.

    I also have simillar problem, following keys on my keyboard doesn't work
    left arrow keyright arrow key insertdeletehomeendpg uppg dn
    Here is the image (the keys encircled as red don't work).

  • How can you delete text to the right

    I would like to be able to delete characters to the right , Using the keyboard Ie opposite to backspace

    Sorry, it doesn't support that.
    There may be a bluetooth keyboard out there that supports right delete, but using the on screen keyboard  is left delete only

  • How to delete trailing zeros from a quantity field to display in ALV?

    Hi there,
    i am retrieving the field LGMNG from LIPS table, which is of type QUAN(13). All LGMNG values there are stored as
    1,000
    20,000
    50,000 etc.
    But i want my values to be displayed as
    1
    20
    50 etc.
    i have tried the " shift v_variable right deleting trailing '0'" but it does not work.
    also, if the value of LIPS_LGMNG =  0,000, i need those columns in ALV empty(that is no zeros or comma displayed)
    can anyone please help?
    Thanks a lot,
    Mee

    hi,
    use this it will solve your problem, just write down this on your Fieldcatalog.
       WA_FIELDCATALOG-FIELDNAME = 'VALUE7'.
       WA_FIELDCATALOG-SELTEXT_L = 'Contribution EE(due)'.
      WA_FIELDCATALOG-DATATYPE = 'INT2'.           " it will remove trailing zero
      WA_FIELDCATALOG-DECIMALS_OUT = 0.
       APPEND WA_FIELDCATALOG TO IT_FIELDCATALOG.
       CLEAR WA_FIELDCATALOG.

  • B04 - Best practice with regards delete privilege and folders

    Hi,
    Many depts sales, finance etc.
    Sales Dept as example
    Just installed BO4 and want to give Sales Dept their own folder and allow users full control over their own documents within Sales Flder but ensuer they don't have permission to delete other Sales users reports in this folder nor delete Sales folder itself.
    Would defined schedule access privilege achieve this.
    Want to ensure delete privilege tight and users can only delete their own reports and can't delete folders.
    Many Thanks

    Hi Philip,
    You can achieve this by creating your own Access Level where you can include the right "Delete object that the user owns".
    For the requirement: Sales Group should only be able to see Sales Folder:
    Assign View Object right to Sales Group first on the Public Folder keeping the option "Apply to sub-objects" unchecked. Then you can assign the custom Access Level to the Sales Folder which includes the right as per your requirement.
    Regards,
    Nakul Mehta

  • How to delete trailing zeros after decimal ?

    Hi,
    i want to delete trailing zeros after decimal.
    Example:
    if it is 22.000 then output will be 22
    if it is 22.010 then output will be 22.01.
    plz let me know hw to do this ?

    DATA:
      lv_decimal TYPE f DECIMALS 3,
      lv_string  TYPE string.
    lv_decimal = '22.010'.
    WRITE lv_decimal TO lv_string.
    SHIFT lv_string RIGHT DELETING TRAILING '0'.
    CONDENSE lv_string NO-GAPS.
    * now no trailing zeros are in the decimal stored in LV_STRING
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jan 30, 2008 12:10 PM

  • How to delete decimal values zeros

    Hi experts,
    i am using mseg-menge field ( lenth13 and decimals 3) in my alv grid report.
    eg: 2.3456.000
    user wants only  2.3456 no decimals.
    how we can aviod decimals 0 s in report.
    thanks in advance.
    mahahe

    I search this ways in the forums:
    Shift
    SHIFT varb1 RIGHT DELETING TRAILING '0'.
    write: gv_variable decimals 0.
    SHIFT VALUE LEFT DELETING LEADING '0'.
    Shift2
    DATA: T(14) VALUE ' abcdefghij',
    STRING LIKE T,
    STR(6) VALUE 'ghijkl'.
    STRING = T.
    WRITE STRING.
    SHIFT STRING LEFT DELETING LEADING SPACE (or use 0 to detete 0).
    WRITE / STRING.
    STRING = T.
    SHIFT STRING RIGHT DELETING TRAILING STR or 0.
    WRITE / STRING.
    Shift3
    data amt(6) type p decimals 3 value '123.450'.
    data amt1(6) type p decimals 2.
    data amt_c(6) type c.
    unpack amt to amt_c.
    shift amt_c right deleting trailing '0'.
    pack amt_c to amt1.
    write amt1.
    use FM
    FTR_CORR_SWIFT_DELETE_ENDZERO
    this FM will remove all the zeros from decimal values like
    value - 234.8000000
    output - 234.8
    IF
    data: var1 type p decimals 3,
          var2 type p decimals 2,
          var3 type p decimals 1.
    move '12345.100' to var1.
    move var1 to var2.
    move var1 to var3.
    if var2 = var1.
      if var3 = var1.
        write var3.
      else.
        write var2.
      endif.
    else.
      write var1.
    endif.
    I hope that this solve your problem.
    Cordial greetings.

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

  • Delete - Keyboard shortcut

    Hello,
    I have an English (Uk) keyboard, I would like to know what the keyboard shortcut is for deleting a version or ablum etc and removing versions from an album, and where this button is located on the keyboard.
    When I do it via going to file in the toolbar, the short cut keys stated are the command button and some other logo, which is like an arrow box pointing to the left with an X in it. My delete key has the image on it, but the arrow is pointing to the right. When I try the shortcut command nothing happens. So I have to keep going to file or cntrl clicking. Where can I find the correct key?
    imac G5 iSight 20" not intel   Mac OS X (10.4.8)   Canon 350D iPod Nano Aperture Final Cut Express HD

    The arrow with the X in it is the left delete button. It is located above the \ button and to the right of the = button (at least on US keyboards.) The other button you were pressing is the right delete key, which should be underneath the help button.

  • How do I delete entire albums on my iPhone??

    How do I delete entire albums from my iPhone?

    In the Photos app > Tap the Albums tab (bottom right) > Edit (top right) > > Delete
    Photos added to the device via iTunes need to be removed via iTunes sync:
    iTunes: Syncing photos

  • Delete zero

    Dear experts.
    i have a string data '3.1200'
    how can i delete the two zero of last.
    the result is :'3.12'
    Thanks.
    Johnmin.
    Message was edited by: zhongming LIU

    Hi,
    Use following code to remove last 2 0's.
    shift str1 right deleting trailing '0'.
    Cheers,
    Vikram
    Pls reward for helpful replies!!

  • Cascading Delete

    Hello Everybody,
    There is a master-detail relationship between three blocks A & B and A & D and B & C. All relations have Delete Record property as cascading and Coordination Deferred as No and Automatic Query as No.
    When we delete record A , we require record D, B and C to be deleted. The Forms builder help topics suggest that setting these property is enough to enforce deletes in both B and C blocks upon deletion of A is as there is cascading relationship between both A & B and subsequently B & C.
    But when we delete the record A , only D gets deleted and A does not get deleted saying that there is a violation of integrity constraint and child records are found in B. And neither does C record gets deleted nor B and naturally A also remains.
    Please advice.
    Thanks,
    Sohina.

    Hi Rob,
    Thanks alot for your advice, I was able to solve my problem,
    Bye,
    Sohina.
    Are you sure that the database contraints on the
    tables have the right Delete Rule set?
    I thing that the Delete Rule for the FK constraints
    for the A&B and B&C have to be set to "Cascade".
    Bye,
    ROb

Maybe you are looking for

  • CUCM 8.6.2 upgrade to CUCM 10.5

    Hi, I have to upgrade a virtualized CUCM cluster (PUB, SUB1, SUB2, TFTP) version 8.6.2 SU3 to version 10.5. As per documentation this should be a direct refresh upgrade and no need of PCD to do it. Based on the documentation the main steps of the upg

  • Is a fix for "not compatible HP Smart Web Printing 4.60, coming? Do you have a browser that will work with it?

    Brand new wireless network printer from hp uses HP web printing 4.60. So I can't use my new printer. If you have a different browser that will work great, I hate to switch to a non mozilla browser. == This happened == Every time Firefox opened

  • Problem in accounting document

    Dear Guru's, we have created a credit memo and at that time DG document is released.After that we have reversed the credit memo,it reversed by DG document only.   But in some of the cases ..RV document is coming in case of reversale accounting doc fo

  • Balance of the line items is not zero in FBRA

    Hi Team, we are resetting customer cleared docuemnt using FBRA t ocode it giving erro message like "Balance of the line items is not zero". we tried all possibilities, but it is giving same error. we search in SCN.SAP and found one note 1914004. but

  • How to get the length of a audio file without play it ?

    Now I know a method to get the length of a audio file by play it: 1 Create a Player, and add a ControllerListener 2.Start the Player 3.In the ControllerListener's controllerUpdate method, use getMediaTime() by receiving a EndOfMediaEvent However I th