
Background
There are a few blogs already available showing how to enhance an enterprise service, as well as an SAP guide (SAP Note 2474420 - Enterprise Services Enhancement Guide). These resources though do not cover usage of the data type after the enhancement. Hopefully the below blog will help fill in the gap.
Step By Step Guide
In this example wanted to enhance the below Service Interface
Looking at the message type we can get the data type used
We can enhance this data type to add fields to the main message, equally can enhance sub-nodes if required.
In SLD
created product
Create Software component linked to this product
Add Installation Time dependency to component wish to enhance
In ESR
Import software component
Once imported can see the dependency set in SLD under the 'Basis Objects'
Create namespace
Add Data Enhancement Type
Nb: worth naming DTE based on data type to be enhanced (ie DTE_TransportationDocumentRequestMessage in this case would be a better name than one used in this example, useful if enhancing multiple nodes)
Set the Data Type you with to enhance (selected from the underlying dependency). This can be a data type at any node level
Add fields that you want in the enhancement
Save and activate
If we now view the message type we are enhancing can see new field added. Note this only shows under the S4CORE 107 Dependency object in our new Software Component and not in the standard SAP Software component
In S4 Hana ABAP code in a BADI is used to populate these new fields.
When creating an Iflow in NWDS:
Use the original SAP standard service interface
Although this is linked to the original unenhanced Message type it is setup as XI compatible, this means that it will accept any message structure (root node remains unchanged so would still work even if not XI compatible)
For operation mapping - again use the original service interface
For the message mapping however you need to use the enhancement message type under the newly created software component since this will show the newly added fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 | |
4 | |
3 |