How to block negative cash balance ?

Dear Experts,
I want to block -ve balance to all of my cash accounts i.e. no credit balances to cash accounts. How can i achieve this?
What i am thinking is about a stored procedure on outgoing payment and journal entry.
Please help me out.
Thanks in Advance
Best Regards
Ashutosh T

Hi Gorden,
Even this code is not working, I am doing all the steps correctly. My cash account balance is 'zero' but still  i am able to make outgoing payment with payment means 'CASH'.
Istvan ! I have putted Mr. Gorden's code under '[dbo].[SBO_SP_TransactionNotification]' as follows..
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(20),                     -- SBO Object Type
@transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error  int                    -- Result (0 for no error)
declare @error_message nvarchar (200)           -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
--     ADD     YOUR     CODE     HERE
IF (@object_type = '46' AND @transaction_type in (N'A', N'U') )
BEGIN
IF EXISTS
(SELECT T0.CashSum FROM OVPM T0 INNER JOIN VPM4 T1 ON T1.DOCNUM=T0.DOCENTRY
INNER JOIN OACT T2 ON T2.AcctCode = T1.AcctCode
WHERE T0.CashSum > T2.CurrTotal AND T1.AcctCode in ('102000030010001','102000030010001')
AND T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @error =1, @error_message = ' Cash Balance must be Greater then Zero'
END
END
-- Select the return values
select @error, @error_message
end
Please guide me where I am doing wrong
Best Regards
Ashutosh

Similar Messages

  • How to find out cash balance

    how to find out cash balance at each plant for particular date.

    Hi
    Please tell me what is the system of your GL Creations, is it plant wise or not ? If plant wise, then you can see the individual plant wise GL from FBL3N or FS10N. Ideally there should be plant wise Cash Journals also, so you can see from FBCJ.
    If plant wise GLs are not opened, then if you have single GL for cash, then on the basis of profit center/ business area if plant wise, you can dispaly the cash balance
    regards
    Parag Bhargava

  • Negative Cash Balance

    Cash Account balance shows a negative figure
    ie,payments are more than receipts
    customer wants to block this.It should nt allow to post entries it the cash balance becomes negative
    please suggest
    regards
    kannan

    If the Cash G/L Account is used to create a Journal Entry it could possible go negative when a Credit total greater than the existing balance in entered.
    To prevent this, you will need to first determine what all transactions use this Cash Account.  I mean Incoming, Outgoing, JE, etc.
    Then you would take the ObjType of these documents and use the SBO_SP_TransactionNotfication stored procedure to block the transaction matching the ObjType which contain this Cash GL that would cause the Particular GL to go negative
    Suda

  • Pets - Negative Cash Balance (Ref: TA-21025)

    Status: Fixed
    Affects: Some Users
    Description: We have seen an issue related to Pets Starter Sets that can result in a display of a Negative Pets Cash Balance. The issue appears to affect a very small number of accounts.
    Our engineers are still investigating this issue and are working to correct it. If you are experiencing this on your own account, please be sure to select the 'Me Too' button in the post.
    Thanks for your patience while we investigate this issue.
    Edit: We were able to fix this issue and you should no longer experience negative balances. However, if you're still experience this problmem, please contact us.

    Dear Pallavi,
    Very useful post!
    I am looking for similar accelerators for
    Software Inventory Accelerator
    Hardware Inventory Accelerator
    Interfaces Inventory
    Customization Assessment Accelerator
    Sizing Tool
    Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
    Request help on such accelerators... Any clues?
    Any reply, help is highly appreciated.
    Regards
    Manish Madhav

  • Negative cash posting

    Hello Peers,
    Can any body give the solution for negative posting in cash journals. when am posting with amt more than cash available in my cash a/c am getting this error:
    *Payment amount is larger than cash on hand. Change amount
    Message no. F5A055*
    I want to post with negative cash balance.
    Thanks
    Murali

    Hello Murali,
    The error message F5A055 is to make sure the balance for cash jounal is always positive.
    The system behaviour is explained in detail in note 430397.
    So as explained in the note, the system checks the new daily closing balance resulting from the reversal transaction for all days following the posting date up to the current system date.
    It is not therefore sufficient to have a sufficiently large closing balance at the posting date, but the balance must be sufficient for this payment or reversal of the receipt on all following days.
    Therefore, you must check the closing balance on all days following the posting date up to the current system date and take existing cash receipts into account if required.
    In the cases like, when a document is saved, the actual document is generated and stored in the cash journal tables TCJ_DOCUMENTS and TCJ_POSITIONS. So the BALANCE of the cash journal is updated.
    Therefore even a document which is not posted but saved is also considered in the balance of cash journal.
    I will try to explain you what does the note refer to with an example.
    Imagine you have the following situation:
       Initial Cash Journal Amount 01.01.2009   100,00 USD
       Customer payment            02.01.2009  +200,00 USD
       Balance at                  02.01.2009   300,00 USD  ok
       Vendor payment              03.01.2009  -150,00 USD
       Balance at                  03.01.2009   150,00 USD  ok
       Incoming payment            04.01.2009  +500,00 USD
       Balance at                  04.01.2009   650,00 USD  ok
    This is ok, but if for example, the user needs to reverse the customer payment made on 02.01.2009. As you can see, the balance at 02.01.2009 is 300,00 USD so from the user point of view, the document
    can be reversed without any problem. However, system will give you the error message F5A212. Why? Because if you reverse the document on 02.01.2009 the final balance at 03.01.2009 will return -50,00 USD and this is not correct. This is explained:
    "Check the closing balance on all days following the posting date up to the current system date and take existing check receipts into account if required."
    How can you avoid this error?
    "Then change the payment amount, or first post a receipt.The receipt must be entered at the latest at the posting date at which otherwise a negative balance would be created."
    Therefore in the above example, if you need to reverse the document, you can only do this on 04.01.2009 or change the amount of the reversal transaction to 150 instead of 200.
    Hope this example helps you to understand the system behaviour.
    After implementing the note 1051847, if the system generates error message, it now specifies the date on which the negative balance would arise which would help you to take necessary actions based on that.
    Please check also the following notes:
    882626  FBCJ: Amount check in accordance with Money
    1157000  FBCJ: Reversal with termination - negative lines
    546365  FAQ: Cash journal
    I hope I could clarify to you the system behaviour. It should resolve your inquiry
    Best Regards,
    Vanessa.

  • When cash balance is negative

    Hi Experts
    When cash balance is negative, How to block further transactions , Is there any way to do this?
    Edited by: murali krishna on Oct 21, 2008 2:27 PM

    You can do this restriction using SBO_SP_TransactionNotification Stored procedure.
    You can find more information about this from the link
    SP_Tranaction Notification Procedure Explanation
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e991e2b9-0901-0010-0395-ef5268b00aaf]
    Try out yourself otherwise I shall help you.

  • How do you pay with a credit card when the Store has a cash balance?

    I think the iTunes Store automatically applies your cash balance with before it tries to charge your credit card on file. Is there a way to override this and manually enter your credit card information to pay for a song purchase?
    I have a half dozen credit cards I don't want closed. Putting a small charge on them once in a while makes sure the card accounts stay home, and purchasing a song from iTunes is one of the perfect ways of doing this. So once a month of so, I'd like to purchase a half dozen songs each with a different credit card. My store account already has $140 in cash balance, because I keep on getting iTunes gift cards faster than I can use them.
    Aside from creating a second iTunes account, whose library would be a pain to maintain the integration with my main account, is there a way to accomplish my goal?

    Gift the songs to yourself.
    (110398)

  • How to block a postings?

    How to block a posting when a particular G/L account is about to cross 'Zero' value ie. nearing negative value?
    we are having some 4 accounts maintained in such a way their acc balance must'nt bcom 'Zero'. so when tht G/L acc is used, in case if the balance is to go for negative value, the posting must be blocked.
    is there any way in SBO?
    thks in advance,
    dhana.

    Hello Dhana,
    Will the transaction posted to these G/L Accouns be through a JE or through other transactions which could render them going negative?
    What kind of G/L accounts are these?
    I am not sure if you could have a setting to prevent them from going negative but we can see if we can apply an approval procedure perhaps and prevent it.
    Suda

  • Profit Center : Reflect - Vendor, Customer, Bank/Cash Balance

    Dear Experts,
    Ref. : Reflect - Vendor, Customer, Bank/Cash Balance, Balance Sheet GL Accounts - Profit Center wise.
    When we do postings to P&L Items, we assign a CO / Cost Object. Such Cost objects may be Orders, Cost Centers, etc., which has a Profit Center assigned to it.
    Now, we wish to view Balance Profit Center wise.
    My Concerns :
    1.  Can Vendor, Customer, Bank/Cash Balance, Balance Sheet GL Accounts - Profit Center wise. Since we do not assign CO objects to such line items, but the correspondense line items (P&L GL) has a CO object.
    2.  If yes, how do we move balance of such items, to Profit Center / profit Center wise.
    Experts, please help me to understand the concept.
    Regards,
    Hussein.

    Hi,
    Are you in ECC activated new G/L? If yes, then you can define Profit Center as Document Splitting Characteristic for General Ledger and profit center will be in the AR/AP line item as well in ledger view (though you don't enter profit center during document entry).
    You cannot give the Profit center in line item level to the Subledger accounts like vendor and customers.Vendor and customer accounts take the profit center from the offsetting entry.If want to see the profit center to the particular document, open the document go to Environment field and select Balance Sheet Adjustment option.
    If you want to see the Profit center wise payables and receivables, use T.code GR55 and take report group 8A90 for Periodic Receivables and 8A91 for Payable.
    If you want to see the all payables with Profit center use Table BFOK_A for vendors BFOD_A for customers.
    Regards,
    Viswa

  • How are *Credit Card*--Cash Advances handled?

    How are *Credit Card*--Cash Advances handled? Can employees add that to their Expense report?
    Example: If the employee takes a $100 cash advance and reconciles the transaction in SAP Expense, we are expected to pay
    Credit Card Provider $100.
    However, how does the employee account for underutilizing that $100 (e.g. $20 remaining in their pocket).
    Does the individual create and link the $80 of expenses to that $100 cash advance and receive a $20 debit to their employee vendor?
    Also, we know that currently there is no MCC Code Mapping in the system for Cash Advance.
    Is there a work around this.

    Hi Rahul,
    I had a customer which had this situation. We solved this issue with a BAdI implementation in ERP.
    The traveler adds this withdrawal as a normal expense item which is assigned to special account alias code. The BAdI implementation recongnizes this alias code and removes the expenses and charges this costs to the employee.
    Example:
    Withdrawal        100 USD
    Taxi                     80 USD
    Bus                        5 USD
    Unused                15 USD
    Standard posting to FI:
    Taxi Costs                           80,00
    Bus Costs                            5,00
    Withdrawal                          100,00
    Employee Vendor                                85,00
    Credit Card Account                          100,00
    The correct  posting would be:
    Taxi Costs                           80,00
    Bus Costs                           5,00
    Employee                           15,00
    Credit Card Account                         100,00
    To achieve this posting it is required to
    map the withdrawal expense type to a special account alias code (in the coding
    example below: ADV)  and  to implement the following coding in BAdI
    BADI_DCFL_FIN_IDOC_DATA_TV:
      DATA: lr_item               TYPE REF TO dcfls_preproc_it.
      DATA: lr_vendor_item         TYPE REF TO dcfls_preproc_it.
    FIELD-SYMBOLS: <tv_item_adv>  TYPE dcfls_runtime_tv_item.
    FIELD-SYMBOLS: <tv_item_emp>  TYPE dcfls_runtime_tv_item.
    FIELD-SYMBOLS: <tv_header>    TYPE dcfls_runtime_tv_root.
      DATA: lt_string              TYPE TABLE OF string.
      DATA: ls_string              TYPE string.
      LOOP AT cs_preproc-item REFERENCE INTO lr_item.
        ASSIGN lr_item->bo_specific_item->* TO <tv_item_adv>.
        IF  <tv_item_adv>-tv_category = '03'  "Expense Item
        AND lr_item->ksymb = 'ADV'.
          CLEAR lr_vendor_item.
          LOOP AT cs_preproc-item REFERENCE INTO lr_vendor_item WHERE rtkey_it <> lr_item->rtkey_it.
            ASSIGN lr_vendor_item->bo_specific_item->* TO <tv_item_emp>.
            IF  <tv_item_emp>-tv_category = '01'  "Due Item
            AND <tv_item_emp>-pernr_d IS NOT INITIAL.
              EXIT.
            ELSE.
              UNASSIGN <tv_item_emp>.
            ENDIF.
          ENDLOOP.
          IF <tv_item_emp> IS ASSIGNED.
            <tv_item_emp>-wrbtr = <tv_item_emp>-wrbtr - <tv_item_adv>-wrbtr.
            DELETE cs_preproc-item WHERE rtkey_it = lr_item->rtkey_it.
          ELSE.
            "Create Vendor Item with negative amount
            <tv_item_adv>-tv_category = '01'.
            ASSIGN cs_preproc-bo_specific_root->* TO <tv_header>.
            SPLIT <tv_header>-note AT '/' INTO TABLE lt_string.
            READ TABLE lt_string INTO ls_string INDEX 4.
            IF sy-subrc = 0.
              <tv_item_adv>-pernr_d = ls_string.
            ENDIF.
            CLEAR: lr_item->ksymb,
                   <tv_item_adv>-note,
                   <tv_item_adv>-zuonr.
            <tv_item_adv>-wrbtr = <tv_item_adv>-wrbtr * -1.
          ENDIF.
        ENDIF.
      ENDLOOP.
      IF  <tv_item_emp> IS ASSIGNED
      and <tv_item_emp>-wrbtr IS INITIAL.
        DELETE cs_preproc-item WHERE rtkey_it = lr_vendor_item->rtkey_it.
      ENDIF.

  • How to block order for a particular customer. pls read clearly

    hi
    some customers may be asked for cash and carry procedure.
    bcos they do very small sales they have access to only cash sale document ie CS.
    here how to block OR, RO etc to that particular customer or group of customers
    regards
    sridhar

    Hi,
    One simple way would be to give those customers a special sales area (e.g. a separate distribution channel) than for normal customers. Then you do not allow the Document Type for this sales area in the transaction "Assign Sales Areas to Sales Document Types" in IMG (Sales & Distribution -> Sales -> Sales Documents -> Sales Documents Header).
    Ensure that the customer is created to this "blocked" sales area only. Then when you try to create the sales order, system would give an error message saying customer is not defined for the sales area, and would not let you proceed.
    Hope this helps,
    Regards
    Nikhilesh

  • Massive Negative Point Balance and Reward Certificates That I Don't Want

    I made a purchase near black friday and then returned it January (it was defective). In the meantime I was issued $15 in certificates. After the return I now have a massive negative point balance (-363). I don't like having such a negative points balance and I don't need purchase anything in the time-frame before the certificates expire. I would therefore like to return (or invalidate) the certificates and have those points added back to my account. Also if I remember correctly I only returned a $200 tablet, so I don't understand how I got to -363 points.
    Thank you
    Solved!
    Go to Solution.

    Greetings jl2015, and welcome to the Best Buy forum,
    I would not want to have a negative point balance either, as it could potentially cause issues with any points that are awarded for purchases you make in the future.  I looked over your My Best Buy™ account using the email address you registered with the forum and can see exactly why your point balance went negative.  Let me see what I can do to help.
    As you mentioned, you recently returned an item that had been purchased back on Black Friday.  That return would have resulted in any points you were awarded for the original purchase to be deducted from your account, and since the pre-tax total was about $200 and you used a Best Buy credit card, almost 500 points were deducted from your account.  You did not have sufficient points in your account when the return was processed because they had been converted into two certificates.
    In most cases, active certificates in a member's account will be voided and the point values added to their balance in-order to help when there is a negative balance.  The two certificates that you have in your account could help bring you out of the negative.  I will be sending you a private message so that I can go over your My Best Buy™ account with you in additional detail.  To check your private messages, you will want to login to the forum and click on the envelope at the top of the page.
    Thank you for posting and for being a My Best Buy™ member!
    Derek|Social Media Specialist | Best Buy® Corporate
     Private Message

  • How to query the opening balance for an specific account for an spec. date

    Hi all,
    for my user query I need to calculate the opening balance for an cash account for an specific date.
    Any ideas, how can I do this?
    Or may be you know a field in an SBO table that already contains information I need...
    Best Regards,
    Inna

    Hi Inna,
    to find the opening balance for an account or a business partner, please see SAP Note [1114253|https://service.sap.com/sap/support/notes/1114253] :
    Symptom
    How to find the opening balance of a business partner or G/L account.
    Other terms
    Account, customer, supplier, vendor, creditor, debitor, start, initial, first, opening balance, business partner, G/L, SAP Business One
    Reason and Prerequisites
    Consulting
    Solution
    There are several possible approaches:
    Approach 1 - Business Partner Opening Balance:
    1. Go to Business Partners -> Business Partner Master Data -> find the Business Partner
    2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
    3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
    4. Click on the button 'Refresh'.
    5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
    Approach 2 - Business Partner Opening Balance:
    1. Go to Business Partners -> Business Partner Master Data.
    2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
    3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
    4. Click on the button 'Refresh'.
    5. Double click on the column header 'Posting Date' to find the earliest transaction on the business partner account. This transaction could be opening balance, verify this with the company accountant.
    Approach 3 - G/L Account Opening Balance:
    1. Go to Financials -> Chart of Accounts -> click on the account name once.
    2. Click on the orange link arrow next to the field 'Balance'.
    3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
    4. Click on the button 'Refresh'.
    5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
    Approach 4 - Business Partner and/or G/L Account Opening Balance:
    1. If using SAP Business One 2005 SP01 or earlier, go to Reports -> Query Generator -> click on 'Execute'.
    2. If using SAP Business One 2007 or later, go to Tools -> Queries -> Query Generator -> click on 'Execute'.
    3. Ignore the red system message in the bottom of the screen.
    4. Click on the pencil icon in the top left of the window, the field with 'SELECT *' will change colour to white, then yellow when activated by clicking in the field.
    5. Copy the query below:
               SELECT T0.[TransId], T0.[Debit], T0.[Credit] , T0.[CreatedBy], T0.[TransType] FROM [dbo].[JDT1]  T0 WHERE T0.[TransType] = '-2'  and T0.[ShortName]  = '[%1]'
    6. Click on 'Save' and give the query an appropriate name and select the appropriate category.
    7. Click on 'Execute'.
    8. Click on 'Existing Values'.
    9. Select the G/L account or the Business Partner name from the list and click on 'OK'.
    10. The system message 'Records retrieved by this query #' (# = number of records) will pop up. Click on 'OK'.
    All the best,
    Kerstin

  • Store bypasses my cash balance

    Computer crashed and I had to reinstall everything.
    As a consequence, iTunes store is completely bypassing my cash balance and sending me straight to PayPal
    which I preter not to use.
    How do I get it to recognize the cash balance again?
    Thanks in advance,
    deerraven

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    The US prices in the Mac App Store (MAS) do not reflect local sales taxes. Apple collects the sales tax in the final steps of the sale. If the balance does not cover the full total plus the taxes,, then the MAS will need another method of payment, either redeem another gift card or supply a bank card.

  • How to deal with Cash Deposited/Withdrawn from Bank

    Gurus,
    How to deal with Cash Deposited/Withdrawn from Bank for office use.
    <b>Here is the senario:</b>
    When Cash is deposited in Bank the entry is
    Bank Main A/c Dr
    To Cash A/c
    and when Withdrawn from Bank the entry was
    Cash A/c Dr
    To Bank Main Account
    Now my question is, How we will deal with these transactions while creating Bank Reconcilation Statement. As per my knowledge.
    Bank Main Account Balance = Sum of all Bank Clearing Accounts.
    If the difference occurs with cheques we deposit it or make note of issue while BRS, which effect the Clearing Accounts, But, How about Cash Deposit and Cash Withdrawn, coz these won't effect any of the Clearing Accounts.
    How do deal with this.
    please advice.
    Satish

    Hi Satish,
    Through FBCJ transaction you can do the cash receipt / cash payment to Bank (Bank clearing Account). By using the Business transaction "Receipt from Bank" and "Payment to Bank".
    Hence bank posting will happen in the Bank clearing account. As soon as BRS is done, it will hit the Bank Main account.
    Hope it is clear for you. If my reply is useful than please assign points for the same.
    Thanks & best regards,
    nms

Maybe you are looking for

  • User Access Code

    I have a new LaserJet 600 M602 networked to Windows 7 64 bit PC.  I have no recollection of setting a user access code on the printer.   How can I get past the User Access Code to check print cartridge status, etc.?  Or is there a factory default cod

  • No 'scripts' in my file menu?

    when i click on file there is no 'scripts' option to select. I am using cs3 professional (mac leopard). any idea why this would be? I also tried activating and deactivating the 'allow scripts to write files...' in the general preferences, but this ma

  • Tcode vf01 versus Tables / Help on Extraction

    In R3, with the tcode vf01, I entered a billing number and was able to see under Item Details for an Item #20, the Billed Quantity, Net Weight, Gross Freight and Pricing Date. Also, under the Conditions tab, I saw Profit Margin and, Shipping and Hand

  • Minimize word graph

    Spoiler (Highlight to read) i am updating a word template and inserting graphs using word update graph. i am updating a word template and inserting graphs using word update graph. Spoiler (Highlight to read) I update 6 graphs then end with word quit

  • Printers and upgrades

    Hello: I've been having an ongoing problem with both of my two printers (Canon and Epson), both more than three years old. My question to the Community is: if I delete and then reinstall a printer, do the upgrades that have been downloaded also reins