Skip to main content
Glama

Customizing (write)

customizing_write
Destructive

Change SAP customizing via SM30 while recording changes on Customizing requests: copy, create, or delete entries, copy or remove org units, and list articles into assortments.

Instructions

Change customizing through the engine's SM30 path, recorded on Customizing requests: copy or delete entries, create entries, copy or delete a whole org unit, list articles.

Actions (pass action plus that action's parameters; connectionId picks the system): • copy — Copy the entries of one key to another in a maintenance object (SM30 runtime, recorded on a Customizing request). Required: table, keyField, targetKey. Optional: sourceKey, values, transport, onlyMissing, commit, recordTransport, createTransport, transportText, showAllTransports, workItem, autoDeploy, icfPath. • delete — Delete the entry of one key in a maintenance object (SM30 runtime, recorded on a Customizing request). Required: table, keyField, targetKey. Optional: sourceKey, values, transport, onlyMissing, commit, recordTransport, createTransport, transportText, showAllTransports, workItem, autoDeploy, icfPath. • create — Create new customizing rows from explicit field/value maps — full keys (including COMPOSITE keys) and distinct per-row values, with NO source row to copy from. g. storage locations T001L (key WERKS+LGORT) each with their own LGOBE description. Required: table, rows. Optional: transport, onlyMissing, commit, recordTransport, recordTableKeys, createTransport, transportText, showAllTransports, workItem, autoDeploy, icfPath. • org_copy — Copy an org unit (company code, plant, sales org, …) with all dependent customizing to a new key. Required: orgUnit, sourceKey. Optional: targetKey, commit, retestScope, createTransport, autoDeploy, icfPath. • org_delete — Delete an org unit's entries with all dependent customizing. Required: orgUnit, sourceKey. Optional: targetKey, commit, retestScope, createTransport, autoDeploy, icfPath. • retail_listing — List one or more articles into retail assortments via SAP's standard listing engine (EXECUTE_LISTING_ART_ASSORT_RFC, determine_data=X). Listing EXTENDS each article to the assortment's assigned sites (creating the plant/valuation segments) and writes the WLK1 listing conditions, so the article becomes available at those sites. Listing into a GENERAL assortment propagates to all its assigned sites (incl. Required: items. Optional: commit, autoDeploy, icfPath.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "customizing_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNocreate: Array of rows; each a { FIELD: value } object including ALL key fields, e.g. [{ WERKS: "GHDC", LGORT: "0001", LGOBE: "Goods Receipt" }].
itemsNoretail_listing: Article→assortment listing items, e.g. [{ product: "151", assortment: "BE_STD" }].
tableNocopy, delete: Table name (e.g. /POSDW/PROF, /POSDW/STORE, TCURR, TVKO) | create: Table name (e.g. T001L, T001W). Its generated SM30 maintenance view is resolved automatically for recorded writes.
actionYesWhat to do: copy, delete, create, org_copy, org_delete, retail_listing (see the tool description)
commitNocopy, delete: Actually write (default: false = dry run) | create: Actually write (default: false = dry run returning the planned rows) | org_copy, org_delete: Actually copy (default: false = dry run) | retail_listing: Actually list (default: false = dry run returning the prepared items)
valuesNocopy, delete: Field overrides applied to every planned row after the key swap, e.g. { NAME1: "Z Retail", WAERS: "EUR" }. With sourceKey = targetKey and onlyMissing: false this patches an existing row in place.
icfPathNoSICF path of the engine (default: /sap/bc/zmcp_cust)
orgUnitNoorg_copy, org_delete: Org-key domain: BUKRS, WERKS, VKORG, VTWEG, SPART, EKORG, LGORT, CACCD, VSTEL, LGNUM, MTART
keyFieldNocopy, delete: Key field (e.g. PROFILE, WERKS, BUKRS, VKORG, or the full key field for delete)
workItemNocopy, delete, create: Name of the piece of work (e.g. HPM, a ticket). Keeps using the same transport for it across calls and sessions until you pass another.
sourceKeyNocopy, delete: Copy: source value (reference config). Not used for action: "delete". | org_copy, org_delete: Source unit to copy from (e.g. plant 1000). For action: "delete" — the unit to remove.
targetKeyNocopy, delete: Copy: target value to create. Delete: the key value of the entry to remove. | org_copy, org_delete: New unit to create (e.g. 1010). Not used for delete. On a dry run it may already exist: the retest scope then compares source and target.
transportNocopy, delete: Existing open request to record into (the 'already chosen for this task' case — used as-is, no prompt). If omitted on a recorded commit and createTransport is not set, the tool returns an interactive prompt: the open Customizing requests to pick from PLUS the create options. | create: Existing open Customizing request to record into (used as-is, no prompt). If omitted on a recorded commit and createTransport is not set, the tool returns an interactive prompt.
autoDeployNocopy, delete: Auto-deploy/update the ABAP engine class if missing or outdated (default: true) | create, org_copy, org_delete, retail_listing: Auto-deploy/update the engine class if missing or outdated (default: true)
onlyMissingNocopy, delete: Only write rows absent from target (default: true) | create: Only create rows whose key is absent (default: true = idempotent). false also updates existing rows.
retestScopeNoorg_copy, org_delete: List the org-keyed tables the copier leaves alone, with source/target row counts (default: true for a copy, customizing first, then application data, within ~30 s). "customizing" or "application" counts only that part — for a re-run when a large unit (a company code has ~6,000 keyed tables) runs out of time. false = just the copier's table set.
connectionIdNoSAP system connection ID
transportTextNocopy, delete: Short description for the engine-created Customizing request (only used with createTransport: true). Omit to use an auto-generated text. | create: Short description for the engine-created Customizing request (only used with createTransport: true).
createTransportNocopy, delete, create: Create a NEW Customizing request at commit (only when you mean it; existing requests are preferred). Combine with transportText to name it. | org_copy, org_delete: Required on commit in a recording client: acknowledge that the copier mints its OWN Customizing request (a supplied transport is not honored). The copier names the request; transportText is not applied. The new request number is reported on completion.
recordTableKeysNocreate: For a table with no maintenance view (e.g. T006/T006A, normally CUNI): write it directly and record the row keys as R3TR TABU on the transport. Skips the dedicated transaction's checks — supply complete rows.
recordTransportNocopy, delete: Record the write on a transport request (default: true for C/G/E). Set false for sandbox/test-data writes that should not be transported — transport must be omitted when false. | create: Record the write on a transport (default: true for C/G/E). Set false for a direct, untransported sandbox write — transport must be omitted then.
showAllTransportsNocopy, delete: When prompting for a transport, list ALL users' open requests instead of only your own (default: false = your own). | create: When prompting for a transport, list ALL users' open requests instead of only your own (default: false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructive/openWorld/non-idempotent, but the description adds behavior the annotations cannot convey: commit=false is a dry run that returns planned rows, omitting `transport` on a recorded commit triggers an interactive prompt listing open requests, `autoDeploy` may update the engine class, org_copy mints its own request so `createTransport` is an acknowledgement, and `recordTableKeys` skips dedicated-transaction checks. That is exactly the mutation/auth/timing context an agent needs before calling a destructive 22-param tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loading the action list is correct and the bullet structure is scannable, but copy and delete repeat an identical 13-item optional-parameter list, and two sentences are visibly truncated ('g. storage locations T001L…', 'incl. Required: items'), leaving the create and retail_listing bullets damaged. Length is defensible for six actions, but the repetition and broken text cost it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, six-action, 22-parameter tool with no output schema, the definition covers dry-run semantics, transport handling, prompting behavior, and engine auto-deploy — a lot of the caller's burden. Remaining gaps are the shape of a successful response (only the dry-run and prompt cases are hinted at) and any error/failure behavior, plus the truncated retail_listing explanation of general-assortment propagation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3; the description earns above that by mapping the 22 parameters onto the six actions (which params are required/optional per action), which the flat schema cannot express on its own. It also clarifies intent-level semantics such as the sourceKey=targetKey + onlyMissing=false in-place patch case and the retestScope time-budget tradeoff.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource — writes customizing entries via the SM30 runtime path, recorded on Customizing requests — and the six bulleted actions (copy, delete, create, org_copy, org_delete, retail_listing) make the scope concrete. It never explicitly contrasts itself with the sibling `customizing` (presumably the read side) or `transport_write`, so the write-vs-read routing is left to the tool name rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Guidance is distributed per action and per parameter: which params are required vs optional for each action, that `commit` defaults to a dry run, that `transport` should be preferred over `createTransport` ('only when you mean it; existing requests are preferred'), and that `recordTransport: false` is for sandbox writes. What is missing is a top-level 'use this instead of X when…' statement naming alternatives, so the agent gets situational rules but no explicit tool-selection rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.