EditSapPmNotification@1
Der Node EditSapPmNotification@1 ändert eine bestehende SAP-PM-Meldung innerhalb des Moduls Plant Maintenance (PM).
SAP-Funktionsbaustein: BAPI_ALM_NOTIF_DATA_MODIFY
Adapter-Voraussetzungen
Node-Konfiguration
Zu den Feldern path, targetPath, targetValueWriteMode und targetValueKind siehe Überblick.
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
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, ändert eine PM-Meldung, speichert die Meldung und committet die Transaktion.
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