cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM/BADI to create warehouse task

hasada
Product and Topic Expert
Product and Topic Expert
0 Likes
9,130

Hello,

What function modules / BADIs can I use to create HU warehouse task? Looks like /SCWM/TO_CREATE can be used, but it is not released in SAP (1909 or later). I'm guessing it may be removed in the future.

Does anyone know if there are any other FM/BADIs to be used to create WT with HU? It is really appreciated if any advice.

Accepted Solutions (0)

Answers (3)

Answers (3)

j_blohm
Active Participant
0 Likes

/SCWM/TO_CREATE is the way to go, it's not released but there's no such thing as a BAPI except for the WT API in the cloud version (https://api.sap.com/api/API_WAREHOUSE_ORDER_TASK/resource).

You could also use /SCWM/TO_CREATE_INT instead, but bear in mind you will have to call /SCWM/CL_TM=>CLEANUP( ) as well as /SCWM/TO_POST yourself.

If you have to create multiple WTs one by one (whyever that should be the case), go with /SCWM/TO_CREATE_INT in a loop and call /SCWM/TO_POST afterwards, just once. If you can create them at once, use /SCWM/TO_CREATE and pass them as a table.

You should pass the WTCODE, otherwise you may experience unexpected results. Also, as the others have already posted, if you have to move an HU, use /SCWM/TO_CREATE_MOVE_HU.

Andrey_Andriyan1
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Asada,

First idea coming to my mind while reading your question is to check Functional Group of FM /SCWM/TO_CREATE, and here I see a few more FM-s available for WT creation:

/SCWM/TO_CREATE_MOVE_HU Generate Warehouse Task for Moving HUs

/SCWM/TO_CREA_HU_INT Generate Warehouse Task with Multiple Items

/SCWM/TO_CREA_INT Generate Warehouse Task with Multiple Items

However it's not clear why you see any of these objects inactive or expect their deactivation. As these objects are deep in the core I hardly believe that they will not be supported (or deactivated) in the future.

Regards,

Andrey

Private_Member_324719
Participant
0 Likes

Hi,

You can try: /SCWM/TO_CREATE_MOVE_HU

hasada
Product and Topic Expert
Product and Topic Expert
0 Likes

Thanks, I've just checked the function module in SE37, I realized that it is not externally released. But can I use it in the future.