CreateSapPmNotification@1
Der Node CreateSapPmNotification@1 erstellt eine neue SAP-PM-Meldung innerhalb des Moduls Plant Maintenance (PM).
SAP-Funktionsbaustein: BAPI_ALM_NOTIF_CREATE
Adapter-Voraussetzungen
Node-Konfiguration
Zu den Feldern path, targetPath, targetValueWriteMode und targetValueKind siehe Überblick.
transformations:
- type: CreateSapPmNotification@1 # creates the notification
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
Das Ergebnisobjekt basiert auf der SAP-Struktur BAPI2080NOTHDRE, die Eigenschaften sind in der API-Dokumentation dokumentiert.
Vollständiges Beispiel einer Pipeline-Konfiguration
Dieses Beispiel empfängt eine Nachricht von einem verteilten Event Hub, setzt die Werte der Meldung, meldet sich bei SAP an, erstellt eine PM-Meldung, speichert die Meldungsnummer und committet die Transaktion.
triggers:
- type: FromPipelineDataEvent@1
description: Retrieve from distributed event hub message
transformations:
- type: SetPrimitiveValue@1
value: 10000001
targetPath: $.equipment
- type: SetPrimitiveValue@1
value: FG126
targetPath: $.material
- type: SetPrimitiveValue@1
value: 1
targetPath: $.serialNumber
- type: SetPrimitiveValue@1
value: "Hello from OctoMesh!"
targetPath: $.shortText
- type: SetPrimitiveValue@1
value: 1
targetPath: $.priority
- type: SetPrimitiveValue@1
value: 1010
targetPath: $.functionalLocation
- type: SapLogin@1 # runs the login
sapConfiguration: mmtest
- type: CreateSapPmNotification@1 # creates the notification
equipmentPath: $.equipment
materialPath: $.material
serialNumberPath: $.serialNumber
shortTextPath: $.shortText
priorityPath: $.priority
notificationType: M1
functionalLocationPath: $.functionalLocation
targetPath: "$.not"
- type: SaveSapPmNotification@1 # saves the notification number
path: $.not.NotifNo
- type: CommitSapTransaction@1 # commits the transaction