Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Create and change DTPs

bw_write_dtp
Destructive

Creates or updates SAP BW/4HANA DTPs, including filter selections and ABAP filter routines, so you can configure and activate data transfer processes.

Instructions

Create or change a DTP, including its filters and a filter routine. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_dtp", operation: "…") gives the complete parameter definition of one.

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": {
      "operation": "<operation>"
    },
    "name": "bw_write_dtp"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageNoDevelopment package (default "$TMP"). [create]
dtp_nameNoDefined per operation — bw_describe(tool: "bw_write_dtp", operation: "…") gives each definition. [update, set_filter_routine]
operationYesOperation — one of: create: Create a new DTP (Data Transfer Process) for an existing Transformation and activate it. Requires source_name, source_type, target_name, target_type. | update: Update DTP properties: description, the value selection of one filter field, extraction mode (Full vs Delta), and/or the semantic group. Requires dtp_name. | set_filter_routine: Set an ABAP filter routine on a DTP filter field. Requires dtp_name, field_name, routine_code.
transportNoTransport request number. [update]
trfn_nameNoSingle transformation of a direct connection. [create]
field_nameNoFilter field name as it appears in the DTP XML fields element. [set_filter_routine]
trfn_namesNoTechnical names (UUID-like keys) of every transformation on the path from source to target — one entry for a… [create]
batch_classNoBatch manager: job priority (class A, B or C). [update]
descriptionNoDefined per operation — bw_describe(tool: "bw_write_dtp", operation: "…") gives each definition. [create, update]
global_codeNoOptional global declarations for the routine. [set_filter_routine]
server_nameNoBatch manager: the server group or host name for server_type "group" or "host"; an empty string clears it. [update]
server_typeNoBatch manager: where the parallel jobs run; with "group" or "host", pass server_name. [update]
source_nameNoSource object name (e.g. "SOURCE_NAME"). [create]
source_typeNoSource object type (e.g. "ADSO", "TRCS", "RSDS"). [create]
target_nameNoTarget object name (e.g. "TARGET_NAME"). [create]
target_typeNoTarget object type (e.g. "ADSO"). [create]
trfn_name_2NoSecond transformation of a two-step path, together with trfn_name. [create]
filter_fieldNoFilter field to set. Use the exact field name from bw_get_dtp; a name that does not exist is rejected. Requires filter_value or filter_selections. [create, update]
filter_valueNoOne or more values for an Equal selection, comma-separated (e.g. "VAL1,VAL2,VAL3"). Full definition: bw_describe(tool: "bw_write_dtp", operation: "create"). [create, update]
package_sizeNoExtraction: package size in records (at least 1). [update]
routine_codeNoABAP routine code (plain text, without FORM/ENDFORM wrapper). [set_filter_routine]
source_systemNoSource system name of the DataSource. [create]
track_recordsNoError handling: track records after a failed request. [update]
hana_executionNoRuntime: execute the DTP in SAP HANA. [update]
extraction_modeNoSwitch the DTP extraction mode. [update]
level_of_detailNoRuntime: level of detail of the temporary storage (trace by package, erroneous records, or by record). [update]
filter_excludingNoIf true, all values of filter_value are excluded instead of included. Default false. Applies to filter_value only; filter_selections carries a sign per entry. [create, update]
request_handlingNoError handling: what happens to a request with errors. [update]
filter_selectionsNoFull selection vocabulary for one filter field, equivalent to an ABAP RANGE table. Full definition: bw_describe(tool: "bw_write_dtp", operation: "create"). [create, update]
parallel_processesNoBatch manager: number of parallel processes (1..99). [update]
filter_clear_fieldsNoComma-separated list of field names whose value selections are removed. [update]
only_get_delta_onceNoRequest selection, delta only: only get the delta once (DELTAONLYONCE). [update]
parallel_extractionNoExtraction: extract data packages in parallel. [update]
semantic_group_fieldsNoComma-separated list of field names that form the semantic group (e.g. "FIELD_NAME,/BIC/FIELD_NAME"). [update]
target_object_subtypeNoInfoObject sub-object to load into. [create]
transport_lock_holderNoTransport lock holder. [update]
overall_request_statusNoExecution: how the overall request status is set. [update]
delta_init_without_dataNoRequest selection, delta only: perform the delta initialization without data transfer (INITSIMU). [update]
technical_request_statusNoExecution: technical status of a request with warnings. [update]
extract_all_green_requestsNoRequest selection: extract all green requests (ignore the overall status). [update]
only_retrieve_last_requestNoRequest selection: only retrieve the last request (ONLYLASTREQUEST). [update]
number_of_errors_per_packageNoError handling: maximum number of errors per package before the request is cancelled. [update]
retrieve_until_no_more_new_dataNoRequest selection: retrieve until no more new data (FETCHUNTILEOF). [update]
get_all_new_data_request_by_requestNoRequest selection, delta only: get all new data request by request (SINGLEREQUEST). [update]
repeat_red_requests_in_process_chainNoExecution: automatically repeat red requests when the DTP runs in a process chain. [update]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv2.1.1
    • changedInput schema / properties / filter_value / description
      Previous value: -"One or more values for an Equal selection, comma-separated (e.g. Full definition: bw_describe(tool: \"bw_write_dtp\", operation: \"create\"). [create, update]"New value: +"One or more values for an Equal selection, comma-separated (e.g. \"VAL1,VAL2,VAL3\"). Full definition: bw_describe(tool: \"bw_write_dtp\", operation: \"create\"). [create, update]"
    • changedInput schema / properties / operation / description
      Previous value: -"Operation — one of: create: Create a new DTP (Data Transfer Process) for an existing Transformation and activate it. Requires trfn_name, source_name, source_type, target_name, target_type. | update: Update DTP properties: description, the value selection of one filter field, extraction mode (Full vs Delta), and/or the semantic group. Requires dtp_name. | set_filter_routine: Set an ABAP filter routine on a DTP filter field. Requires dtp_name, field_name, routine_code."New value: +"Operation — one of: create: Create a new DTP (Data Transfer Process) for an existing Transformation and activate it. Requires source_name, source_type, target_name, target_type. | update: Update DTP properties: description, the value selection of one filter field, extraction mode (Full vs Delta), and/or the semantic group. Requires dtp_name. | set_filter_routine: Set an ABAP filter routine on a DTP filter field. Requires dtp_name, field_name, routine_code."
    • changedInput schema / properties / semantic_group_fields / description
      Previous value: -"Comma-separated list of field names that form the semantic group (e.g. [update]"New value: +"Comma-separated list of field names that form the semantic group (e.g. \"FIELD_NAME,/BIC/FIELD_NAME\"). [update]"
    • changedInput schema / properties / source_name / description
      Previous value: -"Source object name (e.g. [create]"New value: +"Source object name (e.g. \"SOURCE_NAME\"). [create]"
    • changedInput schema / properties / source_type / description
      Previous value: -"g. [create]"New value: +"Source object type (e.g. \"ADSO\", \"TRCS\", \"RSDS\"). [create]"
    • changedInput schema / properties / target_name / description
      Previous value: -"Target object name (e.g. [create]"New value: +"Target object name (e.g. \"TARGET_NAME\"). [create]"
    • changedInput schema / properties / target_type / description
      Previous value: -"Target object type (e.g. [create]"New value: +"Target object type (e.g. \"ADSO\"). [create]"
    • changedInput schema / properties / trfn_name / description
      Previous value: -"Technical name of the existing Transformation (UUID-like key). [create]"New value: +"Single transformation of a direct connection. [create]"
    • changedInput schema / properties / trfn_name_2 / description
      Previous value: -"Optional second transformation in a multi-step chain. [create]"New value: +"Second transformation of a two-step path, together with trfn_name. [create]"
    • addedInput schema / properties / trfn_names
      Added value: +{
      +  "description": "Technical names (UUID-like keys) of every transformation on the path from source to target — one entry for a… [create]",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Addedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the risk profile is covered. The description contributes the fact that create also activates the DTP, but it does not warn about irreversibility, transport requirements, or what state an update leaves untouched fields in.

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

Conciseness4/5

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

Two sentences, front-loaded with the action and scope, no filler. The second sentence slightly restates what the enum already shows (that each operation lists its requirements), which is the only minor redundancy.

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

Completeness3/5

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

For a 45-parameter mutation tool with no output schema, the definition is adequate because every property is documented in the schema and bw_describe is offered for full detail. It still omits execution caveats an agent would want, such as required authorization, activation failure behavior, or ordering constraints between operations.

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

Parameters3/5

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

With 100% schema description coverage and 45 documented properties, the schema carries the parameter burden and baseline 3 applies. The description adds only a meta-pointer to bw_describe for the complete per-operation definition, which is useful but not semantic detail itself.

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?

Names a concrete verb-plus-resource ("Create or change a DTP") and scopes it to filters and a filter routine, so an agent can tell it apart from the other bw_write_* siblings. It stops short of explicitly contrasting itself with a sibling such as bw_write_transformation, which keeps it from a 5.

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

Usage Guidelines3/5

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

Usage context is only implied by the create/update/set_filter_routine operations; there is no guidance on when to prefer this over a sibling or on prerequisites (e.g. an existing transformation, a transport request). The pointer to bw_describe is helpful routing but not when-to-use guidance.

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