on 2025 Jan 07 8:51 AM
Hi all,
I am trying to call action ConfirmWarehouseTaskExact for a existing open Warehouse task in SAP S/4HANA Public Cloud via following code :
const sPathAct = `/WarehouseTask(EWMWarehouse='Z10',WarehouseTask='1000000232',WarehouseTaskItem='0')/com.sap.gateway.srvd_a2x.api_warehouse_order_task_2.v0001.ConfirmWarehouseTaskExact(...)`
const oAction = oModel.bindContext(sPathAct
,undefined //null
,{
"DirectWhseTaskConfIsAllowed": true
}
);
// Execute the action
oAction.invoke(undefined,true).then( function(oResult) {
MessageToast.show("Warehouse task confirmed successfully.");
}).catch(function(oError) {
MessageToast.show(oError.toString());
});
and I am facing following error:
Error: Not a bound action: /WarehouseTask(EWMWarehouse='Z10',WarehouseTask='1000000232',WarehouseTaskItem='0')/com.sap.gateway.srvd_a2x.api_warehouse_order_task_2.v0001.ConfirmWarehouseTaskExact(...)
at l.createCacheAndRequest (ODataContextBinding-dbg.js:650:10)
at ODataContextBinding-dbg.js:256:17
at SyncPromise-dbg.js:314:14
at e (SyncPromise-dbg.js:63:4)
at new r (SyncPromise-dbg.js:230:3)
at r.then (SyncPromise-dbg.js:313:7)
at l._invoke (ODataContextBinding-dbg.js:236:5)
at l.invoke (ODataContextBinding-dbg.js:1413:15)
at c.onMovePallet (MovePalletsNewBinToPallet.controller.js:203:33)
I double checked and the following entity does exist in the S4H backend system:
/sap/opu/odata4/sap/api_warehouse_order_task_2/srvd_a2x/sap/warehouseorder/0001/WarehouseTask(EWMWarehouse='Z10',WarehouseTask='1000000232',WarehouseTaskItem='0')
What could be wrong with my code ?
Thanks!
Br
Mikko
Request clarification before answering.
User | Count |
---|---|
68 | |
15 | |
12 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.