WS Error - Planned Qty should be greater than Completed + Rejected Qty

Hi All,
We've tried to close a Production Order using the ProductionOrdersService Web Service.  We're doing this by setting the Production Order Status flag to closed (boposClosed).  The call also requires us to re-set the due date so we do that to the same value.
When we perform the call we receive the following exception:
"Planned Qty should be greater than Completed + Rejected Qty  [OWOR.PlannedQty]"
It's interesting to note that we've tried to close the production order with different items and everything seems to point towards an issue with the items, however, we're not really sure what is triggering the error.  We're also not sure what the error really implies as the Planned Qty is greater than the Completed + the Rejected Qty on the database.
We're working with SAP 8.8.1.
The code is as follows:
        // Get the current session ID first
        // Create message header object with value..
        SAPProductionOrdersService::MsgHeader^ localMsgHeader = gcnew SAPProductionOrdersService::MsgHeader();
        localMsgHeader->SessionID = sessionId;
        localMsgHeader->ServiceName = SAPProductionOrdersService::MsgHeaderServiceName::ProductionOrdersService;
        localMsgHeader->ServiceNameSpecified = true;
        SAPProductionOrdersService::ProductionOrdersService ^iprodWs = gcnew SAPProductionOrdersService::ProductionOrdersService();
        iprodWs->MsgHeaderValue = localMsgHeader;
        // Set the item params object
        SAPProductionOrdersService::ProductionOrderParams^ localProductionOrderParams = gcnew SAPProductionOrdersService::ProductionOrderParams();
        localProductionOrderParams->AbsoluteEntry = ProductionOrderNum;
        localProductionOrderParams->AbsoluteEntrySpecified = true;
        // Perform the Item fetch with that information
        SAPProductionOrdersService::ProductionOrder^ localProductionOrder = iprodWs->GetByParams(localProductionOrderParams);
        // Construct a new Production Order Data structure
        SAPProductionOrdersService::ProductionOrder^ newProd = gcnew SAPProductionOrdersService::ProductionOrder();
        // Absolute Entry
        newProd->AbsoluteEntry = ProductionOrderNum;
        newProd->AbsoluteEntrySpecified = true;
        // Production Order Status
        newProd->ProductionOrderStatus = SAPProductionOrdersService::ProductionOrderProductionOrderStatus::boposClosed;
        newProd->ProductionOrderStatusSpecified = true;
        newProd->DueDate = localProductionOrder->DueDate;//     {6/9/2011 0:0:0 System.DateTime}     System::DateTime
        newProd->DueDateSpecified     = localProductionOrder->DueDateSpecified;//     bool
        // Setting lines array back
        newProd->ProductionOrderLines = localProductionOrder->ProductionOrderLines;
        // Item Code
        newProd->ItemNo = ItemNum;
        // Perform the Update of the Production Order with that information
        iprodWs->Update(newProd);
        // Since there is no return type telling us of the recent update, unless we get an exception, assume it worked
        String^ recMsg = "Close Production Order Attempt Successful.  Parameters are: \r\n" +
                         "Production Order Num: " + ProductionOrderNum;
        Log::LogInformation(recMsg);
        retVal = true;
Hector

Dear Gordon,
Yes, I have checked the data in the database.  I've checked tables OWOR fields PlannedQty, CompletedQty and RjctQty and everything seems  to be in order.  I also checked table WOR1 for the production order lines.  There are two lines, one Labor and one Raw Material (regular item).  I've checked BaseQty, PlannedQty and IssuedQty but everything seems in order there as well.
Do you know if there is a way to find out what internal piece of code throws that exception message?
Hector

Similar Messages

  • GR qty can be greater than Inbound delivery if there is other Inb. delivery

    Hi all,
    I am encountering a strange issue, and I am not sure if it is SAP standard. Hope someone can help me.
    Business Background:
    There is a Schedule Agreement in Plant R800 and use STO to refill from Plant R800 to Plant 8000.
    We found an issue happen in GR from inbound delivery for Schedule Agreement:
    1. When there is 2 inbound delivery exist for same Material, during MIGO with one inbound no#, the GR qty could be greater than that inbound qty, but NOT exceed the total open inbound qty.
    Below is an example, 2 inbound, 500 pcs each, after the 1st GR 400 pcs, then the second GR could be 600 pcs.
    2. The issue is that if the qty is mixed up, after 2 GR(400 +600pcs), there is still 100 pcs leftover in MD04 for the 1st inbound delivery. And this is misleading for planner.
    Thanks,
    Julia

    I found the rooting caused and solved it already

  • IMAQ Vision: (Hex 0xBFF60488) Minimum coverage value should be greater than zero.

    Having some trouble with extended acquisition of a Mightex USB camera using LabVIEW 8.5.  LabVIEW is able to acquire images from this camera using IMAQ USB, a snap every ~30 seconds.  After about 1100 snaps LabVIEW errors out: IMAQ Vision:  (Hex 0xBFF60488) Minimum coverage value should be greater than zero.
    Any help would be greatly appreciated!

    Check this discussion

  • Delv qty greater than sales order qty

    Hi ,
        We are on ECC 6 . In one of the del, delivery qty is greater than sales order qty.
        which resulted in overpicking. ( Sales order qty 560 , delivery qty 587 & Pick qty 587).
        This is over delivery & overpicking issue.
        Is there any way to stop this for ECC 6 version.
        Let me know.
    Thanks  & Regards

    Hi Tushar
    You need not maintain the over-delivery limit.
    If you set set "B" in the "Over Delivery" field in the Delivery Item category (0VLP), then system will not allow you create a Delivery with delivery quantity greater than Order quantity.
    I mean, if the order quantity is 10 pc, then with reference to that Order ,you can not create a Delivery for more than 10 pc.

  • PO greater than Shopping Cart Qty

    Friends,
    We are working on extended classic scenario where PO is created as follow-on document from shopping cart. User can create PO in sourcing cockpit using Process PO option. However here user has the option to change PO qty where system accepts PO qty greater than SC qty. We would like to restrict it.
    In R/3 MM we can control this via system message and restrict PO qty to exceed PR qty.
    How can we control this functionality in SRM?
    Regards,
    Sandeep Parab

    Hi. Try the BBP_DOC_CHECK_BADI.
    You should be able to check the quantities and issue an error if the quantity has been changed.
    Regards,
    Dave.

  • Goods receipt date should be greater than the P.O. date

    Hi
    Is there any option to control the Goods receipt date should not be lesser than the P.O.Date??
    Eg: P.O. is raised in 10.1.9, User should not do the GRN before 10.1.9. In which way we can control  this???
    Regards
    Ravi

    Dear,
    You have to include User exit in MIGOwhich will trhrow an error at the time when Goods receipt date is greater than the P.O. date.
    Regards
    Utsav

  • Order QTY should not exceed than reference document

    Dear Gurus,
    I am creating a Release order with reference to Contract. Ex. order qty is 100 in Contract, while doing sale order it should not allow to change the order qty more than 100 [not more than Ref. document qty]. I have tried in VTAA, completion rule.. but it still allows.
    Pls thro some light on this.
    Regards
    Praveen...

    Hi Sreebha,
    DO NOT COPY PASTE OTHERS STATEMENT
    Check the below link from where it is copied:[Lock Quotation Changes when Sales Order is already Created;
    Regards,
    Amitesh Anand

  • GRN Qty should be less than Sub contracting Challan Qty

    Hi Friends,
    When we put Sub Contract Challn at the time of receving Sub Contract material MIGO, system should pick up challn Quty, or System should accept less qty than Challan Qty.
    Can we do the same ?
    Please help me.
    Thanks in Advance
    Yogesh

    HI,
    Yes GRN Qty should be same or less  than Sub contracting Challan Qty, system will allow you do the reconcilation with J1ifq or if the challan qty less then GRN quantity at the time system wont allow you to do the reconcilation
    Regards
    Pramod

  • PO qty Should not more than PR qty

    we Have configured  For controlling Multiple Pos for same PR,  error message 06-076.
    It is working fine for Materials PR/PO. But for service PO, Item Qty is AU always and
    item detail screen having Service tab having Multiple services.In this case even though
    less qty is converted to Po,for remaining qty conversion to Po, system giving this error message. can any body give idea?
    thanks
    ramitreddy

    When it comes to service you need to make message number 438 and application area SE error in the below config
    spro>MM>external service management-->define attributes of system messages
    Regards
    Antony

  • Why domain functional level should be greater than or equal to forest FL?

    We know that domain functional level must be greater than or equal to forest functional level. Why is that so?
    My perspective is if we set FFL to windows server 2008 r2 and DFL to windows 2003, active directory recycle bin won't be available to the domain whose FL is windows 2003. Is that right?

    My perspective is if we set FFL to windows server 2008 r2 and DFL to windows 2003, active directory recycle bin won't be available to the domain whose FL is windows 2003. Is that right?
    Greetings!
    Active Directory Recycle Bin needs to be implemented in a forest with 2008 R2 forest functional level. Because it was added in 2008 R2 operating system. In order to have a 2008 R2 forest functional level you need to raise all the child domains DFL's first.
    Regards.
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • Increased Qty in sales order than the Billed qty..  urgent

    Hi folks,
    When I am creating a return sales doc. with reference to a Billing doc,
    everything is getting copied on to the return sales doc.
    The Qty of the item is also getting copied on to the sales doc.
    But when i increase the qty of the item , it is giving me a warning message  saying " Qty is more than the billed qty." and thus allowing me to take it.
    The client want that this should be an error message and hence shouldnot allowed to take the increased qty.
    Can anyone tell how to make it an error message.
    thanx
    sourav

    Hi Sourav,
                  Check copy control settings in the transaction VTAF.
    In that you go to item level copy control check the field Pos./neg.quantity whether this field set as '-' or not.
    If not set enter - (Minus) then try
    If already enter you need to go for the User exits to cahnge the warning message to error message.
    I hope it will help you
    Regards,
    Murali.

  • Delivery Qty Greater than Sales order Qty

    Dear All,
    I want to do delivery against a Sales order,but system is allowing me to do PGI more than the Sales order qty,please advice where i can restict my PGI agisnt the Sales order qty.
    Regards,
    Muzamil

    Dear Prashanth,
    Thanks for your quick reply and resolution
    We have a problem when there is a delivery from projects(CNS0).When we are running the transaction CNS0 and entering  Qty 7, and creates delivery, system generates a Delivery Number and takes us to VL02N where we enter batch,picked qty and storage location.Here we find delivery quantity 7 by default and if we change the quantity from 7 to 10 even then system accepts more quantity as it checks the project stock.
    We want system should not allow the delivery quantity more than the quantity specified in the CNS0.
    We are not creating sales order as we directly delivering from projects.
    In the previous case,as you suggested we made the changes in delivery item category,but the same logic is not working here as it is without sales order.
    We are using item category DLP and Delivery type is LP.
    Request you to provide your valuable inputs
    Thanks in advance
    Regards
    Muzamil

  • Invoice qty greater than the PO qty

    Hi All,
    I have created material  PO with 100 qty Value 5000 and freight cost 1000 rs for the same Qty.
    Issue: at the time Freight Invoicing with PO/bill of landing
    Material: GR & IR Done for 100 qty -- No issue
    Freight: when am doing invoice (MIRO) i have given Purchase Order no and paid the freight rs 1000 for whole 100 qty
    Issue: If i do invoice (MIRO) by for the same PO and given bill of landing, system still proposing some qty 40 Qty and proposing some cost.. and able to save .
    but it should not propose the Qty... Plz let me know how to restrict it... In case freight Invoice
    Thanks

    Hi,
    not some qty... if i select the Bill of loading in MIRO, then system is proposing the whole qty for the particular item of PO.
    PO:123  100 qty  Fright cost 10  value 10000  Bill of Loafing:XYZ
    MIRO-Delivery plan: Done With PO whole Qty 100  freight cost 10rs value=1000 rs
    If i select :Bill of loading XYZ (Same PO and same item).. system is proposing same Qty 100 and value 10000..
    Thanks

  • Order Qty must not be greater than reference Contract Qty

    Is there any way we can stop user to create Order if he enter quantity more than quantity entered in the
    reference contract.
    e.g. if i created contract for xyz customer of item abc with quantity 100 each
    while creating order for the xyz customer of item abc i will not
    be allowed to enter more than 100 each quantity while referenceing the contractred created
    for the customer in step one
    Pl. help

    HI,
    For your Target Sales Doc Type from Source Doc Type, In Copy Control Settings, T. Code: VTAA (Item); you may "Automatically determine the referenced qty" in Field: Copy Quantity.
    But, later-on, one may change the qty in target Sales Doc. (in standard SAP). You may write "User-exit" to avoid such instances.
    Best Regard,
    Amit.

  • Minimum coverage value should be greater than zero (host machine)

    Hi,
    I am working on an host machine (windows 7, LabVIEW RTE 2010, VAS 2010 (evaluate version)) with an application created on another machine (Windows XP, LabVIEW 2010, Vision Development Module 2011).
    This application is supposed to aquire an image by a USB camera.
    When I run this application on the development machine, it works fine.
    On the host machine, I can see my camera with MAX and do whatever I want to do with MAX.
    When I run the application on the host machine, the application starts but when it is supposed to use the camera I got thes error (see attached file).
    I tried to uninstall and reinstall all Lab'VIEW"s softwares but I still have this issue...
    Any idea will be appreciated!
    Thank you!
    Attachments:
    screenshot.doc ‏34 KB

    Greetings, nicocmd;
    First and foremost, it is excellent that you are now up and running!
    In what concerns your question, do you mean to continuously see the image displayed in a live feed and only save it when the user clicks a button or some such? What do you mean with only using IMAQdx VIs? Would it refer to not using the IMAQ For USB VIs?
    If you would desire to take in images from the camera and display them in a live feed, you could simply set up an IMAQdx acquisition and either use the Grab or the GetImage VIs and have a case structure in which you decide whether or not to save the image that was just displayed (or the next one that will be taken). 
    I did a tad of research and came across the following forum post; in it, another user posted a VI that might be of service to you, for it saves images into a tiff file.
    http://forums.ni.com/t5/LabVIEW/IMAQdx-grab-and-save-images-i-e-PNG-TIFF-etc-not-AVIs/td-p/1044201
    Finally, if you would mean using only IMAQdx VIs and not IMAQ, then I do not believe it is possible simply because the vision utilities (Such as creating the image memory location) will be part of the IMAQ palette.
    Cordially;
    Simon P.
    National Instruments
    Applications Engineer

Maybe you are looking for

  • APEX Listener 1.1.4 install issue with listener configuration

    Oracle XE 11gR2 APEX 4.1.1 APEX Listener 1.1.4 Glassfish 3.0.1 ============= Installing APEX Listener 1.1.4 to replace APEX Listener 1.0.2. Deployed apex.war file but now: (1) http://10.10.1.111:8080/apex/listenerConfigure web page comes up but with

  • How can I get a refund at the App Store when it isn't offered ?

    Perhaps the Apple attack dogs will like this post better. How do I get a refund for a costly app that, after requesting a refund, appears to not offer one? How does one know if an app meets one's needs unless you try it first? This seems so obvious,

  • How to Update a clob column..it gives error string literal too long

    I am trying to update a clob column of a table but it gives error string literal too long plz tell me what's the issue ORA-01704: string literal too long

  • Non Cenvatable in Import PO

    Dear SAP Experts, I have an issue. In the Imports PO, usually JCDB - IN:Basic Customs Duty - Non Cenvatable JCV1 - IN: CVD - Cenvatable JECV - IN:ECess on CVD - Cenvatable J1CV - IN:H&SECess on CVD - Cenvatable JEDB - IN:ECess on BCD - Non Cenvatable

  • Duplicate photo's in Revel and Elements after upgrade to Elements 12

    I subscribed to Revel in Nov. 2013 and used my Windows Elemennts 11 app to upload all my photos.  I recently upgraded to Elements 12 and linked it to my Revel account.  This resulted in complete duplication of every image both in Revel and in my Elem