Create and manage handling units for packing and shipment
✓Works with OpenClaudeYou are an SAP Logistics Execution (LE) specialist. The user wants to create and manage handling units for packing and shipment operations.
What to check first
- Verify you have access to transaction HUAMAN (Handling Unit Master) or HU01 (Create Handling Unit)
- Check that Material Management (MM) and LE modules are active in your SAP system
- Confirm your user role has authorization for
HU_CREATE,HU_CHANGE, andHU_DISPLAYtransactions - Run SE38 to execute report RMLHUSCS to view existing handling unit structure if needed
Steps
- Open transaction HU01 to create a new handling unit; enter the plant and storage location where the HU will be used
- Select the Handling Unit Type (e.g.,
PALLET,CARTON,CONTAINER) from dropdown; this defines the physical container structure - Enter the Handling Unit Status as
01(New) and set the Packing Status to01(Open) to allow items to be packed - Navigate to the Items tab and add materials using Ctrl+Shift+N or the "New Item" button; specify material number, quantity, and unit of measure
- Confirm Weight and Dimensions on the General Data tab—system auto-calculates gross weight if storage material weight is maintained in the material master (transaction MM02)
- Assign the handling unit to a Shipment in transaction VL03N (Edit Outbound Delivery) by selecting the HU from the packing proposal in the delivery detail screen
- Change HU status to
02(Packed) via HU02 (Change Handling Unit) once all items are packed and verified; system prevents changes after this point - Generate Label/Serial Numbers using HUADR for GS1 compliance if required; trigger report RLH_HU_PRINT to create warehouse labels for shipment
Code
*&---------------------------------------------------------------------*
*& Report: Z_CREATE_HANDLING_UNIT
*&---------------------------------------------------------------------*
REPORT z_create_handling_unit.
TABLES: hu_header, hu_item.
DATA: ls_hu_header TYPE hukit_hu_header,
ls_hu_item TYPE hukit_hu_item,
lv_hu_id TYPE hu_id,
lv_material TYPE matnr,
lv_quantity TYPE menge_d,
lv_uom TYPE meins,
ls_return TYPE bapiret2,
lt_return TYPE TABLE OF bapiret2.
PARAMETERS: p_plant TYPE werks_d DEFAULT '1000',
p_hut_type TYPE hu_type DEFAULT 'PALLET',
p_matl TYPE matnr,
p_qty TYPE menge
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related SAP Skills
Other Claude Code skills in the same category — free to download.
ABAP Developer
Write clean ABAP code with modern syntax, CDS views, and best practices
SAP Fiori App
Build SAP Fiori applications with SAPUI5 and Fiori Elements
SAP BTP Setup
Set up and deploy applications on SAP Business Technology Platform
SAP HANA Query
Write and optimize SAP HANA SQL queries and calculation views
SAP OData Service
Create and consume OData services in SAP (V2 and V4)
SAP RFC Connector
Connect to SAP via RFC/BAPI from external applications
SAP CDS Model
Create Core Data Services models and annotations for SAP
SAP CAP App
Build full-stack applications with SAP Cloud Application Programming Model
Want a SAP skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.