SAP Integration

Orien has the capability to pull SAP data from a SAP instance through APIs.  Currently, Orien can receive JSON payloads of:

    1. SAP Functional Locations
    2. SAP Equipment 
    3. SAP Material
    4. SAP Work Centers
    5. SAP Measuring Points
    6. SAP Measuring Documents
    7. SAP Planned Maintenance Completion

Below will be a guide on how to view and utilise your SAP data within Orien. Orien's SAP integration requires a valid, non-expired Orien Self-Service API key to be passed in the body JSON payload. For further details, view the API docs for Orien, click here Self Service API Documentation.

For more information about Orien API routes and functionalities, view the Swagger docs for Orien here: Swagger Documentation.

This process will utilise Orien's External Hierarchy and functionality. For help using the External Hierarchy, use this article: SAP External Hierarchy 

If you have any questions about the process or want to inquire how to initialise this SAP data into Orien, contact Orien support at: support@orien.zendesk.com 

 

SAP Endpoint Configuration


SAP Endpoints can be configured for each database and are configured by Orien IT and will need to be done prior to this step. For any enquiries or help, please contact Orien support at: support@orien.zendesk.com. To view the SAP Endpoint Config, select Integration Config, then select the SAP Config module at the Database Level.

When selected, you'll be able to configure Endpoints for that specific Client Data/Database. The properties and values for each of these endpoint configurations are listed below. When an SAP Endpoint is selected, various properties can be assigned to configure the endpoint (e.g., Page Limiter, Criteria. AA Description, URL Type, Integration Endpoint), and a plant type (e.g., Material Plant, Planning Plant, Maintenance Plant) are required for each endpoint Configuration. 

mceclip1.png

 

 

SAP API Routes


For the Routes below, you'll need to prepend the base URL of your Orien instance and append the Company Code assigned to your instance. Expand the Routes to view a sample payload. An example will be: Lorem.orien.app/api/ss/v1/integration-change/sap-functional-location/. These routes will receive JSON payloads of the following data:

 
FLOC - /api/ss/v1/integration-change/sap-functional-location/
[
   {
      "FunctionalLocation":"?0100000000000014126",
      "ParentFunctionalLocation":"?0100000000000014120",
      "FunctionalLocationCategory":"I",
      "StructureIndicator":"",
      "ReferenceFunctionalLocation":"AAA1",
      "StatusProfile":"",
      "Class":"AA_AAAA_1111",
      "ClassType":"001",
      "CatalogueProfile":"AAAAA11",
      "FunctionalLocationDescription":"Description",
      "FunctionalLocationLabel":"AAA-AAA-A11-AAA-AAA-1AA-111-AAA-AAA-AAA",
      "LongText":"",
      "LanguageKey":"E",
      "AdditionalDescription":"",
      "MaintenancePlant":"A099",
      "SortField":"AA-3301",
      "CostCentre":"1401030710",
      "ConstructionType":"",
      "MaintenancePlanningPlant":"I011",
      "PlannerGroup":"",
      "MainWorkCentre":"",
      "PlantMainWorkCentre":"",
      "ObjectType":"",
      "UserStatus":"",
      "ManufacturerSerialNumber":"",
      "InventoryNo":"",
      "Manufacturer":"",
      "ModelNumber":"",
      "AcquisitionDate":"",
      "AcquisitionValue":"",
      "CurrencyKey":"",
      "StartupDate":"",
      "PlantSection":"",
      "Location":"",
      "SystemStatus":"",
      "CatalogueProfileDescription":"",
      "FunctionalLocationCategoryDescription":"",
      "MaintenancePlantDescription":"",
      "ConstructionTypeDescription":"",
      "PlannerGroupDescription":"",
      "MainWorkCentreDescription":"",
      "ObjectTypeDescription":"",
      "PlantSectionDescription":"",
      "LocationDescription":""
   }
]
Equipment - /api/ss/v1/integration-change/sap-equipment/
[
   {
    "EquipmentNumber":"000000000010224014",
    "FunctionalLocation":"?0100000000000168814",
    "ValidFromDate":"20180919"
    "UserStatus":"INOP",
    "ValidToDate":"99991231",
    "EquipmentCategory":"R"
    "TechnicalObjectDescription":"Diesel Engine",  
    "ObjectType":"DLTB"
    "SortField":"MD33176034"
    "ConstructionType":"20006059"
    "CostCentre":"AA11111111"
    "CompanyCode":"AA01",
    "MaintenancePlant":"A111"
    "PlanningPlant":"A111"
    "PlannerGroup":"A11"
    "MainWorkCentre":"AA1AA",
    "CatalogueProfile":""
    "ManufacturerSerialNumber":""
    "Manufacturer ":""
    "ModelNumber":"1234"
    "InventoryNo":"INv001",
    "PlantSection":"",
    "Location":"",
    "InstallationLocationDate":""
    "InstallLocationTime":""
    "SystemStatus":"INSTL",
    "ObjectTypeDescription":"Drill Track"
    "ConstructionTypeDescription":"Drill"
    "CompanyCodeDescription":""
    "MaintenancePlantDescription":""
    "PlanningPlantDescription":""
    "PlannerGroupDescription":""
    "MainWorkCentreDescription":""
    "PlantSectionDescription":""
    "LocationDescription":""  
    }
]
Materials - /api/ss/v1/integration-change/sap-material/
[
   {
    "MaterialNumber":"",
    "Description":"",
    "PlantCode":"",
    "MaterialType":"",
    "MaterialGroup":"",
    "ManufacturerPartNumber":"",
    "Manufacturer":"",
    "IntMaterialNumber":"",
    "ValidationClass":"",
    "StockClass":"",
    "BaseUnitIssue":"",
    "MovingAveragePrice":"",
    "PurchasePrice":"",
    "CompanyCode":"",
    "Currency":"",
    "DeletionFlag":"",
    "SystemStatus":""
    }
]
Work Centers - /api/ss/v1/integration-change/sap-work-center/
[
   {
    "PlanningPlant":"",  
    "WorkCentre":"",
    "Catagory":""
    "Description":"'"
    "Usage":""
    "ControlKey":""
    "ControlKeyIndicator":"",
    "CapacityCatagory":"",
    "CapacityPlannerGroup":"",
    "UnitOfMeasure":""
    "CapacityUtilisation":""
    "CostCentre":"",
    "SystemStatus":""
    }
]
Measuring Points - /api/ss/v1/integration-change/sap-measuring-point/
[
   {
        "MeasuringPoint":"",
        "MeasuringPointObject":"",
        "SortField":"",
        "LanguageKey":"",
        "ItemCategoryText":"",
        "MaintenancePlanCategory":"",
        "FunctionalLocation":"",
        "EquipmentNumber":"",
        "MaintenancePlanningPlant":"",
        "InternalCharacteristic":"",
        "CharacterField":"",
        "BaseUnitOfMeasure":"",
        "CodeGroup":"",
        "IndicatorRefMeasPoint":"",
        "TransferredMeasuringPoint":"",
        "MeasurementDate":"",
        "MeasurementTime":"",
        "AnnualEstimate":"",
        "IndicatorCounterBackwards":"",
        "LowerMeasurementRange":"",
        "UpperMeasurementRange":"",
        "MeasurementDocument":"",
        "MeasurementDocumentTime":"",
        "MeasurementDocumentDate":"",
        "CounterReading":"",
        "MeasurementCounterReading":""
   }
 ]
Measurement Document - /api/ss/v1/integration-change/sap-measure-docs/
[
   {
        "MeasurementDocument":"",
        "MeasuringPoint":"",
        "MaintenancePlanningPlant":"",
        "EquipmentNumber":"",
        "FunctionalLocationLabel":"",
        "DateOFTheMeasurement":"",
        "TimeOFTheMeasurement":"",
        "MeasurementDocumentText":"",
        "LanguageKey":"",
        "MeasurementReading":"",
        "MeasurementReadinginUnitOfEntry":"",
        "UnitOfMeasurementForDocumentEntry":"",
        "CounterReading":"",
        "CounterReadingDifference":"",
        "CounterReadingDifferenceIndicator":"",
        "CounterReplacedIndicator":""
   emma  }
 ]
Planned Maintenance Last Completion - /api/ss/v1/integration-change/sap-planned-completion/
[
   {
    "PlanningPlant":"",
    "MaintenancePlan":"",
    "MaintenanceItem":"",
    "Equipment":"",
    "FunctionalLocation":"",
    "KeyTaskListGroup ":"",
    "GroupCounter":"",
    "OperationNumber":"",
    "MaintenancePlanCallNumber":"",
    "DateCreated":"",
    "WorkOrderNumber":"",
    "CompletionDate":"",
    "ObjectStatus":""
    }
]

 

Order of Initialisations


Initialisations should be run in a general process as some of the technical objects have prerequisites (e.g., an Equipment is allocated to a FLOC). We recommend Initialisations to run sequentially in the following order:

    1. SAP Functional Locations
    2. SAP Equipment
    3. SAP Material
    4. SAP Work Centers
    5. SAP Measuring Points
    6. SAP Planned Maintenance Completion

 

SAP Reference Objects


SAP Reference Objects are used to specify the data that is received from SAP. This is useful when SAP data is used across multiple databases. Each of these objects uses the Code field as a parameter with an optional description field. The table below is an example of what values are expected.

ERROR MESSAGE DESCRIPTION RESOLUTION
Catalogue Profile   {Catalogue Profile Name}
Construction Type   000000000020009999
Functional Location Category Technical system - standard W
Object Type   DIST
Planner Group   A99
Plant Plant Name {Plant Code}

 

Included in the SAP Ref Objects are SAP Work Centers. Work Centers are able to be created, edited, and deleted in this tab.

WORK CENTRE FIELD SAMPLE VALUE
Description (STEXT) Mechanic
Plant (WERKS) A999
Category (VERWE) AAA
USAGE (PLANV) 001
Control Key (STEUS) PMAA
Indicator Control Key is Referenced (STEUS_REF)  
Capacity Category (KAPART)  
Capacity Planner Group (PLANR) PM
Base Unit of Measurement  H
Capacity utilisation (NGRAD) 100
Cost Center (KOSTL) 0400690139
Cost Per Unit/Rate  
Currency Key  
System Status  
Code(ARBPL) AA1AA111
Notes  

 

Data Sync Records


Throughout the initialisation process, the progress of key actions will be recorded and available in the Data Sync module. The module will show the history of processes completed on the selected database. Below is an example of the Data Sync screen that has had several previous processes.

 

When the View Messages is selected, the process has been separated into all of its session messages. This helps to identify what stage the data sync is currently at or if any errors have occurred. Below is an example of messages that are received from a completed SAP Measurement Point process:

 

Delta Schedulers


To receive Deltas (updates) from SAP to existing data within the External Hierarchy, a scheduler will need to be set up and configured at each database for each Integration type (FLOC, Equipment, Materials etc.). For our user guide for setting up schedulers, please review our article here: Orien Scheduler

When creating a scheduler to pull in Deltas to Orien, these are the fields required:

PROPERTY TYPE SOURCE
Description String Manual Input
Type Collection Static Orien Field - Must use 'Apply Integration Changes'
Schedule Interval (days) Integer Manual Input
Hour of the Day (0 to 23) Integer Manual Input
Disabled Boolean Manual Input
Next Due date Date Manual Input
Integration Type Collection Static Orien Field
Integration Server Collection Static Orien Field
Plant Collection User-defined Ref Object in SAP Config
API Key String Manual Input

Alongside the Delta Schedulers, an integration Timeout Checker scheduler should be applied to each Integrated Database and run at least once a week. 

Note

Deltas should be run daily. Delta data is only stored within the system for 7 days.

 

Once all of the Schedulers are set up, it will look like this:

mceclip1.png

 

Was this article helpful?
0 out of 0 found this helpful