Customizing (write)
customizing_writeChange 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
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | create: Array of rows; each a { FIELD: value } object including ALL key fields, e.g. [{ WERKS: "GHDC", LGORT: "0001", LGOBE: "Goods Receipt" }]. | |
| items | No | retail_listing: Article→assortment listing items, e.g. [{ product: "151", assortment: "BE_STD" }]. | |
| table | No | copy, 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. | |
| action | Yes | What to do: copy, delete, create, org_copy, org_delete, retail_listing (see the tool description) | |
| commit | No | copy, 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) | |
| values | No | copy, 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. | |
| icfPath | No | SICF path of the engine (default: /sap/bc/zmcp_cust) | |
| orgUnit | No | org_copy, org_delete: Org-key domain: BUKRS, WERKS, VKORG, VTWEG, SPART, EKORG, LGORT, CACCD, VSTEL, LGNUM, MTART | |
| keyField | No | copy, delete: Key field (e.g. PROFILE, WERKS, BUKRS, VKORG, or the full key field for delete) | |
| workItem | No | copy, 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. | |
| sourceKey | No | copy, 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. | |
| targetKey | No | copy, 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. | |
| transport | No | copy, 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. | |
| autoDeploy | No | copy, 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) | |
| onlyMissing | No | copy, 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. | |
| retestScope | No | org_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. | |
| connectionId | No | SAP system connection ID | |
| transportText | No | copy, 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). | |
| createTransport | No | copy, 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. | |
| recordTableKeys | No | create: 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. | |
| recordTransport | No | copy, 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. | |
| showAllTransports | No | copy, 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). |