Conditional approval for payment

Hi Experts,
               wanna set approval for on- account outgoing payment . Tried following queries but not working. Kindly suggest the correct one
SELECT (Case When (select $[ovpm.nodocsum.0]) > 0 then 'TRUE' Else 'FALSE' End) TF FROM OVPM where cardcode=convert(varchar(20),(Select $[OVPM.cardcode.numeric]),103)
SELECT (Case When (select $[ovpm.nodocsum.0]) > 0 then 'TRUE' Else 'FALSE' End) TF FROM OVPM where cardcode=convert(varchar(20),(Select $[OVPM.cardcode.numeric]),103) and docnum =(select  $[OVPM.docnum.0])

Hi,
Try this:
SELECT distinct 'TRUE'  FROM dbo.OVPM T0
where $[ovpm.nodocsum.number\] > 0 and T0.docnum = $[$3.0.0\]
Thanks,
Gordon

Similar Messages

  • Approval for Payments

    Need to have Approval only for Payment through Wire Transfer only for the new/non-recurring vendors
    Any pointers to acvhieve this ...
    Thank you .

    Hi,
    there is no workflow available for configuration at payment stage .... It would be redundant to approve the Invoice for payment and again approve the payment ....For your case, you can configure Invoice approval workflow in such a fashion that approval notification would be sent whenever the payment method is WIRE and the vendor is non recurring ...(There needs to be some value made available for this to perform a validation)...
    Regards.
    Ivruksha

  • Assign condition type for payment terms

    When i creating a sales order, when the payment is COD, then it will trigger one of condition price mandatory, it I choose other payment terms, the trigger will be ignore. I would like to know how to set this checking, since i want to remove it. Thanks!

    Hi,
    You can try user exit USEREXIT_CHECK_VBKD or USEREXIT_SAVE_DOCUMENT_PREPARE applying following logic
    If  VBAK-AUART = u2018ORu2019 and VBKD-ZTERMS = 'COD' THEN xkomv-KSCHL = 'XXXX'(YOUR CONDITION TYPE) and KOMV-KHERK u2018Cu2019
    Else IGNORE
    I am not sure but you can try.
    Rgds
    San

  • GRN mismatch and invoice blocked for payment

    Hi Team,
    We have an issue with regards to Invoices not being allocated to the right GRN's.  This causes some invoices to be paid without approval, and other invoices that have been approved to be blocked for payment.
    According to standard SAP requires the total GRN quantity to match the total invoice quantity in order for the Invoices to be released for payment.  Unfortunately many get stuck in a payment cycle and invoices are not released for payment, for example;
    We have an  order of a quantity of 100
    We receive an invoice (qty 10)  this is posted
    We complete the GRN (qty 10)
    This should release for payment but unfortunately just prior to the bacs run and running MRBR to unblock any invoices we post another invoice for a qty of 10. 
    Now the total GRN and Inv values mismatch and no invoices will be paid.....
    The cycle goes on and on and more invoices are blocked for payment, even though some GRN's are completed.
    where the GRN value is lower (75) than what has been invoiced (78).  In order to rectify this I need to go into each individual invoice, check the delivery note number and match it off against the GRN.  When I find an invoice that doesn't match a GRN, in most cases these have taken an incorrect GRN and have been paid.  I have to chase for the GRN to be completed or for the invoice to be removed.  Once the totals match I then have to pray no more invoices are posted until the BACs run has gone!!
    Can we apply a fix to force those invoices that match a GRN be approved for payment even if the total's don't match (so the matches will occur line by line and not from the totals)?
    Thanks

    Hi,
    You can acheive this by setting GR based IV indicator in PO. hence system won't allow to do invoice with out GR. system will ask quntity match between GR and IR. Ultimately no mismatches will occur. So do GR first and next IR by setting this indicator in PO.I hope this will resolve your issue. Thanking you.

  • Error while assigning user for release approval path for payment release

    Hi everyone,
         I am trying to assign user for payment release in SPRO. I have defined upto 'Define relevant document types for release for payment', after that while assigning user in terms of position for release and save it, i am getting error 'Program error: ASSIGN with length 0 in program "MP120800" '.Because of it i can t proceed further.
    The data in details below;
    1. Create Workflow Variant for Release for Payment
       1000     SAP
    2. Assign Company Code Workflow Variant for Release for Payment
      1000     1000     SAP
    3. Define Release Approval Groups for Release for Payment
      0001     Vendor A
    0002     vendor B
    0003     Vendor C
    0004     G/L accounts
    4. Define Release Approval Paths for Release for Payment
      0001     Vendor high
    0002     Vendor middle
    0003     Vendor low
    0004     G/L accounts
    0005     Other
    5. Assign Release Approval Paths for Release for Payment
      1000     KZ     0001     0001
    1000     KZ     0002     0002
    1000     KZ     0003     0003
    6. Assign Release Approval Procedure for Release for Payment
    1000     0001     20,000.00     KES     1     WS10000052     WS00400011
    1000     0002     50,000.00     KES     2     WS10000052     WS00400021
    1000     0003     1,000,000.00     KES     3     WS10000052     WS00400022
    7. Define Relevant Document Types for Release for Payment
         1000     KR
    1000     KZ
    8. Define Users with Authorization to Payment Release
    1000     0001     1     20,000.00     KES
    1000     0001     2     50,000.00     KES
    1000     0001     3     100,000.00     KES
    here i have selected the option and tried to create Orgobject, i am getting following error
    Program error: ASSIGN with length 0 in program "MP120800"
    If any corrections in the definitions, Please let me know.
    Thanks in advance!!

    Hello,
    Please start the report RSWOGIND, set also the checkbox "generate all
    ObjTypes from new". This should solve the problem.
    Best regards, Hana

  • Approval for F110 after payment proposal

    Hi,
    I am having a new requirement for F110 tcode, before payment run and after payment proposal somebody has to see the vendor, customer and bank detail etc., and he shall approve it or reject and once he approve which ever item is approved will automatically proceed for payment run.
    I found some workflow but it will trigger only,
    1. Single customer.
    2. Single vendor.
    I found business transaction event but it will run for only customer.
    I need some badi or something to fulfill my requirement.
    Thanks in advance.
    regards,
    Amd.,

    hi all,
    i started this project again after so long break....,
    my steps to complete this task-
    i copied the program / report- sapf110o to z* and started building the whole scenario. and will try to assign the workflow as well which is related to miro , ws20000397(but still not sure).
    logic:
    only for invoice payment.
    only date as selection my program will show all the proposal on that date. in second screen vendor level approval is available and in third level detailed level approval is available.and in third screen you can cross check accounting document or display miro.
    it has three level approval, will update table and this will trigger workflow(while running f110) so need to do some enhancement on f110 as well to trigger workflow.
    thanks and reg,
    Ahmed,

  • Urgent please .. condition found without access sequence for payment terms

    Dear All,
    I am seeing the pricing analysis. there is a condition type for which a value is found and it gave me certain payment terms. but when I tried to see the condition record, I am unable to find it.
    Message says ''The cash discount condition amount is not determined using condition technology, but directly from the terms of payment table"
    Please help in understading the meaning of these messge.
    When I looked at condition type, access sequence in not assigned.
    Thank You.
    Regards
    venkat
    Edited by: venkat Kumbham on Apr 28, 2008 3:09 PM

    Hi Venkat,
    We do not maintain an access sequence for cash discount. Its determined from the terms of payment defined by finance ( check Spro - Financial Accounting>Accounts Receivable and Accounts Payable>Business Transactions> Incoming invoice/Crdit Memos>Maintain Terms of Payment )
    Eg: 14 days 2%, 30 net
    You can select the relevent Terms of payment in the customer master.
    You will see the cash discount when you do the billing.
    Hope its clear...
    Rgds,
    sapdt

  • Approval for cheque while payment

    hi
    I require the approval for cheque while payment to vendor.  guide me how to do that. before every check printing we need approval from the higher authority.
    Thanks

    hi all,
    i started this project again after so long break....,
    my steps to complete this task-
    i copied the program / report- sapf110o to z* and started building the whole scenario. and will try to assign the workflow as well which is related to miro , ws20000397(but still not sure).
    logic:
    only for invoice payment.
    only date as selection my program will show all the proposal on that date. in second screen vendor level approval is available and in third level detailed level approval is available.and in third screen you can cross check accounting document or display miro.
    it has three level approval, will update table and this will trigger workflow(while running f110) so need to do some enhancement on f110 as well to trigger workflow.
    thanks and reg,
    Ahmed,

  • FPY1 - Approval of Payment Run for Refunds

    Hi everyone!,
    We would like to be able to approve an entire Payment Run (FPY1) for refunds before creating the Payment Medium (DME).
    We already know that the approval for a refund processed through the transaction FPY1 can be done Individually by document/s with a workflow. However, is there any other workflow that could be used for approving an entire Payment Run?
    Thanks in advance for your help.
    Cordially
    Victor Goyo
    SAP Consultant

    Thanks Bill for your quick response,
    Unfortunately, simulation in this case couldn’t work because it’s not really a proposal, and the total amount could change when the payment run is executed in real mode.
    Best regards
    Victor Goyo

  • Payment condition table for vendor

    Hi,
    where I can find payment condition tables for vendors ?
    Regards

    hi
    There is no such thing as you have asked, but if it is terms of payment related just check the below
    link.[Re: Table for Payment Terms]
    Regards
    Edited by: samuel mendis on Jun 8, 2010 3:11 PM

  • Best way of approving invoices within the SAP system for payment

    Hello Guru,
    In the past, my client used to send invoices from the unmatched report to the appropriate department head for approval.  This approval was recorded in the notes which stayed with the invoice and it would automatically assigned ID and date and time to the note.  There for awhile this process did not work (due to personnel changes and software upgrades) and we would print the invoice have them sign the paper copy.
    Now  my client have the software on all necessary computers, so they want to use the electronic approvals again.  My client can’t send the invoices to the department head as a ‘send reference’ to keep the approval with the invoice.  However, they can send the invoice as ‘send document’ which creates a separate attachment called "note.txt" but I can’t see where it is maintained with the invoice.   
    Please advise on the method to be using because my client  would prefer to use the "send reference" they have been using before the upgrades?
    Thank you.

    Hello!
    You can use standard Release for Payment Functionality. This functionality can be configured as part of accounts payable configuration. Main configuration steps are as follows:
    -  create workflow varian for release for payment (OBWA); you can also use standard SAP workflow variants;
    - assign company code to workflow variants;
    - define release approval groups for release of payment (OBWB);
    - define release approval paths for release for payment (OBWC);
    - assign release approval paths for release for payment (OBWD);
    - assign release approval procedure for release for payment (OBWE);
    - define relevant document types for release for payment (OBWQ);
    - define users with authorization for payment release (OBWP);
    - define payment block reasons for payment release (OB27).
    I think these are more or less the main steps. More can be found in the configuration documentation;
    Please also check this guide - Payment Release Process - ERP Financials - SCN Wiki;
    Hope, it will help!
    Best wishes,
    The Wirtschaftsmann

  • Approval for Incoming,Outgoing Payments and Deposits

    Hi guys,
    I need to set an approval  whenever the user wants to close or cancel Incoming Payments,OutGoing Payments and Deposits(Just Right Click on the Document and Close/Cancel).
    I tried to get approval when adding the above documents but not able to set for cancel/Close.
    Pls tell me how to achieve this..
    Thanks,
    Vams

    Hi Vams,
    As suggested by Gordon, you won't be ab;e to trigger an approval for this. SP may only block if some one tries to cancel or close the document. You can block the same by using authorizations. So why don't you directly use authorizations??
    Thanks,
    Joseph

  • Approval For Cash Payments

    Hello All,
    I am trying to set an approval for all cash payments where the amount involved is more than 5000. I am creating and using following query. But the system allows to save the document without triggering the approval. I have checked using SQL Profiler, the system is executing the query, and it seems to be executing fine, still the approval procedure is not triggered.
    SELECT DISTINCT 'TRUE'
    FROM OVPM
    WHERE OVPM.DocNum = $[OVPM.DocNum]
    AND OVPM.Series = $[OVPM.Series]
    AND OVPM.CashSum > 5000
    Please suggest what is wrong here, and how to resolve this problem.
    Thanks & Regards,
    Rahul Jain
    Edited by: Rahul Jain on May 25, 2011 5:06 AM

    Hi Rahul,
    Try this
    SELECT DISTINCT 'TRUE' FROM OVPM T0 WHERE T0.DocNum = $[OVPM.DocNum.0] AND T0.Series = $[OVPM.Series.0]
    AND T0.CashSum > 5000
    below link will help you
    [Approval Procedure for CASH]
    Thanks
    Kevin
    Edited by: Kevin Shah on May 25, 2011 10:17 AM

  • Credit memo - Blocked for payment

    Prior to the Posting of FI document for Credit memo through FV60 or FB60, I want the field "Pmnt Block" to be changed to "Blocked for Payment" .
    How can this be done?
    Please advice.
    Regards,
    Sangeeta

    Hi Aditya,
    Yes,its related to workflow.
    We have the workflow through which we post the FI document.
    After th approval at all levels, the document is posted automatically.
    I want to change the field 'Pmnt Block' to "Blocked for payment" prior to the
    posting of the document.
    Regards,
    Sangeeta

  • Table/field/report showing approver of payment run in F110

    After reviewing the payment proposal in F110, supervisor approves the Payment Run by clicking u201CStart immediatelyu201D in Schedule Payment pop-up. 
    For audit purposes, we need to view who approved specified payment runs.  Anyone knows the table, field, or report would contain that information? 
    Appreciate any help.

    They're a document that records when things get changed.  "Things" includes pretty much anything from material master to sales orders, hence "general".  
    But It isn't enabled by default for all tables, mainly for performance reasons. Is it enabled for the relevant REG.... table(s) in the data dictionary?  You might need to check with a basis guy or abapper.
    I'd say enabling it is simpler than modding the standard programs and tables, like by adding fields to REGUV.

Maybe you are looking for

  • Official number in sales invoice Argentina

    Hi everyone I need some help with an official number in  invoice in Argentina, I customized  the official number in argentina automatic but the client want to do it manually. It`s weard because I coud do it automatic but manually cannot, I don`t not

  • Problem in SOUNDEX Query

    Hi I am using this query SELECT A.MATCHINGLASTNAME, TRIP.TRIPID, CUSTSEGCONTROL.CUSTOMERID, TRIPSEGMENT.TRIPSEGMENTID, TRIPSEGMENT.ORIGIN, TRIPSEGMENT.DESTINATION, TO_CHAR(TRIPSEGMENT.DEPARTUREDATE, 'DDMONYYYY') DEPARTUREDATE, TO_CHAR(TRIPSEGMENT.ARR

  • "Site System Status Summarizer still cannot access storage object" after DB Move

    After our SCCM server was up and running, the DBAs moved the SQL Site Database to a new drive which is a supported SQL Operation according to this Support document: https://support.microsoft.com/en-us/kb/2709082 Using the methods described by the abo

  • Help with reversed Hebrew

    Hi all, When I convert a PDF with Hebrew content to Word, the new Word document has all the Hebrew letters reversed (as in "hello" comes out "olleh" in Hebrew etc.). I tried editing the Language preferences (checked the right to left option), but it

  • Any way to improve FR?

    After trying it for a few weeks, FR feels like the "other guys" developed it. Are there workarounds, alternatives, etc for any of the following (I've looked here and not found anything) 1. Takes several clicks on the remote to get FR started 2. You a