SAP Knowledge Base Article - Public

3349457 - Runtime Errors ASSERTION_FAILED with ABAP Program /SCWM/SAPLHU_TO_UPD

Symptom

Dump occurs when confirm warehouse task or do packing at APP Pack Warehouse Stock.

Dump information is like below:

Category ABAP programming error
Runtime Errors ASSERTION_FAILED
ABAP Program /SCWM/SAPLHU_TO_UPD
Application Component SCM-EWM-WOP

Short Text:  The ASSERT condition was violated.

Source code is like below:

          IF ls_capa-weight IS NOT INITIAL.
            ASSERT <dlagp>-unit_w = ls_capa-unit_w.
            <dlagp>-weight = <dlagp>-weight + ls_capa-weight.
          ENDIF.

LS_CAPA-UNIT_W KG
<DLAGP>-UNIT_W

Environment

SAP S/4HANA Cloud System

Cause

The source bin or destination bin's weight Unit(/SCWM/LAGP - UNIT_W) is empty which is not expected.

The storage bins can be created massively with Migration successfully but no units are updated to the bins. It is because the migration process begins even warehouse setup is not completed yet.

Resolution

Below is steps for single storage bin.

  1. Cancel or confirm all open WTs that have the issue storage bins as source or destination bin
  2. Create several temporary bins, e.g. GR-AREA-TEMP.
  3. Move all stock with WTs from issue storage bins to GR-AREA-TEMP (e.g. out of *Warehouse Monitor)
  4. Make sure to confirm the WTs for step 3
  5. Delete issue storage bins using *Edit Storage Bins
  6. Re-create storage bin using *Create Storage Bins
  7. Move all stock with WTs from the temporary bins like GR-AREA-TEMP to the new created bins(e.g. out of *Warehouse Monitor)
  8. Make sure to confirm the WTs for step 7
  9. Delete empty temp storage bins GR-AREA-TEMP using *Edit Storage Bins
  10. Verify in *Warehouse Monitor that the new storage bins have unit of weight

If the storage bins are created massively with migration tool and there are massive stock migrated into the storage bins, please cancel the stock upload with APP "Manage Warehouse Documents" then delete the bin massively with app "Mass Edit Storage Bins". Then set up necessary activities such as "Define Warehouse Attributes" and "Set Warehouse Address"before initiating the migration again.

Keywords

LS_CAPA-UNIT_W, <DLAGP>-UNIT_W, ASSERT condition, Dump, Warehouse Task, ST22, /SCWM/LAGP - UNIT_W , KBA , SCM-EWM-WOP-2CL , Warehouse Order Processing (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions