<h2>Establish an SAP connection</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Establish an SAP connection" /><meta name="abstract" content="After you have deployed the Advanced Business Application Programming (ABAP) program in your SAP system, create a connection profile to establish a connection between your SAP system and your ServiceNow instance." /><meta name="description" content="After you have deployed the Advanced Business Application Programming (ABAP) program in your SAP system, create a connection profile to establish a connection between your SAP system and your ServiceNow instance." /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/sap-publisher-pack.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/it-asset-management.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/c_SoftwareAssetMgmt.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/sam-publisher-packs.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/component-installed-sap-plugin.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/task/import-abap-program-sap.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/task/create-entitlement-sap.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/task/add-software-model-sap.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/task/create-named-user.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/task/create-named-user-type-role-mapping.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/task/create-sap-pricelist.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/task/import-custom-sap-named-user-type.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/task/import-custom-sap-price-list.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/usmm-optimization.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/sap-named-user-transaction-activity.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/self-declaring-sap-engine-usage.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/reference/dashboard-sap.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/reference/publisher-overview-sap.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-08-01" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="add-sap-connection" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Establish an SAP connection</title></head><body id="add-sap-connection"> <div class="breadcrumb"><a class="link" href="../../../product/software-asset-management2/concept/it-asset-management.html" title="Manage software licenses, hardware assets, and cloud assets with intuitive work flows and life cycle visibility.">IT Asset Management</a> > <a class="link" href="../../../product/software-asset-management2/concept/c_SoftwareAssetMgmt.html" title="The ServiceNow Software Asset Management (SAM) application systematically tracks, evaluates, and manages software licenses, compliance, and optimization. You can reclaim unused software rights, purchase new software rights, and manage allocations for entitlements.">Software Asset Management</a> > <a class="link" href="../../../product/software-asset-management2/concept/sam-publisher-packs.html" title="With Software Asset Management, there are several publisher packs that can be used to extend functionality between the ServiceNow AI Platform and your third-party software applications.">Supported software publisher licenses</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Establish an <span class="ph">SAP</span> connection</h1> <div class="body taskbody"><p class="shortdesc">After you have deployed the Advanced Business Application Programming (ABAP) program in your <span class="ph">SAP</span> system, create a connection profile to establish a connection between your <span class="ph">SAP</span> system and your <span class="ph">ServiceNow</span> instance.</p> <div class="section prereq p" id="add-sap-connection__prereq_bbf_k5k_xlb"> <p class="p">Before establishing a connection between <span class="ph">SAP</span> and your <span class="ph">ServiceNow</span> instance, check if your <span class="ph">SAP</span> system network is accessible to external applications like <span class="ph">ServiceNow</span>. If external connections are blocked, you can install a <span class="ph">MID Server</span>. A <span class="ph">MID Server</span> enables communication and data movement between a <span class="ph">ServiceNow</span> instance and external applications or data sources. For instructions, see <a class="xref" href="https://docs.servicenow.com/csh?topicname=mid-server-installation&version=xanadu&pubname=xanadu-servicenow-platform" target="_blank" rel="noopener noreferrer">Installing the MID Server</a>.</p> <p class="p">If you already have a <span class="ph">MID Server</span> installed in the network and connected to your <span class="ph">ServiceNow</span> instance, this <span class="ph">SAP</span> connection will automatically use it.</p> <p class="p">Role required: admin</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">SAP Compliance and Optimization</span> > <span class="ph uicontrol">Connection Setup</span></span> and select <span class="ph uicontrol">New</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the form, fill in the fields.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="add-sap-connection__table_llt_dlc_hfb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span><span class="ph">SAP</span> Connection Setup form</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry nocellnorowborder" style="vertical-align:top;" id="d116064e142">Field</th><th class="entry cell-norowborder" style="vertical-align:top;" id="d116064e145">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d116064e142 ">Name</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d116064e145 ">Name of connection profile.</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d116064e142 ">Default price list</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d116064e145 ">Default price list that should be considered for reconciliation.</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d116064e142 ">WSDL</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d116064e145 ">Web Service Description Language (WSDL) URL from the SOA manager, that includes an IP address, that is used to connect to the <span class="ph">SAP</span> system.<div class="note"><span class="notetitle">Note:</span> Do not change the <span class="ph">SAP</span> WSDL name. The WSDL service definition name must be /NOW/SAMP and the service binding name must be NOW_SAMP. The only WSDL name that can be changed is the WSDL generation name.</div> </td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d116064e142 ">User name</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d116064e145 ">User name used to connect to the <span class="ph">SAP</span> system.</td></tr><tr class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d116064e142 ">Password</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e145 ">Password used to connect to the <span class="ph">SAP</span> system.</td></tr></tbody></table> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Submit</span>.</span> <div class="itemgroup stepresult">The initial connection is established.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Select the <span class="ph">SAP</span> connection and review the fields on the record.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="add-sap-connection__table_vzk_fwb_qfb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 2. </span><span class="ph">SAP</span> Connection record</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d116064e255">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d116064e258">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Name of the connection profile. The value is generated in the <span class="ph">SAP</span> Connection Setup form.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Default price list</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Default price list that should be considered for reconciliation. The value is generated in the <span class="ph">SAP</span> Connection Setup form.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Use USMM Role Optimization</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Check box to specify USMM role based optimization that must be applied during reconciliation.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Last run</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Date and time that data was last pulled for the <span class="ph">SAP</span> connection.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">SOAP message</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">SOAP message that has the <span class="ph">SAP</span> WSDL information.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Credential alias</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Connection alias that contains the credentials for the connection. The connection alias resolves your connection and credentials at runtime.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Active</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Option that indicates that the <span class="ph">SAP</span> connection is active.</td></tr><tr class="row"><td class="entry cellrowborder" colspan="2" style="vertical-align:top;" headers="d116064e255 d116064e258 ">User Mapping</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">SAP user field</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 "><span class="ph">SAP</span> users across different clients that are mapped to a corresponding <span class="ph">ServiceNow</span> user.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">User field</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 "><span class="ph">ServiceNow</span> user field.<div class="note"><span class="notetitle">Note:</span> Changing the values in the User Mapping fields after data is pulled causes the mapping between discovered users and system users to be lost. The mapping between discovered users and the <span class="ph uicontrol">Rights used by</span> and <span class="ph uicontrol">Rights needed by</span> fields is also lost.</div> </td></tr><tr class="row"><td class="entry cellrowborder" colspan="2" style="vertical-align:top;" headers="d116064e255 d116064e258 ">Configuration</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Fetch roles</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Controls the data pull from <span class="ph">SAP</span> for roles data.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Fetch engine usage</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Controls the data pull from <span class="ph">SAP</span> for engine usage data.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Fetch activity</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Controls the data pull from <span class="ph">SAP</span> for user activity and web activity data.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e255 ">Fetch user transactions</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d116064e258 ">Controls the data pull from <span class="ph">SAP</span> for user transaction activity data.</td></tr></tbody></table> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph">SAP</span> Credentials related list, view the credentials you used to create the connection.</span> <div class="itemgroup info"> <div class="note"><span class="notetitle">Note:</span> Only one credential record should be active for a given <span class="ph">SAP</span> connection. To determine the roles associated with your credentials, contact your <span class="ph">SAP</span> Basis administrator. Your administrator assigns respective roles to your <span class="ph">SAP</span> user ID credentials.</div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">To test your <span class="ph">SAP</span> connection and if you're running the latest version of the ABAP program, select the <span class="ph uicontrol">Test SAP Connection and Version</span> related link.</span> <div class="itemgroup info"> <div class="note"><span class="notetitle">Note:</span> If you upgrade your <span class="ph">ServiceNow</span> instance, you must download and deploy the new version of the ABAP program and reconfigure a service provider with the SOA Manager.</div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">To send a request to the custom ABAP program to collect the <span class="ph">SAP</span> data into the custom tables again, select the <span class="ph uicontrol">Refresh data in SAP</span> related link.</span> </li><li class="li step stepexpand"> <span class="ph cmd">If the SAP data you pulled is corrupted and you need to see current data, select the <span class="ph uicontrol">Pull all SAP Data to ServiceNow</span> related link.</span> <div class="itemgroup info"> <span class="ph">SAP</span> data is scheduled to be pulled regularly.</div> </li><li class="li step stepexpand"> <span class="ph cmd">View <span class="ph">SAP</span> clients in the <span class="ph uicontrol">SAP Clients</span> related list.</span> <div class="itemgroup info">The <span class="ph">SAP</span> clients are generated when <span class="ph">SAP</span> data is pulled during the scheduled job.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> </li></ol> <div class="section result" id="add-sap-connection__result_s5h_z5s_1gb">You can now begin creating software models and entitlements.</div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../product/software-asset-management2/concept/sap-publisher-pack.html" title="Use the Software Asset Management publisher pack for SAP to manage and optimize your SAP licenses. Get comprehensive visibility into your SAP license compliance and uncover potential savings.">Software Asset Management publisher pack for SAP</a></div> </div> <div class="linklist relinfo relconcepts"><strong>Related concepts</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="../../../product/software-asset-management2/concept/usmm-optimization.html" title="Optimize licensing through SAP User License Measurement (USMM) rules that map roles to the Named User Type for an SAP client.">SAP USMM-based optimization</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/concept/sap-named-user-transaction-activity.html" title="Determine license optimizations for your SAP named user types based on your SAP user transaction activity.">User transaction activity for named user types</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/concept/self-declaring-sap-engine-usage.html" title="You can self-declare the license usage for any SAP engines that cannot be measured by the automated SAP engine measurement process. Use this information to gain more comprehensive visibility into your SAP license compliance position so that you can optimize your licensing costs.">Self-declaring SAP engine license usage</a></li></ul></div> <div class="linklist relinfo reltasks"><strong>Related tasks</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="../../../product/software-asset-management2/task/import-abap-program-sap.html" title="To begin establishing a connection between your SAP system and your ServiceNow instance, deploy the Advanced Business Application Programming (ABAP) program. Deploying the ABAP program allows data to be shared between SAP and your ServiceNow instance.">Deploy the ABAP program for SAP</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/task/create-entitlement-sap.html" title="Create software entitlements to record your license information for SAP products. You can create entitlements individually or import them from a spreadsheet.">Create entitlements for SAP</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/task/add-software-model-sap.html" title="Create software models to record SAP product information.">Create software models for SAP</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/task/create-named-user.html" title="Create a custom SAP named user type so that you can track and manage your SAP licenses based on the named user type that is specific to your SAP system.">Create a custom SAP named user type</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/task/create-named-user-type-role-mapping.html" title="You can optimize your SAP licenses by mapping roles to a named user type. During reconciliation, discovered user roles and their assigned named user types are compared against these roles to identify user that can be given a lower named user type.">Map a role to a named user type</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/task/create-sap-pricelist.html" title="Create custom SAP price lists so that you can track and manage SAP licenses based on the contracts that are specific to your SAP system.">Create custom SAP price lists</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/task/import-custom-sap-named-user-type.html" title="Import custom SAP named user types into your ServiceNow instance so that you can track and manage SAP licenses based on the named user types that are specific to your SAP system.">Import custom SAP named user types</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/task/import-custom-sap-price-list.html" title="Import custom SAP price lists into your ServiceNow instance so that you can track and manage SAP licenses based on the contracts that are specific to your SAP system.">Import custom SAP price lists</a></li></ul></div> <div class="linklist relinfo relref"><strong>Related reference</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="../../../product/software-asset-management2/concept/component-installed-sap-plugin.html" title="Tables are installed with the Software Asset Management Professional for SAP plugin. The tables store data pulled from the SAP systems.">Tables installed with the SAP publisher pack</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/reference/dashboard-sap.html" title="View your license compliance position for SAP on the Software Publisher Analytics dashboard in the Software Asset Management classic application.">Software Publisher Analytics dashboard for SAP in Software Asset Management classic</a></li><li class="linklist"><a class="link" href="../../../product/software-asset-management2/reference/publisher-overview-sap.html" title="View license usage information related to SAP in the publisher overview for SAP in the Software Asset Workspace.">Publisher overview for SAP in the Software Asset Workspace</a></li></ul></div> </div></body></html></div>