Bring negetive sign to left

Hi
How to bring negative sign to the left of the number while displaying in ALV or downloading using GUI_DOWNLOAD?
Thanks,
Madhu

Hi,
You have to make changes in the internal table itself.Use this code,pass the variable for which you want to change the sign to this form.I have used this code in requirement and it works.
form change_sign changing var type c.
  if var lt 0.
    shift var right deleting trailing '-'.
    shift var left deleting leading ' '.
    concatenate '-' var into var.
  else.
    shift var left deleting leading ' '.
  endif.
endform.                   "CHANGE_SIGN
Hope this will help you.
Regards
Shibin

Similar Messages

  • How to avaoid Negetive sign in Bex?

    For Key figure 'amount' I am getting negetive values and I dont want to display in the report that negetive sign.How can I avoid this negetive sign.Is there any option in Bex?
    Points will be definitely assigned.
    Thanks,
    Vasu

    Hi Vasu,
    In Query Properties, Value Display tab you can control the display of -ve signs. If you don't want to display -ve values, you can choose the option 'In Paranthesis'. This will display the negative values in brackets. For example for - 10, it will show as (10).
    This will affect all keyfigures in the Report.
    Regards,
    Hari.
    Edited by: Hari Krishnan K on Aug 6, 2010 11:05 AM

  • Negetive signe prob for a amount field

    i m selecting data from DBtable into my internal table there i have a field type packed length 15  in the table i have  negetive amount like (152523 -) . i want to place the negetive sign from the suffix to the prefixx.
    means (- 152523) i can do this but i want to know the best possible way to do this without modifying the DBtable fields .
    waiting for your reply
    Message was edited by:
            pawan kumar jha

    I also had a similar problem. My problem was for currency field and I had to display it with negative sign in front as well as I need to use the same for subtotals. What I did was: I had declared that field in internal table as character and then that negative sign will be in front. I had used ALV method to display the same. Then while adding that column in  the fieldcatalogue I have metioned fieldcat-datatype = curr, then it worked for me.
    You can also try it in same way by decalring that field as character in your internal table.
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • How to display sign in left side in ALV Grid Function module?

    Hi,
    How to Dispaly sign in left side for amount fields in ALV GRID function module?
    Ex : Amount = 1234-
    I want to dispaly it as -1234.
    Is there any option in ALV Grid function module?

    Hi sreedhar,
    Use FM  'CLOI_PUT_SIGN_INFRONT'
    it will giv the value like '-1234' if u pass '1234-'.
    DATA : v_field(17).
    MOVE v_amount to v_field.
    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
    CHANGING
        VALUE   = v_field.
    MOVE v_field to v_amount.
    OR
    FORM change_sign changing var type c.
    if var LT 0.
    shift var right deleting trailing  '-'.
    shift var left deleting leading  ' '.
    concatenate '-' var into var.
    else.
    shift  var left deleting leading  ' '.
    endif.
    ENDFORM.
    reward pts if it helps.
    Edited by: venkat reddy on Jan 2, 2008 7:19 AM

  • Not printing negative sign on left side

    hi all,
    i am trying to display negative sign to left side but it is displaying in smartforms
    i edit  w_test-t1(c) like this .. w_test-t1(>)
    but it is not displaying negative sign to left side.

    Hi,
    Actually &fld(<)& should work if you want leading sign to be on the left, if you are not getting the desired results, may b we have to put it manually by concatenating.
    Regards,
    Narendra.

  • -ve sign to left

    Frnds,
    The negative sign of a currency field is being displayed at the end of the value ( i.e at thr right side of the value). I want it at the left, i.e at the begining of the value.. how do i get it ??? i dont want to convert it into a character type..
    points assured...
    regards,
    Madan..

    hi,
    try this one it works well.
    tables : vbak.
    parameters : p_vbeln like vbak-vbeln.
    data : itab like table of vbak with header line.
    data : str type string.
    select * from vbak into table itab where vbeln eq p_vbeln.
    loop at itab.
      itab-netwr =  itab-netwr - 1000000.
      if itab-netwr < 0.
    write : '-',itab-netwr no-sign left-justified.
    endif.
    endloop.
    reward points if helpful

  • Move sign to left of quantity on alv grid with & stil total quantity column

    Hi Guys,
    Here is my problem..  I have a column on my alv grid that is signed.  I want the sign to appear to the left of the number. 
    This column needs to be totalled so I can't use the function module CLOI_PUT_SIGN_IN_FRONT.  I've also tried (as per forum thread) having the field type as TABHIST-DELRATE but this rounds the values and the sign is still on the wrong side.
    Any ideas would be gratefully received..
    Regards,
    Liz.

    I think first you need to read
    1. USR01-DCPFM for user default decimals values, by giving user sy-uname then go to
    2. DDVAL giving USR01 & DCPFM you will get domain values
    if domain values X or Y or space arrange the EDIT_MASK accordingly and pass to field catalog.
    ( Here you can also use fm DOMAIN_VALUE_GET)
    May this will you out.

  • Assigning '-' sign to left side

    Hi guys,
    I am having one amount field in internal table itab where its values are having '-' sign, means negative values. Whenever i download this itab with using GUI_download function module into an excel sheet then minus sign will come right hand side of that value.
    I want that sign to before the value means left hand side with out changing the data type of that field.
    Is thr any Function module, plz help in this.
    Balu.
    Edited by: Bala Chandar on Oct 22, 2008 12:47 PM

    Hi,
    After placing the - sign to the left by using CLOI_PUT_SIGN_IN_FRONT if we assign the changed value to the amount field then the change will not be reflected because for amount field the sign will be stored on the right so, it is better to move the contents to another internal table and download that table contents into the excel file.
    DATA : BEGIN OF IG_DOWNLOAD OCCURS 0,
           F1(4),
           F2(4),
           F3 TYPE DMBTR,
           F4 TYPE I,
           F5 TYPE NETPR,
           F6,
           END OF IG_DOWNLOAD.
    DATA : BEGIN OF IG_DOWNLOAD1 OCCURS 0,
           F1(4),
           F2(4),
           F3(16),
           F4 TYPE I,
           F5(16),
           F6,
           END OF IG_DOWNLOAD1.
    DATA : VALUE(16).
    IG_DOWNLOAD-F1 = 'AAAA'.
    IG_DOWNLOAD-F2 = 'BBBB'.
    IG_DOWNLOAD-F3 = '-3.86'.
    IG_DOWNLOAD-F4 = 1.
    IG_DOWNLOAD-F5 = '4.58-'.
    IG_DOWNLOAD-F6 = 'A'.
    APPEND IG_DOWNLOAD.
    CLEAR IG_DOWNLOAD.
    LOOP AT IG_DOWNLOAD.
      MOVE-CORRESPONDING IG_DOWNLOAD TO IG_DOWNLOAD1.
      VALUE = IG_DOWNLOAD-F3.
      CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
        CHANGING
          VALUE = VALUE.
      IG_DOWNLOAD1-F3 = VALUE.
      VALUE = IG_DOWNLOAD-F5.
      CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
        CHANGING
          VALUE = VALUE.
      IG_DOWNLOAD1-F5 = VALUE.
      APPEND IG_DOWNLOAD1.
      CLEAR IG_DOWNLOAD1.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME              = 'C:\A1.xls'
        FILETYPE              = 'ASC'
        WRITE_FIELD_SEPARATOR = 'X'
      TABLES
        DATA_TAB              = IG_DOWNLOAD1.

  • Plus sign on left of price on apps in the app store , what does it mean ?

    On the app store , when I look at a list of apps some paid apps have a plus sign on the left side of the price and some of the paid apps don't have a plus sign on the left of the price, So what does the plus symbol mean ? And also what does it mean on free apps

    It means the app is Universal, that is, it will work on both, the iPhone and the iPad.

  • Plus sign on left of apps in app store for ipod touch, What does it mean ?

    On the app store , when I look at a list of apps some paid apps have a plus sign on the left side of the price and some of the paid apps don't have a plus sign on the left of the price, So what does the plus symbol mean ?.   And also what does it mean on free apps when the plus sign is on the left on some of them but not others ?

    It means the app is Universal, that is, it will work on both, the iPhone and the iPad.

  • My iTunes opens up, brings up sign in and crashes and freezes. What do I do?

    Any time that i attempt to get into my itunes it opens up, freezes, pulls up the sign in page and then freezes and crashes there....***?! what to do
    ??

    Hi,
    Is this an @mac.com name that you use ?
    Has it ever worked in iChat ?
    If it is an @mac.com name you can change the password here at Apple's iForgot site.
    Keep the new password to 16 characters or Less for use with iChat as the AIM servers that you connect to cannot cope with larger ones.
    8:02 PM      Tuesday; June 14, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • "-" sign displays in right side in screen - we want in left side.

    Experts.
    When we are running on SAP Screen in earlier system any where if you see negative value,
    the sign will be shown in " Left Side" of the number like  ( Example : - 3451.00 )
    We are on ECC 6.0
    when we see similar case in ECC 6.0 system it shows as 3451.00 -
    Requirement :
    in ECC 6.0 also we want to see "-" sign on left side on SAP Screens.
    Regards

    Hi Dudes,
    I want to post the WHT tax transactions directly at the time payment in Cash journal(FBCJ) transactions.
    Ex: Payment of Stationery expenses
    Stationery Exp Dr 100
    Cash a/c 90
    WHT Tax 10
    I don't want to route this transaction through a Vendor and I want to post it directly and at the time of posting system has to display the above accounting entry.
    what settings required to get the above result?
    Thanks
    MBN

  • Displaying Sign left side

    Hi ,
    How to get - sign in left side of a varable.
    Say for exaple a = 100-
    report will show 100-
    but i want it like -100.
    how i can i get  ?.
    Thanks,
    Regd\jithendra

    Hello,
    A simple 1 liner will do the trick. This question has been used answered many times in the forum but i rarely find this simple solution.
    DATA:
    V_AMT1 TYPE WRBTR,
    V_AMT2 TYPE CHAR16.
    V_AMT1 = '100.00'.
    V_AMT1 = -1 * V_AMT1.
    WRITE V_AMT1 TO V_AMT2.
    SHIFT V_AMT2 BY 1 PLACES RIGHT CIRCULAR.
    WRITE: V_AMT1, / V_AMT2.
    BR,
    Suhas

  • 2008 Macbook pro left click not working properly after upgrading to 10.6.8

    I have a 2008 Macbook pro and a few months ago after upgrading to 10.6.8 my left click has been wonky.
    Using the trackpad the left click eventually gets "stuck" or stops responding and I have to push it multiple times before it does anything.  I have tried plugging in a mouse, but when I do so the mouse also behaves the same way.  The only way I seem to be able to get the clicking to work properly is to restart the computer with the mouse attached.
    I have seen threads about trackpads being messed up by swollen batteries, but my battery is brand new and looks fine, and the clicking problem extends to an external mouse, so I believe it is something with the preferences.
    I tried deleting  com.apple.driver.AppleBluetoothMultitouchTrackpad.plist   and restarting and the problem seemed to be fixed, but then after about a half hour it returned.
    Having to keep a mouse plugged into my macbook is driving me crazy, anyone know a solution?

    I started having the same issue after update.  I'm on a MacBookpro running 10.7.2
    ICalled apple and they did a remove battery reboot, a reload lion and a option/command/R/P reboot on startup and then the computer started working.  Two days later problem was back.  I then did a reboot and the computer was back to working.  Today the computer worked fine tell it went to sleep.  I had to do a hard reboot to get the Mac up and running and now no left click.  Please help. I can not use the Mac  with the trackpad, a mouse, a Bluetooth mouse, or a digital pad. All so signs of left mouse click not working.  One other item when you go to pick your user at startup the left mouse click works.  Help!

  • Negative sign for Currency fields

    Hello experts,
    If a currency field containt -Ve sign (86.47-) then, i have to move it this sign to Left sinde. I have do this as follow by moving the currency field value to Charractor field
    DATA:  w_total1 (18).
                 MOVE w_total To w_total1.
                 IF w_total1 CA '-'.
                   SHIFT w_total1 RIGHT CIRCULAR.
                 ENDIF.
                 CONDENSE w_total1 NO-GAPS.
    But don't want to move this to Chanddacter field for other pupepose. Now how can i **** the -Ve sign to left side for currency field, IF bsid-shkzg EQ 'H'.
    Thanks.

    Hi sandhya ,
    Try this :
    DATA:  w_total type string ,
          w_total1 type string.
    w_total = '1,4567.7-'.
                 MOVE w_total To w_total1.
                 IF w_total1 CA '-'.
                   SHIFT w_total1 RIGHT CIRCULAR.
                 ENDIF.
    *             CONDENSE w_total1 NO-GAPS.
                 write : / w_total1.
    Hope all your issues are fixed now .
    Regards ,
    lokesh
    Edited by: Lokesh Pattnayak on Oct 11, 2010 10:23 AM

Maybe you are looking for

  • Automatic Time Confirmation for an operation in a Maintenance Order (IW41)

    Hello, We have a requirement to do automatic time confirmation (while saving the order) on an operation when the user selects "DONE" standard text key on Operation line item. Is there a user exit or BADI available in Plant Maintenance that can be use

  • No internal audio on HP G60t-500

    My internal speakers just stopped working a while back. External speakers work fine. Windows Audio is enabled and latest sound driver is installed.

  • Java function calls from JSTL

    I'm working on an application where the original designers have put an escape character preceding every single quote when entering data into a DB. Ex: A user enters O'Riely, and it gets put into the DB as O\'Reily. The problem is that when using JSTL

  • What is Gateway User and password in Oracle Discoverer Administrator

    hi. i have install BI tools and want to connect to database. what is Gateway user ID / Password and Foundation Name and what username i give in it and how i can use discoverer desktop. plz urgent thx

  • Convert 5.0.1 to 2011

    Hi, can you please convert the attached from LabVIEW5 to LabVIEW11 32-bit Solved! Go to Solution. Attachments: Cesium Kalman Simulation.llb ‏260 KB