To mutilpy decimal value with negative sign .

Hi ,
I have a decimal value 500.00 and need to multiply it with -1 .
the result however is 500- . I have made some manipulation to get that sign in front ...now it is -500 , but however Iam losing the decimals. Need the value to be -500.00 . Plz Help
Regards,
Sunitha

Try as :
data : v_c type p decimals 2 value '500.00'.
data : v_sign(20).
v_c = v_c * -1.
v_sign = v_c.
concatenate '-' v_sign into v_sign.
condense v_sign  .
write :/ v_sign  .

Similar Messages

  • The option 'Display Credit Balance with negative sign" was not activated.

    I've encountered with a huge problem after load opening balance.
    I forgot to tick the  option 'Display Credit Balance with negative sign"
    It makes my client's Chart of Account  uncommon such as credit balance in Cash Account, AR .....
    However, I've search the sap  note to solve it  as follow:
      Description of the bug::     
    When creating the company in the system the option 'Display Credit Balance with negative sign' was not activated.
    Once transactions were created in the system the functionality can not be changed.
    Limits of the query:     
    After running the update query, please restart SBO first and then   run the restore 'GL account and bp balances';
    otherwise, the cashed value of SBO will not be updated and restore function may not take effect.
    1. Meaning of  restart SBO => restart SBO Service Manager right?
    2. Please help me please to find "The restore G/L account and bp balances" form.  Where is it?;
    Thank you

    Hi,
    I would think that you are following the PEQ instructions for note 970813, correct?
    If this is the case and you are using 2007 then you will find the restorev in the top menu; Help -> Support Desk -> Restore. You will find the functions here. Please note that this should only be used on direct instruction from support or a note like in this case. A backup should also be taken before running restore.
    Regards,
    Jesper

  • Check info "Amount paid is showning with negative sign"

    Hi ppl,
    After the RFFOUS_C program is run and after the check generated, If i go and check the "check inforamtion" in PAYR table. It is showing the paid amount as 2000.00-
    The amount is shown with a 'minus' sign at the end.
    What this means???
    Please help.... Thanks!

    Hi Sri,
    The Amount with negative sign is pulled out from the Payment document against the GL account. This means that the funds are going out or its an outgoing payment.
    Rgds,
    Vinod

  • How to display the number with negative sign in the front in ALV.

    most important, this ALV is also can totalize.
    can someone give me some suggestion?
    thanks   
       jisuwen

    i hope you want a negative sign before a char but holding some number. then that case
    loop at itab.
    concatenate itab-char '-' into itab-char.
    modify itab.
    endloop.
    and you can display in ALV with negative sign...
    Totalling you need to Specify
    DO_SUM = 'X' while populating fieldcatalog...
    If subtotals then you have to Build sort table and based on that you can proceed./.
    examples are there you can find inn SLIS package..
    vijay.

  • How do I activate the 'Display Credit Balance with Negative sign'

    Dear All,
    How do I activate the 'Display Credit Balance with Negative sign'  that is already deactivated ? I checked through Trial Balance and did not find any balance for any BP or GL Account.
    Regards,
    William

    Hi,
    Please check Note No. : [970813|https://b1-support.wdf.sap.corp/sap/support/notes/970813]. The solution is available in the Note.
    Check the link in the Note for solution.
    Hope you are partner. If not, you can contact your partner for further investigation.
    Also, make sure that you have access to the PEQ Wiki page and also that all the instructions mentioned in the PEQ Wiki is followed.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Cannot slice values with quotes sign

    Hi all,
    for some unknown reason, I cannot slice values with quotes sign on a slicer.
    It does not work on any of the computers in my workplace!
    Why is that? How can I fix this?
    I work with Excel2010
    Thanks,
    Marina

    Hi Marina
    Check data format in PowerPivot model. Should be text. If it not helps please give examples how the model and slicer looks like.
    G.

  • Printing value fields with negative sign??

    Hello Experts,
    I have developed a interface, which writes the invoice data to application server/unix, this is a notepad. My specifications are as below,
    MWSK1(2)   TaxCode                         65     2     KONV-MWSK1     
    KWERT(13)  Condition Value                  67     13   KONV-KWERT     
    KSTEU(1)  Condition Control                80     1     KONV-KSTE
    I have to print KWERT value from 67th position until 13 positions, meaning until 80 positions, fine. My code is as below,
      MOVE: wa_invoice_price-mwsk1  TO unix_file+64(2).
      WRITE: wa_invoice_price-kwert    TO unix_file+66(13) RIGHT-JUSTIFIED.
      MOVE:  wa_invoice_price-ksteu    TO unix_file+79(1),
    So, it printing like below (pls. note 0.04 minus value in right bottom corner)
    P26701ZCG620101006C          100.00         0.00USD  1    UGL            0.00A A 9
    P60001ZF3520101006C          100.00         0.00USD  1    UGLG          0.04-H B 9
    But, business want to have like below (pls. note the DIFFERENCE for 0.04 minus value in right bottom corner),
    P26701ZCG620101006C         100.00        0.00USD  1    UGL               0.00   A A 9
    P60001ZF3520101006C         100.00         0.00USD  1    UGLG             0.04 - H B 9
    meaning, the 13th position should be negative sign (if at all any value does have a negative sign, else its normal)....so, the negative sign should sit on 13th postion. As am using WRITE statement with RIGHT JUSTIFIED am facing thisissue!! as u know we can not send a 'P' type value to unix/apps server, pls. let me know how to get it done?
    Thank you

    why can't the user live with a leading sign, like '-   0.04'?  If possible, do
    shift <fieldname> circular up to '-'.
    Or, if value is less than zero, set another variable to '-', else set to space, and multiply value with '-1', like:
    if <field> < 0.
       lv_sign = '-'.                " neagtive value
      <field> = <field> * '-1'.  "reverse the sign
    else.
    lv_sign = space.          "positive value
    endif.
    then, adjust your field length and insert a sign column or simply add a column for the sign....

  • Numbers with negative sign

    Hi,
    SAP send value to XI as 100.00-
    In XI, I send this to standard subtract function where it expect this as -100.00
    Which is the good way to move the negative sign to the left ?
    Please do note there coould be situation where this value can come as positive so I have to take care of both situations.
    Thanks in advance.

    Hi,
    Check with the below mapping
    src--------------\
      Constant[-]-----| replaceString-----neg------
      Constant[]----/                             |
                                                  |
                                                 then
    src---------------\endswith-------------->if         --------->tgt
    Constant[-]-------/                          else  <---------src

  • How to check a decimal value is negative or not.

    Hi,
    Iam having a value 25000.00- in a variable called sum1.
    which is a negative value.
    i want to check whether it is a negative value or not.
    i tried like
    if sum1 LT 0.
    statement.
    else.
    statement.
    but this is not working, can anyone help me in this.
    Thanks,
    Rose.

    Hi,
    DATA: sum TYPE p DECIMALS 2,
               v_len TYPE I,
               v_cnt1 TYPE I,
               v_cnt2 TYPE I.
      sum = '25000.00-'.
    v_len = strlen( sum ).
    DO v_len TIMES.
      v_cnt2 =  v_cnt2 + 1.
       IF sum+v_cnt1(v_cnt2) EQ '-'.      
         WRITE : 'Have  Negative sign'.
      ENDIF.
        v_cnt1  = v_cnt1 + 1.  
    ENDDO.

  • Decimal data type with negative sign

    Hi Gurus,
    I wanted to created a z table with a filed of type decimal with sign.  What I did is I created a field in predifined type with dec type, but -ve sign is not taking at the time of entering the data in SM30. Its saying only +ve values are allowed. Please let me know how can I achieve this. My data will be like -4.1242.
    Thanks,
    David.

    Hi..
    Try using another field as an indicator for negative fields so that you can consider those signs in your program.
    Regards,
    Karthik

  • Transaction Value with negative inventory

    Dear Experts, I need some help understanding why negative quantity inventory can result in a huge transaction value for an inventory item. Let me give an example.
    We do allow negative inventory. We manage inventory by item group and we use FIFO.
    We have an inventory item, let's call it ABC with a purchase price of $27.50 So far that item had only very few inventory transactions. In one of the transactions the inventory went negative (-1). Next day the problem was fixed through a stock posting which brought the inventory balance back to zero.
    The result of that last stock posting was that the transaction value was 262.28 and the cumulative value on the Inventory Audit report shows 234.78! I have no idea why all of a sudden the transaction value is so much higher than the actual purchase price of the item.
    Any ideas?

    When you allow negative inventory, the normal logic for inventory value calculation will be broken.  In this poor case, system will have no way to follow the original logic.  The value you got so high is because the negative value has to be ignored and switched to the remaining inventory.
    In my previous experience, inventory should be allow negative.  Only if you give up, or you don't care, you can let it go.
    Thanks,
    Gordon

  • Negative sign display for CURR field in ALV grid report

    I have a field BETRG defined as CURR field of length 15, decimal places 2. The value may be negative or positive. In case of negative values I am using EDIT_MSK option in the field catalog to bring the negative sign to the left of the value as shown below.
    Quote
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-repid
          i_internal_tabname     = 'LT_FINAL'
          i_inclname             = sy-repid
        CHANGING
          ct_fieldcat            = fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
    LOOP AT fieldcat.
        CASE fieldcat-fieldname.
            WHEN 'BETRG'.
            fieldcat-ctabname = ' '.
            fieldcat-cfieldname = ' '.
            fieldcat-edit_mask = 'RRV_______________.__'.
        ENDCASE.
        MODIFY fieldcat.
      ENDLOOP.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_buffer_active    = 'X'
          i_callback_program = sy-repid
          i_grid_title       = 'ABCD'
          is_layout          = gs_layout
          it_fieldcat        = fieldcat[]
          i_save             = 'A'
          is_variant         = gs_save
          it_events          = gs_events
        TABLES
          t_outtab           = lt_final
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    Unquote
    On displaying the report using 'REUSE_ALV_GRID_DISPLAY' as shown above, when the value of BETRG is a smaller number like say 624, then the ALV output appears as '-            624.00' instead of '-624.00'.
    Is there any way that I can remove the space in between the negative sign and the number before displaying the ALV output using 'REUSE_ALV_GRID_DISPLAY'?

    Hi Deepak,
    I tried this and found that this doesn't work in case of currency field. Once you move back the char field (with negative sign to the left and condensed)  to the currency field, the negative sign again moves back to the right.
    I think that the only way a negative sign can be brought to the left of the currenct field is by using edit_mask of field catalog as I have shown above.
    Regards,
    Shayeree.

  • Properly displaying currency amounts (negative sign) via WRITE statement

    Dear forumers,
    Using the WRITE statement, how may I properly display a currency amount that has a negative value?
    In my program, the variable, V_AMOUNT to be displayed is originally of the type "WERTV12".
    Using the WRITE statement for this, nothing gets displayed in the screen (blank only).
    So, I assigned V_AMOUNT to another variable of the type "P DECIMALS 2", V_AMT.
    Using the WRITE statement for this, the amount is displayed in the screen.
    But, if the amount has a negative value, the negative sign is not displayed there.
    I.e. If V_AMT has the value '500.00-', only '500.00' is displayed in the screen.
    Finally, I changed the type of V_AMT as type string.
    This works - any amounts with negative sign is displayed in the screen properly.
    But, with this approach, I'm unable to "customize" the display of amounts according to currency, like this:-
    DATA int TYPE i VALUE 12345678.
    WRITE int CURRENCY 'EUR'.
    The output of the WRITE statement is "123456,78".
    Is there a better way to achieve this?

    SAP display amounts/quantities as positive numbers with another field that denotes whether positive or negative.  You could change the value to a character field and put the negative where you need it (or put an additional field next to the amount with the sign)... but using a character field probably would negate the currency display, too....

  • Negative Sign for Asset G/L Account balance

    hi
       I m having one problem....I created the sales invoice for a customer "ABC" of total INR 63000.00 and when the customer paid the amount for that invoice thru "Cheque" .Banking -
    >Incoming Payments and i selected the BP code "ABC" and the invoice related to him get displayed and i choose the related invoice and went to "Payment Means" -
    >"Check" tab
          G/L Account -
    > 124563 ( Initially this account balance is 0.00)
      I entered all the Cheque details and its amount and added that incoming payment.
        After adding when i check the account balance 124563 its showing the balance as -63000.00 , the amount is shown in negative sign
        Company Details
          Display Credit Balance with Negative Sign is unchecked
       Please anyone help me out in making the balance with positive sign
    Edited by: Rajeswari Palaniyappan on Nov 25, 2008 10:00 AM

    Hi Rajeswari
    This is a common error that consultants make when implementing SAP Business One. There is no quick fix for this and the best is to create a new database and re-import all the transactions and masters. Make sure this time that the Display Credit Balance with Negative Sign is ticked.
    Unfortunately this one tick affects the way amounts are posted to the journal tables & others and cannot be fixed manually. You could try raising a support message with SAP but I am sure they will tell you the same thing I have.
    Kind regards
    Peter Juby

  • Negative Sign in Debit (Outgoing Payment)

    Dear Experts,
    I have a problem where the in outgoing Payment (overpaid) showing negative sign in Debit side(- $0.50) , for accounting standard it should be show RM0.50 in Credit side JE if it's overpaid.
    Because of this, it effected the display on General Ledger where showing Debit Side with negative sign and cause the total debit is incorrect.
    Kindly Advise.
    Your reply is highly appreciated.
    Regards,
    Danny.

    Hi Danny
    Normally in SAP B1 :
    For Customers Receivables it shows in +ve Balance ( Debit.)
    For Vendor Payable it shows in -Ve Balances ( Cr.)
    If customer is Overpaid or Given Advance then it shows in -ve ( Cr.)
    If you paid Advance to Vendor then it shows in +ve. ( Debit.)
    I hope you will understand the Behavior of SAP and this is not difference from the Finance Logic.
    Giridharan V

Maybe you are looking for

  • AirPort Extreme (Still) Looking for a PPPoE Host

    Help! I have a PowerBook G4 (OS X 10.4.2) that I've used with my AirPort Extreme for over a year and half without any major problems. I upgraded to AirPort 4.2 last week without incident, but since yesterday my base station hasn't been able to connec

  • Creating Sales Order with more than one Quotations

    Hi I have a requirement to create one Sales Orders from multiple Quotations. Can someone tell me how this can be accomplished? I have all the settings done in SPRO in transactions and Item Category copy controls but the system takes only the data fro

  • IPhone 5 has weird lines with colors on screen?

    It's isn't inverting colors, I have tried everything ! And I don't want to go to a genius bar or apple store! Thank you!

  • Can't Disable Screensaver

    Hello, Any one ever have a problem disabling the screensaver? I have it set to never come on using the preferences pane, yet it still comes on. I have repaired permissions to no avail. Any other suggestions? Thanks Nano

  • How to run the javascript in httpunit

    I need to run the javascript code in the HttpUnit.I appreciate if any body helps out in this regard.