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

Similar Messages

  • How do you stop outgoing payment of 5000 cash type transaction

    hi all,
    if a cash payment is more than 5000 to a vendor in a single day it should be stopped?  how do you achieve this?
    thanks
    SV Reddy

    Hi,
    Paste below code in SBO_SP_TransactionNotification Procedure
    DO ON TEST DATABASE.
    IF (@object_type = '46' AND @transaction_type in (N'A', N'U') )
    BEGIN
    IF EXISTS (SELECT T0.[DocTotal] FROM OVPM T0  INNER JOIN VPM4 T1 ON T0.DocEntry = T1.DocNum
    WHERE ( T0.[DocTotal]  >  5000) AND T0.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    Set @error =1
    set @error_message = 'Pay More'
    SELECT @error , @error_message
    END
    END
    Thanks
    Kevin

  • How to stop push notification from particular site from popping

    well i am using safari as my default browser,i am constantly getting pop ups from foxi69.com kind of site unconcern to some certificate confirmation issue.i just wan a  stop all that pop ups.please apple team help me.

    Safari>Preferences>Security>Block pop-up windows

  • Outgoing payments - include zero balance

    Hi,
    Is there a way to include a "zero balance" payment in the outgoing payment file? E.g. sending the information to the vendor that we have paid debit 1234567 with credit invoice 1235555 with the balance 0?
    Best regards,
    Jan Pettersson

    There is a functionality in SAP called as debit balance check. This can be carried out after a payment proposal has been created. The check offsets all the due debit items without an incoming payment method against the proposed payments.If the resulting debit or credit balance is less then the minimum payment amount, the payments are added to the exception list and the account is placed on a list of blocked accounts. The debit balance check is carried out with the help of program RFF110SSP.
    Assign points of the information is useful
    Regards
    Sanil Bhandari

  • FICA outgoing payment cheque from FI

    Dear Experts,
    I have a query like how we can generate FICA Outgoing Payment Cheque (for eg. Refund of Security Deposit) from SAP FI.
    My client requirement is like that they want all the outgoing payments from FI only.
    So what are the configuration I need to do for getting ISU cheques from FI. I did all the configuration of cheque printing in FICA and able to take the cheque printout also from there itself but when we are going to transfer the ISU data to R/3, cheque numbers are not reflecting in R/3 data.
    Just because of this problem they wanted all the outgoing payment from FI only.
    Any suggestion on this query will be highly appreciable.
    Regards
    Kumar
    Moderator note - thread locked, no research done.  Please search forum before posting
    Creating a refund request in CCS and printing that refund check FI-AP
    Edited by: William Eastman on Dec 26, 2011 5:30 PM

    Hi renjith,
    Please post your question in the Printing forum. This is the development forum.
    Regards,
    Vítor Vieira

  • Approval on Outgoing Payment

    Hi,
    I am using SAP 2007 A (8.00.175) SP 00 PL 30 our requirement is to block some uses from perform  outgoing payment, that means SAP Systems should trigger for approval if a user xyz want to do outgoing payment but other users who authorized can do outgoing payment without being blocked by SAP System.Is this requirement possible? please advice
    Best Regards
    Grayson

    Unfortunatly there is no way to get an approval for an incoming or outgoing payment in business one. When you are defining the approval
    template there is no option to  choose an incoming or outgoing payment.
    Consequently even if a query were developed to check for when a payment has been made the only the invoice would be sent for approval. As a work around I suggest that you send an alert to the approvers everytime an incoming or outgoing payment is added. If the payment is not agreed on then the payment can be canceled before any other action is performed.
    For other users you should not give them authorization for Outgoing payments under Administration ->General Authorization
    Also you can try using SDK for this issue.
    Regards
    Vikas

  • Outgoing Payment - Credit Card

    Hi All,
    We have a company credit card. With this card, we may pay say 5 different vendors.
    Since I cannot find a kind of "deposit" function for outgoing payments, I am thinking of this:
    1. Create a "credit card prepayment" GL account in Assets
    2. Do all 5 outgoing payments from this GL account (ignoring error message about cash flow report)
    3. When we get the credit card statement to pay each month, doing another outgoing payment from my bank account to the "credit card prepayment" GL account
    4. Manually internally reconcile "credit card prepayment account" GL
    Can anyone suggest a better way, or does this look ok? The error with cash flow report is odd, as on one hand the amount of money has been paid, but on the other, is still owed to credit card company.
    Thanks!
    Rajiv
    Edited by: Rajiv Agarwalla on Feb 23, 2009 7:33 PM

    If there is a way to use an interim GL account similar to "cheque clearing a/c" for incoming payments, but for outgoing payments, then of course that is perfect!
    We are trying to do the same thing but manually (it makes external bank reconciliation easier, as only 1 entry for payment to ccard company as per bank statement).
    I tried to go to:
    Banking->Outgoing Payments->Outgoing Payments->select Vendor/GL, tick amt, then click money bag, then Bank Transfer tab.
    However, I do not see an option for interim GL account? I can see how to set this up as you suggested, but we wish to make payments manually each time and not using the Payment Wizard. Is there another way of utilizing this deature?
    Thanks again,
    Rajiv
    Edited by: Rui Pereira on May 1, 2009 10:47 AM

  • How to Print the Account Balance in Outgoing Payment PLD

    Hello Experts
    How to Print the Account Balance in Outgoing Payment PLD
    Dixit Patel

    Hi,
    you can use udf in the outgoing payment to record  the vendor's account balance and then using the query FMS ;
    select balance from ocrd where cardcode = $[$4.0.0]
    Assign the query in the UDF so that each time after entering the vendor code, the balance appears.
    After add the payment, the balance is recorded.
    In PLD, you can create the UDF field to make the balance appears in the outgoing report.
    Rgds,
    JimM

  • Making Account  Outgoing Payments by Check means

    Hello everyone, I'm trying to make an Outgoing Payment of type Account and by Check payment means.
    This is my code:
                SAPbobsCOM.Payments pago;
                pago = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oVendorPayments);
                pago.DocType = SAPbobsCOM.BoRcptTypes.rAccount;
                pago.DocObjectCode = SAPbobsCOM.BoPaymentsObjectType.bopot_OutgoingPayments;
                pago.CardCode = "";
                pago.CardName = "***** KAREN GUDIEL *****";
                pago.CashSum = 0;
                pago.TransferAccount = "";
                pago.TransferDate = System.DateTime.Now;
                pago.TransferSum = 0;
                /* Definir las otras propiedades */
                pago.CheckAccount = "11100001";
                pago.Checks.AccounttNum = "01-101-35219";
                pago.Checks.BankCode = "FICOHSA";           
                pago.Checks.CheckSum = 1000;
                pago.Checks.Add();
                pago.Add();
                oCompany.GetLastError(out errCode, out errStr);
    I call the GetLastError after Add(), and the error string reads:
    G/L account is not valid  [VPM4.AcctCode] [line: 1]
    I have retrieved a similar outgoing payment from a Database I'm working with, which has exactly the same properties except for the sum values. I still have no idea how to fix it, I've tried everything.
    The database I'm working with does not use segmentation for Account Codes.
    I have also read [this thread|Outgoing Payment (Check) via DI API SDK;, it helped me alot but now I'm stuck again.
    I would appreciate any help, thanks in advance.
    Edited by: James A. on Sep 5, 2011 6:12 PM
    Edited by: James A. on Sep 5, 2011 6:13 PM
    Edited by: James A. on Sep 5, 2011 6:16 PM

    Hi James,
    Refer This......
    Link: [url] Outgoing Payment (Check) via DI API SDK
    Thanks
    Shafi

  • How to interface Outgoing Payment F-53 using PI ? IDOC ?

    Hi,
    I have case to integrated all the outgoing payment from transaction F-53 (outgoing payment) to third party application through PI.
    Please advise how can PI capture creation of the outgoing payment document ? is that through IDOC ? or others ? can be this scenario done automatically ?
    Thank You and Best Regards
    Fernand Lesmana

    Hi All,
    Can you Please explain further on this.
    We can trigger IDOC for F110 app run by configuring the Program RFFOEDI1 with variant in F110 TCode.
    But when we make Payment using F-53 how do we configure.
    Can anyone who worked on this please explain Step Procedure to Generate Standard IDOC FIPARQ01 after making Payment using F-53/
    Regards,
    Punith

  • Outgoing Payment analysis by Project ID

    Experts,
    Wondering if anyone has a query written which can analyze a list of outgoing payments from the Project ID on the AP Invoice line items of the invoices included on the outgoing payment?  I have seen some amazing queries out here and just thought I'd check.  Thanks in advance,

    Hi Delen......
    You have posted the same Question twice. Please close one of the two.....
    You can check this one also......
    Go to Financials> Financial Reports> Accounting--> Transaction report by Projects.....
    Regards,
    Rahul

  • Outgoing emails from desktop

    I'm trying to figure out how to stop outgoing emails from my desktop from going to my phone, I just wrote it and don't want to see it a few seconds later! Anybody know how to stop this? Thanks.

    thestrawman wrote:
    I'm trying to figure out how to stop outgoing emails from my desktop from going to my phone, I just wrote it and don't want to see it a few seconds later! Anybody know how to stop this? Thanks.
    Hi Strawman;
    I am not sure I understand your question but are you refering to "View Sent Messages"?
    To not show sent messages on your BB Handheld, go to your INBOX / OPTIONS / GENERAL OPTIONS / Hide Sent Messages and set this setting to "Yes".
    H.
    +++++++++++++++++++++++++++++++++++++++++++++++++
    If successful in helping you, please give me kudos in my post.
    Please mark the post that solved it for you!
    Thank you!
    Best Regards
    hmeister

  • HT1977 I have accidentally made a purchase for the Applications (Direct Cinema- Full App & Fun & Learn- Sliding Puzzle) & I stop the transaction from going through, but now I can't update or load new Apps, I get this message- Billing problem previous purs

    I accidentally made a purchase on 2 Apps with a total cost fo $10.98 & I stopped the payment from going off on my account, but now I can't update or download new Apps & every time I try to do this I am getting the following error message (There is a problem with a previous purchase).
    I need to reverse & cancel the the purchase, but I don't see the option for reversing or cancelling previous purchase.
    I need help, because I need to download new Apps & update my Apps.
    I am using iPHONE 4S 64G & iPAD 3 64G
    Thank you
    Lorato12

    Your apple account is showing you still owe for this download. You wont be able to download anything to you pay your balance. Since it was a "mixup", you should call apple support. Tell them your issue and get your account resolved.

  • Credit Memo missing in Outgoing Payment

    Dear Experts,
    Credit memos are not showing in Outgoing Payment. I created A/P Credit Memo of A/P Invoice in part quantity. In Outgoing Payment A/P invoice Total is showing Total amount - A/P Credit memo amount but not showing in difference row.
    Any suggestions would be helpful.
    Thanks & Regards in Advance,
    Ravi

    Hello Ravi,
    If you will make A/P credit memo based on A/p invoice then outgoing payment show only rest amount it will not show all amount.
    it is right Outgoing Payment A/P invoice Total is showing Total amount - A/P Credit memo amount
    And if you goto standalone credit memo then it will show in outgoing payment
    Thanks
    Manvendra

  • HT4914 I often record songs at a particular tempo, iTunes Match will then match it and send it back to me at the original tempo, is there anyway I can stop some songs from being matched. At the moment I have turned match off. But I would like to sync play

    I often record songs at a particular tempo, iTunes Match will then match it and send it back to me at the original tempo, is there anyway I can stop some songs from being matched. At the moment I have turned match off. But I would like to sync playlists.

    How old was this backup? It sounds like it was at least several weeks old.
    You can look directly in the TM backup for the music.
    1. Connect to the external HDD the backup is kept on.
    2. Open a Finder window and select the backup drive in the left hand panel. Double click into the folders until you see a list of folders with dates.
    These are the incremental backups. You can start at the top or the bottom of the list but I suggest you double Latest/<HDD Name>/Users/<Account Name>/Music/iTunes/iTunes Media/Music. From this location you can start looking for the "missing" music. When/if you find it you can simply drag-n-drop to ~/Music/iTunes/iTunes Media/Music on the internal HDD.
    If the music is actually not in the backups (for whatever reason) then you've got a problem.
    You can download the uploaded files from the cloud by deleting the affected tracks from the iTunes library (but not the cloud!), highlighting multiple tracks at once, right-clicking and choosing "download."

Maybe you are looking for