on 2021 Feb 18 8:59 AM
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.
Request clarification before answering.
/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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try: /SCWM/TO_CREATE_MOVE_HU
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 8 | |
| 2 | |
| 2 | |
| 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.