on 01-03-2011 11:11 AM
Dears,
I tried to use web service ChangeProduction to change a SFC to another Operation in the same route, the other conditions(shop order, BOM, material) are the same. The request formate in soapUI is as below.
But the result is that I can see a production change action history with CHGRTR activity code, but Operation was not changed, the SFC still in the original operation.
What did I missed?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">
<soapenv:Header/>
<soapenv:Body>
<me:ChangeProductionRequest_sync>
<!Optional:>
<me:MessageHeader>
<!Optional:>
<gdt:ID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?">?</gdt:ID>
<!Optional:>
<gdt:UUID>?</gdt:UUID>
<!Optional:>
<gdt:ReferenceID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?">?</gdt:ReferenceID>
<!Optional:>
<gdt:ReferenceUUID>?</gdt:ReferenceUUID>
</me:MessageHeader>
<me:ChangeProductionRequest>
<me:SiteRef>
<me:Site>HP</me:Site>
</me:SiteRef>
<!1 or more repetitions:>
<me:SfcRequest>
<me:SfcRef>
<!You may enter the following 2 items in any order>
<me:Sfc>HP41</me:Sfc>
<!Optional:>
<me:SiteRef>
<me:Site>HP</me:Site>
</me:SiteRef>
</me:SfcRef>
</me:SfcRequest>
<me:NewRouter>
<!You may enter the following 4 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>HP</me:Site>
</me:SiteRef>
<me:Router>ROUTE1</me:Router>
<!Optional:>
<me:Revision>A</me:Revision>
<!Optional:>
<me:RouterType>U</me:RouterType>
</me:NewRouter>
<me:PlacementOperation>
<!You may enter the following 3 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>HP</me:Site>
</me:SiteRef>
<me:Operation>OP4</me:Operation>
<me:Revision>A</me:Revision>
</me:PlacementOperation>
<me:StepId>40</me:StepId>
<me:UserRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>HP</me:Site>
</me:SiteRef>
<me:UserId>IVAN</me:UserId>
</me:UserRef>
</me:ChangeProductionRequest>
</me:ChangeProductionRequest_sync>
</soapenv:Body>
</soapenv:Envelope>
I think it is a bug in the Production XML that ChangeProduction allows just a change in the current operation. That was never supposed to be a feature of the ChangeProduction action (WS, XML or GUI). This is an undocumented feature of the XML that may disappear in future releases.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ChangeProduction is meant to change the SFC's BOM, Router, Item and/or Shop Order. The operation is only used when you change an SFC's router and the system needs to know where to place the SFC in queue on the new router.
My guess is that the router is unchanged, so it doesn't try to place the QTY in queue at OP4.
It looks like it is really doing nothing in your case. Seems like it might be better for this to return an error (e.g. Router Not changed) instead of doing nothing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mike,
Thanks for your information.
My purpose is just to change the to another operation in the same route. I've tried to use shop floor xml interface to do the same thing, it works. The format is as below. The SAPME Change Production function UI also can work. Why web service can not work? Is it a bug?
<PRODUCTION_REQUEST>
<CHANGE_PRODUCTION>
<SITE>HP</SITE>
<USER>IVAN</USER>
<SFC_LIST>
<SFC>
<SITE>HP</SITE>
<ID>HP32</ID>
</SFC>
<SFC>
<SITE>HP</SITE>
<ID>HP33</ID>
</SFC>
</SFC_LIST>
<ITEM_BO>
<SITE>HP</SITE>
<ITEM>MA1</ITEM>
<REVISION>A</REVISION>
</ITEM_BO>
<ROUTER_BO>
<SITE>HP</SITE>
<ROUTER>ROUTE1</ROUTER>
<REVISION>A</REVISION>
<ROUTER_TYPE>U</ROUTER_TYPE>
</ROUTER_BO>
<BOM_BO>
<SITE>HP</SITE>
<BOM>BOM1</BOM>
<REVISION>A</REVISION>
</BOM_BO>
<NEW_ITEM>MA1</NEW_ITEM>
<NEW_ROUTER>ROUTE1</NEW_ROUTER>
<NEW_BOM>BOM1</NEW_BOM>
<PLACEMENT_OPERATION>OP2</PLACEMENT_OPERATION>
</CHANGE_PRODUCTION>
</PRODUCTION_REQUEST>
Edited by: Ivan_liu_tw on Jan 5, 2011 2:20 AM
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.