Sap pp

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

Sap pp is an AI agent skill from the GitHub repository 5throck/ai-workspace-standards. Use when working on PP module tasks — BOM, routing, production orders, MRP, or work center management. Provides process flows, key table relationships, common query patterns, field notes, SAP quirks, and customizing tables for the PP module.

How to use this skill

Skill file

PP Analyst Context — Production Planning

Load this skill when activating the PP Analyst role. Provides deep domain knowledge for BOM, routing, production orders, and MRP.

Process Flow

MM60 / MD01 (MRP Run)
  └─► MD04 (Stock/Requirement List)
        └─► CO01 (Create Production Order)
              ├─► CO11N (Confirmation)
              │     └─► MIGO 261 (Goods Issue)
              └─► CO02 (Change Production Order)
                    └─► CO15 (Final Confirmation + Goods Receipt)
                          └─► MIGO 101 (Goods Receipt)

Key Table Relationships

MAST (Material-BOM Link)
  └─► STKO (BOM Header)
        └─► STPO (BOM Item)
              └─► MARA (Component Material Master)

PLKO (Routing Header)
  └─► PLSO (Sequence)
        └─► PLPO (Operation)
              └─► CRHD (Work Center Header)

AUFK (Production Order Header)
  └─► AFKO (Production Order MRP Header)
        └─► AFPO (Production Order Item)
              ├─► AFVC (Production Order Operations)
              └─► RESB (Component Requirement)

Common Query Patterns

-- BOM Explosion (Single Level)
SELECT a~matnr AS parent, b~idnrk AS component, b~menge, b~meins, b~postp
  FROM mast AS a JOIN stpo AS b ON a~stlnr = b~stlnr AND a~stlal = b~stlal
  WHERE a~matnr = '<MATERIAL_NUMBER>' AND a~werks = '1000'

-- Production Order Status (In-Progress)
SELECT a~aufnr, a~matnr, a~gamng, a~gmein, b~getri, b~gltri
  FROM aufk AS a JOIN afko AS b ON a~aufnr = b~aufnr
  WHERE a~autyp = '10' AND a~sysst <> 'TECO'
  ORDER BY b~gltri ASCENDING

-- Unconfirmed Operations
SELECT a~aufnr, b~vornr, b~ltxa1, b~wemng, b~rmnga
  FROM afko AS a JOIN afvc AS b ON a~aufnr = b~aufnr
  WHERE b~iedd >= '20260401' AND b~rmnga < b~wemng

-- MRP Stock/Requirement Status (Alternative to MD04)
SELECT matnr, werks, plart, dispo, mabst, eisbe
  FROM marc
  WHERE werks = '1000' AND dismm = 'PD'

Key Field Notes

| Table | Field | Description |

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

| AUFK | SYSST | System Status: REL=Released, CNF=Confirmed, TECO=Technically Completed, DLT=Deleted |

| AFKO | GETRI | Actual Start Date |

| AFKO | GLTRI | Actual Finish Date (Due Date) |

| STPO | POSTP | BOM Item Category: L=Stock Item, N=Non-stock Item |

| RESB | BDMNG | Requirement Quantity |

| RESB | ENMNG | Withdrawn Quantity |

| PLPO | ARBID | Work Center ID (Join with CRHD) |

SAP Quirks & Known Issues

Standard Customizing Tables

| Table | Purpose |

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

| T399D | Production Order Types |

| TC24 | Work Center Category |

| MKAL | Production Version |

| T430 | MRP Controller |

Strategic BAPIs & APIs

Production Order Creation

BAPI: BAPI_PRODORD_CREATE

Production Order Change

BAPI: BAPI_PRODORD_CHANGE

Production Order Release

BAPI: BAPI_PRODORD_RELEASE

Production Order Confirmation

BAPI: BAPI_PRODORD_COMPLETE_CONF

Context

This skill provides the PP Analyst with comprehensive domain knowledge for the Production Planning module in SAP. It is loaded when the active task involves BOM management, routing configuration, production order processing, MRP, or work center management. The skill covers manufacturing process flows, master data structures, query patterns, and standard BAPIs for production operations.

When to Use

Execution Steps

  1. Review the Process Flow section to understand the MRP-to-production-to-GI/GR chain.
  2. Query key tables using the Key Table Relationships section — trace from MAST (BOM) through PLKO (routing) to AUFK/AFKO (production orders).
  3. Apply Common Query Patterns for BOM explosion, production order status, unconfirmed operations, and MRP parameter review.
  4. Check SAP Quirks & Known Issues for BOM alternative handling, parallel sequences, over-confirmation rules, and repetitive manufacturing differences.
  5. Use Standard Customizing Tables to validate production order types, work center categories, production versions, and MRP controllers.
  6. Leverage Strategic BAPIs & APIs for production order creation, change, release, and confirmation.

Output Format

Structured analysis output should include: plant and MRP controller context, production order numbers with status indicators, BOM component lists, routing operation summaries, quantity and date breakdowns, and WIP status. Include capacity utilization and exception message analysis when relevant.

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.