# Steps to test connectivity in SAP

{% hint style="info" %}
**Important Note**:

This is a step-by-step "How-to" guide for testing connectivity in SAP. Please be aware that the values of different parameters and screenshots presented in this guide may vary depending on your specific use case. Before proceeding, please make sure to go through the [checklist](https://docs.cleartax.in/cleartax-docs/add-ons-and-extensions/sap-add-on/sap-connectivity-checklist).
{% endhint %}

**Step 1:** RUN the T-code `SM59` and select the `HTTP Connections to External Server` from the drop-down menu.

![](https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2FcXAmsdQ28HYe8THu66Nm%2Fimage.png?alt=media\&token=d3df20be-6c52-4cc9-9a0d-44739b392eed)

**Step 2:** Click the `Create` button. Then enter a unique name for the RFC Destination. Then choose the Connection Type as `G` and add a description.&#x20;

**Step 3**: Go to the `Technical Settings` tab and enter the Target Host Name and Path Prefix as per the [API reference](https://docs.cleartax.in/cleartax-docs/add-ons-and-extensions/sap-add-on/sap-connectivity-checklist/..#4.-product-environment-information). Enter the Service Number `443`.

<figure><img src="https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2Fyl2lA0GhqZHsBisD24g2%2Fspaces_-LZ9fXxeBEm3pJiVldcu_uploads_1NpY2nz4OUMZ2WkvGE8k_image%20(1).png?alt=media&#x26;token=784c55a2-be57-4f09-91ac-8638ee2ce460" alt=""><figcaption></figcaption></figure>

**Step 4:** Go to the `Logon & Security` tab and select SSL radio button as `Active` and SSL Certificate dropdown as `Default SSL Certificate(Standard)`.

![](https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2FVLL6NeTjBEGcwvxv9add%2Fimage.png?alt=media\&token=f3c64c14-a45f-4444-96bb-9bc7ab70dfc6)

**Step 5:** Finally, click on the `Connectivity Test` button.

<figure><img src="https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2FiljjC5K6Y3ckC9WBl2is%2Fspaces_-LZ9fXxeBEm3pJiVldcu_uploads_1NpY2nz4OUMZ2WkvGE8k_image.png?alt=media&#x26;token=5942866d-d06f-4260-8d37-97564af897f4" alt=""><figcaption></figcaption></figure>

**Success**: The connection test result should have `Status HTTP Response` value as 200 with status message OK.&#x20;

<figure><img src="https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2FgDRPynlEd7nzhGjJu8LR%2Fsuccess.png?alt=media&#x26;token=ebe40ea7-dd94-483c-80c6-eea86777e2d6" alt=""><figcaption></figcaption></figure>

**Error**: In case you see any other status code in the test result, please follow the troubleshooting steps.

{% content-ref url="steps-to-troubleshoot-connectivity-issues-in-sap" %}
[steps-to-troubleshoot-connectivity-issues-in-sap](https://docs.cleartax.in/cleartax-docs/add-ons-and-extensions/sap-add-on/sap-connectivity-checklist/steps-to-troubleshoot-connectivity-issues-in-sap)
{% endcontent-ref %}
