Skip to Content
0
Former Member
Jun 10, 2017 at 12:26 AM

How tospecify child segment under a parent segment in an IDOC Type

77 Views

I am trying to write a mapping in datahub target extension for sending IDOC to SAP from hybris via datahub.

IDOCType:-IRM_-CHGBACKS01 Parent Segment:-IRM-IPCBI02 child Segment:-IRM-IPCBP04

When i specify the below mapping in type tag,i am getting below error,could some one please guide me

Target-datahub-extension.xml mapping:

            <type>_-IRM_-CHGBACKS01$_-IRM_-IPCBI02$_-IRM_-IPCBP04$E1EDP05</type>
            <exportCode>idockeyfield=CLAIMREF</exportCode>
            <description>Document Item Conditions</description>
            <canonicalItemSource>CanonicalRedemptionItem</canonicalItemSource>
            <attributes>
                <attribute>
                  <name>KSCHL</name>
                  <transformationExpression>"${redemption.ipcbi02.ipcbp04.kschl}"</transformationExpression>
                  <exportCode>keyfield=true</exportCode>
               </attribute>
               <attribute>
                  <name>KRATE</name>
                  <transformationExpression>pointsRedeemed</transformationExpression>
               </attribute>
            </attributes>
         </item>

Error:

com.hybris.datahub.model.InvalidAttributeException: Field : QUALF is not defined for type : -IRM-CHGBACKS01$-IRM-IPCBI02$-IRM-IPCBP04 and cannot be retrieved

Thanks Soumya