Skip to Content

Prepare SAP S/4HANA System by Activating the Business Partner OData Service

Requires Customer/Partner License
This tutorial shows you how to activate your Business Partner OData service and creating a technical user.
You will learn
  • How to activate your Business Partner OData service
  • How to create a technical user in your SAP S/4HANA system
  • How to assign a role to your technical user
manjuXManju ShankarFebruary 1, 2023
Created by
December 7, 2021


  • Step 1

    To earn your badge for the whole mission, you will need to mark all steps in a tutorial as done, including any optional ones that you may have skipped because they are not relevant for you.

    Welcome to this collection of tutorials for application development on SAP Business Technology Platform (SAP BTP). In the following tutorials, we provide information and examples on how to consume external services step by step using SAP S/4HANA. To get an overview about what is CAP, see Introduction to Consuming Remote Services using CAP for more details.

    Log in to complete tutorial
  • Step 2

    With this tutorial, you expose the Business Partner service as an OData service and create a technical user with the required permissions to maintain business partners and to access the service. This user is later used to access the Business Partner service from the cloud.

    1. Open your SAP S/4HANA system and log in as an administrator.

    2. Enter /n/IWFND/MAINT_SERVICE in the command field and hit Enter to start transaction Activate and Maintain Services. The Service Catalog of the transaction is opened.

      Navigate transaction
    3. Choose Add Service in the Service Catalog.

      Add Service
    4. Type in LOCAL for System Alias and API_BUSINESS_PARTNER for External Service Name, and hit Enter to search for all matching services.

      Search Service
    5. Select the API_BUSINESS_PARTNER service from the results and choose Add Selected Services.

      Select Service
    6. On the next screen, choose Local Object. This will automatically fill in $TMP in the Package Assignment field.

      Specify Package Assignment
    7. Click the checkbox to Enable OAuth for Service and choose .

      Enable OAuth
    8. Acknowledge the confirmation message and choose . You have successfully activated Business Partner OData service in your SAP S/4HANA system.

      Acknowledge Confirmation

    Now, let’s create a user in your SAP S/4HANA system and assign the required authorizations.

    What is the name of the external service?

    Log in to complete tutorial
  • Step 3
    1. Choose Exit to go back to the initial screen.

    2. Enter SU01 in the command field and hit Enter to start transaction User Management.

    3. Enter a name for the user in the User field and choose Technical User to create.

      Copy User
    4. Set the User Type to Dialog from the dropdown list.

      Set User Type
    5. Generate a new password for your user by copying it from the message and choosing Save.

      Change User

      Useful password tips:

      • This is an initial password that has to be changed at first user login.
      • Note down this password so you have it at hand later when you’ll have to log in with your newly created user.
    Log in to complete tutorial
  • Step 4
    1. On your initial screen, type in transaction name /nPFCG and hit Enter.

      Transaction /nPFCG
    2. Enter ENTERPRISEMESSAGING in the Role field and choose Single Role.

      Assign Transaction
    3. On the next screen, enter a Description for the role and choose Save.

      Change Description
    4. In the Menu tab, choose Transaction.

      Open Transaction
    5. In the Assign Transactions dialog, type in BP under Transaction Code and hit Enter to find the Business Partner transaction.

    6. Click the checkbox to select the transaction and choose Assign Transactions.

      Assign BP
    7. In the Menu tab, choose Authorization Default.

      Authorization Default

      Can’t see Authorization Default?

      Expand the dropdown list under Transaction to find the option Authorization Default.

      Transaction drop-down
    8. A Service dialog opens. Choose SAP Gateway: Service Groups Metadata from dropdown list in the Authorization Default field.

      Change Authorizations v2020
    9. Open the value help in the TADIR Service column.

      TADIR Service value help
    10. Find the Business Partner API and choose .

      Apply BP API
    11. Choose Copy.

    12. Switch to the Authorizations tab and choose Change Authorization Data. Save the role if prompted.

      Insert Authorizations
    13. Choose EditInsert authorization(s)From template….

      Apply Template
    14. In the Choose Template dialog, select /IWFND/RT_GW_USER and choose .

      Choose Template
    15. Choose Status and confirm assignment of full authorizations to the role in the Assign Full Authorization for Subtree dialog by choosing .

    16. Choose Generate and confirm in the Assign Profile Name for Generated Authorization Profile dialog by choosing .

      Generate Icon
    17. Go back and switch to the User tab.

    18. Under User Assignments, type in the name of your technical user (in this case, CPAPP) and hit Enter to select it.

      Find User
    19. Choose User Comparison and save the role if prompted.

      User Comparison
    20. Choose Full Comparison in the Compare Role User Master Record dialog.

      Full Comparison
    21. Close the Compare Role User Master Record dialog when you see the updated status message.

      Full Comparison Completed
    22. Choose SystemLog Off from the menu.

    23. Log in to your SAP S/4HANA system using your newly created technical user (CPAPP) and the password you generated in sub-step 2.5 Create a technical user. Change the initial password when prompted.

      For the purposes of the tutorial, we’re going to set the password to Welcome1. You can set your own password, but make sure you note it because you’ll need it in the upcoming tutorials.

      Change Pass

      You have successfully logged in with your new technical user.

      Logged in
    Log in to complete tutorial
Back to top