on 05-14-2012 8:20 AM
Hi,
I am transferring a shop order from another system using the ERPProductionOrderService Web-service. In this message
I include the panel SFC's that I have already created in the other system and I release the shop order immediately with the release tag.
This works fine for panels with lot size = 1, but for panels with lot size > 2 I receive an error "SFC/Serial Numbers cannot be specified for a Shop Order for a Material with a Lot Size greater than 1".
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mein="http://sap.com/xi/MEINT" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">
<soapenv:Header />
<soapenv:Body>
<mein:ProductionOrderUpdateRequest_sync>
<mein:ProductionOrder>
<me:SiteRef>
<me:Site>TEST1</me:Site>
</me:SiteRef>
<me:ShopOrderIn>
<me:ShopOrder>646169</me:ShopOrder>
<me:SiteRef>
<me:Site>TEST1</me:Site>
</me:SiteRef>
<me:StatusRef>
<me:Status>501</me:Status>
</me:StatusRef>
<me:Priority>500</me:Priority>
<me:PlannedItemRef>
<me:Item>TESTITEM</me:Item>
<me:Revision>12</me:Revision>
</me:PlannedItemRef>
<me:PlannedRouterRef>
<me:Router>JOHAN_SM1_SM2</me:Router>
<me:Revision>#</me:Revision>
<me:RouterType>U</me:RouterType>
</me:PlannedRouterRef>
<me:PlannedStartDate>20120508</me:PlannedStartDate>
<me:PlannedCompleteDate>20120524</me:PlannedCompleteDate>
<me:QuantityToBuild>10</me:QuantityToBuild>
<me:CustomerRef>
<me:Customer>611005</me:Customer>
</me:CustomerRef>
<me:ShopOrderSFCPlanList>
<me:ShopOrderSFCPlan>
<me:Sfc>004VK4</me:Sfc>
<me:SerialNumber>004VK4</me:SerialNumber>
</me:ShopOrderSFCPlan>
<me:ShopOrderSFCPlan>
<me:Sfc>004VK5</me:Sfc>
<me:SerialNumber>004VK5</me:SerialNumber>
</me:ShopOrderSFCPlan>
<me:ShopOrderSFCPlan>
<me:Sfc>004VK6</me:Sfc>
<me:SerialNumber>004VK6</me:SerialNumber>
</me:ShopOrderSFCPlan>
<me:ShopOrderSFCPlan>
<me:Sfc>004VK7</me:Sfc>
<me:SerialNumber>004VK7</me:SerialNumber>
</me:ShopOrderSFCPlan>
<me:ShopOrderSFCPlan>
<me:Sfc>004VK8</me:Sfc>
<me:SerialNumber>004VK8</me:SerialNumber>
</me:ShopOrderSFCPlan>
</me:ShopOrderSFCPlanList> </me:ShopOrderIn>
<me:ShopOrderReleaseInfo>
<me:Release>all</me:Release>
</me:ShopOrderReleaseInfo>
</mein:ProductionOrder>
</mein:ProductionOrderUpdateRequest_sync>
</soapenv:Body>
<SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>SFC/Serial Numbers cannot be specified for a Shop Order for a Material with a Lot Size greater than 1</faultstring>
<detail>
<ns3:StandardMessageFault xmlns="http://sap.com/xi/SAPGlobal/GDT" xmlns:ns3="http://sap.com/xi/ME" xmlns:ns2="http://sap.com/xi/MEINT">
<ns3:ErrorCode>13845</ns3:ErrorCode>
<ns3:ErrorMessage>SFC/Serial Numbers cannot be specified for a Shop Order for a Material with a Lot Size greater than 1</ns3:ErrorMessage>
</ns3:StandardMessageFault>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Best Regards,
Johan
Hi Johan,
Could you try leaving out <me:ShopOrderSFCPlanList> tag?
Once you use <me:Release>all</me:Release>, in addition you can specify <me:Starting> tag underneath <me:ShopOrderReleaseInfo> to set the initial sequence for Next Number pattern to start generating new SFCs.
Regards,
Sergiy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Johan,
I guess it is an intentional limitation within the design to avoid possible confusion with calculation of a number of SFCs to generate. That's why it is left for the system instead of taking this info from the sender.
I could think of using SFC Qty Adjustment activity but it looks a bit awkward and not sure if it will work with panels.
Regards,
Sergiy
Johan,
I cannot find WS for Qty Adjustment either, but I talked about POD plugin.
Anyway, I guess you cannot implement your scenario with the basic WS.
However, here is some cheating as a workaround:
- create a material M1 as panel of Qty = 1;
- send WS to create SO for M1 of Qty = 5, with SFC Plan of 5 SFCs/SNs, but without Release tag;
- update M1 to set Qty = 2;
- send updated WS where no SFC Plan, Qty = 10 and Release = all;
- actual result: 5 SFCs each of Qty = 2 are generated.
Though, I would not rely upon this workaround.
Regards,
Sergiy
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.