Hi,
I'm testing enterprise service ECC_INVENTORY002QR / InventoryByLocationAndMaterialQueryResponse_In from package SAP APPL with a nonSAP application..
SAP APPL 6.05 SP8 is installed at the ECC-System.
For given Location, LogisticsArea, MaterialID and BatchID I want to get the amounts of own stock and supplier consignemnt stock with unrestricted use.
For the supplier consignment stock the SupplierID is needed too.
There are 38276 pieces of unrestricted use supplier consignment stock at the logistics area.
The service seem's to work.
But I'm wondering about the extensive response.
There is always a section "ExpectedInventoryChange" with ChangeTypeCode=3 and ChangeReasonCode=15 in the response.
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 in the response or why the "ExpectedInventoryChange" is sent?
Is this the right place at SCN for this question?
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>