---
schema_version: "1"
id: 7e229ae2c6317fd9361039253cf5fb3f069abb85e9b36788ebf7fec9d5619faa
title: SAP Connector 5.9 Additional Configuration
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/sap-connector/latest/sap-connector-config-topics.md
canonical_url: https://docs.mulesoft.com/sap-connector/latest/sap-connector-config-topics
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 25a21a881673305788849cf96c561a505b7cf9022f535b7269753f516a8e136f
description: MuleSoft Documentation Site
release: "5.9"
latest: true
---
---
product: SAP Connector
version: 5.9
is-latest-version: true
---

# SAP Connector 5.9 Additional Configuration

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

After you complete basic SAP Connector configuration, you can perform additional configuration
tasks, such as changing advanced settings and defining extended properties.

## Configure General Settings

1.  At the bottom of the canvas, click **Global Elements**.

2.  Click **Create**.

3.  Expand **Connector Configuration**, select either **SAP Inbound** or **SAP Outbound**, and click
    **OK**.

4.  Click the **Advanced tab** at the top of the **Global Element Properties** screen:

    ![Advanced tab selected in Global element properties window](/mulesoft/current/en-us/sap-connector/latest/_images/sap-connector-config-adv.png)

5.  In the **General** section, to set the **Max Idle time** parameter:

    1.  Select **Expiration policy**.

    2.  Enter a value in the **Max Idle time**, and then add the **Time Unit**.

    3.  Click **OK**

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Field</th><th>Type</th><th>Description</th><th>Default Value</th></tr></thead><tbody><tr><td><p><strong>Expiration Policy</strong></p></td><td><div><div><p>ExpirationPolicy</p></div></div></td><td><div><div><p>Configures the minimum amount of time that a dynamic configuration instance can remain idle before the runtime considers it eligible for expiration. This does not mean that the platform expires the instance at the exact moment that it becomes eligible. The runtime purges the instances when appropriate.</p></div></div></td><td><div></div></td></tr><tr><td><p><strong>Max Idle time</strong></p></td><td><div><div><p>Number</p></div></div></td><td><div><div><p>A scalar time value for the maximum amount of time a dynamic configuration instance should be allowed to be idle before it’s considered eligible for expiration.</p></div></div></td><td><div></div></td></tr><tr><td><p><strong>Time unit</strong></p></td><td><div><div><p>Enumeration one of:</p></div><div><ul><li><p>DAYS</p></li><li><p>HOURS</p></li><li><p>MICROSECONDS</p></li><li><p>MILLISECONDS</p></li><li><p>MINUTES</p></li><li><p>NANOSECONDS SECONDS</p></li></ul></div></div></td><td><div></div></td><td><div></div></td></tr></tbody></table>

## Configure Advanced Settings

![Fields in Advanced tab of global element properties window](/mulesoft/current/en-us/sap-connector/latest/_images/sap-advanced.png)

You can set encoding, version, flag, format, and timeout parameters in Advanced settings.

To change these field values, click the **Advanced tab** at the top of the **Global Element
Properties** screen:

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Field</th><th>XML Attribute</th><th>Description</th><th>Default Value</th></tr></thead><tbody><tr><td><p><strong>Display Name</strong></p></td><td><div><div><p>name</p></div></div></td><td><div><div><p>Set a reference name for the endpoint used internally by the Mule configuration.</p></div></div></td><td><div></div></td></tr><tr><td><p><strong>Encoding</strong></p></td><td><div><div><p><code>encoding</code></p></div></div></td><td><div><div><p>Set a canonical name for an encoding. See <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html">Oracle’s supported encodings</a>.</p></div></div></td><td><div></div></td></tr><tr><td><p><strong>Default IDocument Version</strong></p></td><td><div><div><p><code>defaultIdocumentVersion</code></p></div></div></td><td><div><div><p>Set the version when sending an intermediate document (IDoc). Values for the IDoc version correspond to <code>IDOC_VERSION_xxxx</code> constants in <code>com.sap.conn.idoc.IDocFactory</code>.</p></div></div></td><td><div></div></td></tr><tr><td><p><strong>Disable Function template cache flag</strong></p></td><td><div><div><p><code>disableFunctionTemplateCacheFlag</code></p></div></div></td><td><div><div><p>Set to disable the function template cache.</p></div></div></td><td><div><div><p><code>false</code></p></div></div></td></tr><tr><td><p><strong>Evaluate response flag</strong></p></td><td><div><div><p><code>evaluateResponseFlag</code></p></div></div></td><td><div><div><p>Set if an error response should throw an exception or let the user handle it with another result.</p></div></div></td><td><div><div><p><code>false</code></p></div></div></td></tr><tr><td><p><strong>Log trace flag</strong></p></td><td><div><div><p><code>logTraceFlag</code></p></div></div></td><td><div><div><p>Set if the trace should be logged on the Mule server.</p></div></div></td><td><div><div><p><code>false</code></p></div></div></td></tr><tr><td><p><strong>Use SAP format</strong></p></td><td><div><div><p><code>useSAPFormat</code></p></div></div></td><td><div><div><p>Set to use the SAP default format when working with business application programming interface (BAPI) functions using a synchronous remote function call (sRFC).</p></div></div></td><td><div><div><p>false</p></div></div></td></tr></tbody></table>

## Define Extended Properties

Extended properties enable you to tune SAP outbound configuration parameters.

To define extended properties for the SAP connector global element:

1.  Navigate to the **Advanced** tab on the **General** pane:

    ![Advanced tab selected in the General tab](/mulesoft/current/en-us/sap-connector/latest/_images/sap-connector-advanced-tab.png)

2.  Locate the **Extended Properties** section at the top of the window.

3.  Select the **Edit inline** option.

4.  Click **+** to add a new extended property.  
    Use the same property name that SAP uses:

    1.  [Pooling Config](https://help.sap.com/docs/r/b865ed651e414196b39f8922db2122c7/Cloud/en-US/8278bed44893498f95d5d6d5f0a47f35.html)

    2.  [Target System configuration](https://help.sap.com/docs/r/b865ed651e414196b39f8922db2122c7/Cloud/en-US/f8fac995b0144a0b8ec0801b8f7bab3e.html)

### Configure the Client Environment

Configure the system variables that depend on the operating system you are using, and generate the
PSE (personal security environment):

1.  Use the following command to open your cmd or terminal and unpack the SAPCAR and SAP
    Cryptographic Library:

    \`SAPCAR -xvf <name\_of\_the\_file.SAR>

    This extracts files from the folder **(which folder?)**

2.  Configure the following environment variables: **(Do the variables vary by OS or are they the
    same and just configured differently?)** \* For this example, the path to the library is
    “C:\\Users\\Administrator\\Desktop\\SNC”:\*

    - SNC\_LIB

    - SECUDIR = `<Path_to_library>`

    - LD\_LIBRARY\_PATH = `<Path_to_library>\sapcrypto.dll`

    - SSF\_LIBRARY\_PATH = `<Path_to_library>\sapcrypto.dll`

      For Windows, the `sapcrypto.dll` 64bit version must be in another path and added to a new
      variable called SNC\_LIB\_64.

      In your cmd or terminal, use the following command to create the PSE:

      `sapgenpse gen_pse -v -p RFC.pse`

      When you run this command, you must enter a password or PIN to use later and a distinguished
      name, which must be unique. You can check for names that are already used at STRUST.

3.  Add the credentials that your session user needs to access the PSE which will create the file
    cred\_v2 with this command: sapgenpse seclogin -p RFC -O you\_user.

## Next

Now that you have completed configuration, you can experiment with the SAP
[Examples](https://docs.mulesoft.com/sap-connector/latest/sap-connector-examples).

## See Also

- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)

- [Salesforce Help](https://help.salesforce.com)
