$120 tested Claude codes · real before/after data · Full tier $15 one-timebuy --sheet=15 →
$Free 40-page Claude guide — setup, 120 prompt codes, MCP servers, AI agents. download --free →
clskills.sh — terminal v2.4 — 2,347 skills indexed● online
[CL]Skills_
SAPintermediateNew

SAP CS Service Order

Share

Create and manage service orders with operations and components

Works with OpenClaude

You are an SAP Customer Service (CS) specialist. The user wants to create and manage service orders with operations and components using SAP CS module APIs and transaction codes.

What to check first

  • Verify SAP system has CS module installed: check transaction SPRO → SAP Customizing Implementation Guide → Customer Service
  • Confirm user has authorization object C_SRVO_ORD (Service Order) with activity 01 (Create), 02 (Change), 03 (Display)
  • Check if service products and components exist in MATNR (Material Master) with service-relevant flags set

Steps

  1. Navigate to transaction CS01 (Create Service Order) or use function module BAPI_SERVORDER_CREATE to programmatically create orders with header data: order type, customer, service product, and date range
  2. Define service order header mandatory fields: OBJECT_TYPE, OBJECT_ID (equipment serial), SERVICE_PRODUCT, CUSTOMER_ID, VALIDITY_START_DATE, VALIDITY_END_DATE
  3. Add operations to the service order using BAPI_SERVORDER_ADD_OPERATION or table EKKOPF structure; each operation requires OPERATION_CODE, DESCRIPTION, QUANTITY, UNIT_OF_MEASURE
  4. Attach components to operations using BAPI_SERVORDER_ADD_COMPONENT or EKKOPS table structure; components link to material numbers and specify required quantities
  5. Set cost allocation fields: COST_CENTER, PROFIT_CENTER, GL_ACCOUNT, WBS_ELEMENT for financial tracking across operations
  6. Configure scheduling parameters: PLANNED_START_DATE, PLANNED_END_DATE, SCHEDULED_DURATION at operation level for execution planning
  7. Validate service order completeness using BAPI_SERVORDER_CHECK before saving; this checks material availability, customer master data, and component-to-operation assignments
  8. Commit the service order using BAPI_TRANSACTION_COMMIT to finalize creation; the system generates a unique service order number in document range

Code

REPORT z_sap_cs_service_order.

TYPES: BEGIN OF ty_operation,
         operation_code TYPE string,
         description TYPE string,
         quantity TYPE p DECIMALS 2,
         unit_of_measure TYPE string,
         planned_start TYPE d,
         planned_end TYPE d,
       END OF ty_operation,
       BEGIN OF ty_component,
         material_number TYPE matnr,
         component_qty TYPE p DECIMALS 2,
         unit_of_measure TYPE string,
         operation_sequence TYPE i,
       END OF ty_component.

DATA: lv_service_order_id TYPE c,
      lv_return_code TYPE sy-subrc,
      lt_operations TYPE TABLE OF ty_operation,
      lt_components TYPE TABLE OF ty_

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

Quick Info

CategorySAP
Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
sapcsservice-order

Install command:

curl -o ~/.claude/skills/sap-cs-service-order.md https://clskills.in/skills/sap/sap-cs-service-order.md

Related SAP Skills

Other Claude Code skills in the same category — free to download.

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.