Stop Cash Outgoing Payments beyond 20000

Dear All,
I want to put a transaction notification where it should stop me from saving an outgoing cash transaction greater than Rs. 20000. Kindly help me with the coding if somebody has handled the scenario. I am on SAP 8.8 PL 11.
Regards
Kapil

Insert this in your  SBO_SP_TransactionNotification stored procedure after the line
--     ADD     YOUR     CODE     HERE
IF      @Object_type = N'46'
Begin     
If (select CashSum from OVPM
        where DocEntry=@list_of_cols_val_tab_del)>20000
begin
set @error = 22
set @error_message = N'Cash payment should not be higher then 20000 !'
end
End     

Similar Messages

  • Outgoing Payment and Cash Account

    Hi All,
    When I try to make outgoing payment, I do enter the amount in payment and I try to press OK button. A message showing "A cash account is required. Choose a different account may cause inaccuracies in the cash flow report"
    What does the message mean? and how do I solved this issue?
    Thank

    Lee,
    In Administration - Choose System Initialisation - go to Company Details and go to the Basic initialisation tab....in this tab below you will find the House Bank when you enter your House bank here it will automatiaclly appear in the payment means in the outgoing payments form.
    Just for e.g.Now in the outgoing payment means form in the last column you enter the amount say USD 10000 which is a part payment out of USD 20000 which you are settling by HSBC bank cheque and the remaining USD 10000 you want to settle by Citi Bank cheque which you can enter in the next row Or simply settle the whole amount by one cheque usung one House bank.
    Basically the system gives you the flexibility to settle as per your convenienece hence it has allowed you to choose the other banks.
    Hope this clarifies your doubt.
    Nagesh

  • Restrict Outgoing payment document, if cash is more than Rs.20,000

    Hai!
    I am using SAP B1 PL40.
    can u help me out on this issue.
    I want to restrict the users to ADD
    Outgoing Payment document if they choose,more than 20,000 payment by cash mean.
    pl let me know if u want more detailed explanation.
    Thank u,
    Thanga Raj.K

    Hi Thangaraj,
    Try the following Stored Procedure. I checked in my system and works fine.
    Try the same in the Test System. Then get the approval and load in Live System.
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(25),                     -- 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'
    IF @transaction_type = 'A' AND @object_type = '46'
    BEGIN
    If exists (SELECT T0.docentry  FROM OVPM T0 where T0.cashsum>=20000)
         begin
              SET @error = 10
              SET @error_message = N'You cannot Pay Cash More than Rs. 20000/-'
         end
    END
    select @error, @error_message
    END
    Edited by: Sridharan T on Aug 25, 2008 11:35 AM

  • I encountered an error in the Payment Wizard screen as I was creating an Outgoing Payment for petty cash expenses. On the "Recommendation Report" screen, I clicked "Non-Included Trans." and saw that one of the vendors (Vendor Code: WILCO) has the followi

    Hello,
    I encountered an error in the Payment Wizard screen as I was creating an Outgoing Payment for petty cash expenses. On the “Recommendation Report” screen, I clicked “Non-Included Trans.” and saw that one of the vendors (Vendor Code: WILCO) has the following error:
    “The document amount is greater than the max. amount allowed in the payment methods linked to the BP”
    Upon checking, the “PCF-W” Payment Method linked to WILCO does not have any restrictions, nor does WILCO have any credit/commitment limit set. I have also appropriately defined the Dummy Business Partner Bank (under Payment Terms) as well as checked the “Included” box for PCF-W on the Payment Run-Payment Methods screen.
    Could anyone please help me on this?
    Salamat,
    Cat

    PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
    If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!!

  • Different no range/doc. type for cash journal incoming/outgoing payment

    Hi all,
    I am going to set up cash journal for a customer and they want separate number range for incoming and outgoing payments.
    I have read on this forum and actually don´t understand if that´s possible.
    If I set up two different cash journals (one for outgoing payments and one for incoming payments) the problem is that I can call all transaction type (C, B, R, E, set in transaction FBCJC2) from both. I have a cash journal for outgoing payments where I have set a separate document type and number range for G/L accounts in transaction FBCJC0 and the same for vendor outgoing payment and customer outgoing payment, but no document type for incoming payments from vendor/customer.
    When I then start to use this cash journal for outgoing payments I can´t make outgoing payments if I don´t have any money in my cash journal. Then I have to take money from my housebank by business transaction type C (receipt from bank) set in transaction FBCJC2. This becomes an incoming payment, but I got the same number range as for outgoing payments because I am in that cash journal and that number range is set per G/L account transaction per cash journal. .
    How can I come around this problem?
    Thanks in advance!
    Best regards Lisa

    Hi Pravin,
    Sorry for late answer. I created three document types, one for customer, one for vendor and a third for G/L postings. It was not possible to do in another way, sorry.
    Best regards Lisa

  • Outgoing Payment in FICA( Cash & Bank)

    Hi All,
    Can anyone give idea about the above subjects.
    Since i know how to post incoming payments.
    In case if the customer paid overpayment or payment of security deposits.
    Could anyone please give procedure with T.Code for this.
    Thanks for your help in advance.
    Regards,
    RAM.

    Hello,
    In FICA, You make the Payments to the customers either
    1. You have collected excess money from him
    2. You have charged him excessively.
    3. You have adjusted his bill resulting in payment to the customer
    4. You want to pay him back the securtiy deposit
    5. The customer is moving out ....net result being you owe him the money
    6. Other reasons resulting in payment to the customer
    In all the above cases, you have to REFUND the money to the customer....either through Bank or by cash or by Cheque...<it depends on your company policy>.....
    For refund by Bank/ Cheque you can use T-Code FPY1.
    For refund by Cash you can use either FPB0 or FPCJ <again depends on your project/co policy>
    For payments by Bank /Cheque, you need to do the following settings
    1. Define Own bank details
    2.Define Bank user numbers for Payment medium
    3.Define Payment methods <FQP1>
    3.Define specifications for paying Co cd <FQP4>
    4.Define accounts for payment program <FQC0: Posting area 1061>
    5.Maintain bank selection
    The path for above config is IMG\FICA\Business Transactions\Payments\Incoming outgoing payment creation.
    For configuration of Cr Card payments,<Posting by FPB0>, You need to configure in IMG\FICA\Business Transactions\Payments\Payment cards\ Define Accounts for Payment card Institute & Define Specifications for Posting Settlement Document
    For configuration fo Cash desk payments<FPCJ>, you have make the settings in IMG\FICA\Business Transactions\Payments\Processing incoming and outgoing payments Cash desk Cash journal
    Hope this helps
    Rgds
    Rajendra

  • Validation for Cash Payment Rs 20000/-

    Hi friends,
    There is one way to set the limit on document not exceeding particular value, i.e. by setting limit on the basis of document type. ( since this is client level setting we can not do the same in our scenario )
    Is there any other way to do the same at company code level ( i.e. any other way which will not have client level setting ) to do such validation.
    We require to do the same for legal requirement of Cash Payment > Rs 20000/- in one Cash Payment Document. We are using the Cash Journal ( FBCJ ) . If anyone know , pls suggest. Will assign full marks if gets the solution.
    Thanks.
    PS

    Hi,
    You can create the validation rule for your requirement without touching cross client configuration.
    Validation will be possible. Pls follow the proceedure thorugh OB28/GGBO
    Cash Validation for More than Rs.20,000/-
    Prerequisite:
    t-code (SYST-TCODE) = fbcj
    company code (BSEG-BUKRS) = 'xxxx'
    GL account (BSEG-HKONT) = 'cash account defined for cj'
    Dr/Cr indicator (BSEG-SHKZG) = 'H/S' ( if you want to resrtict payment upto the prescribed amount enter H and to restrict receipt enter S
    Check:
    Amount (BSEG-DMBTR) > 20000
    Message:
    Create a message in se91 and assign it.
    please assign the points if its useful.
    Regards
    sai krishna

  • Default Cash A/c in Outgoing payment window

    Hi All
    Can we set a default cash A/C for a user , for all of his outgoing cash payments?  I heard the default cash a/c which is in the system only for sales related documents.  is it correct?
    Thanks
    SV Reddy

    Hi,
    Go in Banking > Outgoing Payment  > enter necessary field then choose "Payment Means " from tool bar
    In that 4th tab is cash account which by default is blank, assign there yr GL
    Choose ok
    Hope it may work
    Thanks
    Kevin

  • Approval procedure on outgoing payment for Cash and bank transfer

    Dear Expert
    I want to know about outgoing payment approval
    Is it possible to set approval on payment means base ?
    Like I need to set approval for my user
    case 1 is : - If my user make payment by cash more then 5000 then approval it should be approved by manager
    And if my user make a outgoing payment by cash more then 100000 then it should be approved by MD
    Case 2 is If my user create outgoing payment by Bank transfer then more then 25000 then it should be approved by manager
    And if it is by bank transfer more then 500000 then it should be approved by MD
    IS it possible ????? Please guide me
    Thanks
    Riny

    Hello Sir
    Thanks for reply , Well I created query and executed but its giving false value but when i attached this query on approval , Its not working ..
    Please help me and also please comment on my another thread which is about No matching record found error
    Thanks

  • Select Cash Account in Outgoing Payment Window by Formatted Search

    Dear All
    In one of my Customer's requirement in Approval procedure I have to select 'Cash Account' code in Outgoing Payments Window when 'DocType' is 'A' i.e. Account. When 'Payment Means' window is opened I found that in Cash Tab, Item value of G/L Account Field is '32' and it also shows that this field is 'CashAcct' in OVPM table. Accordingly I put the value as $[$32.0.number] to capture the value. But it is returning value 0. My query is as follows:
      " select distinct 'TRUE' from OVPM where $[$58.0.string] = 'A' and $[$32.0.number] = 161000
       and $[$12.0.number]  > 10000.00 and $[$12.0.number]  < 50000 and $[$87.0.number] = 15"
    We want approval procedure will be triggered when cash is paid in between Rs.10000.00 and 50000.00 on 'Account' type and Series is Primary (value is 15) and Account Code is 161000 i.e. Cash Account.
    But it is not working.
    Can any one help to locate where I have done wrong.
    Thanks & with regards
    S K Ganguly

    Hi S K Ganguly,
    Check this....
    select distinct 'TRUE' from OVPM where ($[$58.0.string]) = 'A' and ($[ovpm.CashAcct.number]) = 161000
    and ($[$12.0.number]) > 10000.00 and ($[$12.0.number]) < 50000 and ($[$87.0.number]) = 15
    Thanks,
    Srujal Patel

  • Stop Outgoing payment from particular users if BP credit balance is less

    Hi Experts
    Please help me with the following issues
    I want to be able to stop 3-4 specific users from generating outgoing payment if the following applies
    1. the BP ledger Balance is Less than outgoing payment i.e if there is Rs. 100 credit balance then those users cannot make outgoing payment to BP more than Rs. 100
    2. they also cannot make outgoing payments more than a set limit. for ex. if i say that user A has Rs. 50 as limit then he can generate only those payments where the outgoing payment amount is MAximum rs.50 even though the ledger balance is Rs. 150
    I feel that this can be done through sp_transaction notification please help me with the SQL code for the same 
    thanks
    regards
    Pradipta

    Please use the following code as a guideline and test it.   In the code below the first select statement gets the User Code of the user adding the Outgoing Payment.  this is your starting point to validate this transaction further.
    In the first IF statement I am checking if the user code = 1 and checking the outgoing payment total against the BP balance and if it is greater message will be displayed.
    In the Second if I am checking if the Outgoing payment amount is great than 100 and displaying a message.
    This code does not use your current limit stored at the user table but has been constructed based on your future interest to hardcode values.
    Please get the user codes corresponding to the users by running this query either in SQL or in SBO
    SELECT T0.UserID, T0.U_NAME AS 'User Name' FROM  [dbo].[OUSR] T0
    SBO_SP_TransactionNotifiation code is below
    IF @object_type = '46' AND @transaction_type = 'A'
    BEGIN
         declare @usercode int
        select @usercode = t0.usersign
        from [dbo].[ovpm] t0 where t0.docentry = @list_of_cols_val_tab_del
         if @usercode = 1
         begin
              if exists (select t0.docnum from [dbo].[ovpm] t0
                  inner join [dbo].[ocrd] t1 on t0.cardcode = t1.cardcode
                    where t0.doctotal > -1*t1.balance AND t0.docentry = @list_of_cols_val_tab_del)
              begin
                   select @error = 1, @error_message = 'Payment total cannot be greater than BP balance'
              end
         end
         if @usercode = 5
         begin
              if exists (select t0.docnum from [dbo].[ovpm] t0
                  inner join [dbo].[ocrd] t1 on t0.cardcode = t1.cardcode
                    where t0.doctotal > 100 AND t0.docentry = @list_of_cols_val_tab_del)
              begin
                   select @error = 1, @error_message = 'Payment total is greater than permitted limit'
              end
         end
    END
    All the very best
    Suda

  • Payment block 20000

    Hi All,
    i had downloaded the stored procedure code to block the user if the outgoing payment is made for more than Rs. 20,000/-.  but when i add the transaction it does not give any error but adds the transaction, below is the code.
    IF @object_type = '46' and @transaction_type = 'A'
    BEGIN
    If exists (SELECT T0.docentry FROM OVPM T0 where T0.cashsum >= 20000)
         begin
              SET @error = 10
              SET @error_message = N'Petty Cash More than Rs. 20000/- cannot be entered'
         end
    END
    we are using 2005B, PL 35.
    Please help us to resolve.
    Regards
    Shanker

    Try this code:
    IF @object_type = '46' and @transaction_type = 'A'
    BEGIN
    If (SELECT T0.cashsum FROM OVPM T0
        Where T0.docentry=@list_of_cols_val_tab_del) >= 20000
    begin
    SET @error = 10
    SET @error_message = N'Petty Cash More than Rs. 20000/- cannot be entered'
    end
    END
    It blocks more then 20000 cash payment.

  • Open item management_part payment with partial clearing_post outgoing payment process open items

    In this scenario of post outgoing payment process open items , i' m facing a error titled as below
    The difference is too large for clearing
    Message no. F5263
    Diagnosis
    A non-assigned difference exists for the specified clearing amount.
    The difference for an automatic difference posting must not be greater than the difference permitted for the user, nor greater than the difference permitted for the tolerance group that is contained in the customer/vendor master record.
    System Response
    It is not possible to automatically charge off the difference.
    Procedure
    You can charge off the difference manually using the function "Clear differences". You define the upper limits for automatically clearing differences in the tolerance group assigned to the user.
    Change tolerance groups for user
    I gave the specifications in (OBA4 screen) i.e., change tolerance groups for users/employees are as follows
      Amount per document : 9999999999
    Amount per open item account item : 9999999999
    Cash discount per line item : 10%
    Permitted payment differences left blank
      What else do i need to execute ?
    Please aid me in resolving the error....
    Thanks in advance,
    Heamanthkkumar.

    Hi,
    it seems you want to make a partial payment of 15000, select the line item against which you want to make the payment. On the payment amount field put -15000 and then simulate. It will credit the bank account and debit you expense account. Pls refer the screen shot.
    best regds
    Subha

  • Error doing outgoing payment against A/P Downpayment Request

    Hi,
    I am working on SAP B1 8.8 PL00(evaluation version). While posting Outgoing Payment against A/P Downpayment Request,system  displays following error message-'Invalid Account Code'. It happens for both the payment means-Check as well as Cash. In G/L Account Determination -Purchase Tab-General Tab I have assigned G/L account to 'Down Payment Tax Offset Account'. Also in BP Master following accounts have been assigned-1.Accounts Payable 2.Down Payment Clearing Account.
    What could be the reason of the error?Please guide me.
    Regards
    Sudhir

    Dear Sudhir Jadhav,
    Apart from the accounts that you have mentioned there is also the Down Payment Interim Account in the General Tab of the Purchasing and Sales tab of the G/L Account Determination.
    I have tested the creation of the payment for the Down Payment and at first I could not add it because of an account issue. When I added this account it worked.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • A/R Invoice - Create two outgoing payments

    Hi,
    We have issue here regading A/R Invoice Payment.
    The A/R Invoice is $100, the payment is $200 with Interact card (Direct account payment) with $100 cash return.
    The present does not work in B1; but will be developed in future release.
    The present can be solved according to Peter Dominik, B1 Solution Management as follow:
    Create two outgoing payments:
    - payment to vendor (payment for his bill)
    - payment on account reposting balance from Bank Account to some
    PettyCash account (cash
    withdrawal from bank account)
    Now I need to source code for the present solution; because all SDK is 1 A/R Invoice and 1 Payment. Now we have to do 2 outgoing payments. We need your help for this solution.
    Please find the code for one transaction below; we need 2 payment transactions.
    Thank you,
    Rune
    oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
    oPayments.Invoices.DiscountPercent = 0;
    oPayments.Invoices.DocEntry = vmp_DocEntry_Int32;
    oPayments.Invoices.DocLine = 0;
    oPayments.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;//13;
    oPayments.Invoices.SumApplied = vmp_Amount_double;
    oPayments.Invoices.Add();
    oPayments.CardCode = vmp_CardCode_string;
    oPayments.DocDate = DateTime.Now;
    oPayments.JournalRemarks = "Incoming - Payment Bank Transfer";
    oPayments.TaxDate = DateTime.Now;
    oPayments.TransferAccount = vmp_BankAccount_string;// "_SYS00000000343";
    oPayments.TransferDate = DateTime.Now;
    oPayments.TransferReference = vmp_CardCode_string;
    oPayments.TransferSum = vmp_Amount_double;
    vc_Message_Result_Int32 = oPayments.Add();
    if (vc_Message_Result_Int32 != 0)

    hi Vitor,
    I need a code sample for Peter's suggestion using the code I provided:
    Create two outgoing payments:
    - payment to vendor (payment for his bill)
    - payment on account reposting balance from Bank Account to some
    PettyCash account (cash
    withdrawal from bank account)
    Thank you,
    Rune

Maybe you are looking for