Professional Documents
Culture Documents
SAP S/4HANA
2020-09-17
1 Purpose. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Preparation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 System Access. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
2.2 Roles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
3 Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1 Establish the SSL Connection to SAP Cloud Platform. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
3.2 Create an RFC Connection (HTTP Connection to External Server). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.3 Create a New OAuth 2.0 Client. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.4 Activate the Tax Service on Pricing Procedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.5 Connect with SAP Localization Hub, Tax Service. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
This document describes Integration with SAP S/4HANA for your External Server system. The description includes
data relevant to HTTP Connection to External Server using RFC.
This documentation explains how to integrate Tax Service with your SAP S/4HANA system.
This section summarizes all prerequisites for integrating Tax Service with your SAP S/4HANA system.
Note
It is necessary to have a SAP account in the SAP Cloud Platform and Taxes Service License.
System Details
SAP S/4HANA On Premise Accessible via the SAP EHP system, SAP Cloud Platform and
Taxes Service License
2.2 Roles
The following roles are provided as example roles from SAP. You can use these as templates to create your own
roles.
SAP S/4HANA:
S_RFC_ADM
S_OA2C_ADM
Procedure
1. For information on how to establish the SSL Connection to SAP Cloud Platform, refer to https://help.sap.com/
viewer/6d3eac5a9e3144a7b43932a1078c7628/Cloud/en-US/8439282197ea4658b341839aaa1c4569.html.
Result
Purpose
A Remote Function Call (RFC) is the call or remote execution of a Remote Function Module in an external system. In
SAP system, these functions are provided by the RFC interface system. The RFC interface system enables function
calls between two SAP systems.
Procedure
7. Choose Create ( F8 ).
8. In RFC Destination, enter a name for your destination.
9. In Connection Type, choose Possible Entries ( F4 ) and select HTTP Connection to external server.
10. Go to the Technical Settings tab.
11. In Host field, enter the URL you copied from the SAP Cloud Platform Cockpit.
12. In Path Prefix, enter /tax/v0/quote.
13. Optionally, configure HTTP Proxy Options if your network requires it
14. In the Logon & Security tab, go under Security Options and select SSL Active.
15. Save your entry.
Result
Purpose
OAuth 2 is an authorization framework that enables applications to obtain limited access to user accounts on an
HTTP service.
Procedure
3. This transaction opens a new internet browser window and in the browser window, choose Create.
4. Select SAP_COM_0249_PREM as your OAuth 2.0 Client Profile.
Note
To see your client ID, access the SAP Cloud Platform Cockpit and go to Your Cloud Foundry Subaccount
in SCP Your Space Services Service Instances Your Tax Service instance name Service Keys .
The client ID is found in the field uaa > clientid.
7. Choose OK.
8. In the Details section, go to Administration General Settings and enter the OAuth 2.0 Client’s password in
the field Client Secret.
Note
To see your client secret, access the SAP Cloud Platform Cockpit and go to Your Cloud Foundry
Subaccount in SCP Your Space Services Service Instances Your Tax Service instance name
Service Keys . The client secret is found in the field uaa > clientsecret.
9. Under Authorization Server Settings, enter the Authorization Endpoint and Token Endpoint and concatenate at
the end of Token Endpoint the following parameter: "?grant_type=client_credentials".
Note
○ Example 1: Authorization Endpoint of SAP Localization Hub, tax service: <scp account
Subdomain>.authentication.sap.hana.ondemand.com/oauth/token
○ Example 2: Token Endpoint of SAP Localization Hub, tax service: <scp account
Subdomain>.authentication.sap.hana.ondemand.com/oauth/token?grant_type=client_credentials
10. Under Access Settings, go to Selected Grant Type and choose Client Credentials.
11. Go to Client Authentication and choose Basic.
12. Go to Resource Access Authentication and choose Header Field.
13. Optionally, configure HTTP Proxy Options if your network requires it.
14. Save your entry.
Result
Purpose
The SAP Localization Hub, tax service lets you determine and compute applicable country-specific indirect taxes.
In this Customizing activity, you can define the pricing procedure for which the tax service is called.
Procedure
Result
Purpose
The SAP Localization Hub, tax service lets you determine and calculate applicable country-specific indirect taxes.
In this Customizing activity, you can establish the connection between your system and the SAP Localization Hub,
tax service.
3. Execute the customizing activity. To establish this connection, you inform the ID of the scenario delivered by
SAP and the RFC connection you created in SM59.
4. Save your entry.
Result
Hyperlinks
Some links are classified by an icon and/or a mouseover text. These links provide additional information.
About the icons:
● Links with the icon : You are entering a Web site that is not hosted by SAP. By using such links, you agree (unless expressly stated otherwise in your agreements
with SAP) to this:
● The content of the linked-to site is not SAP documentation. You may not infer any product claims against SAP based on this information.
● SAP does not agree or disagree with the content on the linked-to site, nor does SAP warrant the availability and correctness. SAP shall not be liable for any
damages caused by the use of such content unless damages have been caused by SAP's gross negligence or willful misconduct.
● Links with the icon : You are leaving the documentation for that particular SAP product or service and are entering a SAP-hosted Web site. By using such links, you
agree that (unless expressly stated otherwise in your agreements with SAP) you may not infer any product claims against SAP based on this information.
Example Code
Any software coding and/or code snippets are examples. They are not for productive use. The example code is only intended to better explain and visualize the syntax and
phrasing rules. SAP does not warrant the correctness and completeness of the example code. SAP shall not be liable for errors or damages caused by the use of example
code unless damages have been caused by SAP's gross negligence or willful misconduct.
Gender-Related Language
We try not to use gender-specific word forms and formulations. As appropriate for context and readability, SAP may use masculine word forms to refer to all genders.
SAP and other SAP products and services mentioned herein as well as
their respective logos are trademarks or registered trademarks of SAP
SE (or an SAP affiliate company) in Germany and other countries. All
other product and service names mentioned are the trademarks of their
respective companies.