cancel
Showing results for 
Search instead for 
Did you mean: 

web service wip change makes SFC hold

houssem_temimi1
Participant
0 Kudos


hello Experts:

when I use the production web service: WIP Change to modify the shop order,

The SFC will be hold

But when I use the activity : Change production, the status of SFC still releasable.

How can I avoid the hold status ?

ME version : 6.0.4.46

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

sergiy_katerinich
Active Contributor
0 Kudos

Hi!

Have you tried ChangeProduction WS instead of WIPChange WS?

Regards,

Sergiy

houssem_temimi1
Participant
0 Kudos

Hello Sergiy:

I Tried ChangeProduction but I didn't succed.

I need only to change the shop order for list of SFC:

- I have to put the site for all fields

and I have this message:

"L'article ? (version ?) n'existe pas"

ME version 6.0.4.46

sergiy_katerinich
Active Contributor
0 Kudos

Please attach your request.

houssem_temimi1
Participant
0 Kudos

Hello Sergiy

please find the request :

<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>4680</me:Site>

            </me:SiteRef>

            <!--1 or more repetitions:-->

            <me:SfcRequest>

               <me:SfcRef>

                  <!--You may enter the following 2 items in any order-->

                  <me:Sfc>406153230147</me:Sfc>

                  <!--Optional:-->

                  <me:SiteRef>

                     <me:Site>4680</me:Site>

                  </me:SiteRef>

               </me:SfcRef>

            </me:SfcRequest>

            <!--Optional:-->

            <me:ShopOrderRef>

               <!--You may enter the following 2 items in any order-->

               <me:ShopOrder>?</me:ShopOrder>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

            </me:ShopOrderRef>

            <!--Optional:-->

            <me:ProcessLotRef>

               <!--You may enter the following 2 items in any order-->

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

               <me:ProcessLot>?</me:ProcessLot>

            </me:ProcessLotRef>

            <me:NewItem>

               <!--You may enter the following 3 items in any order-->

               <me:Item>?</me:Item>

               <!--Optional:-->

               <me:Revision>?</me:Revision>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

            </me:NewItem>

            <me:NewRouter>

               <!--You may enter the following 4 items in any order-->

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

               <me:Router>?</me:Router>

               <!--Optional:-->

               <me:Revision>?</me:Revision>

               <!--Optional:-->

               <me:RouterType>?</me:RouterType>

            </me:NewRouter>

       

            <me:PlacementOperation>

               <!--You may enter the following 3 items in any order-->

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

               <me:Operation>?</me:Operation>

               <me:Revision>?</me:Revision>

            </me:PlacementOperation>

             <me:StepId>?</me:StepId>

  <me:NewBom>

               <!--You may enter the following 4 items in any order-->

               <me:Bom>?</me:Bom>

               <!--Optional:-->

               <me:Revision>?</me:Revision>

               <!--Optional:-->

               <me:BomType>?</me:BomType>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

            </me:NewBom>

           

  <me:NewShopOrder>

               <!--You may enter the following 2 items in any order-->

               <me:ShopOrder>OF_TRSITE-253656145_A_10052016</me:ShopOrder>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

            </me:NewShopOrder>

          

         

            <me:Comments languageCode="?">TRAN</me:Comments>

            <!--Optional:-->

            <me:ActivityRef>

               <!--Optional:-->

               <me:Activity languageCode="?">XML</me:Activity>

            </me:ActivityRef>

            <me:UserRef>

               <!--You may enter the following 2 items in any order-->

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

               <me:UserId>G521813</me:UserId>

            </me:UserRef>

         </me:ChangeProductionRequest>

      </me:ChangeProductionRequest_sync>

   </soapenv:Body>

</soapenv:Envelope>

sergiy_katerinich
Active Contributor
0 Kudos

If you keep an optional tag where "?" is specified by default, then this value is taken by the system. So, please remove those tags first.

houssem_temimi1
Participant
0 Kudos

Hello:

I have this message:

Le site "?" n'est pas valide. (Message 10022).

this is the request:

<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>4680</me:Site>

            </me:SiteRef>

            <!--1 or more repetitions:-->

            <me:SfcRequest>

               <me:SfcRef>

                  <!--You may enter the following 2 items in any order-->

                  <me:Sfc>406153230147</me:Sfc>

                  <!--Optional:-->

                  <me:SiteRef>

                     <me:Site>4680</me:Site>

                  </me:SiteRef>

               </me:SfcRef>

            </me:SfcRequest>

            <!--Optional:-->

            <me:ShopOrderRef>

               <!--You may enter the following 2 items in any order-->

               <me:ShopOrder>?</me:ShopOrder>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>?</me:Site>

               </me:SiteRef>

            </me:ShopOrderRef>

            <!--Optional:-->

            <me:ProcessLotRef>

               <!--You may enter the following 2 items in any order-->

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>?</me:Site>

               </me:SiteRef>

               <me:ProcessLot>?</me:ProcessLot>

            </me:ProcessLotRef>

            <me:NewItem>

               <!--You may enter the following 3 items in any order-->

               <me:Item>?</me:Item>

               <!--Optional:-->

               <me:Revision>?</me:Revision>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>?</me:Site>

               </me:SiteRef>

            </me:NewItem>

            <me:NewRouter>

               <!--You may enter the following 4 items in any order-->

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>?</me:Site>

               </me:SiteRef>

               <me:Router>?</me:Router>

               <!--Optional:-->

               <me:Revision>?</me:Revision>

               <!--Optional:-->

               <me:RouterType>?</me:RouterType>

            </me:NewRouter>

        

            <me:PlacementOperation>

               <!--You may enter the following 3 items in any order-->

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>?</me:Site>

               </me:SiteRef>

               <me:Operation>?</me:Operation>

               <me:Revision>?</me:Revision>

            </me:PlacementOperation>

             <me:StepId>?</me:StepId>

  <me:NewBom>

               <!--You may enter the following 4 items in any order-->

               <me:Bom>?</me:Bom>

               <!--Optional:-->

               <me:Revision>?</me:Revision>

               <!--Optional:-->

               <me:BomType>?</me:BomType>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>?</me:Site>

               </me:SiteRef>

            </me:NewBom>

            

  <me:NewShopOrder>

               <!--You may enter the following 2 items in any order-->

               <me:ShopOrder>OF_TRSITE-253656145_A_10052016</me:ShopOrder>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

            </me:NewShopOrder>

           

          

            <me:Comments languageCode="?">TRAN</me:Comments>

            <!--Optional:-->

            <me:ActivityRef>

               <!--Optional:-->

               <me:Activity languageCode="?">XML</me:Activity>

            </me:ActivityRef>

            <me:UserRef>

               <!--You may enter the following 2 items in any order-->

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

               <me:UserId>G521813</me:UserId>

            </me:UserRef>

         </me:ChangeProductionRequest>

      </me:ChangeProductionRequest_sync>

   </soapenv:Body>

</soapenv:Envelope>

stuarta1
Active Participant
0 Kudos

Delete all optional blocks completely. If you have no data for tags, then the tag should not be included, as Sergiy says.

tags like

  <me:Site>?</me:Site>

will cause the error you receive.

You only need to include the SfcRequest, NewShopOrder, comments and UserRef blocks in your example.

Stuart

houssem_temimi1
Participant
0 Kudos

hello:

I have this message :

newItem non renseigné(e)

This is my request :

<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>4680</me:Site>

            </me:SiteRef>

            <!--1 or more repetitions:-->

            <me:SfcRequest>

               <me:SfcRef>

                  <!--You may enter the following 2 items in any order-->

                  <me:Sfc>406153230147</me:Sfc>

                  <!--Optional:-->

                  <me:SiteRef>

                     <me:Site>4680</me:Site>

                  </me:SiteRef>

               </me:SfcRef>

            </me:SfcRequest>

          

              

  <me:NewShopOrder>

               <!--You may enter the following 2 items in any order-->

               <me:ShopOrder>OF_TRSITE-253656145_A_10052016</me:ShopOrder>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

            </me:NewShopOrder>

           

                    

            <me:UserRef>

               <!--You may enter the following 2 items in any order-->

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>4680</me:Site>

               </me:SiteRef>

               <me:UserId>G521813</me:UserId>

            </me:UserRef>

         </me:ChangeProductionRequest>

      </me:ChangeProductionRequest_sync>

   </soapenv:Body>

</soapenv:Envelope>

sergiy_katerinich
Active Contributor
0 Kudos

Please double check which tags are optional. NewItem tag seems to be required, along with NewRouter, NewShopOrder etc.

stuarta1
Active Participant
0 Kudos

Keep the message as simple and small as possible.

In 6.1, this works:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mep="mepapi:com:sap:me:production" xmlns:prod="http://www.sap.com/me/production">

   <soapenv:Body>

      <mep:changeProduction>

         <mep:Site>XXXX</mep:Site>

         <mep:Request>

            <prod:changeProductionContextType>

               <prod:newShopOrder>YYYYYYYY</prod:newShopOrder>

            </prod:changeProductionContextType>

            <prod:sfcList>ZZZZZZZ</prod:sfcList>

            <prod:comments>comments</prod:comments>

         </mep:Request>

      </mep:changeProduction>

   </soapenv:Body>

</soapenv:Envelope>

There is no userRef tag in 6.1, so check your syntax too. Error messages can be very misleading from webservices.

houssem_temimi1
Participant
0 Kudos

Hello

finally, I successed to launch by using PAPI web service

Thank you

Houssem

stuarta1
Active Participant
0 Kudos

So what was the resolution?

houssem_temimi1
Participant
0 Kudos

hello

I just replace the

manufacturing-services/ProductionService

by

manufacturing-papiservices/ProductionService

it works well the papiservice

I didn't succed to launch it by using manufacturing - services

Houssem

Answers (0)