on 2025 Feb 10 6:38 AM
Hi Experts,
I have a problem when using FM /SCWM/TO_CREATE_WHR for creating Putaway warehouse task.
Scenario is like below
<ls_create_whr_putaway>-rdoccat "(Inbound Delivery Doc Cat)
<ls_create_whr_putaway>-rdocid "(Inbound Delivery Doc ID)
<ls_create_whr_putaway>-ritmid "(Inbound Delivery Item ID)
<ls_create_whr_putaway>-nlpla "(Target S.Bin)
<ls_create_whr_putaway>-nltyp "(Target S.Type)
<ls_create_whr_putaway>-nlber "(Target HU)
CALL FUNCTION '/SCWM/TO_CREATE_WHR'
EXPORTING
iv_lgnum = '0100'
iv_process = wmegc_whr_proc_pu
iv_to_init = 'X'
iv_bname = sy-uname
it_create_whr = lt_create_putaway_single
iv_update_task = ' '
iv_commit_work = abap_true
IMPORTING
ev_tanum = lv_wt_result
et_ltap_vb = lt_ltap_vb
et_bapiret = lt_bapiret
ev_severity = lv_severity.
However, it doesn't worked for the case which 1 delivery item has more than 1 HU, which each HU has stored in the different bin.
The error is:
No mixed storage permitted in storage type WH00. Maximum 1 HU per bin.
anyone have an idea which parameter that I might need to maintain, in order to create a putaway warehouse task for each HU?
Thanks!
Fanuel
Request clarification before answering.
Hi Fanuel,
this must have something to do with the storage type customizing SPRO -> EWM -> Master Data -> Define storage type
I think in your storage type WH00 is mixed stock not allowed on one bin.
What is the result if you leave <ls_create_whr_putaway>-nlber empty? Would the system find another bin?
Regards
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Florian, Thanks for your reply.
Yes, the Storage Type is mean to be only have 1 HU.
for my case which 1 delivery item has 2 HU, i did Loop the HU, then for each HU i assigned to the different Warehouse Type, and Storage Bin. which I did have 1 internal table with 2 lines.
to be more clear, below is the code inside the loop
LOOP AT lt_delivery_hu_data INTO ls_delivery.
APPEND INITIAL LINE TO lt_create_putaway_single ASSIGNING FIELD-SYMBOL(<ls_create_whr_putaway>).
<ls_create_whr_putaway>-rdoccat = ls_delviery-doccat. "(Inbound Delivery Doc Cat)
<ls_create_whr_putaway>-rdocid = ls_delivery-docid. "(Inbound Delivery Doc ID)
<ls_create_whr_putaway>-ritmid = ls_delivery-itemid. "(Inbound Delivery Item ID)
<ls_create_whr_putaway>-nlpla = ls_delivery-lgpla. "(Target S.Bin)
<ls_create_whr_putaway>-nltyp = ls_delivery-lgtyp. "(Target S.Type)
<ls_create_whr_putaway>-nlber = ls_delivery-huident. "(Target HU)
CALL FUNCTION '/SCWM/TO_CREATE_WHR'
EXPORTING
iv_lgnum = is_data_to_process-lgnum
iv_process = wmegc_whr_proc_pu
iv_to_init = 'X'
iv_bname = sy-uname
it_create_whr = lt_create_putaway_single
iv_update_task = ' '
iv_commit_work = lv_commit
IMPORTING
ev_tanum = lv_wt_result
et_ltap_vb = lt_ltap_vb
et_bapiret = lt_bapiret
ev_severity = lv_severity
ENDLOOP.
My aim is to create a single putaway warehouse task for each HU, is that the correct approach?
or Should I remove the Target S.Bin, S. Type and HU from the parameters so the system will determine itself?
User | Count |
---|---|
9 | |
5 | |
2 | |
2 | |
1 | |
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.