--- title: "Configuring the ReturnAction subnode" slug: "configuring-the-returnaction-subnode" tags: ["reference", "SAP Integration V2026.2"] updated: 2026-04-02T09:57:06Z published: 2026-04-02T09:57:06Z canonical: "help.dox42.com/configuring-the-returnaction-subnode" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.dox42.com/llms.txt > Use this file to discover all available pages before exploring further. # Configuring the ReturnAction subnode All available ReturnActions for a template are configured in the **ReturnAction** subnode. ReturnActions are used to transfer the generated document back to SAP for further processing. This enables subsequent SAP-based operations such as printing via SAP spool, storing the document in an archive, attaching it to business objects, or triggering follow-up processes. ![](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/image-1768206757189.png) **ReturnAction** subnode ## Configuration fields | Parameter | Requirement | Description | | --- | --- | --- | | `ReturnAction Id` | mandatory | Identifier for internal use. | | `Default` | optional | When checked, this ReturnAction is set to default. | | `Format` | mandatory | Defines how the generated document should be returned. | | `Filename` | optional | Enter the file name of the generated document. | | `Mode` | optional | Defines how the generated document should be returned: - `File` (default): document will be returned as file `ServiceResult.GeneratedDocs` - `Text`: document will be returned as text in `ServiceResult.ResultMessage` | | `SpecialFormat` | optional | Specifies a special format (dox42 Server For Documents only): - For PDF files: - `PDFA1b` - `PDFForm`(form fields are preserved in the PDF). - For HTML files: - `HTMLCode`: this will cause the text of the generated document to be interpreted in HTML code. - `EMFZIP` | | `Sign` | optional | The format PDF may bear a digital signature (dox42 Server For Documents only). | | `Condition` | optional | If value `false`, the Output Action will not be performed. | | `NumOfCop` | optional | Specifies how many copies should be generated within one file. | | `Active` | optional | Set your configuration as active by selecting the checkbox. | For more details, see the [dox42 Server documentation about ReturnActions](/help/docs/outputaction-returnaction).