2019 Aug 20 11:29 AM - edited 2024 Feb 04 6:29 AM
Hi experts,
I'm working with datahub and I need to remove a field in the output idoc if it has no value, when sending orders from hybris (6.0) -> datahub (6.3) -> SAP FMS.
This is one of my item in saporder-target-datahub-extension.xml:
<item>
<type>FSHORD01$E1EDP01</type>
<exportCode>idockeyfield=SALESDOCUMENTIN|sendorder=5</exportCode>
<description>Sales order item product details of FSHORD01 iDoc type</description>
<updatable>true</updatable>
<canonicalItemSource>CanonicalOrderItem</canonicalItemSource>
<status>ACTIVE</status>
<attributes>
<attribute>
<name>SALESDOCUMENTIN</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>orderId</transformationExpression>
<exportCode></exportCode>
<mandatoryInHeader>true</mandatoryInHeader>
</attribute>
<attribute>
<name>POSEX</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>entryNumber</transformationExpression>
<exportCode>keyfield=true</exportCode>
<mandatoryInHeader>true</mandatoryInHeader>
</attribute>
<!-- Attributi validi solo per variant -->
<attribute>
<name>MENGE</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>quantity</transformationExpression>
<exportCode></exportCode>
<mandatoryInHeader>true</mandatoryInHeader>
</attribute>
<attribute>
<name>MENEE</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>unit</transformationExpression>
<exportCode></exportCode>
<mandatoryInHeader>true</mandatoryInHeader>
</attribute>
<attribute>
<name>UEPOS</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>parentEntryNumber</transformationExpression>
<exportCode></exportCode>
<mandatoryInHeader>true</mandatoryInHeader>
</attribute>
<attribute>
<name>LPRIO</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>
'HIGH'.equalsIgnoreCase(itemShippingPriority)?'1':'VERY_HIGH'.equalsIgnoreCase(itemShippingPriority)?'2':''
</transformationExpression>
<exportCode></exportCode>
<mandatoryInHeader>false</mandatoryInHeader>
</attribute>
</attributes>
</item>
The field to be removed if blank is LPRIO. Is that possible?
Thank you!
Request clarification before answering.
Hi Witali,
thank you for your advice!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.