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

Similar Messages

  • Per Payment Document Expenses added not more than 5 lines

    Hai Experts,
    In outgoing payment Expenses added per document not more than 5 lines per document. Kindly provide SP_TN for this case..
    Regards
    Mohamed Yousuf Ali M I

    Hi
    Try This
    if @object_type = '46' and @transaction_type in ('A','U')  
       begin
            if  exists(Select distinct 'Error'
            from   VPM4 T0 INNER JOIN OVPM T1 ON T0.DocNum = T1.DocEntry where T0.LineId > '5' and T1.DocEntry = @list_of_cols_val_tab_del)
              begin
       SET @error = 1234
       SET @error_message = 'Outgoing Payment lines Not More than 5 lines'
           end
    end
    With Regards
    Balaji Sampath

  • 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 !!!

  • Control on Vendor Payment by Cash for more than Rs.20000/- in FBCJ

    HI All ,
    Here there are one  validation existing for a particular vendor.
    We would like to control the vendor cash payment should not be paid more than 20000/- per day per vendor.  As of now we have the control of Rs.20000/- per cash document but whereas we require the same control for the day.
    Does anyone knows if there are any User Exits / BADIs or other enhacements in transaction FBCJ for the Cash Journal.
    please suggestion.
    Regards.
    Ramesh.S
    +919894692946.

    Hi
    Instead of posting key 40 you can try with 50 in this thread Configuration to fix the amount in cash journal
    Aravind Boddupalli

  • How to restrict separate payment document for each line item in APP

    HI Experts
    PLs let me know how to restrict separate payment document for each line item in APP
    Thanks
    Sneha
    Edited by: Sneha R on Apr 14, 2009 4:18 PM

    Sneha,
    If your query was to group items for payment ,in FBZP  co code data for payment method there are 2 options 1.group payment for marked items 2.payment per due date.
    Also in the Vendor master there is a flag which will ensure that each item is paid individually,if this is what you were looking for  ( FK02 change vendor).
    In case you want to group items to be paid together Payment Grouping Key can be assigned in Vendor Master .
    Shony

  • Parking of outgoing payment document

    There is no option to park an outgoing payment document(F-53)...What can be a workaround...

    HI
    MJ
    There is no parking for outgoing payments and in comming payments  and other payments and receipts in SAP. it is only available for invoices (ALL)
    payments means it has all authorization and full data that why it has no parking
    trinadhnaidu.a

  • HT4865 if i want to give access to documents to multiple users more than 20 can it be done in icloud

    If i buy the storage space in icloud and give access to documents for multiple users more than 20 userids will it be possible to sync whatever changes i made to the documents will get updated in those multiple accounts when the client software is installed in their systems.

    What documents specifically?

  • 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

  • Data Ownership for Outgoing payment document?

    Hi All
    How do I enable data ownership authorisations for outgoing payments window?
    Thanks
    SV Reddy

    Hi
    Read Below line
    The checkbox labeled Owner Filtering Active is a global flag to activate or deactivate data ownership authorizations for the entire company. Once this is activated, for all sales or purchasing documents and sales opportunities, access will be granted only if the user has a relationship to the owner and has the permission for that relationship either as Read Only or Full. In the case that a document or sales opportunity has no owner, then any user can access it as if no data ownership is in place. Any user can assign an owner to a document or sales opportunity that does not have an owner. Once an owner is assigned, only the owneru2019s manager or a superuser can change the owner.
    Excluded Forms Tab
    For each selected document, choose one of the filtering options:
    ·        No filtering: Data ownership is not active for this specific form irrespective of the owner fields at the header or line or stage.
    ·        By Header Owner Only: The document or sales opportunity is visible to the owner of the document and to all those users that have a defined relationship to the owner of the header and have the requisite permission for the specific relationship. The owner of any of the lines or stages will have no affect on providing access to the document or sales opportunity
    Kevin

  • 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

  • Restrict the receipt of same serial number more than once

    Hi,
    I want to restrict the same serial number to be taken in the stock more than once..
    Can somebody guide how to acheive this..
    At the same time I have the indicator set of auto creation of serial numbers at the time of goods receipt in serial number profile.
    e.g. I posted 2 material documents (101) one with material A and another with material B with the same serial number S
    when I check the serial number S in transaction code IQ03, it is showing against 2 mat. codes. I dont want this scenario to occur.

    IN IQ03 , you have to put both the material number and serial number.
    The serial number is tied to material number. Hence, different material number can have the same serial number.

  • Documents Created Seen in more than one report globally

    Hi Experts,
      I would like to know whether the documents can be created globally? such that they can be seen in more than one queries in common.
      For better understanding my requirement is to know whether the documents can be created in such a way that they can be seen in common in more than one queries so that the business looking at one report should be able to see all the commentary/documents created on that particular Infoprovider. I hope I am clear in my question. Quick response is appreciated as this is an urgent requrement.
    Cheers,
    Sunitha.

    Hi,
      I know the documents are created on the characterisitcs combinations, but my requirement is to get the documents that are created on more than one query. That is I should be able to see the documents in my query created on all the queries defined on the Infoprovider.
      For that reason I am checking the document properties in RSA! to see whether the documetns are created on the query level or on the Infoprovider level.
    As you told the documents are created on the characterisitcs level but I am not able to see the docuemtns icon ordocuments on the characterisitics in the BEX .
    Regards.
    Sunitha

  • Cannot update payment info. This happened more than 6 times already.

    I am able to make purchase for few times. And then suddenly, iTunes start block from make any purchase. I did tried re-sign in again and it is able to react properly. Not sure what is going on. It happened to me more than 6 times already. Every time I called to iTunes support and it's solve immediately. Not sure if any preventive action can be done.

    It is a phishing attempt to get your Apple ID and Password.
    You should forward it to Apple : [email protected]

  • Appraisal document tab name appear more than one

    Dear Experts,
    We are currently upgrading our EHP4 to EHP6.
    We discover issue where appraisal tab name has been display more than one time in portal. Upon debugging, there was standard table lead to this issue as below :
    HRHAP_TAB
    HRHAP_TAB_DATA
    HRHAP_TAB_T
    Appreciate if you can share with us possible solution on this.
    Thanks,
    Khairul

    can you show me the screen, what it looks like do you have any enhancements or modification in system?HAP_DOCUMENT_BODY typically with the new rendering with EHP6. The first occurence is the title of the block and the second the name of the element. option for you to change the configuration of the element in the template, so that only the description is displayed in the Web-Layout instead of the name. This could be a workaround, as then only the block title would display the name of the element.

  • Restriction of PO if its value is more than the PR vlaue

    Hai PS friends,
    My project structure is WBS- Network- Service Activity with AVAC.
    While Creating Purchase order w.r.t Purchase Requisition, System is not stopping the PO when its value increases more than the PR value.
    But PO is not creating if its value increases more than the Contract.
    If Budget is having more than the assigned value, I need to stop to create if PO value is more than the PR value. Please suggest in this regard.
    with regards
    M Umapathy

    I doubt whether Standard SAP will copy price from PR to PO or not.
    I think you need to maintain Function Authorizations for Buyers in the customization for the following path..
    ...SPRO >>>MM > Purchasing > Authorization Management > Define Function Authorizations for Buyers.
    Please search SDN for further details as there are many threads available.
    Also Referring SAP Note: 456691 will be useful.

Maybe you are looking for