Generate quality certificates for outbound deliveries
✓Works with OpenClaudeYou are a SAP QM (Quality Management) specialist. The user wants to generate quality certificates for outbound deliveries in SAP.
What to check first
- Run transaction
QS41in SAP to verify QM is active for your plant and material - Check that the material master (transaction
MM03) has QM control key assigned in the Sales Organization data - Verify that inspection lot creation is configured via
IMG > Quality Management > Quality Planning > Inspection Lot Creation
Steps
- Open transaction
DL/N(Delivery) orVL02N(Edit Outbound Delivery) and locate the delivery document for which you need a quality certificate - Navigate to the delivery line items and confirm the material has a QM control key and that inspection is required
- Create an inspection lot using transaction
QA32(Create Inspection Lot) with reference to the delivery number (select document type "Delivery" in the initial screen) - In the inspection lot, verify the sampling procedure and lot size are correctly populated from the QM master data
- Execute inspection activities by clicking the "Inspection" button, then record results in the characteristic results section — mark each characteristic as accepted or rejected
- Complete the inspection lot with status "Accepted" (use the green checkmark icon or menu path
Lot > Complete Lot) - Generate the quality certificate using transaction
QS32(Print Certificate) — select your delivery inspection lot and choose certificate type (usually "Material Certificate" or "Test Certificate") - Execute the print preview to verify certificate content, then print to PDF or hardcopy as required for shipment
Code
*& Quality Certificate Generation Program
*& SAP QM - Quality Certificates for Outbound Deliveries
REPORT z_qm_quality_certificate.
TABLES: likp, lips, qals, qave.
DATA: lt_delivery TYPE TABLE OF likp,
ls_delivery TYPE likp,
lt_insp_lot TYPE TABLE OF qals,
ls_insp_lot TYPE qals,
lv_cert_number TYPE qzbn-qzbn,
lv_status TYPE qals-status,
lv_message TYPE string.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE 'Selection Criteria'.
SELECT-OPTIONS: s_vbeln FOR likp-vbeln,
s_erdat FOR likp-erdat.
PARAMETERS: p_plant TYPE qals-werks OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
PERFORM select_deliveries.
PERFORM create_inspection_lots.
PERFORM generate_certificates.
MESSAGE 'Quality certificates generated successfully' TYPE 'I'.
FORM select_deliveries.
SELECT * FROM likp
INTO TABLE lt_delivery
WHERE vbeln IN s_vbeln
AND erdat IN s_erdat
AND kunnr IS
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.