cancel
Showing results for 
Search instead for 
Did you mean: 

api_warehouse_order_task_2

Glyba_Dmitrii
Discoverer
0 Kudos
401

Hello

I need to use API api_warehouse_order_task_2 for cancel task, I use request 

Glyba_1_0-1741944059807.png

In body I add this:

{
    "DirectWhseTaskConfIsAllowed": true
}
 
and have error back from SAP:
Glyba_1_1-1741944148845.png

HTTP request look like:

Glyba_1_2-1741944322520.png

What am I doing wrong?

View Entire Topic
Ajit_Routray
Active Contributor
0 Kudos

Hi @Glyba_Dmitrii ,

Could you please check below in WT/WO document, pass the correct resource in your SAP user and let us know any questions.

Reason for error: your assigned resource with your SAP (API)USER ID is not the same the assigned Resource of WO. 

1. Check the Warehouse Order document of Warehouse Task, is there any resource assigned ?

2. Assign the above resource into your Your SAP API USER. 

Screenshot 2025-03-19 at 11.23.02 AM.pngScreenshot 2025-03-19 at 11.15.30 AM.png

Kind Regards,

Ajit

Glyba_Dmitrii
Discoverer

Hi @Ajit_Routray, Thanks for answer and I know about this way and in documentation about this API we have this recomendation:

Glyba_Dmitrii_0-1742386101776.png

in https://help.sap.com/docs/SAP_S4HANA_CLOUD/c46da892efa14cea8347e9b872199d6f/a4dcec7056134b2fa9b311e5...

We can use unassignment. assignment, get and then post and I think the better will be use get and post 

 

Ajit_Routray
Active Contributor
0 Kudos

Hi Glyba_Dmitrii,

Thank you, One more addition- perhaps APIs are different based on different Product ( S/4 HANA On Primise, S/4 HANA CLoud Private,... etc )  . Please see the link for cancellation API onS/4 HANA On Primise EWM  .

https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/5aadd5aa0ed541e49b1e006d7e17919b/a4dcec7056134b2fa9b...

Kind Regards,

Ajit