s4hana-create-pir

s4hana-create-pir is a skill for Claude Code, Codex from ilia-inovaflow/s4hana-create-record-skills. It costs 239 tokens per session (1,386 once invoked), scanned A, original, MIT.

Uma habilidade para criar registros de informações de compras no SAP S/4HANA. Esses registros guardam a relação entre fornecedor, material, organização de compras e condições de compra.

In plain words
What is it for?
Serve para criar um ou vários registros de informações de compras por meio da API do SAP, com verificações antes do envio.
Why use it?
Evita cadastrar esses registros manualmente e reduz o risco de usar fornecedores, materiais ou plantas inexistentes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Serve para criar um ou vários registros de informações de compras por meio da API do SAP, com verificações antes do envio.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ilia-inovaflow/s4hana-create-record-skills/s4hana-create-pir
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.

Any agent
npx skills add ilia-inovaflow/s4hana-create-record-skills --skill s4hana-create-pir
Clone the repo
git clone --depth 1 https://github.com/ilia-inovaflow/s4hana-create-record-skills

Made for: Claude Code, Codex.

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 s4hana-create-pir

README.md
[![agentmods](https://agentmods.dev/badge/skills/ilia-inovaflow/s4hana-create-record-skills/s4hana-create-pir/github.svg)](https://agentmods.dev/skills/ilia-inovaflow/s4hana-create-record-skills/s4hana-create-pir)
Your own site
<a href="https://agentmods.dev/skills/ilia-inovaflow/s4hana-create-record-skills/s4hana-create-pir"><img src="https://agentmods.dev/badge/skills/ilia-inovaflow/s4hana-create-record-skills/s4hana-create-pir/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for s4hana-create-pir

Your own site · 80×15
<a href="https://agentmods.dev/skills/ilia-inovaflow/s4hana-create-record-skills/s4hana-create-pir"><img src="https://agentmods.dev/badge/skills/ilia-inovaflow/s4hana-create-record-skills/s4hana-create-pir.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 239 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,386 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00239 $0.01386
Opus 5 $0.00120 $0.00693
Sonnet 5 $0.00048 $0.00277
Haiku 4.5 $0.00024 $0.00139

Measured 12d ago against content hash 19a89802e0dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

s4hana-create-pir scanned grade A with 1 finding 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/bulk-pir-poster.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. **If neither**: auto-create `./.env` from the bundled template (curl from `https://raw.githubusercontent.com/ilia-inovaflow/s4hana-create-record-skills/main/.env.example`), append `.env` to `.gitignore` if not already
skills/s4hana-create-pir/SKILL.md · 73 lines

How it starts

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

s4hana-create-pir

Create Purchasing Info Records on SAP S/4HANA Cloud Public. Verified production-ready against SAP S/4HANA Cloud Public Edition 2026-05-12 (PIR 5300000130 created via API; 119 prior bulk-migrated PIRs from 2026-05-05).

When to trigger

Verbs: create / post / add / generate / seed / maintain / onboard Objects: PIR(s), purchasing info record(s), info record(s), supplier-material pricing Counts: 1 to ~200 records.

Hard rules (never violate)

  1. Always do a 1-record live POST as a probe before bulk (≥3 records).
  2. Never invent IDs — verify Supplier exists on the target PurchOrg, Material has ProcurementType=F, both exist in the target Plant.
  3. If a required field has no sensible default and the user didn't specify → ask once, then auto-pick.
  4. Scripts go in <cwd>/.s4hana-tmp/create-pirs-<YYYYMMDD-HHMM>/. Never commit, never modify .env.
  5. POSTs are sequential with 200ms delay; halt on 3 consecutive failures.

Endpoint

  • Service path: /sap/opu/odata/sap/API_INFORECORD_PROCESS_SRV
  • Entity sets: A_PurchasingInfoRecord, A_PurgInfoRecdOrgPlantData
  • Method: POST (deep-insert with to_PurgInfoRecdOrgPlantData)
  • Communication scenario: SAP_COM_0102 — "Purchasing Info Record Integration"

Phases

Phase 0 — Setup check (MANDATORY, no exceptions)

Before any API call, before any tool use, do this check. Even if you already know credentials from earlier in the conversation — IGNORE that knowledge and re-check from scratch each invocation.

  1. Announce: tell the user "Checking for SAP credentials in <current cwd>..."
  2. Check ONLY these two sources:
    • A .env file at ./.env (in the current working directory — NOT parent dirs, NOT ~/.env, NOT any memory file)
    • Shell-exported env vars: SAP_HOST AND SAP_AUTH_MODE both present
  3. If neither: auto-create ./.env from the bundled template (curl from https://raw.githubusercontent.com/ilia-inovaflow/s4hana-create-record-skills/main/.env.example), append .env to .gitignore if not already there, tell the user clearly what to fill in (auth mode + host + creds), and wait for them to say "ready" before making any API call. Never overwrite an existing .env.
  4. If credentials are present: report back to the user: "✓ Loaded credentials for <host> in <auth-mode> mode. Proceeding with [task]."

Read the full file on GitHub · 73 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 73 lines · 239 tokens per session scan A 19a89802e0dc

Subscribe to this mod's changes

s4hana-create-pir is a skill published in the GitHub repository ilia-inovaflow/s4hana-create-record-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 239 tokens to every session and 1,386 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.