create_smartform
Creates a new SAP Smartform from valid STXFORMS XML or a minimal single-page shell; blocks production profiles and supports optional activation and transport handling.
Instructions
Create a new Smartform (STXFORMS) in SAP with an initial XML definition. Refuses to run on production profiles. If no source is supplied a minimal single-page shell is written. The Smartform XML must include the root SMARTFORMS element with FORMATTRIB, PAGES, and WINDOWS sections.
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": {
"smartformName": "<smartformName>",
"description": "<description>",
"package": "<package>"
},
"name": "create_smartform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Full Smartform XML. If omitted a minimal shell is written. Must be valid STXFORMS XML with SMARTFORMS root element. | |
| package | Yes | Development package, e.g. ZFORMS | |
| activate | No | Activate after writing. | |
| transport | No | Transport request. Omit only for $TMP objects. | |
| description | Yes | Short description shown in SE71 | |
| smartformName | Yes | Smartform name, e.g. ZSF_INVOICE (Z/Y prefix required) |