cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create and Confirm Warehouse Task in one step using API?

Amod_V
Explorer
0 Kudos
344

Hello Experts,

Seeking help from someone who came across this issue. I have copied S999 WPT and ticked both "Confirm Immediately" and "Propose Confirmation" but looks like this only help if you are creating WT in the foreground. 

I am calling api_warehouse_order_task_2/srvd_a2x to create and hoping it should just confirm WT automatically by above config. I have also tried using separate call SAP__self.ConfirmWarehouseTaskExact to confirm but now getting error and system forcing me to assign resource etc. which I believe is not required as we are not using Warehouse Orders nor RF. 

My requirement is simple, want to create WT via api and confirm immediately and hoping this can be achieved by config.

Thanks for your input. 

View Entire Topic
GeovanaLettnin
Product and Topic Expert
Product and Topic Expert

Dear Amod_V,

In SAP S/4HANA Cloud, you can create and confirm a Warehouse Task (WT) in one step using the API ‘api_warehouse_order_task_2/srvd_a2x’. However, the ‘Confirm Immediately’ and ‘Propose Confirmation’ settings in the Warehouse Process Type (WPT) only apply when creating the WT in the foreground, not when using the API.

If you’re encountering errors when trying to confirm the WT using the ‘SAP__self.ConfirmWarehouseTaskExact’ call, it might be because the system is expecting a resource to be assigned. Even if you’re not using Warehouse Orders or RF, the system might still require a resource for confirmation. Unfortunately, there isn’t a configuration setting that allows you to bypass this requirement when using the API. You might need to assign a dummy resource or use a different method to achieve your requirement of creating and immediately confirming a WT via API.

If it's not this message you are receiving, if you could share the message here with us, then I can check if something else could be missing to help with this confirmation. 

Thank you and best regards,

Geovana

Christian_Ries
Product and Topic Expert
Product and Topic Expert
In addition I can share, that we are working on offering an additional parameter for this API which will allow to confirm the warehouse task even without resource assignment once this parameter is set. This will probably be delivered with 2502. This is plan only, subject to change.