Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Service ECC_INVENTORY002QR - unexpected response content

$
0
0

Hi,

 

I'm testing enterprise service ECC_INVENTORY / InventoryByLocationAndMaterialQueryResponse_In from package SAP APPL with a nonSAP application.

 

http://es-workplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?id=C4BA00F8860E11DB2B24000F20DAC9EF&fragID=&packageid=DE0426DD9B0249F19515001A64D3F462&iv=

 

At the ECC-System SAP APPL 6.05 SP8 is installed.

 

For given Location, LogisticsArea, MaterialID and BatchID I want to get the amounts of own stock and supplier consignemnt stock with unrestricted use.

The SupplierID for the supplier consignment stock  is needed too.

 

In the example there are 38276 pieces of unrestricted use supplier consignment stock of the batch at the logistics area.

 

The service seem's to work.

But I'm wondering about the extensive response.

There are 10 inventory sections in the response for one logistics area and one batch.

 

There is always a section "ExpectedInventoryChange" with ChangeTypeCode=3 and ChangeReasonCode=15.

 

Blocked/Restricted stock is sent 3 times for own stock and 3 times for consignment stock.

 

Has anyone an idea why blocked/restricted stock is sent 3 times or why the "ExpectedInventoryChange" is sent?

 

Request

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/APPL/Global2">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:InventoryByLocationAndMaterialQuery_sync>
         <InventorySelectionByLocationAndMaterial>
            <MainInventoryIndicators>
               <LogisticsAreaInventoryRequestedIndicator>true</LogisticsAreaInventoryRequestedIndicator>
            </MainInventoryIndicators>
            <SpecialInventoryIndicators>
               <SupplierConsignmentInventoryRequestedIndicator>true</SupplierConsignmentInventoryRequestedIndicator>
               <SeparateSupplierConsignmentInventoryBySupplierRequestedIndicator>true</SeparateSupplierConsignmentInventoryBySupplierRequestedIndicator>
            </SpecialInventoryIndicators>
            <Material>
               <ID>27295</ID>
               <BatchID>0003042687</BatchID>
            </Material>
            <Location>
               <InternalID>662L</InternalID>
               <LogisticsAreaID>LLES</LogisticsAreaID>
            </Location>
         </InventorySelectionByLocationAndMaterial>
         <ProcessingConditions>
            <UnlimitedQueryHitsIndicator>true</UnlimitedQueryHitsIndicator>
         </ProcessingConditions>
      </glob:InventoryByLocationAndMaterialQuery_sync>
   </soapenv:Body>
</soapenv:Envelope>

 

Response

 

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP:Header/>
   <SOAP:Body>
      <nm:InventoryByLocationAndMaterialResponse_sync xmlns:nm="http://sap.com/xi/APPL/Global2" xmlns:prx="urn:sap.com:proxy:S02:/1SAI/TASEDC559B282BDB746D3FE:702">
         <Inventory>
            <Location>
               <InternalID>662L</InternalID>
               <Description languageCode="de">Laage</Description>
            </Location>
            <LogisticsArea>
               <ID>LLES</ID>
               <Description languageCode="de">Endmontage SHI-2</Description>
            </LogisticsArea>
            <ExpectedInventoryChange>
               <ExpectedInventoryChangeTypeCode>3</ExpectedInventoryChangeTypeCode>
               <ExpectedInventoryChangeTypeName languageCode="de">Bestandsveränderung erw. eing. Material</ExpectedInventoryChangeTypeName>
               <ExpectedInventoryChangeReasonCode>15</ExpectedInventoryChangeReasonCode>
               <ExpectedInventoryChangeReasonName languageCode="de">In Umlagerung (von Lagerbereich zu Lagerbereich)</ExpectedInventoryChangeReasonName>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <InventoryQuantity unitCode="PCE">0.0</InventoryQuantity>
            </ExpectedInventoryChange>
            <Item>
               <InventoryUsabilityCode>1</InventoryUsabilityCode>
               <InventoryUsabilityName languageCode="de">Frei verwendbar</InventoryUsabilityName>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <Quantity>
                  <InventoryQuantity unitCode="PCE">0.0</InventoryQuantity>
               </Quantity>
            </Item>
            <Item>
               <InventoryUsabilityCode>3</InventoryUsabilityCode>
               <InventoryUsabilityName languageCode="de">Qualitätsprüfung</InventoryUsabilityName>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <Quantity>
                  <InventoryQuantity unitCode="PCE">0.0</InventoryQuantity>
               </Quantity>
            </Item>
            <Item>
               <InventoryUsabilityCode>2</InventoryUsabilityCode>
               <InventoryUsabilityName languageCode="de">Gesperrt</InventoryUsabilityName>
               <AllRestrictedBatchesStockIncludedIndicator>true</AllRestrictedBatchesStockIncludedIndicator>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <Quantity>
                  <InventoryQuantity unitCode="PCE">0.0</InventoryQuantity>
               </Quantity>
            </Item>
            <Item>
               <InventoryUsabilityCode>2</InventoryUsabilityCode>
               <InventoryUsabilityName languageCode="de">Gesperrt</InventoryUsabilityName>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <Quantity>
                  <InventoryQuantity unitCode="PCE">0.0</InventoryQuantity>
               </Quantity>
            </Item>
            <Item>
               <InventoryUsabilityCode>2</InventoryUsabilityCode>
               <InventoryUsabilityName languageCode="de">Gesperrt</InventoryUsabilityName>
               <ReturnsBlockedndicator>true</ReturnsBlockedndicator>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <Quantity>
                  <InventoryQuantity unitCode="PCE">0.0</InventoryQuantity>
               </Quantity>
            </Item>
            <Item>
               <InventoryUsabilityCode>1</InventoryUsabilityCode>
               <InventoryUsabilityName languageCode="de">Frei verwendbar</InventoryUsabilityName>
               <InventorySpecialStockTypeCode>3</InventorySpecialStockTypeCode>
               <InventorySpecialStockTypeName languageCode="de">Konsignation Lief.</InventorySpecialStockTypeName>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <SupplierParty>203621</SupplierParty>
               <Quantity>
                  <InventoryQuantity unitCode="PCE">38276.0</InventoryQuantity>
               </Quantity>
            </Item>
            <Item>
               <InventoryUsabilityCode>3</InventoryUsabilityCode>
               <InventoryUsabilityName languageCode="de">Qualitätsprüfung</InventoryUsabilityName>
               <InventorySpecialStockTypeCode>3</InventorySpecialStockTypeCode>
               <InventorySpecialStockTypeName languageCode="de">Konsignation Lief.</InventorySpecialStockTypeName>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <SupplierParty>203621</SupplierParty>
               <Quantity>
                  <InventoryQuantity unitCode="PCE">0.0</InventoryQuantity>
               </Quantity>
            </Item>
            <Item>
               <InventoryUsabilityCode>2</InventoryUsabilityCode>
               <InventoryUsabilityName languageCode="de">Gesperrt</InventoryUsabilityName>
               <RestrictedUseIndicator>true</RestrictedUseIndicator>
               <InventorySpecialStockTypeCode>3</InventorySpecialStockTypeCode>
               <InventorySpecialStockTypeName languageCode="de">Konsignation Lief.</InventorySpecialStockTypeName>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <SupplierParty>203621</SupplierParty>
               <Quantity>
                  <InventoryQuantity unitCode="PCE">0.0</InventoryQuantity>
               </Quantity>
            </Item>
            <Item>
               <InventoryUsabilityCode>2</InventoryUsabilityCode>
               <InventoryUsabilityName languageCode="de">Gesperrt</InventoryUsabilityName>
               <InventorySpecialStockTypeCode>3</InventorySpecialStockTypeCode>
               <InventorySpecialStockTypeName languageCode="de">Konsignation Lief.</InventorySpecialStockTypeName>
               <MaterialID>27295</MaterialID>
               <MaterialDescription languageCode="de">RETAINER (CODE I)</MaterialDescription>
               <BatchID>0003042687</BatchID>
               <SupplierParty>203621</SupplierParty>
               <Quantity>
                  <InventoryQuantity unitCode="PCE">0.0</InventoryQuantity>
               </Quantity>
            </Item>
         </Inventory>
         <ProcessingConditions>
            <ReturnedQueryHitsNumberValue>1</ReturnedQueryHitsNumberValue>
            <MoreElementsAvailableIndicator>false</MoreElementsAvailableIndicator>
         </ProcessingConditions>
         <Log>
            <BusinessDocumentProcessingResultCode>3</BusinessDocumentProcessingResultCode>
         </Log>
      </nm:InventoryByLocationAndMaterialResponse_sync>
   </SOAP:Body>
</SOAP:Envelope>

 

changed topic from external service name to internal service name


Viewing all articles
Browse latest Browse all 8695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>