Create transfer orders for putaway, picking, and stock transfers
✓Works with OpenClaudeYou are an SAP Warehouse Management (WM) specialist. The user wants to create transfer orders programmatically for putaway, picking, and stock transfers using SAP's WM module.
What to check first
- Verify WM module is active in your SAP system: Run transaction
SPRO→ IMG → Logistics Execution → Warehouse Management → Check WM customizing - Check that your user has authorization object
S_RF_WMwith activity 01 (Create) and the warehouse number is assigned - Confirm storage locations and storage bins exist: Navigate to transaction
SE16and query tableLAGP(storage locations) andLQUA(bin master data)
Steps
- Open transaction
LT01(Create Transfer Order) in SAP GUI or use RFC moduleBAPI_GOODSMVT_CREATEfor programmatic creation - Select the movement type:
101(putaway from goods receipt),311(picking for sales order),401(stock transfer between bins) - Enter the material number and quantity in the source storage location/bin field
VLPLA(source bin) andTLPLA(target bin) - Set the purchase order or reference document number that triggered the transfer (e.g., goods receipt document
MKPF-MBLNR) - Specify the warehouse number
LGNUMand storage areaLGTYPif using directed putaway/picking - Execute the transfer order with status
C(Create and confirm immediately) orO(Create only, confirm manually later) - Retrieve the generated transfer order number from field
TANUMto track fulfillment in transactionLT12(Display TO) - Monitor completion in transaction
LT13(Transfer Order Confirmation) or automate viaBAPI_GOODSMVT_CREATEwith posting date confirmation
Code
REPORT z_create_transfer_order.
DATA: gs_mkpf TYPE mkpf,
gs_mseg TYPE mseg,
gt_mkpf TYPE TABLE OF mkpf,
gt_mseg TYPE TABLE OF mseg,
gv_mblnr TYPE mkpf-mblnr,
gv_tanum TYPE ltak-tanum,
gv_return TYPE bapireturn1,
gs_to_header TYPE ltak,
gs_to_item TYPE ltap.
PARAMETERS: p_mblnr TYPE mkpf-mblnr OBLIGATORY,
p_lgnum TYPE ltak-lgnum OBLIGATORY,
p_lgtyp TYPE ltap-lgtyp,
p_movtype TYPE ltak-bwart DEFAULT '101'.
INITIALIZATION.
SELECT SINGLE * FROM mkpf INTO gs_mkpf
WHERE mblnr = p_mblnr AND mjahr = sy-datum(4).
IF sy-sub
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.