/** * RenderSmartForm — the output of a SmartForm exactly as SAP prints it * (OTF + PDF), for given interface values, without printing or spooling. * * Runs the form's generated function module with GETOTF = 'X'. Nothing is * printed, stored or sent, but the form's program lines run as in a real * print (they may read the database). Use invented sample values only. * * Backend: ZMCP_ADT_DISPATCH action SSF_RENDER → FM ZMCP_SSF_RENDER. * Companion ABAP source: sc4sap/abap/zmcp_ssf_render.abap */ import type { HandlerContext } from '../../../lib/handlers/interfaces'; export declare const TOOL_DEFINITION: { readonly name: "RenderSmartForm"; readonly available_in: readonly ["onprem", "legacy"]; readonly description: "[runs the form, no output] The output of a SmartForm as SAP prints it, for given interface values: calls the generated function module with GETOTF (no dialog, no print, no spool) and writes the OTF (text: positions, fonts, strings) and the PDF under the MCP output directory (smartforms/
/.sap.otf.txt / .sap.pdf). The form's own program lines run as in a real print and may read the database — pass invented sample values only. Needs the ZMCP_SSF_RENDER FM and the SSF_RENDER dispatcher action."; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly form_name: { readonly type: "string"; readonly description: "SmartForm name (e.g. \"ZMY_FORM\")."; }; readonly values: { readonly type: "object"; readonly description: "Interface parameter → value, in internal format: structures as objects with the ABAP component names, TABLES parameters / table types as arrays, dates \"2026-10-16\", times \"14:00:00\", amounts and quantities as numbers. Parameters left out are passed initial."; }; readonly values_file: { readonly type: "string"; readonly description: "Path of a JSON file with the same object as `values` (for large interfaces). Ignored when `values` is given."; }; readonly device: { readonly type: "string"; readonly description: "Output device whose device type sets fonts and character widths (e.g. the printer the form goes to). Default: the user default device, else a SAPWIN / PDF device."; }; readonly families: { readonly type: "array"; readonly items: { readonly type: "string"; }; readonly description: "Font families the form uses (from GetSmartFormContent styles). Without `device`, a device whose type has printer fonts for most of them is used, so the output shows the fonts the form was made for."; }; readonly language: { readonly type: "string"; readonly description: "Output language: 1-char SAP key or 2-letter ISO code. Default: logon language."; }; }; readonly required: readonly ["form_name"]; }; }; export declare function handleRenderSmartForm(context: HandlerContext, args: { form_name: string; values?: Record; values_file?: string; language?: string; device?: string; families?: string[]; }): Promise<{ isError: boolean; content: { type: string; text: any; }[]; }>; //# sourceMappingURL=handleRenderSmartForm.d.ts.map