Display of minus sign

Well I want to display minus sign in front of credit amount.
though i have multiplied the amount by -1. it shows the minus sign after the amount. i want to display it before the amount. is there any function for it.
i'm making a classical report using se38.

Hi ,
execute the code and check the output.
data : val1 like vbap-netpr.
val1 = '12345.21'.
val1 = val1 * -1.         "ur value
write:/ val1.               " negative at the end
data : val(13) type c.   " declare a char variable
move val1 to val.        
write:/'Still', val.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
  CHANGING
    value         = val.          "sign is put ot front.
write:/'Now', val.
regards,
vijay

Similar Messages

  • In Numbers, how do I get negative entries to display as minus sign rather than parentheses?

    Seems like a simple matter, but I can't find any such control.

    Fr. Gregory Williams wrote:
    The joker here is that for this to work (in the Inspector), a checkbox not showing on the screenshot here called "Accounting Style" must be unchecked.  Unchecking this also eliminates the many spaces between the $ and the digits.
    That's right, it didn't occur to me that you may have checked that option for aligned dollar signs.
    Jerry

  • Show a minus sign as an output instead of the parentheses

    When I save a minus value, the output comes as (500.00). I
    think the parentheses are default for the minus value in cf. How
    can I display –500.00 instead of (500.00)? I looked at the
    numberformat function, but could not find the mask for it.

    I think that can be one of the solutions.
    However,
    the first time when I insert a minus value, it goes through
    w/o any problems, but when I update the minus value, i got an error
    message. so before I use ur select stmt, I need to have a
    conditional stmt to find a parenthesis to check if the value that I
    pass to the database is negative or positive. It would be nice if i
    can find any cf function to display a minus sign instead of a
    parentheses, "( )" for any minus values.
    what i did on this issue before saving into database,
    <cfif find("(", form.myprice)>
    <cfset form.myprice = ReReplace(form.myprice,
    ",|\$|\(|\)", "", "ALL")>
    <cfset form.myprice = "-" & form.myprice>
    <cfelse>
    <cfset form.myprice = ReReplace(form.myprice, ",|\$", "",
    "ALL")>
    </cfif>
    but I wonder if there are other solutions. thanks
    again.

  • I increased my font with zoom for the first time & got it too large. It will not decrease using Control & minus sign.

    I use Firefox 4. Windows XP. I have tremors & must have accidentally clicked on something that made it open up with weird colors like it was in safe mode. It was in 8-bit so put it back on 32-bit and 1280 x 1024 pixels. Then the font was so small it is almost unreadable. Tried to change it in Firefox Tools, Options, & Content. This did not work. I then used Zoom after checking in Help but got the font so large I can't view my email right. It will not decrease when trying Control with the minus sign as suggested.

    Did you change the resolution in Control Panel > Display ?
    What is the native resolution of your video display (monitor)?

  • Minus Sign in front

    Hello all,
    I have a requirement where in I need to bring the minus sign in front for the amount field in ALV Grid Display.
    I used the FM CLOI_PUT_SIGN_IN_FRONT, but after I pass back the values, the sign gets set at the end. Moreover, I cannot create a character filed because the business might want to do sum on it.
    Please advice.
    Regards,
    Salil
    P.S. the below piece of code
    DATA : gv_bill_rev  TYPE string,
             gv_balance   TYPE string.
      LOOP AT gt_master INTO gs_master.
        gv_bill_rev = gs_master-bill_rev.
        gv_balance  = gs_master-balance.
        CLEAR : gs_master-bill_rev,gs_master-balance.
        CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
          CHANGING
            value = gv_bill_rev.
        CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
          CHANGING
            value = gv_balance.
        MOVE : gv_bill_rev TO gs_master-bill_rev,
               gv_balance  TO gs_master-balance.
        MODIFY gt_master FROM gs_master INDEX sy-tabix
                                        TRANSPORTING bill_rev balance.

    You can directly specify an edit mask for output.
    Field EDIT_MASK in the field catalog is a 60 character field in which you can specify an edit mask.
    fieldcat-edit_mask = 'V___.__'
    The V at the left indicates that you want the sign to appear at the left.  The _ will be replaced by the values of the number.  Put as many underscores as required.  You may also want to specify commas (,), if desired, for thousand's separators and a period (.) for the decimal point, if needed.
    Alterntively, if an appropriate conversion exit exists to put the sign in front, you can assign the conversion exit in the field catalog table.
    Field CONVEXIT in the field catalog can be used to specify the name of the conversion exit.
    Brian
    Edited by: Brian Sammond on Jan 27, 2009 8:08 PM
    Simplfy example edit mask because forum was displaying it funny

  • Minus sign at the end of the value, Need to get Preceeding minus sign.

    Hello gurus,
    I am using following code in web dynpro to get data from a FM and downloading it to excel.
    for the numeric values I am getting minus sign at the end of the value in excel. but If I display the value in alv, it is coming fine. Please let me know where I am going wrong.
    ex: 4568-
          CALL FUNCTION 'Z_EXTRACT'
            EXPORTING
              extract   = z_extract
            TABLES
              it_data       = tab_et.
          DESCRIBE TABLE tab_et.
          IF sy-tfill GT 0.
            CLEAR: text, xtext.
            DATA :    v_fore9ldepl(17)      TYPE n.
            LOOP AT tab_et INTO rec_et.
             MOVE:
              WRITE:  rec_et-fore9ldepl TO v_fore9ldepl DECIMALS 3.
              CONCATENATE  text '1'
                                rec_et-z0g_cwwter                          
                                v_fore9ldepl
                     cl_abap_char_utilities=>newline INTO text SEPARATED BY ','.
                      cl_abap_char_utilities=>newline INTO text SEPARATED BY
                      cl_abap_char_utilities=>horizontal_tab.
            ENDLOOP.
            CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
              EXPORTING
                text   = text
              IMPORTING
                buffer = xtext.
            CLEAR:  filename, wa_files.
            CONCATENATE 'EXTRACT'   '.XLS' INTO filename.
            wa_files-content = xtext.
            wa_files-filename = filename.
            APPEND wa_files TO files.
      DATA izip TYPE REF TO cl_abap_zip.
      DATA output_file TYPE xstring.
      CREATE OBJECT izip.
      LOOP AT files INTO wa_files.
        izip->add( name = wa_files-filename
                    content = wa_files-content ).
      ENDLOOP.
      output_file = izip->save( ).
      CALL METHOD cl_wd_runtime_services=>attach_file_to_response(
      EXPORTING
      i_filename = 'TEST.ZIP'
      i_content = output_file
      i_mime_type = 'ZIP/APPLICATION'
           i_in_new_window = abap_false
      i_in_new_window = abap_true
      i_inplace = abap_false ).

    Hi,
    In the Context attribute tyr to use the properties of formatting where you can have the MINUS sign in the front of the value..
    If this is working fine then when you use any standard export of ALV the same (AS iS) is shown in Excel right...
    Regards,
    Lekha.

  • How to get a minus sign with the cost  field in ALV.

    Hi ,
    How to get a minus sign with the cost field in ALV.
    The Ouput will be displayed like  Rs -1500 instead of 1500-
    I can't use concatenate also as i may have to use the sum functionality of ALV .
    Cheers
    Sunny

    Hi sunny,
    1. The OTHER FIELD
       has to be character field of say length 15.
    2. Write the original numeric value to
       this character field (in a loop)
    3. But simply writing won't help.
    4. use this kind of logic.
    5.
    REPORT abc.
    DATA : m TYPE i.
    DATA : chr(15) TYPE c.
    m = -100.
    WRITE m TO chr.
    IF m < 0.
      SHIFT chr RIGHT BY 1 PLACES.
      CONDENSE chr.
      CONCATENATE '-' chr INTO chr.
    ENDIF.
    WRITE chr.
    regards,
    amit m.

  • - minus signs appearing in Query

    Hi
    Certain key figures get minus signs in front of them in one of our queries. When the data is browsed in the Infocube / ODS, there is no minus sign.
    We have checked the +/- symbol in 'sign change' for the key figures in Bex but no matter what setting I choose, I still get the minus sign displayed.
    Anyone have any ideas?
    Thanks
    Conor

    Hi,
    edit the query properties. Goto Tab Page: Value Display.
    Display of +/- Signs
    Here you specify how the minus sign is displayed. The following display options are available for negative values:
    &#9679; Before the Number -123.45: The minus sign is positioned before the value (default setting).
    &#9679; After the Number 123.45-: The minus sign is positioned after the value.
    &#9679; In Parentheses (123.45): Negative values are displayed in parentheses.
    http://help.sap.com/saphelp_nw70/helpdata/EN/1e/99ea3bd7896f58e10000000a11402f/frameset.htm
    Hope this helps.
    Regards
    Andreas

  • Move minus sign(-) from end to start of field

    Hi,
    How to Move minus sign(-) from end to start of field. i e if       var = 120-, i want to display it as -120.
    if any one has the code , send me.
    Thanks in advance
    Krishna.

    Check the code, i hope it serves your purpose...
    data:
    var(10),
    length type i.
    var = '300-'.
    write var.
    length = strlen( var ).
    length = length - 1.
    replace first occurrence of '-' in var+length(1) with ''.
    concatenate '-' var into var.
    write:/ var.
    Reward points if useful, get back in case of query...
    Cheers!!!

  • Incorrect plus/minus sign in MB51

    Hi All,
    In MB51 report we are getting an incorrect minus sign in the display. When I run the report for mvt type 102 the quantities are displayed in RED color but the minus sign after it is missing. The sustem is considering it as plus.
    What could be the problem?
    Regards,
    V S

    check SAP notes.
    e.g. OSS note 1317700 Incorrect plus/minus signs in display for transaction MB51
    and  Note 1319863 - Incorrect plus/minus signs in display for transaction MB51
    if you cant find any that fits to your system, then open an incident at SAP yourself

  • CS5  Minus sign hidden

    XP 32 Nvidia 8800 GTS 512
    Display Adapter 96 DPI
    Windows Menu Size 18
    Font Tahoma Size 10
    In Adjustment Layer -> Vibrance
       Adjustment Layer -> Exposure Offset
    and probably other dialogs,
    the minus sign is hidden (or gets hidden ) :
    It is not hidden in the Image-> Vibrance / Exposure dialogs

    Sounds like a well thought-through plan.
    Please understand that my perspective is that of a software developer, so I feel some kinship to Adobe's engineers.  I still support XP fully with my own software (and in fact I've been through exactly the kind of issues you're reporting).  From my position I can see a day coming when I will have to leave the classic environment behind.  The modern systems will provide simply too much advantage to avoid using the new features (e.g., massively powerful video processors) in favor of software that works the same on all older systems.  Maintaining software that works on both complicates things greatly and makes the development and maintenance more expensive.
    Regarding Windows, I've always been an early adopter.  I can say with authority that:
    Windows 7 can (with a little effort) be set up to work and work well.  What's lacking can be filled-in with freeware apps.
    The x64 environment has become quite good.  Virtually everything works, and resource limitations are lifted.
    When you do decide to move up, make sure you mention it on this forum.  I have a ton of tips and tricks I'm willing to share for setting up Windows 7 x64 to be a real workhorse environment that's rock solid stable.  My own main development and graphics workstation is on Windows 7 x64, it gets used hard, and it only gets rebooted when the occasional Microsoft Update requires it.
    -Noel

  • Issue with Minus sign in ALV

    Hi,
    I have a report program where the prices will be getting displayed. In the out put the last four fields of ALV is having values -235.52; -145.25; -457.25; -417.25. In the foreground execution, the output is proper. But in the background(spool), the same output is getting displayed as 235.52;145.25;-457.25;-417.25.
    The first two values 235.52 and 145.25 are getting displayed with out minus sign.
    Note: All the above fields are of same data type.
    What could be the possible issue here? Please provide your valuable inputs.
    Thanks,
    Viswanath A

    Hi, Below is the fieldcatalog code and is common for all 4 fields.
    WHEN 'CPP_FKBTR'.
            wa_fieldcat-col_pos              = 40.
            wa_fieldcat-seltext_l            = 'Commitment for past period'.
            wa_fieldcat-seltext_m            = 'Com past per'.
            wa_fieldcat-reptext_ddic         = 'Commitment past period'.
            wa_fieldcat-ddictxt   = 'L'.
            wa_fieldcat-no_out   = 'X'.
            MODIFY lv_fieldcat FROM wa_fieldcat.
    Thanks

  • URL Boundary Rules and the minus sign "-"

    Hi!
    I need to set a Boundary Rule which contains one or more minus signs "-" in the hostname/domain, but Ultra Search doesn't accept such a rule and displays "Hostname can not contain multibyte characters.
    I've searched the net for hours now, but haven't found a single explanation, hint or fix for this problem.
    All help is welcome,
    Karsten

    Hi Dominique & Chris,
    I'm having the similar problem - trying to limit the crawler to a specific website. I did set the crawler's source to www.x.com and set the URL Boundary Rule to Include host x.com. The crawler is only caching the first page and nothing else. If I dont include any rule it goes out the x.com website. I cant use depth cos' the leaf pages are at variable depth. Any suggestions??
    thx!
    ornov

  • Minus sign with vbrp-netwr

    Dear all,
    In my sapscript is retrieved vbrp-netwr. However, the minus sign is not displayed. How to proceed?
    Regards.

    hi,
    in VBRP u wont have the NETWR as minus value... we need to modify this( multiply this value with -1 ex
    VBRK-NETWR = VBRK-NETWR * -1.
    <b>To identify whether we need to modify or not... we have to look at another field i.e VBRP-SHKZG this will indicate return item...</b>
    my suggestion is to take the NETWR from  item level i.e from VBRP.. then check whether the item return item or not.
    <b>if VBRP-SHKZG is not initial then multyply with -1.</b>
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K

  • I transferred data from my external hard drive to my restored Mac Book Pro via migration assistant and now my external hard drive in time capsule has red minus signs. How do I get rid of that without getting rid of any of my data?

    I used Migration Assistant to transfer my data from my external hard drive via Time Capsule to my restored Mac Book Pro. When I now go into Time Capsule I there are red minus signs in the corner of all the folders that are contained in my back up. How do I get rid of this and access my previous back-ups?

    Select the drive and Finder > Get info and at the bottom "ignore permissions on this volume"
    You can copy the files, but the ownership on the files still belongs to the other user account, once your done copying, then perform a #6 Reset Users Permissions and that will set all the ownership to that account.
    ..Step by Step to fix your Mac
    Another method is to copy the entire folder, then change it's permissions.

Maybe you are looking for

  • How do I reduce the number of emails showing on my iPhone?

    How do I reduce the number of emails on my iPhone 5, without deleting the account? It's a POP account.

  • Field catlog in V/03

    Hi, Can we add new field catlog in the list (V/03 - create table)? if yes how can we add? regards, Akshay

  • How to check wrong values in isChangedByClient

    Hi, I had two issues with a validation code. First let me describe the scenario. We need to update the Vendor Master. There should one primary contact against one Vendor Number. There are multiple Secondary contact against one primary contact. There

  • B2B EDI File Configuration Settings

    Hi All, We are seeing some default values in our EDI files for following Segment elements. Interchange Control Number (100000044) Group Control Number (1044) We are using 4010_850 format. Let us know where to change these default values in B2B consol

  • Web Deployment of Forms 6i and Reports 6i.....

    Hi everyone, we have developed an application using forms 6i and reports 6i - we need to web deploy a part of it ... i need someone who has web deployed an application to really guide me thru .... i have read most of the posts in this forum and am th