sap-co

sap-co is a skill for Claude Code, Codex from BoxLogoDev/sapstack. It costs 127 tokens per session (6,159 once invoked), scanned A, original, MIT.

A reference guide for SAP Controlling (CO), the part of SAP used to track costs, profits, internal orders, product costs, and financial periods.

In plain words
What is it for?
Use it for cost-center and profit-center accounting, product costing, profitability analysis, allocations, settlements, plan-versus-actual postings, and period-end closing.
Why use it?
It gives developers and analysts a structured way to handle common CO questions without having to reconstruct SAP accounting processes from scratch.

Skill for Claude CodeCodex

Part of the sap-co plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/boxlogodev/sapstack/sap-co
Any agent
npx skills add BoxLogoDev/sapstack --skill sap-co
Clone the repo
git clone --depth 1 https://github.com/BoxLogoDev/sapstack

Made for: Claude Code, Codex.

Or install sap-co, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sap-co

README.md
[![agentmods](https://agentmods.dev/badge/skills/boxlogodev/sapstack/sap-co.svg)](https://agentmods.dev/skills/boxlogodev/sapstack/sap-co)
Your own site
<a href="https://agentmods.dev/skills/boxlogodev/sapstack/sap-co"><img src="https://agentmods.dev/badge/skills/boxlogodev/sapstack/sap-co.svg" alt="Measured on agentmods" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,159 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00127 $0.06159
Opus 5 $0.00063 $0.03080
Sonnet 5 $0.00025 $0.01232
Haiku 4.5 $0.00013 $0.00616

Measured yesterday against content hash 808d400587ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sap-co scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/sap-co/skills/sap-co/SKILL.md · 554 lines

How it starts

The opening of the file, as written. The whole thing — 554 lines — stays where its author put it; the contents beside it link to each section on GitHub.

1. Environment Questions

Ask before answering:

  • Controlling area (KOKRS) — single or cross-company code?
  • Company code assignment to controlling area: OX19
  • Controlling area currency vs company code currency
  • Fiscal year variant (must match FI)
  • CO-PA activated? If yes: costing-based, account-based, or both?
  • Material Ledger foundation active? S/4HANA에서는 inventory valuation의 기반이며, actual costing run 활성화 여부는 별도로 확인한다.

2. Cost Center Accounting (CCA)

Period-End Sequence

  1. Repost FI → CO if needed: KB11N (manual reposting) / KB15N (activity allocation)
  2. Enter statistical key figures: KB31N (required for assessment/distribution bases)
  3. Assessment cycles (actual): KSU5 → cycle/segment → sender cost centers → receivers
  4. Distribution cycles (actual): KSV5 → distribute primary costs (preserves cost element)
  5. Indirect activity allocation: KB65 (if applicable)
  6. Variance analysis: S_ALR_87013611

Cycle Configuration

  • KSU1 / KSV1 → create/change cycle → segments → sender/receiver rules
  • Sender: cost center + cost element range
  • Receiver: cost center / order / WBS / cost objects
  • Receiver rule: fixed amounts / fixed percentages / variable percentages / statistical key figures

Common Errors

Error Root Cause Fix
"No valid receiver found" Receiver in cycle not active or no postings Check cycle segment receiver list: KSU1
"Period already closed for CO" CO period locked OKP1 → open period for controlling area
"CO document not generated" account assignment, real/statistical object, integration setting 불일치 원천 FI 문서와 CO line item을 read-only로 대조하고 release별 reconciliation 절차 확인
"Sender has no costs" Nothing posted to sender cost center KB11N or check primary cost posting

3. Profit Center Accounting (PCA)

ECC vs S/4HANA

Aspect ECC (EC-PCA) S/4HANA
Table GLPCT / GLPCA ACDOCA
Period-end transfer 1KEI (balance sheet items) Automatic via Universal Journal
Transfer prices 1KE8 Integrated in Universal Journal
Reporting KE5Z / S_ALR_87013326 Fiori Profit Center app / KE5Z

Read the full file on GitHub · 554 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 554 lines · 127 tokens per session scan A 808d400587ba

Subscribe to this mod's changes

sap-co is a skill published in the GitHub repository BoxLogoDev/sapstack (18 stars, last pushed 5d ago), licensed MIT. It adds 127 tokens to every session and 6,159 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

research

Survey how best-in-class ERPs and point solutions implement a feature, and produce a findings file at .ai/research/{slug}.md. Use when designing a new feature, evaluating approaches, or answering "how do competitors / SAP / the industry do X". Required before designing any ERP-domain feature (accounting, costing, tax…

crbnos/carbon · 105 tokens

frihet-mcp

Business-aware ERP management skill for Frihet MCP server. Manages invoices, expenses, clients, products, quotes, and webhooks with embedded Spanish tax knowledge (IVA/IGIC/IRPF), automatic expense categorization, and multi-step workflows like monthly close and quarterly tax prep. Use when the user says "create…

Frihet-io/frihet-mcp · 158 tokens

sap-rpt1

SAP-RPT-1-OSS local tabular prediction workflows for FI/CO prototype datasets. Use when preparing SAP finance CSV exports for classification or regression experiments with source-verified setup, leakage checks, and governance review.

secondsky/sap-skills · 51 tokens

value-advisory

Use when building a business case, calculating ROI or TCO, quantifying SAP project benefits, validating savings claims, or producing value realization frameworks for any SAP investment decision.

vigneshbarani24/sap-superpowers · 39 tokens

concur

Use when working with SAP Concur — Concur Expense, Concur Travel, Concur Invoice, Concur Request, expense policy configuration, receipt management, travel booking, approval workflows, integration with S/4HANA FI, audit rules, or compliance monitoring.

vigneshbarani24/sap-superpowers · 56 tokens

fieldglass

Use when working with SAP Fieldglass — contingent workforce management, services procurement, Statement of Work (SOW), worker management lifecycle, rate card management, approval workflows, VMS reporting, or Fieldglass integration with S/4HANA.

vigneshbarani24/sap-superpowers · 51 tokens