Approval procedure to control AR Delivery quantities

Hi,
My customer is using 2007A PL30. May I know how to write query  approval procedure if AR Delivery quantities entered by user is more than SO open quantities?
Regards
Thomas

Thomas,
You may have better luck getting an answer to this question if you post it on the [SAP Business One SDK|SAP Business One SDK; forum, as this type of query set on an event rather than on a timed schedule, would be better created through programming.
Kind regards,
Lucas

Similar Messages

  • Approval procedure required for Delivery note based on condtions

    Dear All,
    I have the followings situation in which the business flow is as such that Sales Quotation is made and based on the Sales Quotation AR Down Payment request is made. Once the downpayment is recieved from the customer entries are made in Incoming Payment, Sales Order is booked and AR downpayment Invoice is booked. As there are milestone payment means 30 %, 60 % which would be done through AR downpayment Invoice and final 10 % is the final AR Invoice done. Now lets say that I have a Sales quotation No 10001 having an value of USD 10000 based on which AR Downpayment Request for 30 % and incoming payment comes from the customer for 30 % which is 30 % of USD 10000 is USD 3000. After reciept of payment based on Sales Quotation No 10001 a Sales Order is been booked ( Document Number 20001 ) with a payment terms of 30 days credit. Now I want an approval procedure in the Delivery Note to do a check that if for that particular Order No the payment terms is for 30 days credit means the payment due date and if the next 60 % the customer does not pay in time (which is after 30 days) the delivery would require an approval from the Finance head.
    I think the above situation can be solved from the approval procedure with the help of some query but am not able to understand as to how to work on it.
    Would be obliged if you can throw some light in it.
    Regards,
    Rahul

    Dear Gordon,
    I think you did not understood my requirement. See the first 30 % downpayment the customer would be giving at the time of Sales Quotation. Now ater 30 % is recieved sales order would be booked. Now based on the sales Order delivery would be ONLY done when the next 60 % the customer pays. If he does not pays the next 60 % I want an approval to be done for delivery.
    I had mentioned in my earier thread - ''next 60 % the customer does not pay in time (which is after 30 days) the delivery would require an approval from the Finance head.''
    Means I want an approval check to be done on delivery with a condition of 60 % of the order value. And the final AR invoice would be done on the last 10 %.
    I hope I am clear in my requirement.
    Regards,
    Rahul

  • Delivery date and approval procedure

    Hello,
    My customer has the next problem. He generate a purchase order after approval procedure was ended. sometimes he wants to update the delivery date field in the row of the purchase order, but he can't do so because approval procedure restrict any changes in row level.
    what can be done to solve it.
    thank you all

    It is always very interesting how people seem to simply accept that the system can not perform basic functions.
    In our company, we are facing some critical issues because of this problem. E.g: a purchase order has been approved and teh supplier rings to inform us of supply delays. The procurement officer can not update the delivery date on the purchase order to document the updated delivery day.
    This is obviously causing some major drama at the warehouse as they rely on the delivery date of purchase orders to prepare the space required to receive goods.
    This is also impacting the work of the procurement manager who will possibly ring the supplier to inform him of delays when relasticly, the company has already been informed.
    The approval process in SAP Business One is lacking a basic function of "loop" or simply a system to identify non critical fields which can be updated once the document has been approved (like a date, some remarks etc.).
    SAP, it is time to work on a few basic ERP things.
    Vincent Motte

  • PO Amendment and approval procedure

    Hi Experts,
    My customer would like to have approval on PO amendment, he want an approval on changes in price and quantity.
    In SAP B1 before GRPO or AP Invoice anyone can do amendment in PO and all the amendment we can see through change log.
    To have control on this kind of amendment my client need Approval on PO updation.
    Can we have uery base approval on PO updation?
    Pls. give me solution for the same.
    Regards
    Kamlesh Vagal

    Dear Kamlesh,
    once we use sap standard approval procedure, we cannot amend the PO once it is approved. you can do changes till the PO is not approved (by Rejecting or Not Approved decision). Once approved it cannot be changed. Here you can try to convince your client that SAP follows a basic principle that once document is approved it should not be updated. If you allow it to amend then the Approval has no meaning. In such scenario your client may argue that we'll have approval even for amendments then you need to do it thru customizaation

  • Approval Procedures - customization popup Alert

    Hello,
    is possible to customize popup Alert which is displayed for users based on 'Approval procedures'  ?
    I have procedure based on user query which controll  , if in  'Goods Issue' is filled input Ref.2 (it works nice)
    My goal is inform the users via popup Alert with my own text, so that they can understand what is wrong and cancl the Approval Procedure and could correct/fill the input Ref.2.
    thanks for any idea
    Regards Zdenek

    Hi Zdenek,
    If a Document went for approval, the document will get automatically saved as Draft, with the status of Pending for Approval.
    Once it approved, then Draft- Approved
    You can retrieve data from Draft table. I mean draft documents for which approval status is pending  / Approved / rejected /  Document added or not etc.
    Select  A.DocDate, A.DocStatus, A.WDDStatus, A.* from ODRF A
    where A.ObjType = 60--for Goods Issue
    and A.WDDStatus<>'-'
    Hope this will help you
    You can modify the query as per your requirement
    Thanks
    Unnikrishnan

  • 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 Not Triggered on Updating Document

    Hi,
    When Adding a new Sales Order, if the document meets the criteria laid down by an Approval Template, the Approval Process is started.
    However, if an old Sales Order is Updated, the Sales Order the Approval Process is ignored.
    This is a problem for certain customers who have Approval Procedures which prevent users Adding Sales Orders which would take a Business Partner over the Commitment and/or Credit Limit.
    The user can get around the Approval Procedure by adding a Sales Order for a value which keeps the BP under the set limit.  If they then Update the Order, they can enter any value.
    For example, a user may be prevented from adding an Order totalling £1000.00.  If they Add the Order for £0.00 instead, they could later amend the Order to any amount as the Approval Process is not fired !

    Could you clarify what you mean by "The credit limit exceeded is in negative numbers"
    Negative number: the system message I get when I create a delivery note for a customer, exceeding the credit limit is the following:
    Customer has exceeded credit limit - 95.479 EUR
    Customer has exceeded commitment limit - 95.479 EUR
    Continue (Y/N)
    Make sure the Credit Limits are set in the BP Master. --> OK, credit limit is set to 100 EUR, Commitment limit to 100 EUR
    Also use Great than in Ratio and try to use a small number like 10 in the value  --> I am using 1 EUR
    Also, check in System Initialization > General Settings..BP Tab Activate approval procedure is checked. --> it is checked.
    Using the range option does not solve the problem, in fact even if I use 'Deviation from Credit Limit does not equal 1 EUR' the approval is not triggered. When I use the same Approval template, but I alter the terms to Total document greater than 1 or Discount% greater than 1 the approval is triggered.
    Edited by: Rui Pereira on Apr 29, 2009 1:19 PM

  • Approval Procedure to change the price of items

    Hi!
    i 'm trying to create a query to an Approval Procedure to change the unit price in the Purchase Order  i create this query:
    SELECT DISTINCT 'True' FROM POR1 T0 INNER JOIN OITM T1 ON T0.[ItemCode] = T1.[ItemCode] WHERE T1.[ItemCode] = $[$38.1.0] AND T1.[LastPurPrc] <> $[$38.14.0]
    as you see this query compare is the Last Purchase Price is different than the actual unit price, and these for each line of item.
    I think this is correct, and i configure the Approval Procedure, but when i check the AP in the Purchase Order changing the Unit Price, it gets me an error that says
    1) [Microsoft][SQL Native Client][SQL Server] Error converting data type nvarchar to numeric.
    What happend?
    Am i doing something wrong ?
    In easy term, i just want to execute an approval procedure when the user change the unit price in the purchase order.
    Hope you can help me !
    Thanks in Advance
    Best Regards !

    Xavier,
    maybe you are with a problem thar you dont' know, i can to expain this point,
    1. if you want one approval at level line (comparing prices), not possible to make this way the approval, because you don't have control at level line while the document isn't in database.
    2. i bealeve that the better way is to make a store procedure for to insert each record into temp table while to add line in purchase order without (formatead seaches), now, when you create a purchase orden you need create a query for to search record in the temporal table with the condicion that you needed.
    3. now, if you want to call a value on the screen (money), the better way is $[$38.1.number]
    Good look,
    OSCAR KLENNER
    > Hi!
    > i 'm trying to create a query to an Approval
    > Procedure to change the unit price in the Purchase
    > Order  i create this query:
    > SELECT DISTINCT 'True' FROM POR1 T0 INNER JOIN OITM
    > T1 ON T0.[ItemCode] = T1.[ItemCode] WHERE
    > T1.[ItemCode] = $[$38.1.0] AND T1.[LastPurPrc] <>
    > $[$38.14.0]
    > as you see this query compare is the Last Purchase
    > Price is different than the actual unit price, and
    > these for each line of item.
    >
    > I think this is correct, and i configure the Approval
    > Procedure, but when i check the AP in the Purchase
    > Order changing the Unit Price, it gets me an error
    > that says
    > 1) [Microsoft][SQL Native Client][SQL Server] Error
    > converting data type nvarchar to numeric.
    >
    > What happend?
    > Am i doing something wrong ?
    >
    > In easy term, i just want to execute an approval
    > procedure when the user change the unit price in the
    > purchase order.
    >
    > Hope you can help me !
    > Thanks in Advance
    > Best Regards !

  • Approval Procedure not triggered when Credit Limit Exceeded

    Hi,
    I've defined an approval procedure which I would like to launch when a clients Credit Limit has been exceeded. I've checked the required fields on Administration > General Settings > BP tab (credit Limit, Commitment Limit, AR Invoice, Delivery, SO). I've also checked the Activate Approval Procedures on the same tab.
    I know the approval procedure has been set up the correct way, since it is launched when I change the Terms to for instance 'Total document'. 
    There is a system-message when I am creating a Delivery Note for a customer indicating that the credit limit for this customer has been exceeded. But still, the system allows the user to add the document without triggering the approval procedure....
    What am I doing wrong?
    Btw: The credit limit exceeded is in negative numbers, but I've tried both the condition 'Deviation from Credit Limit greater than 1' and Deviation from Credit Limit Less than 1...

    Could you clarify what you mean by "The credit limit exceeded is in negative numbers"
    Negative number: the system message I get when I create a delivery note for a customer, exceeding the credit limit is the following:
    Customer has exceeded credit limit - 95.479 EUR
    Customer has exceeded commitment limit - 95.479 EUR
    Continue (Y/N)
    Make sure the Credit Limits are set in the BP Master. --> OK, credit limit is set to 100 EUR, Commitment limit to 100 EUR
    Also use Great than in Ratio and try to use a small number like 10 in the value  --> I am using 1 EUR
    Also, check in System Initialization > General Settings..BP Tab Activate approval procedure is checked. --> it is checked.
    Using the range option does not solve the problem, in fact even if I use 'Deviation from Credit Limit does not equal 1 EUR' the approval is not triggered. When I use the same Approval template, but I alter the terms to Total document greater than 1 or Discount% greater than 1 the approval is triggered.
    Edited by: Rui Pereira on Apr 29, 2009 1:19 PM

  • Approval Query For A/R Delivery

    Hi
    I have made a query for Approval Procedure, only those Delivery documents will go for approval for which A/R Down payment Request has not been made. But it is not working properly Kindly Correct the query.
    SELECT Distinct 'True'  where dln1 t0 inner join odln t1 on t0.docentry = t1.docentry inner join ordr t2 on t0.baseentry = t2.docentry and t2.docentry not in (Select distinct t4.baseentry from dpi1 t4) and
    t2. docentry = $[DLN1.Baseentry]
    Thanks
    Rashid

    Hi Rashid,
    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

  • Sales order not editable after approval procedure

    Dear SAP,
    for a customer we need to find out a way to edit sales orders after approval. Example: User fills a sales order with more than 100 positions and had a typing error which is realized later.
    Next example: Customer wants the delivery conditions to be changed. We know that changing a document after approval might sound strange - but the customer's processes are like that.
    Thanks a lot in advance, sincerely
    Guido

    It is not strange that every now and then, users have requests to change a document after approval.  However, the discipline is absolutely necessary here.  There is no room for you to change.  Otherwise, the approval procedure may not be that useful.  If there is typo, you have to recreate the document.  Next time the problem would be less. If unfortunately customer wants the delivery conditions to be changed, then you have to recreate the document too.
    Thanks,
    Gordon

  • Reg Approval procedure

    Hi
      How to deactivate approval template under Admin--Approval procedure--
    Approval templates.
    How to update the template.?
    regards
    raj

    Hi
    This approval template is not query related ,it is predefined template i.e (Deviation if credit limit exceeds)
    In documents tabi have checked all documents in sales A/R & Purchase A/P.(set the approval if credit limit
    exceeds 20000) when i checked with sales quotation(entered amount 50000) it didnt display approval window.
    for purchase documents also it did'nt showed approval window.but for sales order, delivery , invoice it is
    showing approval window. if i want to deactivate this template what shoul i do.
    Approval template window is in grid mode , we cannot uncheck it. is there any solution for this?
    regards
    raj

  • Delivery quantities only in multiples for a particular set of customers

    Hi all,
    I'm having a requirement and want to know is there any way to solve it by configuration:
    I have to deliver the products in multiples of 5.i have activated this in the material master and it functions properly and issues a warning message when i change the quantity while picking in delivery so  i have converted this message into ERROR message but my problem is i have to activate it only for a particular set of customers..is there any way to achieve it ..i have tried it by tick mark   "switching off rounding" in customer master but this error message is still there for these customers also .
    Can I  acitvate the delivery quantities only in multiples of a particular set of customers..?

    Hi all,
    I have gone through your suggestions but it didn't help me a lot..I am able to trigger rounding profile for a particular set of customers but this thing  can be achieved only in sales Order , i am unable to do this at Delivery level, at delivery level system is allowing me to change the quantity irrespective of the rounding profile.
    Can anyone suggest me how to achieve this at delivery level.
    I have gone through Logistics - General>Control for Quantity Optimizing>Assign Control Profiles
    here also , application for triggering of control profile is given only for sales order.
    plz help.

  • Query Based Approval Procedure for Sales order .

    Hi 
    I have created query for SO which results above 5000 d 50,000 .
    By using this each query i created two seperate Approval Procedures which So is >5000 d >50000.
    If So>5000 Approval Procedure wants to activate same thing for >50,000., Bur approval Procedure is not working wat will be the cause. i have linked this query In Terms as when the following applies.
    If SO >5000 approved by user A.
    If SO>50,000approved by User A & B.
    Regards
    Giridharan

    Hi Giri
    Your query for the first should be as follows:
    SELECT DISTINCT TRUE
    WHERE $[$29.0.NUMBER] > 5000 AND $[$29.0.NUMBER] < 50000
    For the second query:
    SELECT DISTINCT TRUE
    WHERE $[$29.0.NUMBER] > 50000
    The query you were trying to use is looking at the table which will only apply to documents already posted, and as that query is not being filtered specifically it is bringing back all the records and getting confused. You must reference to the runtime value of the document being posted.
    Kind regards
    Peter Juby

  • In approval procedure user do not want to refresh the software

    Hi all,
    In approval procedure i prepare the approval for outgoing payment, so when the user pass the transaction the approval going to manager but my issue is the manager must refresh his user when any new approval is coming.
    i don't want to refresh again & again so you have any solutions of these tell me.
    Regards,
    Mobin

    This is a database function that you have to refresh to get new data displayed.  If you do not like it, I am afraid something must be developed by SDK tool to auto refresh for users.  It may not be achievable though.  Post it on SDK forum to involve experts there.
    Thanks,
    Gordon

Maybe you are looking for

  • What is the max size of a zip file with the JDK1.5 ?

    Hello everybody, I'm a french student and for a project, I need to create a zip file, but I don't know in advance the number and the size of files to include in my zip. I wish to know if someone have the answer to my question : what is the max size o

  • What happens when the screen goes white in the iphone?

    My i phone 3G was working fine, suddenly the screen went white and stop working.  I managed to turn it on again and see the it was almost out of battery, so I charged it all night long, however it is completely blank and I can't even turn it on.  Aft

  • Swapping hard drive between MacBook and MacBook Pro ?

    Hi I'm about to receive a new MBP and would like to spend as little time as possible making the transition from my current MacBook (non-Pro). The MacBook is slightly old (mid-2006) but running the latest Leopard. Would swapping the hard drives allow

  • Shared folder consistently greyed out in Finder...

    I manage a small Mac network for the communications dept of a university.  I have several different shared folders set up for different programs/student groups.  Anyway, the largest folder (generic Production folder used by the majority of students)

  • Problem Installing Management Agent 10.2.0.2 on Windows 2003

    I have seen this question asked in the forum but I haven't been able to find the answer anywhere in the discussion. I am trying to install Management Agent 10.2.0.2 on Windows 2003 SP 2 interactively. Whenever I run setup.exe, the installation checks