Supply Chain Management Blogs by Members
Learn about SAP SCM software from firsthand experiences of community members. Share your own post and join the conversation about supply chain management.
cancel
Showing results for 
Search instead for 
Did you mean: 
gorbenkoteh
Active Participant

Intro.


In an SAP EWM standard behavior posting changes of stocks within the storage bin is prevented by mixed storage setting, in case there are multiple stocks (multiple HUs) in the particular bin.


Some example errors:

- Mixed storage for storage type &1 (bin &2) failed due to product check, /SCWM/HU_WM160

- Mixed storage for storage type &1 (bin &2) failed due to batch check, /SCWM/HU_WM161

- Mixed storage for storage type &1 (bin &2) failed due to stock type check, /ISCWM/HU_WM162

- Mixed storage for storage type &1 (bin &2) failed due to owner check, /SCWM/HU_WM163

- Mixed storage for storage type &1 (bin &2) failed due to AUoM check, /ISCWM/HU_WM167 [1], [2]



Business case.



Manufacturing processes raw materials into finished products (For example Manufacturing - Pharmaceutical production, finished products - packs of drugs)

For a multitude of reasons - the number of packs in a batch may differ from the plan. Plan for batch of YYY -product - 18,000 pcs, Fact for batch of YYY-product - 17925 pcs.

So we almost always have not complete box in a batch, a "Red" box.

So stock hierarchy can be:

Pallet

  -stock multiple of the box

  -stock in a "Red" box




"Red" box - a commonly used logistic term for not full box, typically a box marked a red color duct tape.



After the transfer to Warehouse stock in a quality-inspection stock

After, positive / negative decisions from a quality team QIE mechanism try posting change stock type and errors from intro can be occurring.



Resolution





If the business processes require allowing the posting changes of several HUs without moving out of the bin (our Business case ), it can be achieved by implementation of a custom enhancement in BADI /SCWM/EX_CORE_PTS_MIX.


For example:





  DATA: lv_tmk_pmat TYPE /scwm/de_hutyp,
lt_huhdr TYPE /scwm/tt_huhdr_int.
IF is_t331-mixcat IS NOT INITIAL.
IF ( is_pack_request-insptyp IS NOT INITIAL AND is_pack_request-inspid IS NOT INITIAL )
OR ( is_item_old-insptyp IS NOT INITIAL AND is_item_old-inspid IS NOT INITIAL ).
CALL FUNCTION '/SCWM/HU_READ'
EXPORTING
iv_appl = 'WME'
iv_guid_hu = is_pack_request-dguid_hu
iv_lgnum = is_t331-lgnum
IMPORTING
* es_huhdr = ls_huhdr
et_huhdr = lt_huhdr
EXCEPTIONS
deleted = 1
not_found = 2
error = 3
OTHERS = 4.
IF sy-subrc = 0.
SELECT low UP TO 1 ROWS
INTO lv_tmk_pmat
FROM tvarvc WHERE name = 'Z_TMK_HU'.
ENDSELECT.
READ TABLE lt_huhdr WITH KEY letyp = lv_tmk_pmat TRANSPORTING NO FIELDS.
IF sy-subrc = 0 AND sy-tfill > 1.
cv_ok = 'X'.
ENDIF.
ENDIF.
ENDIF.
ENDIF.

*where Z_TMK_HU - package material for "Red" box in a STVARV settings




Conclusion


SAP EWM routine task with examples from real life provided.

Links


[1] 25515685 - Posting change prevented by mixed storage settings


[2] Posting Change for Stocks





3 Comments
Labels in this area