cancel
Showing results for 
Search instead for 
Did you mean: 

How do I release a shop order with panel SFC's?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

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

Former Member
0 Kudos

Hi Sergiy,

I want to use the SFC's generated by the other system together with the shop order from the other system, so I do not want to create new SFC's with the next number pattern.

Best Regards,

Johan

0 Kudos

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

Former Member
0 Kudos

Hi Sergiy,

I wan't to be able to do all steps with web-services, but I can not seem to find the web service for SFC Qty adjustment. Even though I am not totally sure that SFC Qty adjustment is really what I want to do in this case.

Br,

Johan

0 Kudos

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

Former Member
0 Kudos

Sergiy,

Thanks for the tip. I will try it, though I don't think this will be my final solution. I intend to write a web-service to be able to setup the shop order for my first resource in the routing and then release each SFC like this instead.

Br,

Johan