cancel
Showing results for 
Search instead for 
Did you mean: 

web service ChangeProduction does not work

Former Member
0 Kudos

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>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

I see. Thankis!

Former Member
0 Kudos

Is there any other to change only operation? We just need to move a SFC from a operation to another operation in the same route.

Thanks!

Former Member
0 Kudos

Hi Ivan

To move SFC to another operation on the same route you can use SFC Step Status. There is the Actions button which allows to place SFC in queue at another operation

Thanks

Ivan

Former Member
0 Kudos

Hi Ivan,

Thank you for your information.

We would like to move SFC to another operation by web service or xml (xchange), not by SAPME user interface.

Do you have any idea about it? Thanks!

Former Member
0 Kudos

Looks like public API is not available for the SFC Step Status functionality. You may want to request it from SAP to be able to implement a custom web service.

Former Member
0 Kudos

I see. Thanks a lot!

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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