
The AIFAEM AddOn provides a Framework to publish Events from ECC and S/4HANA Systems to AEM easily. I have explained it in one of my blogs. Unfortunately AIFAEM cannot send Custom HTTP headers to AEM without Custom Code. There are a couple of Solace-Specific Headers which can be used to add parameters or custom properties to the message, described here: https://docs.solace.com/API/RESTMessagingPrtl/Solace-REST-Message-Encoding.htm#solace-specific-http-...
With this blog, I want to show you how to add Custom HTTP Headers with a Custom AIFAEM Action.
For the Implementation of this you will need some Custom ABAP Objects. I have stored my Custom Objects here: https://github.com/alPfeil/AIFAEM/tree/main
You will need
1) Structure Definition zaif_aem_http_header
2) Table Type ZAIF_AEM_HTTP_HEADERS
2) Function Module ZAIF_ACTION_CALL_AEM_CUSTOM
Assuming you already have set up an AIFAEM Interface, you will only need to do the following:
In /N/AIF/CUST -> Interface Development -> Define Action you´ll need to create a new Action
In /N/AIF/CUST -> Interface Development -> Define Structure Mapping you´ll need to assign the Custom Action instead of the Standard Action
Now, if provided, the Custom Action will attach custom HTTP Headers to the Request to AEM. Next Step is to extend the existing Interface.
Before the Mapping, the SAP Structure (Target Structure) needs to be enhanced (/N/AIF/CUST -> Define Interfaces)
How you fill up the Headers is up to you. I have added 2 more Structure Mappings:
Structure Mapping 40: Header Name is fixed. In order to add it as AEM Property we need the Prefix "Solace-User-Property-"
Header Value is dynamic (from the Target Structure, can be chosen by F4 Helpt -> Switch Structure):
Structure Mapping 50 is the same, except:
HeaderName = Solace-User-Property-BusinessPartnerNumber
HeaderValiue = @DATA-BUSINESSPARTNERTYPE-BUSINESSPARTNER
Let´s change a BusinessPartner in Transaction BP now:
In BTP integration Suite i have set up an Iflow to consume this the topic "sap/businessPartner/>". Here we can see the Headers:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
15 | |
11 | |
8 | |
8 | |
7 | |
7 | |
7 | |
6 | |
5 |