cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DataHub: How to handel multiple Target Items without semantical key

Former Member
0 Likes
447

We have to send product data from Hybris to DataHub.

The marketing-focussed product-longText has to be carried within the segment
E1MARAM -> E1MTXHM-E1MTXLM
The whole text is splitted into n lines (segments of E1MTXLM), which are bundled within one E1MTXHM-segment.

Each E1MTXLM -segment consists of three attributes:

  • MSGFN (Function, is fix)
  • TDFORMAT (Format, more or less fix)
  • TDLINE (the content)


Unfortunately, there is no key attribute available.

But due to Datahub-Documentation (https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/1811/en-US/ea217cb9b7214f3181466d4c6038...) I need a semantical key.

And this will be confirmed by the resulting error:
com.hybris.datahub.sapidocoutboundadapter.IllegalTargetItemDefinition: Segment for target item MATMAS05$E1MARAM$E1MTXHM$E1MTXLM has cardinality 0..n but no segment key is defined

Adding an own key-attribute leads to an error:
om.hybris.datahub.sapidocoutboundadapter.IllegalTargetItemDefinition: Attribute LINE_NUMBER is marked as a key field but not even part of the IDoc segment

Any hint? Thanks in advance, Heiko

Accepted Solutions (0)

Answers (1)

Answers (1)

henrique_pinto
Active Contributor
0 Likes

This tag is for the SAP Data Hub pipelining product, not the Hybris Data Hub middleware (I know, it's confusing...).