Approval query - purchase order

Team
I need the query for additional approval  following conditions.
PO value grater then one lack.
Month to date  PO value greater then 50 lacks
Thanks
Anantha Desai

Hi
Please Try This Query for Approval of Purchase Order.
SELECT Distinct 'True'
FROM OPCH T0(NOLOCK)
WHERE (T0.DocTotal>100000
  OR 5000000>=
  SELECT SUM(T1.DocTotal) FROM OPCH T1(NOLOCK)
  WHERE T1.DocEntry=$[OPOR.DocEntry] AND DATEPART(MM,T1.DocDate)=DATEPART(MM,$[OPOR.DocDate])
  AND DATEPART(YY,T1.DocDate)=DATEPART(YY,$[OPOR.DocDate])
Thanks

Similar Messages

  • URGENT:Approval of purchase order

    At present approval of purchase order is done based on order value.. but how to approve PO based on ITEM CATEGORY?

    Go in Purchasing Super User responsibility and follow the path Setup: Approvals: Approval Groups. In the Approval Groups form you choose "Item Category Range" as value, put an amount limit and indicate low and high values for purchasing category. You put all this in either an existing or a new approval group and then assign this group to some HR position in Approval Assignments.
    Hope this helps
    Regards
    Riccardo

  • Unable to approve standard Purchase order

    Hi ,
    We are into 11.5.10.2 , We are getting following error when trying to approve the purchase order by approver . PO Status is in "Pre approved"
    unable To Approve Standard Purchase Order 975761
    Line # 17 At least one or more item attributes failed validation.
    Action: Verify values for the following attributes: purchasing_enabled_flag, stock_enabled_flag, outside_operation_flag and bom_item_type.
    Please, fix the problem and try approving again from this notification or send the document back to the preparer.
    PO is going to top Hierarchy inspite of having enough aprroval limits .
    Item attributes was set to Inactive in Master Level and was active in Organization items . Changed to Active in Master Item and still getting the issue .
    PO is getting forwarded to next approver and finally it is in "pre approved status " with above error
    Thanks in Advance
    Kiran

    Hi Kartik,
    1) In Item Master , status is set to OBSOLETE and purchasable check box is unchecked . Item master organization was set in purchasing options .
    2) Organization item , status is Active . stockable and Purchasable check boxes are checked and outside processing item unchecked . This is receiving org in Purchasing .
    I think Purchasing is considering Master org status as it is validation org for purchasing .
    Thanks
    Kiran

  • Approve a purchase order from an e-mail

    Greetings experts
    Is there any way to approve a purchase order from an e-mail which was sent to the approver from SAP?
    Please if anyone knows how to do help me.
    In advance thanks a million.

    Extended Notifications.
    Please search the forum before posting.

  • How to query purchase orders in archive system

    Our purchase orders are archived. Now I want to query the purchase orders. I use transaction code alo1, but no data. How can I query purchase orders via other ways? Thanks.

    1.You can use ME82 to query the Purchase Orders.
    2.sara-->Archiving Object : MM_EKKO-->Information System-->Archive Explorer-->Archive Infostructure:SAP_DRB_MM_EKKO -->and click execute-->input your query condition-->click execute.

  • How to cancel approved (draft) purchase order prior to adding it

    Please help with this scenario..... We have a purchase order approval in place for service purchase orders. User entered one line of PO correct and then on second line, entered something in description but did not enter GL account code.
    Purchase order followed approval stage and is now approved, however since PO line does not have GL account we receive error regarding missing GL account.
    Problem is now that PO is approved we cannot update it and we also cannot cancel the purchase order draft since it is approved.
    What do we do??

    Hi Keith,
    I'm afraid it is not possible to delete a document which has been going through the approval process.
    What you can do is to add the PO and then cancel it.

  • Offline approval for Purchase order response

    Hi All,
    Currently we are in SRM 7.02. we want to know whether offline approval is applicable for Purchase order response (PCO).
    I have searched all available blogs but in Vain. Hope someone can enlighten me in this topic
    Regards,
    Nishanth

    Hi Nishanth,
    We have implemented custom solution for the same in line of SC offline approval process.
    And its working fine in Production environment.
    Check this blog for SC:
    http://scn.sap.com/docs/DOC-56096
    http://wiki.scn.sap.com/wiki/display/SRM/Debugging+hints+for+sending+email+in+offline+approval
    Thanks
    Ankit Jain

  • Which is the process (or Package) that approve the Purchase Order

    Hi All,
    I have a custom process that modifies need by date and promised date fields in Purchase Order. After that the Purchase Order that has "Aprove" status change and say "Required Reaprove". Do you know which is the package that I can execute in order to aprove again the PO ?.
    Thanks Mariano.-

    Hi Hussein,
    It was a good idea to make a trace. I finally found the solution. Here it is....
    Thanks a lot !!!
    begin
    FND_GLOBAL.APPS_INITIALIZE(1911,50737,20003);
    end;
    begin
    MO_GLOBAL.SET_POLICY_CONTEXT('S',81);
    end;
    declare
    v_wf_seq NUMBER;
    v_itemkey VARCHAR2(100);
    begin
    SELECT TO_CHAR (po_wf_itemkey_s.NEXTVAL)
    INTO v_wf_seq
    FROM SYS.DUAL;
    v_itemkey := TO_CHAR(5782)|| '-' || v_wf_seq;
    po_reqapproval_init1.start_wf_process (itemtype => 'POAPPRV'
    ,itemkey => v_itemkey
    ,workflowprocess => 'POAPPRV_TOP'
    ,actionoriginatedfrom => 'PO_FORM'
    ,documentid => 5782 -- po_header_id
    ,documentnumber => '388' -- OC
    ,preparerid => 82 -- agent_id
    ,documenttypecode => 'PO'
    ,documentsubtype => 'STANDARD'
    ,submitteraction => 'APPROVE'
    ,forwardtoid => NULL
    ,forwardfromid => 82 -- agent_id
    ,defaultapprovalpathid => 10
    ,note => NULL
    ,printflag => 'N'
    ,faxflag => NULL
    ,faxnumber => NULL
    end;

  • Approval for purchase order

    Hi all
    I have set approval for purchase oder , my problem is that when i create a purchase order using purchase order form it is going for the approval but when i created through code it is not going for the approval . Any solution for this.
    Thanks in advance
    Regards
    Arun

    Hi Arun,
    You may check these:
    Document approval through SDK
    DI API Limitation workaround required
    Thanks,
    Gordon

  • Approval on Purchase Order

    Hi all,
            My client requires that in case if the items selected in the Purcahse Order dont have any price, the po should not get added in the system.i have created an approval where if the unit price of any item is '0' , then the document should go for approval. now the problem arises when the document comes back from approval, i am unable to amend the price in the purchase order. can anyone suggest me any other better way so that if the unit price is '0' in the system, the purchase order should not get added in the system??
    Thanks in advance,
    Joseph

    hi,
    Why are u going for approval ?
    Instead enter unit price in item master adjacent to field price list 1.
    It will populate item with price in po row level.
    Jeyakanthan
    Edited by: Jeyakanthan A on May 8, 2009 4:00 PM

  • Auto Approval EBP Purchase Order is not updating the status at the header

    Hi There ,
    We are facing an issue in EBP auto approval PO ,
    The process level schema is set to Auto Approval  (Standard 9CBUS2201_EX01_55)
    During the PO creation , the standard schema is triggered and it gets approved .
    The status of the PO in the Approval Tab is showing as Approved .
    But in the docuemnt level the status is still Awaiting Approval .
    While checking in SWI1 we came to know that an error has happened in the Task TS40007972
    and the Guid ID of SRM Purchase is initial that has made the status(EV_STATUS) as initial .
    The ERROR is from the below class & method.
    Class: /SAPSRM/CL_WF_PROCESS_MGR_SBWF
    Method:GET_PROCESS_DECISION_STATUS
    Can anyone suggest to overcome this issue .It will be very usefull if anyone could suggest debugging possibility if any .
    Regards,
    Arun.

    Have you tried notes?
    1625513 - Workflow without approval is Awaiting approval status
    1724251 - Workflow log error: CREATE_DECISION_SETS cannot be executed

  • Step User Decision and Approval of Purchase Order

    Hello All,
    I have created a workflow with step user decision and also attached the object BUS2012 to display from SAP Inbox. But is there a way i can attached the object that would show the approval screen when the work item is executed, and also send a mail for the user decision.
    Urgent help needed.

    Hi,
    You could use a secondary method in your user decision step which executes an object method and for example displays the PO so users can make the correct choice in the user decision.
    Regarding sending an email you could have a sendmail step after the user decision step but wthis will not be executed until the user decision is complete. Why do you want to send an email?
    Regards,
    Eddie

  • Purchase order created on approval of Shopping cart

    Hi All,
    We are using SRM 5.0 Support pack SAPKIBKT17.
    When a shopping cart is approved, a purchase order is automatically created. And this purchase order is attached to an E-Mail and sent to the Vendor.
    My query is that where is this E-Mail triggered? Is there a standard workflow task or any method is called?
    Thanks,
    Kiruthiga

    Thank you Jason.
    I put break points in all relevant sub routines in the function group you mentioned. And we approved the shopping cart. Logically, this should trigger a creation of PO. In our system there is no need for an approval for a PO. So the PO must automatically be sent to the vendor. In real, it did not stop at any breakpoint and the workflow WS10400051 (FinalProcNew) is triggered.
    I can not understand at which point the E-Mail is triggered. Is my assumption that the E-Mail to vendor with PO as an attachment is triggered in this workflow (WS10400051)?
    Please help me understand.
    Regards,
    Kiruthiga

  • Approval Required on Purchase order

    Hello Experts,
    I am stuck in the Approval Procedure and i need your help. Actually my client want a approval on purchase order for a particular Item Group. How can i do the same please tell me.
    my client want that no purchase order is add if any item of purchase order belong to that group (Group name is ocean)
    and i have think one solution but don't know whether that fits to it or not.
    The solution which i thought is to put a approval through query but if i get that type of query from you people then it would be help ful for me.
    Thank in advance..
    Regards
    Hanes

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

  • Purchase Order Approval

    Is there a way to find out who (what particular individual) has approved a Purchase Order?  I know there are different release strategies, but I want to know what individual approved the Purchase Order.  Thank you for any help in this matter.

    Hi,
    Purchase Order is a legal document, once it has been sent to vendor, the vendor can supply the goods and services as per the agreed terms and conditions.
    The purchase order release strategy can be used for approvals of the PO,
    The usage of the approvals are.......
    For ex: A purchaser created a PO, but he doesnt know as per the payment terms in the PO, we can arrange the amount or not for the due date the purchaser doesn't know.
    Where as if we provide the approval to finance manager, he will be aware of funds available for a specific dept, specific period etc... and the Finance Manager can analyze that how the funds are utilizing..........
    where as in the configuration you can give the approval procedure to different department heads, who can monitor the activities, for triggering different departments we can use different PO document types.
    I hope this can help you....
    Best Regards,
    Vasu.

Maybe you are looking for

  • Unable to connect to register the serial number

    Just bought Adobe premiere elements 13. When I open the programm it asks to register the serial number. I click to connect (the connexion on the internet is working properly) but it's impossible to connect it says try again or register later. I have

  • Is it possible to create a reportviewer directly in javascript?

    My scenario: I want to be able to use my custom server (C#, visual studio 2013) application to generate a report based on pre-built Crystal Report 2013 .rpt's. I then want to display that in the front end of my website somehow, using javascript. The

  • ATC Exemptions Extractor - OPEN status only?

    Hi Experts Not sure if I'm missing the point on this one but the ATC Exemption extractor deletes all exemptions that aren't in OPEN status. I'd like to report on the status of exemptions - especially those that have been approved. Here my 274 exempti

  • DNS Resolver not working with JDK 1.5.0_6 and Windows 2003

    I have a Windows Server 2003 machine which now has Java JDK 1.5.0_6 installed on it. Somehow the DNS resolver doesn't work - every call to InetAddress.getByName("host") throws an UnknownHostException. I've tried de-installed java and re-installing, b

  • Does apple iphone 4s support android

    does iphone 4s support android