> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arc.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SAP IDoc Connector

> Bidirectional SAP IDoc data exchange supporting NetWeaver RFC, Classic RFC, JCO, and SOAP connection methods.

export const ServiceLogs = () => <p>The <strong>Logs</strong> tab lists the service logs generated by this connector. Each row represents a log file and shows its date modified, file name, size, and status. Use the search bar or the status filter to find a specific log, click a file name to preview or download it, or click <strong>Download All Logs</strong> to download all of them as a single zip file.</p>;

export const MacrosExamples = ({extraMacros = []}) => <>
    <p>
      Some macros, such as %Ext% and %ShortDate%, do not require an argument, but others do. All
      macros that take an argument use the following syntax: <code>%Macro:argument%</code>
    </p>

    <p>Here are some examples of the macros that take an argument:</p>

    <ul>
      <li>%Header:headername%: Where <code>headername</code> is the name of a header on a message.</li>
      <li>%Header:mycustomheader% resolves to the value of the <code>mycustomheader</code> header set on the input message.</li>
      <li>%Header:ponum% resolves to the value of the <code>ponum</code> header set on the input message.</li>
      <li>%RegexFilename:pattern%: Where <code>pattern</code> is a regex pattern. For example, <code>%RegexFilename:^([\w][A-Za-z]+)%</code> matches and resolves to the first word in the filename and is case insensitive (<code>test_file.xml</code> resolves to <code>test</code>).</li>
      <li>%Vault:vaultitem%: Where <code>vaultitem</code> is the name of an item in the <a href="/26.3/cloud/en/getting-started/administration/settings/global-settings-vault">vault</a>. For example, <code>%Vault:companyname%</code> resolves to the value of the <code>companyname</code> item stored in the vault.</li>
      <li>%DateFormat:format%: Where <code>format</code> is an accepted date format (see <a href="/26.3/cloud/en/scripting/value-formatters/date-formatters#sample-date-formats">Sample Date Formats</a> for details). For example, <code>%DateFormat:yyyy-MM-dd-HH-mm-ss-fff%</code> resolves to the date and timestamp on the file.</li>
      {extraMacros.filter(item => item.example).map(item => <li key={`ex-${item.name}`}>{item.example}</li>)}
    </ul>

    <p>You can also create more sophisticated macros, as shown in the following examples:</p>

    <ul>
      <li>Combining multiple macros in one filename: <code>%DateFormat:yyyy-MM-dd-HH-mm-ss-fff%%EXT%</code></li>
      <li>Including text outside of the macro: <code>MyFile_%DateFormat:yyyy-MM-dd-HH-mm-ss-fff%</code></li>
      <li>Including text within the macro: <code>%DateFormat:'DateProcessed-'yyyy-MM-dd_'TimeProcessed-'HH-mm-ss%</code></li>
    </ul>
  </>;

export const MacrosTable = ({siteName = "CData Arc", extraMacros = []}) => <>
    <p>
      Using macros in file naming strategies can enhance organizational efficiency and contextual
      understanding of data. By incorporating macros into filenames, you can dynamically include
      relevant information such as identifiers, timestamps, and header information, providing
      valuable context to each file.
    </p>

    <p>{siteName} supports these macros, which all use the following syntax: <code>%Macro%</code>.</p>

    <table>
      <thead>
        <tr><th>Macro</th><th>Description</th></tr>
      </thead>
      <tbody>
        <tr><td>ConnectorID</td><td>Evaluates to the ConnectorID of the connector.</td></tr>
        <tr><td>ConnectorName</td><td>Evaluates to the name of the connector. Enables you to include the connection name in file names or paths: for example, to tag backup files by which database connection produced them.</td></tr>
        <tr><td>Ext</td><td>Evaluates to the file extension of the file currently being processed by the connector.</td></tr>
        <tr><td>Filename</td><td>Evaluates to the filename (extension included) of the file currently being processed by the connector.</td></tr>
        <tr><td>FilenameNoExt</td><td>Evaluates to the filename (without the extension) of the file currently being processed by the connector.</td></tr>
        <tr><td>MessageId</td><td>Evaluates to the MessageId of the message being output by the connector.</td></tr>
        <tr><td>RegexFilename:<em>pattern</em></td><td>Applies a RegEx pattern to the filename of the file currently being processed by the connector.</td></tr>
        <tr><td>Header:<em>headername</em></td><td>Evaluates to the value of a targeted header (<code>headername</code>) on the current message being processed by the connector.</td></tr>
        <tr><td>LongDate</td><td>Evaluates to the current datetime of the system in long-handed format (for example, Wednesday, January 24, 2024).</td></tr>
        <tr><td>ShortDate</td><td>Evaluates to the current datetime of the system in a yyyy-MM-dd format (for example, 2024-01-24).</td></tr>
        <tr><td>DateFormat:<em>format</em></td><td>Evaluates to the current datetime of the system in the specified format (<code>format</code>). See <a href="/26.3/cloud/en/scripting/value-formatters/date-formatters#date-formats-with-literal-characters">Sample Date Formats</a> for the available datetime formats.</td></tr>
        <tr><td>Vault:<em>vaultitem</em></td><td>Evaluates to the value of the specified vault item.</td></tr>
        {extraMacros.map(item => <tr key={item.name}>
            <td>{item.name}</td>
            <td>{item.description}</td>
          </tr>)}
      </tbody>
    </table>
  </>;

export const EdiPrintView = ({fileFormat = "EDI", customImage = "x12_print_preview.png"}) => <>
    <p>When you view an {fileFormat} document on the connector <strong>Transactions</strong> tab, you can view it in a print preview format, or as the raw data. By default, the document is shown in the preview format, as shown in the following image:</p>
    <img src={`/public/images/${customImage}`} alt={`${fileFormat} print preview`} width="800" />
    <p>The preview format shows the data in an easy-to-read layout. Use the <strong>Raw View</strong> toggle in the top right corner to view the unformatted document.</p>
  </>;

export const MiscConnector = () => <>
    <p><em>Miscellaneous settings are for specific use cases.</em></p>
    <table>
      <thead>
        <tr>
          <th>Setting</th>
          <th>Description</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><strong>Other Settings</strong></td>
          <td>Enables you to configure hidden connector settings in a semicolon-separated list (for example, <code>setting1=value1;setting2=value2</code>). Normal connector use cases and functionality should not require the use of these settings.</td>
        </tr>
      </tbody>
    </table>
  </>;

export const ProcessingDelay = () => <>
    <h4>Processing Delay</h4>
    <table>
      <thead>
        <tr>
          <th>Setting</th>
          <th>Description</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><strong>Processing Delay</strong></td>
          <td>The amount of time (in seconds) by which the processing of files placed in the <strong>Transactions</strong> tab is delayed. This is a legacy setting. Best practice is to <a href="./Designing-a-Flow#interacting-with-the-local-file-system">use a File connector</a> to manage local file systems instead of this setting.</td>
        </tr>
      </tbody>
    </table>
  </>;

export const Logging = () => <>
    <p><em>Settings that govern the creation and storage of logs.</em></p>
    <table>
      <thead>
        <tr>
          <th>Setting</th>
          <th>Description</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><strong>Log Level</strong></td>
          <td>The verbosity of logs generated by the connector. When you request support, set this to <strong>Debug</strong>.</td>
        </tr>
        <tr>
          <td><strong>Log Subfolder Scheme</strong></td>
          <td>Instructs the connector to group files in the Logs folder according to the selected interval. The <strong>Weekly</strong> option (which is the default) instructs the connector to create a new subfolder each week and store all logs for the week in that folder. Leaving this setting blank tells the connector to save all logs directly in the Logs folder. For connectors that process many transactions, using subfolders helps keep logs organized and improves performance.</td>
        </tr>
        <tr>
          <td><strong>Log Messages</strong></td>
          <td>Check this to have the log entry for a processed file include a copy of the file itself. If you disable this, you might not be able to download a copy of the file from the <strong>Transactions</strong> tab.</td>
        </tr>
      </tbody>
    </table>
  </>;

export const SlasTab = ({siteName = "CData Arc"}) => <>
    <p><em>Settings related to configuring Service Level Agreements (SLAs).</em></p>
    <p>
      SLAs enable you to configure the volume you expect connectors in your flow to send or receive, and to set the time frame in which you expect that volume to be met. {siteName} sends emails to warn the user when an SLA is not met, and marks the SLA as <em>At Risk</em>, which means that if the SLA is not met soon, it will be marked as <em>Violated</em>. This gives the user an opportunity to step in and determine the reasons the SLA is not being met, and to take appropriate actions. If the SLA is still not met at the end of the at-risk time period, the SLA is marked as violated, and the user is notified again.
    </p>
    <p>
      To define an SLA, toggle <strong>Expected Volume</strong> on, then click the <strong>Settings</strong> tab.
    </p>
    <img src="/public/images/sla_empty.png" alt="SLA Empty" />
    <ul>
      <li>If your connector has separate send and receive actions, use the radio buttons to specify which direction the SLA pertains to.</li>
      <li>In the <strong>Expect at least</strong> portion of the window:
        <ul>
          <li>Set the minimum number of transactions you expect to be processed (the volume)</li>
          <li>Use the <strong>Every</strong> fields to specify the time frame</li>
          <li>Indicate when the SLA should go into effect. If you choose <strong>Starting on</strong>, complete the date and time fields.</li>
          <li>Check the boxes for the days of the week that you want the SLA to be in effect. Use the dropdown to choose <strong>Everyday</strong> if necessary.</li>
        </ul>
      </li>
      <li>In the <strong>Set status to 'At Risk'</strong> portion of the window, specify when the SLA should be marked as at risk.
        <ul>
          <li>By default, notifications are not sent until an SLA is in violation. To change that, check <strong>Send an 'At Risk' notification</strong>.</li>
        </ul>
      </li>
    </ul>
    <p>
      The following example shows an SLA configured for a connector that expects to receive 1000 files every day Monday-Friday. An at-risk notification is sent 1 hour before the end of the time period if the 1000 files have not been received.
    </p>
    <img src="/public/images/sla_defined.png" alt="SLA Configuration Example" />
    <Note>
      You can turn off SLA alerts if necessary. This can be useful during maintenance windows. Click <strong>Settings</strong> on the navbar, then navigate to <strong>Alerts &gt; General Alerts</strong>. Click the tablet and pencil icon to edit, and uncheck the <strong>SLA Alerts</strong> setting.
    </Note>
  </>;

export const AlertsTab = ({siteNameShort = "Arc"}) => <>
    <p><em>Settings related to configuring alerts.</em></p>
    <p>
      Before you can execute Service Level Agreements (SLAs), you need to set up email alerts for notifications. By default, {siteNameShort} uses the global settings on the <a href="./Settings-Page#alerts">Alerts</a> tab. To use other settings for this connector, toggle <strong>Override global setting</strong> on.
    </p>
    <p>
      By default, error alerts are enabled, which means that emails are sent whenever there is an error. To turn them off, uncheck the <strong>Enable</strong> checkbox.
    </p>
    <p>
      Enter a <strong>Subject</strong> (mandatory). Check <strong>Allow {siteNameShort}Script in Subject</strong> to use {siteNameShort}Script in the <strong>Subject</strong> field. When you select this, the <strong>{siteNameShort}Script Editor</strong> button appears (<img src="/public/images/rest_arcscript_editor.png" alt="arcscript editor button" style={{
  display: 'inline',
  verticalAlign: 'middle',
  margin: 0
}} />).
    </p> 
    <p>  
      Optionally, enter a comma-separated list of <strong>Recipient</strong> emails.
    </p>
  </>;

export const Performance = () => <>
    <p><em>Settings related to the allocation of resources to the connector.</em></p>
    <table>
      <thead>
        <tr>
          <th>Setting</th>
          <th>Description</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><strong>Max Workers</strong></td>
          <td>The maximum number of worker threads consumed from the threadpool to process files on this connector. If set, this overrides the default setting on the <a href="/26.3/cloud/en/getting-started/administration/settings/performance-settings">Performance Settings</a> portion of the <a href="/26.3/cloud/en/getting-started/administration/settings/advanced-settings">Advanced Settings</a> page.</td>
        </tr>
        <tr>
          <td><strong>Max Files</strong></td>
          <td>The maximum number of files sent by each thread assigned to the connector. If set, this overrides the default setting on the <a href="/26.3/cloud/en/getting-started/administration/settings/performance-settings">Performance Settings</a> portion of the <a href="/26.3/cloud/en/getting-started/administration/settings/advanced-settings">Advanced Settings</a> page.</td>
        </tr>
      </tbody>
    </table>
  </>;

export const siteName = "CData Arc";

export const siteNameShort = "Arc";

export const datasource = "SAP IDoc";
export const dataurl = "SAPIDoc";
export const slug = "sap-idoc";
export const fileFormat = "SAP IDoc";
export const extraMacros = [{
  name: "ARCKEY",
  description: "Evaluates to the key for the external message archive."
}, {
  name: "CIMTYP",
  description: "Evaluates to the custom extension defined by the user."
}, {
  name: "CREDAT",
  description: "Evaluates to the creation date of the IDoc."
}, {
  name: "CRETIM",
  description: "Evaluates to the creation time of the IDoc."
}, {
  name: "DIRECT",
  description: "Evaluates to the direction of the IDoc (it indicates if the IDoc is inbound or outbound)."
}, {
  name: "DOCNUM",
  description: "Evaluates to the unique number assigned to the IDoc."
}, {
  name: "DOCREL",
  description: "Evaluates to the SAP release number for the IDoc."
}, {
  name: "EXPRSS",
  description: "Evaluates to the value of the EXPRSS flag."
}, {
  name: "IDOCTYP",
  description: "Evaluates to the name of the basic type of the IDoc."
}, {
  name: "MANDT",
  description: "Evaluates to the client number."
}, {
  name: "MESCOD",
  description: "Evaluates to the message code."
}, {
  name: "MESFCT",
  description: "Evaluates to the message function."
}, {
  name: "MESTYP",
  description: "Evaluates to the message type."
}, {
  name: "OUTMOD",
  description: "Evaluates to the output mode."
}, {
  name: "RCVLAD",
  description: "Evaluates to the recipient's logical address."
}, {
  name: "RCVPFC",
  description: "Evaluates to the recipient's partner function."
}, {
  name: "RCVPOR",
  description: "Evaluates to the receiver port value."
}, {
  name: "RCVPRN",
  description: "Evaluates to the receiver partner number."
}, {
  name: "RCVPRT",
  description: "Evaluates to the receiver partner type."
}, {
  name: "RCVSAD",
  description: "Evaluates to the recipient's address."
}, {
  name: "REFGRP",
  description: "Evaluates to the message group (such as EDI Message Group)."
}, {
  name: "REFINT",
  description: "Evaluates to the transmission file (such as EDI Interchange)."
}, {
  name: "REFMES",
  description: "Evaluates to the message (such as EDI Message)"
}, {
  name: "SERIAL",
  description: "Evaluates to the EDI serialization field."
}, {
  name: "SNDLAD",
  description: "Evaluates to the sender's logical address."
}, {
  name: "SNDPFC",
  description: "Evaluates to the sender's partner function."
}, {
  name: "SNDPOR",
  description: "Evaluates to the sender's port."
}, {
  name: "SNDPRN",
  description: "Evaluates to the sender's partner number."
}, {
  name: "SNDPRT",
  description: "Evaluates to the sender's partner type."
}, {
  name: "SNDSAD",
  description: "Evaluates to the sender's address."
}, {
  name: "STATUS",
  description: "Evaluates to the status of the IDoc."
}, {
  name: "STD",
  description: "Evaluates to a flag indicating the EDI standard."
}, {
  name: "STDMES",
  description: "Evaluates to the EDI message type."
}, {
  name: "STDVRS",
  description: "Evaluates to the EDI standard, version and release."
}, {
  name: "TABNAM",
  description: "Evaluates to the name of the table structure."
}, {
  name: "TEST",
  description: "Evaluates to the value of the test flag."
}];

An {datasource} is a data container that is used to exchange information between SAP and another process that can understand the syntax and semantics of the data. The connector supports sending and receiving IDoc files to and from a variety of SAP systems. You can also use it to translate IDocs without needing to connect to SAP.

## Key Capabilities

* Comprehensive SAP IDoc integration supporting multiple connection methods (NetWeaver RFC SDK, Classic RFC SDK, JCO, and SOAP)
* Bidirectional data exchange with support for raw IDoc and IDoc XML formats
* Automatic schema refresh and validation with control record header management for multi-SAP-system routing

## Overview

IDoc connectors can connect to SAP using the following methods:

**Windows**

* NetWeaver RFC SDK
* Classic RFC SDK
* Classic RFC SDK with Unicode support
* SOAP (send-only)

**Java**

* Java connector (JCO)
* SOAP (send-only)

IDoc connectors can send, receive, and translate files formatted either as raw IDoc or as IDoc XML.

## Prerequisites

If you are using the {datasource} connector in [Send](./sap-idoc-send) or [Receive](./sap-idoc-receive) mode, you must have a live {datasource} system and a clear network path to that system from {siteNameShort}. You also need to install the necessary dependencies on your machine. Follow the instructions below for your connection type.

<Note>If you are using the connector in [Translate](./sap-idoc-translate) mode, these prerequisites are not required.</Note>

### Using NetWeaver RFC SDK

The following libraries from the NetWeaver RFC SDK must be placed into the {siteNameShort} `www\\bin\\x64` folder (`www\\bin\\x86` on 32-bit operating systems):

* sapnwrfc.dll
* icudt30.dll
* icuin30.dll
* icuuc30.dll
* libicudecnumber.dll
* libsapucum.dll

<Note>
  - The .dll names might be different based on the version of the SAP RFC SDK you have installed. The examples above are for version 3.0.
  - You need to add the `sapgw00` service to your listed services for the NetWeaver SDK connection to work on your client machine. You can add it to the services file at `C:\\Windows\\System32\\drivers\\etc\\services`.
</Note>

### Using Classic RFC SDK

The non-Unicode library does not require anything other than librfc32.dll. Place librfc32.dll into the {siteNameShort} `www\\bin\\x64` folder (`www\\bin\\x86` on 32-bit operating systems).

<Note>These libraries are provided in both x86 and x64, so you must use the same platform that the process is using. If the application is running on a 64-bit version of Windows, the process is 64-bit.</Note>

### Using Classic RFC SDK with Unicode Support

The following libraries from the SAP RFC SDK must be placed into the {siteNameShort} `www\\bin\\x64` folder (`www\\bin\\x86` on 32-bit operating systems):

* librfc32u.dll
* icudt30.dll
* icuin30.dll
* icuuc30.dll

<Note>
  - The .dll names might be different based on the version of the SAP RFC SDK you have installed. The examples above are for version 3.0.
  - These libraries are provided in both x86 and x64, so you must use the same platform that the process is using. If the application is running on a 64-bit version of Windows, the process is 64-bit.
</Note>

### Using the Java Connector

To use the Java connector, add sapjco3.jar to the `lib` folder of your Java servlet container.

### Using SOAP

SOAP can only be used to [send](./sap-idoc-send) IDocs to SAP. You must use a different connection type to [receive](./sap-idoc-receive) IDocs from SAP.

<Note>This requires enabling SOAP connections on the SAP system.</Note>

## Add a Connection

To allow {siteNameShort} to send or receive SAP data, you must first establish a connection to SAP. You have two ways to establish this connection:

* Add a {datasource} connector to your flow. Then, in the **Settings** tab, click **Create** next to the Connection drop-down list.
* Open the {siteNameShort} **Settings** page, then open the **Connections** tab. Click **Add**, select **{datasource}**, and click **Next**.

<Note>
  - The login process is only required the first time the connection is created.
  - Connections to {datasource} can be re-used across multiple {datasource} connectors.
</Note>

### Enter Connection Settings

After opening a new connection dialogue, give it a **Name**, then complete the other options.

#### Host Configuration

*Settings related to establishing the connection to the SAP system.*

| Setting           | Description                                                                                                                                                  |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Connect Type**  | The method with which to connect to SAP. See the [Establishing a Connection](#establishing-a-connection) section for your method for additional information. |
| **SAP Host**      | Hostname or IP address of the target SAP system.                                                                                                             |
| **System Number** | The number by which the target SAP system is defined. Valid values are 0-99, and often this value should be 0.                                               |

#### Client Authentication

*Settings related to authenticating against the SAP system.*

| Setting      | Description                                          |
| ------------ | ---------------------------------------------------- |
| **Client**   | The client that is authenticating to the SAP system. |
| **User**     | The username credential for authentication.          |
| **Password** | The password for the specified user.                 |

#### Language Settings

*Settings related to communication language.*

| Setting      | Description                                                                                                                            |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| **Language** | The language value to be used when connecting to the SAP system. Set this to the ISO 639-1 value for the language the SAP system uses. |

#### Gateway

*Settings related to communicating with SAP through a gateway.*

| Setting             | Description                                                         |
| ------------------- | ------------------------------------------------------------------- |
| **Gateway Host**    | The hostname or IP address of the gateway through which to connect. |
| **Gateway Service** | The gateway service to use.                                         |

#### Logon Load Balancing

*Settings related to logging in to the SAP system as a group to enable load balancing.*

| Setting            | Description                            |
| ------------------ | -------------------------------------- |
| **Message Server** | The service name of the load balancer. |
| **System ID**      | Identifies the SAP system.             |
| **Logon Group**    | The group to use when load balancing.  |

#### Secure Network Communications (SNC)

*Settings related to using an external security product to enhance the SAP connection security.*

| Setting                             | Description                                                    |
| ----------------------------------- | -------------------------------------------------------------- |
| **SNC Name**                        | The SNC name for the machine making the connection.            |
| **SNC Partner Name**                | The SNC name of the SAP system the connector is connecting to. |
| **SNC Quality of Protection Level** | The level of protection added by the SNC product.              |
| **SNC Library**                     | The path to the external security product's library.           |

Click **Test Connection** to ensure that {siteNameShort} can connect to SAP with the provided information. If an error occurs, check all fields and try again.

Click **Add Connection** to save your changes.

<Tip>Establishing a connection is not required if you are translating an IDoc.</Tip>

## Settings Tab

| Setting                   | Description                                                                                     |
| ------------------------- | ----------------------------------------------------------------------------------------------- |
| **Connector Id**          | The static, unique identifier for the connector.                                                |
| **Connector Type**        | Displays the connector name and a description of what it does.                                  |
| **Connector Description** | An optional field to provide a free-form description of the connector and its role in the flow. |
| **Connection**            | Choose a connection from the list.                                                              |

### Select an Action

When you add an {datasource} connector to a [flow](../../flows/flows), you must choose the action that the connector should perform. The **Settings** tab then updates to display the relevant options.

The following table outlines the available actions. Click the links in the table to access the specific settings for each action.

| Action                            | Description                                                   |
| --------------------------------- | ------------------------------------------------------------- |
| [Send](./sap-idoc-send)           | Connector settings specific to sending IDoc files to SAP.     |
| [Receive](./sap-idoc-receive)     | Connector settings specific to receiving IDoc files from SAP. |
| [Translate](./sap-idoc-translate) | Connector settings specific to translating IDoc files.        |

## Automation Tab

### Automation Settings

*Settings related to the automatic processing of files by the connector.*

| Action             | Description                                                     |
| ------------------ | --------------------------------------------------------------- |
| **Send**           | Whether files arriving at the connector are automatically sent. |
| **Retry Interval** | The amount of time before a failed send is retried.             |
| **Max Attempts**   | The maximum number of times a failed send is retried.           |

### Performance

<Performance />

## Alerts Tab

<AlertsTab siteNameShort={siteNameShort} />

## SLAs Tab

<SlasTab siteName={siteName} />

## Advanced Tab

#### Logging

<Logging />

#### Other Settings

<ProcessingDelay />

<MiscConnector />

## Logs Tab

<ServiceLogs />

## Establishing a Connection

### Configuring Services

In addition to the [prerequisites](#prerequisites) described above, you must add the following services to `%WINDIR%\\system32\\drivers\\etc\\services`, or `/etc/services` if your system is running Linux or Mac OS X. If SAP NetWeaver is already installed on the machine, no further action is required.

| Service Name | Connector Number/Protocol |
| ------------ | ------------------------- |
| sapdp00      | 3200/tcp                  |
| sapdp01      | 3201/tcp                  |
| sapdp02      | 3202/tcp                  |
| sapdp03      | 3203/tcp                  |
| sapdp04      | 3204/tcp                  |
| sapdp05      | 3205/tcp                  |
| sapdp06      | 3206/tcp                  |
| sapdp07      | 3207/tcp                  |
| sapdp08      | 3208/tcp                  |
| sapdp09      | 3209/tcp                  |
| sapdp10      | 3210/tcp                  |
| sapdp11      | 3211/tcp                  |
| sapdp12      | 3212/tcp                  |
| sapdp13      | 3213/tcp                  |
| sapdp14      | 3214/tcp                  |
| sapdp15      | 3215/tcp                  |
| sapdp16      | 3216/tcp                  |
| sapdp17      | 3217/tcp                  |
| sapdp18      | 3218/tcp                  |
| sapdp19      | 3219/tcp                  |
| sapdp20      | 3220/tcp                  |
| sapdp21      | 3221/tcp                  |
| sapdp22      | 3222/tcp                  |
| sapdp23      | 3223/tcp                  |
| sapdp24      | 3224/tcp                  |
| sapdp25      | 3225/tcp                  |
| sapdp26      | 3226/tcp                  |
| sapdp27      | 3227/tcp                  |
| sapdp28      | 3228/tcp                  |
| sapdp29      | 3229/tcp                  |
| sapdp30      | 3230/tcp                  |
| sapdp31      | 3231/tcp                  |
| sapdp32      | 3232/tcp                  |
| sapdp33      | 3233/tcp                  |
| sapdp34      | 3234/tcp                  |
| sapdp35      | 3235/tcp                  |
| sapdp36      | 3236/tcp                  |
| sapdp37      | 3237/tcp                  |
| sapdp38      | 3238/tcp                  |
| sapdp39      | 3239/tcp                  |
| sapdp40      | 3240/tcp                  |
| sapdp41      | 3241/tcp                  |
| sapdp42      | 3242/tcp                  |
| sapdp43      | 3243/tcp                  |
| sapdp44      | 3244/tcp                  |
| sapdp45      | 3245/tcp                  |
| sapdp46      | 3246/tcp                  |
| sapdp47      | 3247/tcp                  |
| sapdp48      | 3248/tcp                  |
| sapdp49      | 3249/tcp                  |
| sapdp50      | 3250/tcp                  |
| sapdp51      | 3251/tcp                  |
| sapdp52      | 3252/tcp                  |
| sapdp53      | 3253/tcp                  |
| sapdp54      | 3254/tcp                  |
| sapdp55      | 3255/tcp                  |
| sapdp56      | 3256/tcp                  |
| sapdp57      | 3257/tcp                  |
| sapdp58      | 3258/tcp                  |
| sapdp59      | 3259/tcp                  |
| sapdp60      | 3260/tcp                  |
| sapdp61      | 3261/tcp                  |
| sapdp62      | 3262/tcp                  |
| sapdp63      | 3263/tcp                  |
| sapdp64      | 3264/tcp                  |
| sapdp65      | 3265/tcp                  |
| sapdp66      | 3266/tcp                  |
| sapdp67      | 3267/tcp                  |
| sapdp68      | 3268/tcp                  |
| sapdp69      | 3269/tcp                  |
| sapdp70      | 3270/tcp                  |
| sapdp71      | 3271/tcp                  |
| sapdp72      | 3272/tcp                  |
| sapdp73      | 3273/tcp                  |
| sapdp74      | 3274/tcp                  |
| sapdp75      | 3275/tcp                  |
| sapdp76      | 3276/tcp                  |
| sapdp77      | 3277/tcp                  |
| sapdp78      | 3278/tcp                  |
| sapdp79      | 3279/tcp                  |
| sapdp80      | 3280/tcp                  |
| sapdp81      | 3281/tcp                  |
| sapdp82      | 3282/tcp                  |
| sapdp83      | 3283/tcp                  |
| sapdp84      | 3284/tcp                  |
| sapdp85      | 3285/tcp                  |
| sapdp86      | 3286/tcp                  |
| sapdp87      | 3287/tcp                  |
| sapdp88      | 3288/tcp                  |
| sapdp89      | 3289/tcp                  |
| sapdp90      | 3290/tcp                  |
| sapdp91      | 3291/tcp                  |
| sapdp92      | 3292/tcp                  |
| sapdp93      | 3293/tcp                  |
| sapdp94      | 3294/tcp                  |
| sapdp95      | 3295/tcp                  |
| sapdp96      | 3296/tcp                  |
| sapdp97      | 3297/tcp                  |
| sapdp98      | 3298/tcp                  |
| sapdp99      | 3299/tcp                  |
| sapgw00      | 3300/tcp                  |
| sapgw01      | 3301/tcp                  |
| sapgw02      | 3302/tcp                  |
| sapgw03      | 3303/tcp                  |
| sapgw04      | 3304/tcp                  |
| sapgw05      | 3305/tcp                  |
| sapgw06      | 3306/tcp                  |
| sapgw07      | 3307/tcp                  |
| sapgw08      | 3308/tcp                  |
| sapgw09      | 3309/tcp                  |
| sapgw10      | 3310/tcp                  |
| sapgw11      | 3311/tcp                  |
| sapgw12      | 3312/tcp                  |
| sapgw13      | 3313/tcp                  |
| sapgw14      | 3314/tcp                  |
| sapgw15      | 3315/tcp                  |
| sapgw16      | 3316/tcp                  |
| sapgw17      | 3317/tcp                  |
| sapgw18      | 3318/tcp                  |
| sapgw19      | 3319/tcp                  |
| sapgw20      | 3320/tcp                  |
| sapgw21      | 3321/tcp                  |
| sapgw22      | 3322/tcp                  |
| sapgw23      | 3323/tcp                  |
| sapgw24      | 3324/tcp                  |
| sapgw25      | 3325/tcp                  |
| sapgw26      | 3326/tcp                  |
| sapgw27      | 3327/tcp                  |
| sapgw28      | 3328/tcp                  |
| sapgw29      | 3329/tcp                  |
| sapgw30      | 3330/tcp                  |
| sapgw31      | 3331/tcp                  |
| sapgw32      | 3332/tcp                  |
| sapgw33      | 3333/tcp                  |
| sapgw34      | 3334/tcp                  |
| sapgw35      | 3335/tcp                  |
| sapgw36      | 3336/tcp                  |
| sapgw37      | 3337/tcp                  |
| sapgw38      | 3338/tcp                  |
| sapgw39      | 3339/tcp                  |
| sapgw40      | 3340/tcp                  |
| sapgw41      | 3341/tcp                  |
| sapgw42      | 3342/tcp                  |
| sapgw43      | 3343/tcp                  |
| sapgw44      | 3344/tcp                  |
| sapgw45      | 3345/tcp                  |
| sapgw46      | 3346/tcp                  |
| sapgw47      | 3347/tcp                  |
| sapgw48      | 3348/tcp                  |
| sapgw49      | 3349/tcp                  |
| sapgw50      | 3350/tcp                  |
| sapgw51      | 3351/tcp                  |
| sapgw52      | 3352/tcp                  |
| sapgw53      | 3353/tcp                  |
| sapgw54      | 3354/tcp                  |
| sapgw55      | 3355/tcp                  |
| sapgw56      | 3356/tcp                  |
| sapgw57      | 3357/tcp                  |
| sapgw58      | 3358/tcp                  |
| sapgw59      | 3359/tcp                  |
| sapgw60      | 3360/tcp                  |
| sapgw61      | 3361/tcp                  |
| sapgw62      | 3362/tcp                  |
| sapgw63      | 3363/tcp                  |
| sapgw64      | 3364/tcp                  |
| sapgw65      | 3365/tcp                  |
| sapgw66      | 3366/tcp                  |
| sapgw67      | 3367/tcp                  |
| sapgw68      | 3368/tcp                  |
| sapgw69      | 3369/tcp                  |
| sapgw70      | 3370/tcp                  |
| sapgw71      | 3371/tcp                  |
| sapgw72      | 3372/tcp                  |
| sapgw73      | 3373/tcp                  |
| sapgw74      | 3374/tcp                  |
| sapgw75      | 3375/tcp                  |
| sapgw76      | 3376/tcp                  |
| sapgw77      | 3377/tcp                  |
| sapgw78      | 3378/tcp                  |
| sapgw79      | 3379/tcp                  |
| sapgw80      | 3380/tcp                  |
| sapgw81      | 3381/tcp                  |
| sapgw82      | 3382/tcp                  |
| sapgw83      | 3383/tcp                  |
| sapgw84      | 3384/tcp                  |
| sapgw85      | 3385/tcp                  |
| sapgw86      | 3386/tcp                  |
| sapgw87      | 3387/tcp                  |
| sapgw88      | 3388/tcp                  |
| sapgw89      | 3389/tcp                  |
| sapgw90      | 3390/tcp                  |
| sapgw91      | 3391/tcp                  |
| sapgw92      | 3392/tcp                  |
| sapgw93      | 3393/tcp                  |
| sapgw94      | 3394/tcp                  |
| sapgw95      | 3395/tcp                  |
| sapgw96      | 3396/tcp                  |
| sapgw97      | 3397/tcp                  |
| sapgw98      | 3398/tcp                  |
| sapgw99      | 3399/tcp                  |

### Logging on to SAP

The following [settings](#settings-tab) are required to connect with your SAP system.

| Setting           | Description                                                                                                                                                                                                            |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **SAP Host**      | Host name of the target system. Host names can be regular host names defined in a `hosts` file, an IP address like `123.123.123.123`, or an SAProuter address such as `/H/hostname/S/connector/H/host/S/connector/...` |
| **System Number** | The number by which the target system is defined. The valid range is 0 to 99, but in general this is 0.                                                                                                                |
| **Client**        | The client authenticating to the SAP system.                                                                                                                                                                           |
| **User**          | The user that is authenticating to the SAP system.                                                                                                                                                                     |
| **Password**      | The password for the authenticating user.                                                                                                                                                                              |

#### Gateway

When connecting to SAP via a gateway, use the options in the [Gateway](#gateway) section of the **Advanced** tab.

#### Load Balancing

To log on via load balancing, set the properties in the [Logon Load Balancing](#logon-load-balancing) section of the **Advanced** tab.

#### Secure Network Communications (SNC)

To enable secure network communications, check the **Enable SNC** box in the [Secure Network Communications (SNC)](#secure-network-communications-snc) section of the **Advanced** tab. Set **SNC Library** to the .dll of the SNC library you want to use to connect with SAP.

### Print View

<EdiPrintView fileFormat="SAP IDoc" customImage="idoc_print_preview.png" />

## Macros

<MacrosTable siteName={siteName} extraMacros={extraMacros} />

### Examples

<MacrosExamples extraMacros={extraMacros} />
