Company Code

Replicate company code master data inbound to SAP Fieldglass from SAP S/4HANA Cloud or SAP S/4HANA.

Prerequisites

You're signed into SAP Fieldglass as configuration manager.

Context

The 'Legal Entity Upload' connector is used to replicate company codes.

The connector details are as follows:
Connector Description

Connector Details

Legal Entity Upload

Comments/ Notes

Real Time vs. Batch

Real-Time

 

Transfer Method

Web Service

 

File Type

JSON

 

Version

API-A-V1.0

 

Field Layout / Data Mapping

Refer to the upload column transform mapping below.

 

When configuring the Legal Entity Upload, refer to the following example:

Procedure

  1. On the Configuration Manager Self-Service Dashboard, choose the Connectors tile.
  2. On the Connector List page, choose the Connector Catalog tab.
  3. Search for 'Legal Entity Upload' connector, version 'API-A-V1.0', and then click the connector name hyperlink.
  4. On the connector Integration page in the upper right, choose Enable.

    The Set Up Connector page opens the Enable step in the setup wizard.

  5. Follow the instructions below and in the setup wizard to configure the connector, choosing Next to advance through the setup pages.
    1. In the Connector Name field, enter a custom name, for example Legal Entity Upload - variant 1.

    2. In the Upload Data Format option, choose JSON.

    3. In the Pre-Processor list, choose insite.partner.preprocessor.JsonToCsvPreProcessor.preProcess, as shown next:

    4. In the Customize step under Upload Column Transform, choose + Add Native Field to add the following native field:

      Add Native Field

      Standard Column Name

      File Column Name

      Script

      Default Value

      Country/Region

      integration.country

      TransformUtil.ifElseCondition($_Country/Region$_.equals("") || $_Country/Region$_ == null,"",TransformUtil.getCountryCodeFromShortCode($_Country/Region$_))

       
    5. Choose + Add Additional Field to add the following additional fields:

      Add Additional Fields

      Standard Column Name

      File Column Name

      Script

      Default Value

      Legal Entity Country

      integration.divisionCodeCountry

      TransformUtil.ifElseCondition($_Legal Entity Country$_.equals("") || $_Legal Entity Country$_ == null,"",TransformUtil.getCountryCodeFromShortCode($_Legal Entity Country$_))

       

      Legal Entity Language

      integration.divisionCodeLanguage

      TransformUtil.ifElseCondition($_Legal Entity Language$_.equals("") || $_Legal Entity Language$_ == null || $_Legal Entity Country$_.equals("") || $_Legal Entity Country$_ == null,"",$_Legal Entity Language$_ + "_" +$_Legal Entity Country$_)

       

      System ID

         

      XXXXXXX

    6. Choose Next.

    7. In the Connectivity step under Transfer Method, choose Subscription.

    8. In the Configure End Point step, choose Create New and continue to follow the instructions in the wizard.

      1. In the ID field, enter the end point ID, for example, MDI_LegalEntity_Company Code (where _Company Code is an underscore (_) followed by your company code).

      2. In the Category list, choose Webservice.

      3. Under Web Service Details, enter the required Web Service URL. Username and password are optional.

      4. At the bottom of the page, click + Add Additional Fields and add the following fields:

        End Point Additional Fields

        Name

        value_text

        __webservice_transport_class

        insite.onemasterdata.transport.OneMasterDataWebserviceTransporter

        apiVersion

        v0/odm/4.0.0

        clientId

        <client ID value>

        clientSecret

        <client secret value>

        limitHint

        20

        serviceEndPoint

        The end point you created in the previous step.

        since

        For a new setup, use initial. The system will generate this value after it's created.

        tokenIssuerEndpoint

        https://<system URL>/oauth/token

        Refer to the following image for the additional field setup:

      5. To create the end point, choose Submit.

    9. Choose Next.

    10. In the Setup Subscription step, choose Create New.

    11. In the Setup Subscription dialog box, follow the instructions in the setup wizard to create the subscription with the following details.

      Subscription Details

      Field

      Value

      Type

      Upload

      Connector

      Choose the connector name you created in step 5 above.

      End Point

      Choose the new end point you created.

      Parameters

      Enter one_mds_legalentity (required value).

      Subscriber

      Enter insite.subscription.OneMasterDataWebserviceUploadSubscription (required value).

      Notification Email

      Email to notify on status. Optional field.

      Delivery Time

      Series of selections that set the scheduling for the subscription. Note that you can multiple values in the boxes using CTRL- or SHIFT- clicks. Set the subscription to run once daily.

      Time Zone

      Choose a value where the subscription runs.

      Status

      Choose Enabled.

      Refer to the following image:

  6. To save the subscription, choose Save.