Set Up User Properties and Message Headers
Send custom user properties and dedicated message headers with every outbound message to SAP Integration Suite, advanced event mesh, using dynamic or static values from the field mapping.
Overview
As of Release 2610 (9.32610), you can send custom user properties and dedicated message headers with every outbound message. They are configured in the field mapping of the outbound object, using dynamic values from the SAP source record or static default values.
The metadata stays attached to the payload that produced it. If one run creates multiple payloads, each payload is sent with its own headers, user properties and topic.
Key features:
-
Custom user properties per message (Solace-User-Property-<name>)
-
Dedicated message headers per message (Solace-<name>), for example Solace-Correlation-ID
-
Dynamic values from the source record of the current payload
-
Static values maintained as default value
-
Default value as fallback, and support for conversion classes and methods, same as for dynamic topics
-
Fully backward compatible with existing outbound configurations
Configuration
User properties and headers are maintained in the same field mapping that is used for dynamic topics. The prefix of the target structure determines which kind of metadata is created.
-
Go to section Field Mapping of the outbound object.
-
Choose New Entries and specify the following fields:
-
Target Structure: numbered metadata type, for example SOLACE_USER_PROPERTY_001 or SOLACE_HEADER_001
-
Target Field: name of the user property or header (without prefix)
-
Source Structure: table for the dynamic value
-
Source Field: field for the dynamic value of the user property or header
-
Default Value: static value, or fallback if the dynamic value is empty
-
-
Save your entries.
|
Target Structure |
Purpose |
Outgoing Name |
|---|---|---|
|
SOLACE_TOPIC_LEVEL_### |
Dynamic topic segment (existing) |
Appended to the destination topic |
|
SOLACE_USER_PROPERTY_### |
Custom user property |
Solace-User-Property-<Target Field> |
|
SOLACE_HEADER_### |
Dedicated message header |
Solace-<Target Field> |
Configuration rules:
-
Use singular, numbered target structures, for example SOLACE_USER_PROPERTY_001, SOLACE_USER_PROPERTY_002, SOLACE_HEADER_001.
-
The target field contains the name of the user property or header, not the source field. The prefix Solace-User-Property- or Solace- is added automatically.
-
Use the default value only for static values, or as fallback if the dynamic value is empty.
-
The dynamic value is read from the first data line of the current payload, same as for dynamic topics.
Value Determination
Values are determined with the same rules as for dynamic topics:
-
If the source field is maintained and filled, the value from the source record of the current payload is used.
-
If a conversion class and method are maintained, the converted value is used if one is returned.
-
If the resulting value is empty and a default value is maintained, the default value is used as fallback.
-
If the source field is empty, the default value is sent as a static user property or header.
-
If the final value is empty, no user property or header is sent.
The conversion class and method are maintained in the same field mapping entry, as for dynamic topics. You can use them, for example, to translate SAP-specific values into more commonly used terms, or to determine a new value.
Example: Sales Order
This example uses the change event of the sales order (BUS2032). Use suitable data for your use case as required.
|
Target Structure |
Target Field |
Source Structure |
Source Field |
Default Value |
|---|---|---|---|---|
|
SOLACE_HEADER_001 |
Correlation-ID |
Z_SD_ORDER_BIKE |
MATNR |
NoMaterial |
|
SOLACE_USER_PROPERTY_001 |
SourceSystem |
SAP |
||
|
SOLACE_USER_PROPERTY_002 |
EventType |
Z_SD_ORDER_BIKE |
EVENT_TYPE |
NoEvent |
|
SOLACE_USER_PROPERTY_003 |
JMSXGroupID |
Z_SD_ORDER_BIKE |
SALESDOCUMENT |
NoSalesdocument |
Resulting HTTP headers sent to the broker:
Solace-Correlation-ID: P-103 Solace-User-Property-SourceSystem: SAP Solace-User-Property-EventType: NoEvent Solace-User-Property-JMSXGroupID: 0000112190
The field EVENT_TYPE is empty for this sales order, so the default value NoEvent is sent as fallback. SourceSystem is a static user property; all other values are taken from the source record.
Example: Purchase Order
|
Target Structure |
Target Field |
Source Structure |
Source Field |
Default Value |
|---|---|---|---|---|
|
SOLACE_HEADER_001 |
Correlation-ID |
EKKO |
EBELN |
|
|
SOLACE_USER_PROPERTY_001 |
JMSXGroupID |
EKKO |
EBELN |
|
|
SOLACE_USER_PROPERTY_002 |
SourceSystem |
SAP |
||
|
SOLACE_USER_PROPERTY_003 |
EventType |
PurchaseOrderChanged |
Resulting HTTP headers sent to the broker:
Solace-Correlation-ID: 4500018123 Solace-User-Property-JMSXGroupID: 4500018123 Solace-User-Property-SourceSystem: SAP Solace-User-Property-EventType: PurchaseOrderChanged
Topic Selection
Each payload is sent to its own topic, which is determined in the following order:
-
Dynamic topic from the field mapping (SOLACE_TOPIC_LEVEL_###), if it could be determined
-
Fixed topic from header attribute SOLACE_TOPIC, if no dynamic topic was determined
Compatibility and Limitations
-
Outbound objects without user property or header mappings continue to work unchanged.
-
Existing header attributes are still read and applied. If a user property or header from the field mapping has the same outgoing name as a header attribute, the value from the field mapping takes precedence.
-
Messages without user properties or headers are sent as before.
-
Existing dynamic topic configurations continue to work as before.