/sap-arc1-kit:sap-adobe-formfrom sap-arc1-kit
Reads, copies, and edits SAP Adobe forms (Interactive Forms by Adobe, transaction SFP) as XML/XDP files without SAP GUI or LiveCycle Designer. Validates changes via PDF preview and replaces customer form layouts under a transport request.
Ships in sap-arc1-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Five tools (installed by the skill sap-arc1-kit; the kit object prefix is the one chosen at
installation, ZAI by default):
| Tool | What it does |
|---|---|
Custom_AdobeFormRead(name, interface?) | Saves output/adobe-forms/<NAME>.form.xml (form without layout: properties and context), <NAME>.xdp (layout) and <INTERFACE>.interface.xml (form interface) |
Custom_AdobeFormWrite(name, form, layout) | Uploads form XML + XDP as a <PREFIX>_* form in $TMP: save, activation, function module. If the copy exists, it first saves a backup in output/adobe-forms/backup/ |
Custom_AdobeInterfaceWrite(name, interface) | Uploads an interface XML as a <PREFIX>_* form interface in $TMP and activates it. An existing one is updated in place (the forms using it stay linked), after a backup in output/adobe-forms/backup/ |
Custom_PrintPreview(document, outputType, application?, form?, program?, routine?) | Runs the print program of the NAST message to spool (without printing) and saves the PDF; with form it uses a SmartForms or Adobe form not configured yet |
Custom_AdobeFormReplace(action, original, copy, transport, token?) | Gives the customer form Z*/Y* the layout of the approved <PREFIX>_* copy, in place, under the given request. prepare: checks (only the layout may differ), XML/XDP backup of the original, summary, token; no writes. execute: with the token; refused if the original or the copy changed after prepare |
They are ARC-1 tools, named here by their short name: in Claude Code they are
mcp__<server>__<tool>, where <server> is the ARC-1 server of the target system in
.mcp.json (e.g. mcp__arc1__Custom_AdobeFormRead; the same for SAPQuery).
Intended constraints of the kit: changes are made only on copies with the kit prefix, in $TMP,
created by the current user; customer and standard forms are never written. The SAP API cannot
replace the context of an Adobe form, so Custom_AdobeFormWrite deletes and creates again an
existing copy, after saving its backup (the generated function module gets a new name each time).
Form interfaces, instead, are updated in place by Custom_AdobeInterfaceWrite: the forms that use
the interface print the change at the next preview, without being written again.
A customer form is changed only by Custom_AdobeFormReplace, after explicit confirmation by the
user: it writes the layout of the copy into the original, in place, and nothing else.
Adobe Document Services (ADS) must work on the system: without ADS a form is not saved and
nothing is printed. Custom_AdobeFormWrite checks it and says so; the standard report
FP_TEST_00 is the manual check for the user or the Basis team.
Copy this checklist into your answer and tick it off as you go:
Adobe form change:
- [ ] 1 Form, interface and print program found
- [ ] 2 Reference preview of the current form
- [ ] 3 <PREFIX>_* copy created and read back
- [ ] 4 Copy preview identical to the reference
- [ ] 5 Change made, preview differs only where intended
- [ ] 6 Hand-over: where to see it, how to roll back, how to bring it into the original
- [ ] 7 Original replaced (only if the user asked, after explicit OK)
TNAPR (output type, medium 1):
SAPQuery: SELECT kappl, kschl, pgnam, ronam, sform, formtype FROM tnapr WHERE kschl = '<TYPE>' AND nacha = '1'.
The form is an Adobe form if SELECT name FROM fplayout WHERE name = '<FORM>' AND state = 'A'
finds it. If the output type has no TNAPR entry, ask the user for program and routine.Custom_PrintPreview on the document. Show the PDF
to the user and use it to understand what to change.Custom_AdobeFormRead of the source form, then Custom_AdobeFormWrite with a
<PREFIX>_... name and the two files .form.xml and .xdp. Read the copy back: the form XML
must be the same apart from the form name, the layouts per language (<LAYOUTT>) and the
administrative data (users, dates; the tool
renumbers the object ids id="o42" / href="#o42" and empties CACHE_INFO, so the same form
always gives the same XML), the XDP apart from the XML declaration and the timeStamp of the
xdp element, renewed at every write.Custom_PrintPreview with form=<copy>, program, routine. The PDF
must be identical to the one from step 2. Compare the text with the script of the skill
sap-smartform-xml (needs pip install pypdf):
python "${CLAUDE_SKILL_DIR}/../sap-smartform-xml/scripts/pdf_text_diff.py" <reference.pdf> <copy.pdf>
It prints "Identical text" (exit code 0) or the different lines (exit code 1). If the copy
differs, find the cause before going on.Custom_AdobeFormWrite, preview and compare with the reference: only what was meant to
change should change. If something else changed, fix the files and repeat.SP01 with title
Claude preview ..., form in transaction SFP in display mode), how to roll back (upload the
backup files again with Custom_AdobeFormWrite) and that the original form is unchanged: the
user decides how to bring the change into it. A change of the layout only goes in with step 7;
changes of context or interface are made by the user in SFP.Custom_AdobeFormReplace(action="prepare", original, copy, transport), show the summary and
wait for an explicit OK for that form, then action="execute" with the token.
prepare compares the form XML of copy and original and refuses
the copy if anything else differs (context, interface, properties), listing the lines. If the
list shows only administrative data (users, dates), it is a defect of the kit: report it to the
user instead of working around it.SFP). transport is the request, not one of its tasks. The rules (packages,
author, allowed requests) are in the project .mcp.json (see skill sap-arc1-kit); in the
summary check the owner of the request: if it is not the user, ask whether it is the right one.execute: preview again with the original (without form) and compare it with the
preview of the copy; check the request with SAPTransport(action="get"): it contains
R3TR SFPF <original>. The tool never releases the request, and a token is valid once.SFP (see "Languages"): preview in
the languages the documents use, and tell the user to check the translations (SE63).<LAYOUTT> in the form XML) are not compared: they come from the layout.prepare (or of execute) into a copy with
Custom_AdobeFormWrite, then prepare + execute again.The XDP is the XML of Adobe LiveCycle Designer (XFA). Search with grep -n and edit with
targeted replacements or small scripts; never rewrite the file by hand.
<xdp:xdp> → <template>: the whole layout.<pageSet> → <pageArea>, with the <contentArea> (x, y, w, h) where the
body flows and the fixed elements printed on every page (logo, header, footer).<subform> elements. layout="tb" means flowed from top to bottom;
without it the children are positioned with x, y, w, h and units (mm, in, pt).
<occur> repeats a subform (table rows), <break> and <overflow> move content to the next page.<draw> with <value><text> or <value><exData contentType="text/html">
(rich text in XHTML: keep the markup, change only the text).<field> with <bind match="dataRef" ref="..."/>: the reference (for example
$.NODE.FIELD or $record.NODE.FIELD) is a node of the form context. A field printed inside a
rich text is an embedded <span> in the exData.<font typeface size weight>, <para hAlign>, <border>, <margin>; field
patterns for dates and amounts in <format>/<picture>.<event activity="..."> with <script> (FormCalc by default, JavaScript with
contentType="application/x-javascript"). They hide fields, compute values or change the
layout: read the scripts of a field before changing it.<image> (base64), or from the context through a field with <imageEdit/>.Useful searches: grep -n "<printed text>" <NAME>.xdp to find a static text,
grep -n 'ref="' <NAME>.xdp for the data bindings, grep -n '<script' <NAME>.xdp for the logic.
.form.xml): properties of the form (interface, languages) and the context:
which interface data reach the layout, with texts (SO10 or form texts), addresses, graphics
and conditions. Look at it with grep -n on the node names shown by the layout bindings.
Change the context only when the layout needs data it does not have yet; the bindings in the
XDP must follow..interface.xml): parameters, global data, types and initialization code. Customer
and standard interfaces are never written: to change one, make a <PREFIX>_* interface from its file
with Custom_AdobeInterfaceWrite and point the copy of the form to it (see below).The data reach the layout in three steps: interface (global data filled by the initialization
code) → context of the form (a node per field) → binding of an XDP field. Example with a form
whose context has the node of the print structure SLS_PRT_COM (the sales document forms):
Interface. From <SOURCE_IF>.interface.xml read with Custom_AdobeFormRead, make a new file:
<GLOBAL_DATA> add an <SFPGDATA> with <NAME>GV_NEW_TEXT</NAME>, <TYPING>TYPE</TYPING>,
<TYPENAME>STRING</TYPENAME> (empty <DEFAULTVAL/>, <CONSTANT/>);<INITIALIZATION> add <FPCLINE> lines that fill it, between comments that mark the change
(* <PREFIX> begin / * <PREFIX> end). Use explicit field lists and no SELECT in loops, and
escape ' < > & as XML (', <, >, &): change the file with a small
script and check the diff.Then Custom_AdobeInterfaceWrite with a <PREFIX>_* name: "created in $TMP and active". A syntax
error in the code ends with "saved but not activated": fix the file and write again.
Form. In the form XML of the copy set <INTERFACE><PREFIX>_..._IF</INTERFACE> and add to the
context a data node for the new field under the node SLS_PRT_COM: a cls:CL_FP_DATA with
<NAME> and <FIELD> = GV_NEW_TEXT, <STATE>A</STATE>, a new 32-character hex <ID>, <PARENT>
pointing to the SLS_PRT_COM node, its own empty cls:CL_FP_CONDITION, linked into the chain of
<SUCCESSOR> of its siblings (copy an existing node such as another GV_* field and adapt it).
Layout. In the XDP add (or copy) a <field> with
<bind match="dataRef" ref="$record.SLS_PRT_COM.GV_NEW_TEXT"/>, with caption and position.
Custom_AdobeFormWrite of the copy, preview, compare: only the new line should differ.
Later changes to the code or the data are made only on the interface (Custom_AdobeInterfaceWrite
with the same name: "updated in place"); the form copy does not need to be written again. To roll
back, upload the backup file saved by the tool.
.xdp file is the layout of the original language of the form. The layouts of
the translations are in the form XML (<LAYOUTT>, one <FPLAYOUTT> per <LANGUAGE>, XDP in base64).
Whether SAP generates them again from a changed .xdp depends on the case (seen on S/4HANA 816: a
copy written once kept the old ones, another one and the original after Custom_AdobeFormReplace
got the new layout in every language): always preview in the languages the documents use, and tell
the user that the translations (SE63) must follow. The <tags> element at the top of the XDP holds
the texts for the translation (<value id="...">, the xliff:id of the text): SAP writes it again
from the texts of the template at every write, so a change made only in <tags> is lost. Change
the text in the template (<draw>, caption, <desc>).| Result | Meaning |
|---|---|
| "Writing allowed only for Adobe forms *" / "... form interfaces *" | Target not allowed: use a copy |
| "The file is not the XML of a form interface" | A form XML or another file was passed as interface: pass the .interface.xml |
| "XML schema based interfaces are not supported" / "the interface type cannot be changed" | Only ABAP dictionary based interfaces are written, and an existing one keeps its type |
| "cannot be changed: package ..., author ..." | The form exists but is not in $TMP or belongs to another user |
| "exists without object directory entry" | Not a copy made by the kit: choose another name |
| "Layout (XDP) missing" / "Invalid layout" | Pass the .xdp file; its root must be xdp:xdp |
| "Invalid form XML: ..." | Broken file or not the XML of an Adobe form: nothing was written |
| "Layout not accepted" | SAP refused the XDP: compare it with the last one that worked |
| "Adobe Document Services (ADS) not configured" / "not reachable" | ADS missing or down: ask the user or the Basis team (FP_TEST_00) |
| "not saved ... the previous version of the copy was already deleted" | Upload the backup files again with Custom_AdobeFormWrite |
| "saved but not activated" | The form has errors (for example a context that does not match the interface): open it in SFP in display mode, fix the files and write again |
| "active but function module not available" | Generation failed: open the form in SFP and activate it there |
| Preview: "neither SmartForms nor Adobe form" / "has no function module" | Wrong name or form not active |
| Preview of a changed copy prints the old text | The document is printed in a translation, not in the original language (see "Languages"). ADS caches layouts under timeStamp and uuid of the XDP: the tool renews the timeStamp, so a layout changed outside the kit with the old one can also print as before |
| Preview: HTTP 500 | The print program issued a MESSAGE E/A (e.g. nothing to print for that document) |
| "Replacement allowed only for Adobe forms Z* or Y*" / "is a _* copy" | Standard original, or a copy used as original |
| "The copy must be an Adobe form _*" | A form without the kit prefix was passed as copy |
| "differs from ... outside the layout" | The copy changed context, interface or properties: only a layout change is replaced; the rest goes into the original in SFP |
| "is a task of request ..." / "does not exist" / "already released or is not a workbench request" | Wrong request: ask the user for the right one |
| "is not in the object directory or is local ($TMP)" | The original is not transportable: it cannot be replaced |
| "belongs to another user: author ..., logged-on user ..." | Author check active and form of a colleague: do not force it; on systems with a shared user it is disabled in .mcp.json |
| "has an inactive version" | Someone is changing the original in SFP: it must be activated or discarded first |
| "Replacement refused by the project rules" | Package or request not allowed by .mcp.json |
| "changed after prepare" | The original or the copy changed after prepare, or the token was already used: run prepare again |
| "... is already recorded in transport request ..." | execute failed after recording: the original may be unchanged but is in the request; fix and run prepare + execute again, or remove the object from the request before release |
The preview does not change the NAST message, but the print program really runs: if the program is not print-only, ask for confirmation before running it.
SFP / SE63.<PREFIX>_* copies; XML schema based interfaces are not written.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/sap-arc1-kitInstalls on an SAP system (on-premise, through the ARC-1 MCP server) the tool kit that lets Claude run reports with variants/selection values and read the ALV output, create PDF previews of NAST print output, read and edit SmartForms as XML, replace a customer form with the approved copy, read and copy Adobe forms (SFP) as XML + XDP with their form interfaces, and give a customer Adobe form the layout of the approved copy. Use it when starting a new SAP project and the tools Custom_LaunchReport, Custom_PrintPreview, Custom_SmartFormRead/Write/Replace, Custom_AdobeFormRead/Write/Replace, Custom_AdobeInterfaceWrite are not available, when the user asks to "install/port the tools", "prepare the system", "set up the report launcher or SmartForms tools" on a new system or client, or when the skills sap-report-launcher / sap-smartform-xml / sap-adobe-form report that the tools are missing./sap-report-launcherRuns SAP reports (by name or transaction, e.g. MB52, ZMMBE) with a variant and/or selection values without SAP GUI and reads their ALV output as JSON or the list as text, through the ARC-1 tool Custom_LaunchReport. Use it whenever the user wants to run a report, try out a result, compare the output of two reports or two versions of a report (e.g. original and Z copy), check a newly developed report with real data, or see what comes out "with variant X" or "for plant Y", even if the tool is not named. Not for dialog transactions (VA01, VA02...) or for reading tables (use SAPQuery for that)./sap-smartform-xmlReads, copies and edits SAP SmartForms without SAP GUI through XML (ARC-1 tools Custom_SmartFormRead/Custom_SmartFormWrite) and checks the result by creating the PDF preview of a real document (Custom_PrintPreview), even with a form not yet configured in NACE/TNAPR. Use it when the user wants to change texts, addresses, logos, windows or logic of a print form (delivery note, invoice, order, confirmation), make a Z copy of a standard form, replace a customer form with the changed and approved version (Custom_SmartFormReplace, under a transport request), see how a SmartForms is built, find where a printed field comes from, or see the PDF preview of an SD/MM document with a NAST message, even without saying "SmartForms" or "XML". Not for Adobe Forms (SFP, skill sap-adobe-form) or S/4 Output Management (BRF+/APOC).npx claudepluginhub silvius1996/claude-sap-kit --plugin sap-arc1-kitOther plugins' skills for the same job