Sap le

From 5throck/ai-workspace-standards · View interactive version

Sap le is an AI agent skill from the GitHub repository 5throck/ai-workspace-standards. Use when working on LE module tasks — shipping, transport, warehouse management, delivery processing, or handling units. Provides process flows, key table relationships, common query patterns, field notes, SAP quirks, and customizing tables for the LE module.

How to use this skill

Skill file

LE Analyst Context — Logistics Execution

Load this skill when activating the LE Analyst role. Provides deep domain knowledge for shipping, transport, and warehouse processes.

Process Flow

VL01N (Create Delivery ← SD Sales Order)
  └─► VL02N (Picking Instruction / Quantity Confirmation)
        ├─► LT01 (Create Transfer Order — WM Warehouse)
        │     └─► LT0A (Confirm TO)
        └─► VL02N PGI (Post Goods Issue)
              └─► VT01N (Create Shipment)
                    └─► VT02N (Execute Shipment / Check-in & Check-out)

Key Table Relationships

LIKP (Delivery Header)
  ├── LIPS (Delivery Item)
  │     └── VBFA (Document Flow → Sales Order Backtrace)
  └── VEKP (Handling Unit Header)
        └── VEPO (Handling Unit Item)

VTTK (Shipment Header)
  └── VTTP (Shipment Stage)
        └── VTTS (Shipment Stage Stop)
              └── VTSP (Stop-Delivery Assignment)

LTAK (Transfer Order Header — WM)
  └── LTAP (Transfer Order Item)
        └── LGPLA (Storage Location Info)

Common Query Patterns

-- Deliveries with Incomplete Goods Issue Search
SELECT vbeln, erdat, kunnr, lfart, wbstk
  FROM likp
  WHERE wbstk <> 'C' AND erdat >= '20260101'
  ORDER BY erdat DESCENDING

-- Handling Unit Content Search
SELECT a~exidv, a~brgew, a~gewei, b~matnr, b~lgmng, b~meins
  FROM vekp AS a JOIN vepo AS b ON a~venum = b~venum
  WHERE a~vpobj = '02' AND a~vpobjkey = '<DELIVERY_NUMBER>'

-- Delivery Mapping per Shipment
SELECT a~tknum, a~tpbez, b~vbeln AS delivery, c~vstel
  FROM vttk AS a
  JOIN vttp AS b ON a~tknum = b~tknum
  JOIN vtsp AS c ON b~tknum = c~tknum AND b~tsnum = c~tsnum
  WHERE a~tpbez >= '20260501'

-- Unconfirmed WM Transfer Orders
SELECT a~tanum, a~lgnum, a~bdatu, b~matnr, b~sollm, b~istme
  FROM ltak AS a JOIN ltap AS b ON a~lgnum = b~lgnum AND a~tanum = b~tanum
  WHERE a~kquit = ' ' AND a~bdatu >= '20260101'

Key Field Notes

| Table | Field | Description |

|-------|-------|-------------|

| LIKP | WBSTK | Goods Issue Status: =Not Processed, A=Partial, C=Completed |

| LIKP | KODAT | Picking Date |

| LIPS | PIKMG | Picking Quantity |

| VEKP | EXIDV | External HU Number (Barcode) |

| VTTK | TKNUM | Shipment Number |

| LTAK | KQUIT | TO Confirmation Status: =Unconfirmed, Q=Confirmed |

SAP Quirks & Known Issues

Standard Customizing Tables

| Table | Purpose |

|-------|---------|

| TVLK | Delivery Types |

| T173 | Shipping Conditions |

| T001L | Storage Location (IM) |

| T300 | Warehouse Number (WM) |

| T301 | Storage Type (WM) |

Strategic BAPIs & APIs

Outbound Delivery Change (Picking / PGI)

BAPI: BAPI_OUTB_DELIVERY_CHANGE

Outbound Delivery Goods Issue Confirmation / Cancellation

BAPI: BAPI_OUTB_DELIVERY_CONFIRM_DEC

WM Transfer Order Creation

BAPI: BAPI_WHSE_TO_CREATE

WM Transfer Order Confirmation

BAPI: BAPI_WHSE_TO_CONFIRM

Context

This skill provides the LE Analyst with comprehensive domain knowledge for the Logistics Execution module in SAP. It is loaded when the active task involves shipping, transport management, warehouse operations (WM), delivery processing, or handling unit management. The skill covers outbound logistics flows, WM integration, query patterns, and standard BAPIs for delivery and warehouse operations.

When to Use

Execution Steps

  1. Review the Process Flow section to understand the delivery-to-shipment-to-WM chain.
  2. Query key tables using the Key Table Relationships section — trace from LIKP/LIPS (delivery) through VTTK/VTTP (shipment) to LTAK/LTAP (WM).
  3. Apply Common Query Patterns for incomplete deliveries, handling unit content, shipment mapping, and unconfirmed transfer orders.
  4. Check SAP Quirks & Known Issues for PGI reversal behavior, WM-IM integration sequence, EWM vs WM differences, and HU nesting.
  5. Use Standard Customizing Tables to validate delivery types, shipping conditions, and warehouse/storage configuration.
  6. Leverage Strategic BAPIs & APIs for delivery change, goods issue confirmation, and WM transfer order creation/confirmation.

Output Format

Structured analysis output should include: delivery and shipment reference numbers, warehouse and storage location context, picking and GI status indicators, handling unit content summaries, and transport stage timelines. Include WM transfer order status when warehouse operations are in scope.

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.