Customize Approval Procedure for Past Due Invoice don't work !

Hi all,
Below is the query written to trigger the approval procedure if past due invoice happen
Select 'true'
from OINV
where DocDuedate < Getdate() and DocStatus='O' and DocTotal >
PaidTODate
However, it will not trigger, can someone please help on this?
Thanks

Hi,
Try this:
SELECT distinct 'true' FROM OINV T0 INNER JOIN OCRD T1 ON
T0.CardCode = T1.CardCode WHERE T0.CardCode = $[$4.0.0] AND
DateDiff(dd,T0.[DocDueDate],Getdate())>30 and T0.DocStatus='O'
Thanks & Regards,
Nagarajan

Similar Messages

  • Approval Procedures for Journal Entry

    Hi all,
    My client requirement is that they want to have Approval procedures of Journal Entry. As i know we dont have approval procedures for JE so is there any work around for that. Please let me know waiting for your reply.
    Thanks & Regards,
    Murtuza Ahmed.

    hi murtaza,
    Apply Full Authorization to Journal Vouchers,
    Apply No Authorization to Journal entry for non super users.
    Journal Vouchers can be approved/posted by Super Users.
    Jeyakanthan

  • Query approval procedure-SO approval if there is due invoices =90days

    Hi,
    My customer is running 2007A PL30. He needs approval procedure for SO to be approved if the customer has overdue invoices more than 90 days.
    Any idea how to write the query?
    Regards
    Thomas

    Hi Thomas,
    This is surely doable.  It can only be done through user query.  Try this one:
    SELECT distinct 'true' from OINV T0 where T0.CardCode =
    $[$4.0.0] and DateDiff(DD, GetDate(), T0.DocDueDate) >= 90
    and T0.DocTotal > T0.PaidToDate and T0.DocStatus = 'O'
    It can not be run directly.  Assign to approval template directly to see.
    Thanks,
    Gordon

  • Prevent marketing document entry if BP has past due invoices

    Does anyone know a way to prevent users from entering a marketing document if the BP has past due invoices? Only solution I can come up with is to create code in the Transactions Notifications stored procedure. But is there a way to do this in B1?
    Thanks

    Hello Friend,
    May be SP_Notification is the best option but think about your user will fill all the invoice data including with batch info and UDF info now he will goto add then SAP show error that Customer have open balance ,means users have spend about 5 min every day for invoice.
    SAP has  another option make FMS(Formatted search) and set in A/P invoice(CardName field or Name field) ,from where user will select customer list.FMS logic depend on party balace
    And train user accordingly so now whenever user will select FMS option it will show only those customer who have no balance.
    One more think some time our management say dispatch the materails i have discussed for balance then user select tab option in the same field.
    Or if you are using SP then first you goto SQL then Alter the Procedure.
    So I think FMS is the best option.
    Thanks
    Manvendra Singh Niranjan

  • Approval Procedure in A/P Invoice

    Hi All,
    I want to create an approval procedure in A/P Invoice.
    Logic Behind this Approval procedure is GRPO and A/P Invoice should be done in the same month.
    If the A/P invoice month and Based GRPO month is different then A/P Invoice should go for approval.
    I have written a query but its giving error message. My query is like this :
    select case when (month($[opch.docdate]) <> (select month(OPDN.DocDate) from opdn where docentry = $[pch1.baseentry])) then 'true' Else '' End
    Can Anyone help me to write a proper query.
    Thanks
    Regards,
    Sumit Athare.

    Hi Sumit,
    B1 does not support approval queries on document lines. you can query only document header.
    you can either try to workaround it with all sorts of aggregate UDFs in the header, or alternatively take a look at:
    [http://www.beonesolutions.com/ip/Solutions/ap.html|http://www.beonesolutions.com/ip/Solutions/ap.html]
    all details, including the ability to query all document tables, are in:
    [http://www.beonesolutions.com/files/Approval_Pro_Brochure.pdf|http://www.beonesolutions.com/files/Approval_Pro_Brochure.pdf]
    Gilan

  • Approval procedure for item and for business partner

    Hi
    Anyone has done somekind of approval procedure for an item or for a business partner?
    Is there anyway to make this? Or just for documents?
    Regards,
    Vasco

    You can only use SAP approvals for documents. You can construct a less controlled approval method for master items by first creating a BP mandatory "Approved" UDF", and using an auto refresh FMS to set it to blank unless "on hold" is checked when the BP record is created. This will prevent it from being used in documents. Then another UDF for an authorised user to initial the BP record as authorised and uncheck the hold flag. There is nothing to stop this method from being abused but you do have the History log so that you know who did what. I have not tested the exact procedure described but have done similar for documents (to force a save as draft) when the SAP Approval has been too restrictive. Otherwise it's SDK.

  • Approval Procedure for Sale Orders

    Hi Experts:
    Anyone can help me?...I´m needing an Approval Procedure for Sale Orders to be activated whenever the user is trying to give diferent discount percentage from the one assigned in the price list throughout Period Discounts. We have Sap Business One 2007A SP01 PL05
    Thanks very much in advance
    CLAUDIA

    Hi CLAUDIA,
    This has to be done through user query approval.  However, since I don't have similar environment to try, you may start to create your own query first.
    Thanks,
    Gordon

  • Reg:Approval procedure for Employee Master Data

    Hi,
    My client wants approval procedure for Employee master data.
    Is it a way do this?
    Please let me know.

    Hi,
    On Which action, do you required approval on Employee Master data ??
    It may be through customization easily.
    Regards
    Rahul Singh

  • How to start approval procedure for a Document/Draft using DI API

    Hi!
    My code imports purchase orders from one non-B1 system to SAP B1 using DI API. The problem is that in B1 system there is an approval process configured and I need the newly created purchase order to enter this approval process.
    Currently this is not done because approval procedure isn't triggered when creating documents using DI API.
    I had an idea to create a draft of PO instead of the PO and then push this draft into approval process somehow. But I can't find a way how to tell DI API to start approval procedure for my draft/document.
    Thank you for your replies!
    Jan

    Unfortunately there is no way to trigger the approval process for any object added through the DI API.
    Your workaround of adding the documents as drafts is as close as you can really come but maybe you could extend it slightly - it will involve a UI API addon:
    Make the addon mandatory, and add a UDF to the user table, for example "U_Approver" and a UDF to PO document, like "U_Approval"
    - Set this U_Approval to yes when adding through DI and add as draft
    - When user opens draft document in the application, check are they an approver (U_Approver = "Y")
    - If they are not, and try to view/add a draft which is flagged as needing approval, block them from adding.
    You could further expand your DI project to send a mail to the approver whenever a draft PO is added.

  • Diff pricing procedures for contract and invoice

    Hi all,
    My client is into service industry.He is using two pricing procedures for contracts and invoice. Now the requirement is they want to use a single pricing procedure for both contracts and invoice. Now i need club them into one and i need to delete some condition types which are not in use.What are all the factors do i need to consider before clubing them into one??
    Can anybody guide me in this regard?/

    You need to foreclose all your existing contracts and create a new one with the new pricing procedure
    G. Lakshmipathi

  • Is it possible to have different pricing procedure for SO  and invoice?

    Hi,
    Is it possible to have different pricing procedure for SO
    and invoice?

    Hi Kiran35086 
    --Yes you can have it.But it is based on the business requirement
    --Create 2 Document pricing procedures & assign one in VOV8 & another in VOFA
    --In Sales Document VOV8 you maintain different  document pricing procedure Ex A
    --Go to VOFA & select your billing document type in Account assignment/pricing assign the document pricing procedure.EX- B
    --Create condition records in VK11 for the condition types which are included in the pricing procedures
    --Maintain pricing procedure determination in OVKK with 2 different Document pricing procedure & save it
    --When you raise SO in VA01 you will find one pricing procedure & when you raise billing in VF01 you find another pricing procedure in conditions.
    Let me know if your problem is solved
    Regards
    Pradeep

  • Approval procedure for the creation of a new item

    I would like to have an approval procedure for the creation of new items. In that when one gets added, it gets placed on hold immediately and an alert gets sent to a manager.
    thx, Richard

    The solution would be the combination of SBO_SP_TransactionNotification stored procedure allowing only for some authorized persons to add an item with not ‘On Hold’ status, and an alert to the authorized persons.

  • Approval Procedure for addon forms

    HI experts,
    Can we set approval procedure for the Addon forms?
    If so,suggest me a way

    Ya it is working awesome......
    What all you need is to build a logic to set the approval such a way that it would work like standard Approval.
    I did it separately and not linked with standard one as it was not possible I guess so.
    So I created this and then by Alert I poped up this to the authority and let it work like standard procedure........
    Regards,
    Rahul

  • Approval procedure for Payments

    Dear All,
    Can we set approval procedure for outgoing payments in 2007A?
    Regards,
    Tamizharasi.S

    Hi,
    Payment was only enabled in Approval Procedure for a few countries in 2007 B. 
    SAP Intends to introduce payment in approval procedure for 8.8,
    Check Note [1361189|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?]:
    Kind Regrads

  • Approval procedure for Production module in SAP B1

    hi all ,
                  is their any approval procedure for production in sap b1. here in our case approval is needed from the quality person for quality check on good receipt and good issue in production. but in the administration approval procedure production column is missing. kindly suggest me any possibility to do this process.
    regards
    sandip

    Hello,
    isn't it possible to use some UDFs that one of them is set to be mandatory value ? for example UDF name is approved that has Y or N. The 2nd is QC with option good or rejected, and there must be FMS defined in the UDFs. I am not so sure abot it but you must explain detail workflow if possible.
    Rgds,

Maybe you are looking for

  • XMP data not showing up in the custom file info panels when upgraded to CC

    For several versions of Photoshop, I have been able to use a modified custom file info panel to input, update, and track psd files. With each version of photoshop there are always some changes in the way the object data is handled. The lastest challe

  • Report on partner function

    Dear All, How we wll be able to see the receipt report on the basis of Goods Supplier where vendor is different from goods supplier and on the same way where invoiving part was different from vendor/goods supplier.(parter function). Is there any repo

  • Change Document - Insert new value / Delete

    Hi, Jus need a quick clarification on change documents - 1. insert opertaion. I have created change documents and able to record the changes in CDPOS when changing or updating the existing values in table. But when i try to insert into the table the

  • CD rom does not appear in boot menu in lenovo G500 windows 8

    Hello I want to format my lenovo G500 windows 8 and install windows 7 but I can't because the CD rom does not appear in the boot menu Solved! Go to Solution.

  • Database performance health check and recommendation

    Hi, I try to find this document (doc id: 1019592.6) in metalink, but couldn't find it. Anyone has a copy of the script and can send it to me @ email: [[email protected]] ? Thanks in advance. Rgds Edited by: user6549691 on May 21, 2009 12:23 AM