on 2022 Nov 28 5:28 AM
Hi,
Our current application using deprecated UI /sap/opu/odata/sap/API_WHSE_PHYSINVENTORYITEM for cycle count in EWM Warehouse Management workflow
We like to replace the deprecated API by the Active API sap/opu/odata4/sap/api_whse_physinvtryitem_2/srvd_a2x/sap/whsephysicalinventorydoc/0001/
Deprecated API
--------------------
1st url -
2nd url -
https://<host>/sap/opu/odata/sap/API_WHSE_PHYSINVENTORYITEM/WhsePhysicalInventoryItem(PhysicalInventoryDocumentUUID=guid'fa163e88-10c5-1eec-87f7-7deee98c3222',PhysicalInventoryItemNumber='1')/to_WhsePhysicalInventoryCntItem
BATCH REQUEST
=============
URL : https://<host>/sap/opu/odata/sap/API_WHSE_PHYSINVENTORYITEM/$batch
Batch payload
--batch
Content-Type: multipart/mixed; boundary=changeset
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
PUT WhsePhysicalInventoryItem(PhysicalInventoryDocumentUUID=guid'fa163e88-10c5-1eec-87f7-7deee98c3222',PhysicalInventoryItemNumber='1') HTTP/1.1
Content-Type: application/json
If-match: *
{"PhysicalInventoryDocumentUUID":"fa163e88-10c5-1eec-87f7-7deee98c3222","PhysicalInventoryItemNumber":"1","PhysicalInventoryDocNumber":"6000067","PhysicalInventoryDocYear":"2021","PhysicalInventoryDocumentType":"CC","ReasonForPhysInvtryDifference":"STD","PriorityCode":"0","PhysicalInventoryStatusText":"COUN","PhysInventoryCrtnUTCDateTime":"/Date(1632765257489+0000)/","PInvCountedUTCDateTime":"/Date(1657307772000+0000)/","PhysicalInventoryCountUserName":"Zebra_hh2","WarehouseOrder":"2000003000","PInvDocumentItemIsPrinted":true,"PhysicalInventoryIsBlock":true,"PInvBookQuantityIsFreeze":false,"Warehouse":"Z254","StorageType":"Z008","StorageBin":"01B01","PhysicalInventoryArea":"Z254_Z008","ActivityArea":"Z008","ProductUUID":"fa163e88-10c5-1ed9-8f8f-0f15f93bc95d","Product":"7905948","BatchUUID":"00000000-0000-0000-0000-000000000000","Batch":"","StockType":"F","StockUsage":"","StockOwner":"US1710","StockOwnerName":"DynaEnergetics US Inc.","EntitledToDisposeParty":"US1710","NameOfEntitledToDisposeParty":"DynaEnergetics US Inc.","StockDocumentCategory":"","StockDocumentNumber":"","StockItemNumber":"0","WBSElementExternalID":"","PhysicalInventoryRefDocYear":"2021","PhysicalInventoryRefDocNumber":"6000066","PhysicalInventoryRefDocItem":"1","PInvFreeDefinedRefText":"","PInvItemChgUTCDateTime":"/Date(1668685678471+0000)/"}
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
PUT WhsePhysicalInventoryCountItem(PhysicalInventoryDocumentUUID=guid'fa163e88-10c5-1eec-87f7-7deee98c3222',PhysicalInventoryItemNumber='1',LineIndexOfPInvItem=2,PInvQuantitySequence=1) HTTP/1.1
Content-Type: application/json
If-match: *
{"PhysicalInventoryDocumentUUID":"fa163e88-10c5-1eec-87f7-7deee98c3222","PhysicalInventoryItemNumber":"1","LineIndexOfPInvItem":2,"PInvQuantitySequence":1,"PhysicalInventoryItemLevel":1,"PInvItemParentType":"L","StorageBin":"01B01","StorageType":"Z008","ParentHandlingUnitNumber":"","PhysicalInventoryItemType":"S","HandlingUnitNumber":"","Product":"7905948","ProductUUID":"fa163e88-10c5-1ed9-8f8f-0f15f93bc95d","BatchUUID":"00000000-0000-0000-0000-000000000000","Batch":"","SerialNumberRequiredLevel":"","StockType":"F","StockOwner":"US1710","StockOwnerPartnerRole":"BP","StockUsage":"","EntitledToDisposeParty":"US1710","EntitledToDisposePartnerRole":"BP","StockDocumentCategory":"","StockDocumentNumber":"","StockItemNumber":"0","WBSElementExternalID":"","DocumentReltdStockDocCat":"","WhseQualityInspectionType":"","QualityInspectionDocUUID":"00000000-0000-0000-0000-000000000000","StockIdentificationNumber":"","DocumentReltdStockDocUUID":"00000000-0000-0000-0000-000000000000","DocumentReltdStoShow more
Active UI tried
-----------------
1st url -
2nd url -
https://<host>/sap/opu/odata4/sap/api_whse_physinvtryitem_2/srvd_a2x/sap/whsephysicalinventorydoc/0001/WhsePhysicalInventoryItem(EWMWarehouse='Z254',PhysicalInventoryDocNumber='6000067',PhysicalInventoryDocYear='2021',PhysicalInventoryItemNumber='1')/_WhsePhysicalInventoryCntItem
BATCH REQUEST
=============
Batch payload
--batch
Content-Type: multipart/mixed; boundary=changeset
Odata-Version: 4.0
Odata-MaxVersion: 4.0
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
Content-ID: 1
POST WhsePhysicalInventoryItem(EWMWarehouse='Z254',PhysicalInventoryDocNumber='6000067',PhysicalInventoryDocYear='2021',PhysicalInventoryItemNumber='1') HTTP/1.1
Content-Type: application/json
If-match: W/"SADL-202211171201558654740C~20221117120155.8654740"
{"EWMWarehouse":"Z254","PhysicalInventoryDocNumber":"6000067","PhysicalInventoryDocYear":"2021","PhysicalInventoryItemNumber":"1","PhysicalInventoryDocumentUUID":"fa163e88-10c5-1eec-87f7-7deee98c3222","PhysicalInventoryDocumentType":"CC","EWMPhysInvtryDifferenceReason":"STD","EWMPhysicalInventoryPriority":"0","PhysicalInventoryStatusText":"COUN","PhysInventoryCrtnUTCDateTime":"2021-09-27T17:54:17.489302Z","PInvCountedUTCDateTime":"2022-07-08T19:16:12Z","PhysicalInventoryCountUserName":"Zebra_hh2","WarehouseOrder":"2000003000","PInvDocumentItemIsPrinted":true,"PhysicalInventoryIsBlock":true,"PInvBookQuantityIsFreeze":false,"EWMStorageType":"Z008","EWMStorageBin":"01B01","PhysicalInventoryArea":"Z254_Z008","ActivityArea":"Z008","ProductUUID":"fa163e88-10c5-1ed9-8f8f-0f15f93bc95d","Product":"7905948","BatchUUID":"00000000-0000-0000-0000-000000000000","Batch":"","EWMStockType":"F","EWMStockUsage":"","EWMStockOwner":"US1710","StockOwnerName":"DynaEnergetics US Inc.","EntitledToDisposeParty":"US1710","NameOfEntitledToDisposeParty":"DynaEnergetics US Inc.","StockDocumentCategory":"","StockDocumentNumber":"","StockItemNumber":"0","WBSElementExternalID":"","WBSElementInternalID":"0","SpecialStockIdfgSalesOrder":"","SpecialStockIdfgSalesOrderItem":"0","PhysicalInventoryRefDocYear":"2021","EWMRefPhysicalInventoryDoc":"6000066","PhysicalInventoryRefDocItem":"1","PInvFreeDefinedRefText":"","PInvItemChgUTCDateTime":"2022-11-17T12:01:55.865474Z","SAP__Messages":[]}
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
Content-ID: 2
POST WhsePhysicalInventoryCountItem(EWMWarehouse='Z254',PhysicalInventoryDocNumber='6000067',PhysicalInventoryDocYear='2021',PhysicalInventoryItemNumber='1',LineIndexOfPInvItem=2,PInvQuantitySequence=1) HTTP/1.1
Content-Type: application/json
If-match: W/"SADL-202211171201558654740C~20221117120155.8654740"
{"@odata.etag":"W/\"SADL-202211171201558654740C~20221117120155.8654740\"","EWMWarehouse":"Z254","PhysicalInventoryDocNumber":"6000067","PhysicalInventoryDocYear":"2021","PhysicalInventoryItemNumber":"1","LineIndexOfPInvItem":2,"PInvQuantitySequence":1,"PhysicalInventoryItemLevel":1,"PInvItemParentType":"L","EWMStorageBin":"01B01","EWMStorageType":"Z008","ParentHandlingUnitNumber":"","PhysicalInventoryItemType":"S","HandlingUnitNumber":"","Product":"7905948","ProductUUID":"fa163e88-10c5-1ed9-8f8f-0f15f93bc95d","BatchUUID":"00000000-0000-0000-0000-000000000000","Batch":"","SerialNumberRequiredLevel":"","EWMStockType":"F","EWMStockOwner":"US1710","StockOwnerPartnerRole":"BP","EWMStockUsage":"","EntitledToDisposeParty":"US1710","EntitledToDisposePartnerRole":"BP","StockDocumentCategory":"","StockDocumentNumber":"","StockItemNumber":"0","WBSElementExternalID":"","WBSElementInternalID":"0","SpecialStockIdfgSalesOrder":"","SpecialStockIdfgSalesOrderItem":"0","DocumentReltdStockDocCat":"","WhseQualityInspectionType":"","QualityInspectionDocUUID":"00000000-0000-0000-0000-000000000000","StockIdentificationNumber":"","DocumentReltdStockDocUUID":"00000000-0000-0000-0000-000000000000","DocumentReltdStockDocItemUUID":"00000000-0000-0000-0000-000000000000","WhseTaskGoodsReceiptDateTime":"2019-09-16T17:10:45Z","ShelfLifeExpirationDate":null,"CountryOfOrigin":"","MatlBatchIsInRstrcdUseStock":false,"HndlgUnitItemCountedIsComplete":false,"HndlgUnitItemCountedIsEmpty":false,"HndlgUnitItemCountedIsNotExist":false,"PackagingMaterial":"","HandlingUnitType":"","EWMStorageBinIsEmpty":false,"PInvIsZeroCount":false,"RequestedQuantityUnit":"PC","RequestedQuantity":"10","PInvItemChgUTCDateTime":"2022-11-17T12:01:55.865474Z","SAP__Messages":[]}
--changeset--
--batch--
Request clarification before answering.
Dear Arunava,
Could you please check the new version of the API Warehouse Physical Inventory (A2X)? Checking the links you are going to see that this one is not depreciated, it's with the activated status.
Please check below these two important links that are updated with the new version, and try to use one of the following options in the API reference according to your need.
API Business Hub - Warehouse Physical Inventory (A2X)
APIs for Warehousing - Warehouse Physical Inventory (A2X)
Best regards,
Geovana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
5 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.