Skip to main content

EditSapPmNotification@1

Node EditSapPmNotification@1 modifies an existing SAP PM notification within Plant Maintenance (PM) module.

SAP function module: BAPI_ALM_NOTIF_DATA_MODIFY

Adapter Prerequisites

Node Configuration

For fields path, targetPath, targetValueWriteMode, and targetValueKind, see Overview.

  transformations:
- type: EditSapPmNotification@1 # modifies the notification
path: $.notnumber # path to the notification number
equipmentPath: $.equipment # path to the equipment number
materialPath: $.material # path to the material number
serialNumberPath: $.serialNumber # path to the serial number
shortTextPath: $.shortText # path to the short text
priorityPath: $.priority # path to the priority
notificationType: M1 # notification type
functionalLocationPath: $.functionalLocation # path to the functional location
targetPath: "$.not" # path to the result object, the SAP structure BAPI2080NOTHDRE

The result object is based on the SAP structure BAPI2080NOTHDRE, the properties are documented in API documentation.

Complete sample of pipeline configuration

This sample receives a message from a distributed event hub, sets the values of the notification, logs in to SAP, modifies a PM notification, saves the notification and commits the transaction.

     triggers:
- type: FromPipelineDataEvent@1
description: Retrieve from distributed event hub message
transformations:
- type: SetPrimitiveValue@1
value: 000010000571
targetPath: $.notnumber
- type: Simulation@1
simulations:
- targetPath: $.shortText
simulatorKey: Text.Lorem.Word
configuration: '{count: 5}'

- type: SapLogin@1
sapConfiguration: mmtest
- type: EditSapPmNotification@1
path: $.notnumber
shortTextPath: $.shortText
targetPath: "$.not"

- type: SaveSapPmNotification@1
path: $.not.NotifNo
- type: CommitSapTransaction@1