on 04-13-2015 4:18 PM
HI Experts,
I am working on idoc to file scenario...
From idoc i amusing to populate E1EDP01 segment values at item level of target structure except one field. The one field which i have to populate from some other segment. But the item note is matched to E1EDP01 segment.
<xsl:template match="E1EDP01">
<ReturnOrderItem>
<ItemNr>
<xsl:value-of select="E1EDP02[QUALF=001]/ZEILE"/>
</ItemNr>
<ReturnDate>
<xsl:value-of select="Z1EDP01_SIMS/LFDAT"/>
</ReturnDate>
<Status>
<xsl:value-of select="Z1EDP01_SIMS/STATUS"/>
</Status>
<ReturnReason>
<xsl:value-of select="E1EDPT1[TDID=ZI04]/E1EDPT2[1]/TDLINE"/>
</ReturnReason>
<TrackingNr>
<xsl:value-of select="Z1EDP01_SIMS/BOLNR"/>
</TrackingNr>
<BankAccountNr>
<xsl:value-of select="E1EDKT1/E1EDKT2[1]/TDLINE"/>(Here i want to populate the value)
</BankAccountNr>
<SerialNrType>
<xsl:value-of select="Z1EDP01_SIMS/ZSERTYP"/>
</SerialNrType>
<SerialNumbers>
<SerialNr>
<xsl:value-of select="Z1EDP01_SIMS/Z1SERIAL/SERIALNO"/>
</SerialNr>
</SerialNumbers>
</ReturnOrderItem>
</xsl:template>
How can i populate the value for this case.
Please help me on this.
Regards,
Uday.
Uday,
Please try
<BankAccountNr>
<xsl:value-of select="//E1EDKT1[1]/E1EDKT2[1]/TDLINE"/>
</BankAccountNr>
Do you always want value from a particular E1EDKT1? OR You want to relate E1EDP01 and E1EDKT1 and then get value (E1EDP01 and E1EDKT1 are at same level, it will be tricky to group them)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Experts,
Please help on this.
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uday,
If you share you input XML and your desired output XML it will easier for us to give you a right XSLT.
However, i have a little question for you, why don't use a standard message mapping?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Sorry for late reply.
We are working on mainatainance project. we are enhansing the exsiting functionality as XSLt.
We are using the standard ORDERSP.ORDERS05 idoc structure.
Ubder E1EDKT1/E1EDKT2/TDLINE filed value should populate at target under bankaccount number.
Currently values are poulating under E1EDP01.
Please help me in this.
Regards.
Uday
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.