cancel
Showing results for 
Search instead for 
Did you mean: 

ItemUpdate Webservice with alternates

Former Member
0 Kudos

Hi,

I have a need to start using Item alternates from our ERP system (non-SAP).
I am using version 6.0.4.22.

I tried to use the tag <Me:ItemAlternateList> in the ItemService.UpdateItem method,
but for some reason I never get the Alternate item to be set as enabled or the valid start and valid end filled with any values.

I have attached a screenshot of how the material maintenance screen looks after the web-service has run.

Can anyone try this and see if you can replicate the issue?

This is the web-service message used.

<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:ItemUpdateRequest_sync>

         <me:Item>

            <me:Item>EPN0005</me:Item>

            <me:Revision>0</me:Revision>

            <me:SiteRef>

               <me:Site>TEST1</me:Site>

            </me:SiteRef>

            <me:ItemType>P</me:ItemType>

            <me:LotSize>99999</me:LotSize>

            <me:QuantityRestriction>A</me:QuantityRestriction>

            <me:StatusRef>

               <me:Status>201</me:Status>

            </me:StatusRef>

            <me:Description>N,CA_EL,TA,35V15UF</me:Description>

            <me:AssyDataTypeRef>

               <me:AssyDataType>INVENTORY_ID</me:AssyDataType>

            </me:AssyDataTypeRef>

            <me:InventoryAssyDataTypeRef>

               <me:AssyDataType>RECEIVING</me:AssyDataType>

            </me:InventoryAssyDataTypeRef>

            <me:CreateTrackableSFC>N</me:CreateTrackableSFC>

            <me:CurrentRevision>true</me:CurrentRevision>

            <me:ItemAlternateList>

               <me:ItemAlternate>

                  <me:AlternateItemRef>

                     <me:Item>CPN0005</me:Item>

                     <me:Revision>#</me:Revision>

                     <me:Substitute>true</me:Substitute>

                     <me:ItemRef>

                       <me:Item>EPN0005</me:Item>

                       <me:Revision>0</me:Revision>

                     </me:ItemRef>

                     <me:ValidStart daylightSavingTimeIndicator="false">2014-06-17T00:00:00Z</me:ValidStart>

                     <me:ValidEnd daylightSavingTimeIndicator="false">2099-01-01T00:00:00Z</me:ValidEnd>

                  </me:AlternateItemRef>

                  <me:Sequence>1</me:Sequence>

               </me:ItemAlternate>

            </me:ItemAlternateList>

         </me:Item>

      </me:ItemUpdateRequest_sync>

   </soapenv:Body>

</soapenv:Envelope>

Br,

Johan

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos


Hi Johan,

In 6.0, ERP Alternates are created as a regular BOM Components. This was changed for 6.1 to get ERP Alternates created in BOM.

And ItemService is not used by ERP Integration - there is a dedicated WS for this.

So, it is likely that this feature of ItemService does not work in 6.0 at all.

Regards,

Sergiy

Message was edited by: Sergiy Katerinich