Plant

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

Context

The 'Plant Upload' connector uploads sites. It allows customers currently using a Facility Management application to maintain location data in that system and use this upload to pass the pertinent data for sites to SAP Fieldglass.

The connector details are as follows.

Connector Details

Connector Details

Plant 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 Mapping Details below.

 

Refer to the following image:

Procedure

  1. Enable the Site Upload connector in SAP Fieldglass.
    1. Enter a custom connector name.

    2. Add the Pre-Processor as shown next.

    3. On the Upload Column Transform tab of the connector, fields and values must be added. Refer the below mapping table to create upload column transform and add native fields and additional fields.

    Upload Column Mapping Details

    Standard Column Name

    File Column Name

    Script

    Default Value

    Notes

    Country/Region

    integration.country

         

    Corporate Calendar

     

    TransformUtil.ifElseCondition($_Country/Region$_.equals("US") || $_Country/Region$_.equals("USA"),"CA",$_State/Province$_)

    Default Corporate Calendar

    Using this as State/Province is mandatory for Country USA.

    State/Province

     

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

       

    Currency

    integration.currency

     

    USD

    Only applicable if Legal Entity is disabled in the company configuration.

  2. Create a new End Point with the following values:
    1. Enter the ID, such as MDI_Site_Company Code. (Precede Company Code with _ (underscore).)

    2. Enter the Category as webservice.

    3. Select the company from the Company list.

    4. For Activity, choose Active.

    5. Enter the following Additional Fields:

      Additional Fields

      Name

      value_text

      _webservice_transport_class

      insite.onemasterdata.transport.OneMasterDataWebserviceTransporter

      apiVersion

      v0/odm-draft/4.0.0-20220513165643

      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:

  3. Add a new subscription with the following values:

    Subscription Details

    Field

    Value

    Type

    Upload

    Connector

    Choose the connector name you created in above.

    End Point

    Choose the new end point you created.

    Parameters

    Enter one_mds_site (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 select 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:

  4. To save the subscription, choose Save.
  5. Choose Exit Wizard.