on 02-15-2013 10:44 AM
Hello,
I am looking for a way to close a shop order that has open SFCs, with the result that shop order and all open SFCs are marked as done in ME.
When I change shop order status via ME activity "shop order maintenance" I get exactly this result: shop order gets status CLOSED and SFCs that are still in work are being marked as DONE.
I would like to do exactly the same via webservice. I tried the following two webservices: ChangeShopOrder and ChangeProductionOrder
Both with the same results:
I can either set the parameter AllowInqueueSfcOnSoClose to true with the result that shop order status is updated, but SFCs remain open and can still be worked on in PODs
Or I don't set the parameter (or set it to false) and return an error message saying "Value "STATUS_BO" invalid; reason: Cannot update status to Closed because not all SFCs for this shop order marked as Done"
Is there any possibility to get the same result as in "shop order maintenance" using webservices?
Best regards
Ulrike
Ulrike,
There are UpdateProductionOrder and UpdateShopOrder services. Try to update SO status using one of those.
Regards,
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Konstantin,
as far as I understand from Web Service Guide the difference between Change... and Update... webservices is the follwoing:
ChangeShopOrder: This operation updates the existing shop order record; throws an exception if the record does not exist
UpdateShopOrder: This operation updates the existing shop order or creates a new shop order record if the record does not exist
Other than that there seems to be no difference between Change and Update. As I need an exception if an non existing shop order is trying to be updated only the ChangeShopOrder or ChangeProductioOrder webservice works in my scenario.
Thanks
Ulrike
Hi Ulrike,
There is a dfference between SFC Status and SFC Step Status (see SAP Note 1484775). Could you please confirm that SFC Status is not changed to Done in case you set AllowInqueueSfcOnSoClose to true?
What ME version do you use?
Regards,
Alex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexander,
we are using ME 6.0. Service Pack 4.0
I tested 2 scenarios (based on a released shop order and SFCs with status new):
1.) setting shop order status to DONE (503)
2.) setting shop order status to CLOSED (504)
In the first scenario I get the following results:
a) setting AllowInqueueSfcOnSoClose to false
--> error message "Value "STATUS_BO" invalid; reason: Cannot update status to Closed because not all SFCs for this shop order marked as Done"
b) setting AllowInqueueSfcOnSoClose to true --> success with
shop order status = DONE
SFC status = NEW
SFC can be processed at operation
In the second scenario I get the following results:
a) setting AllowInqueueSfcOnSoClose to false
--> error message "Value "STATUS_BO" invalid; reason: Cannot update status to Closed because not all SFCs for this shop order marked as Done"
b) setting AllowInqueueSfcOnSoClose to true --> success BUT
shop order status = RELEASABLE
SFC status = NEW
SFC can be processed at operation
however, when trying to open SO Step Report via button in Shop Order maintenance no SFCs are being displayed
Here's the webservice call I am using:
<me:ProductionOrderChangeRequest_sync>
<me:ProductionOrder>
<me:SiteRef>
<me:Site>SITE</me:Site>
</me:SiteRef>
<me:ShopOrder>
<me:ShopOrder>20130215-02</me:ShopOrder>
<me:SiteRef>
<me:Site>SITE</me:Site>
</me:SiteRef>
<me:StatusRef>
<me:Status languageCode="?">503</me:Status>
<me:SiteRef>
<me:Site>SITE</me:Site>
</me:SiteRef>
</me:StatusRef>
<me:Priority unitCode="?">500</me:Priority>
<me:ShopOrderTypeRef>
<me:SiteRef>
<me:Site>SITE</me:Site>
</me:SiteRef>
<me:OrderType>PRODUCTION</me:OrderType>
</me:ShopOrderTypeRef>
<me:PlannedItemRef>
<me:Item>ITEM</me:Item>
<me:Revision>#</me:Revision>
<me:SiteRef>
<me:Site>SITE</me:Site>
</me:SiteRef>
</me:PlannedItemRef>
<me:PlannedRouterRef>
<me:SiteRef>
<me:Site>SITE</me:Site>
</me:SiteRef>
<me:Router>ROUTER</me:Router>
<me:Revision>A</me:Revision>
<me:RouterType>U</me:RouterType>
</me:PlannedRouterRef>
<me:PlannedBOMRef>
<me:Bom>BOM</me:Bom>
<me:Revision>A-1</me:Revision>
<me:BomType>H</me:BomType>
<me:SiteRef>
<me:Site>0520</me:Site>
</me:SiteRef>
</me:PlannedBOMRef>
<me:PlannedStartDate>2013-12-04T15:00:00.000+01:00</me:PlannedStartDate>
<me:PlannedCompleteDate>2013-12-04T23:59:59.000+01:00</me:PlannedCompleteDate>
<me:QuantityToBuild unitCode="?">3</me:QuantityToBuild>
<me:OriginalStatusRef>
<me:Status languageCode="?">501</me:Status>
<me:SiteRef>
<me:Site>SITE</me:Site>
</me:SiteRef>
</me:OriginalStatusRef>
<me:ErpOrder>true</me:ErpOrder>
<me:ErpUnitOfMeasure>PCE</me:ErpUnitOfMeasure>
<me:AllowInqueueSfcOnSoClose>true</me:AllowInqueueSfcOnSoClose>
</me:ShopOrder>
</me:ProductionOrder>
</me:ProductionOrderChangeRequest_sync>
Do you have any idea what's going wrong here?
best regards
Ulrike
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.