Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

XML Simple Transformation with Name attribute

Former Member
0 Likes
426

Current logic for reference:

ERS tag is presented in XML file as: <ERSFlag>X</ERSFlag>

Transformation logic to populate ERS flag value into PO_item structure is as:

<tt:cond><ERSFlag>

<tt:value ref="$po_item.ers_flag"/>

</ERSFlag></tt:cond>

New Changes:

*****************

XML template with New tag: TaxField1. New Tag included as:

- <TaxField1 name="GST" value="">

- <MultiCurrencyMoney>

<Transaction currency="CAD">400.0000000000000</Transaction>

<Base currency="USD">380.68</Base>

<Local currency="CAD">400.0000000000000</Local>

</MultiCurrencyMoney>

</TaxField1>

I have added new field Taxfield1 with Char1 in structure po_item. I would need to Populate 'Y' to new field Taxfield1 in po_item structure based on the above XML tag.

Could anyone please let me know the Tranformation code to populate 'Y' to new field Taxcode1 in po_item structure based on the above XML tag.

Thanks in advance.

Current logic for reference:

ERS tag is presented in XML file as: <ERSFlag>X</ERSFlag>

Transformation logic to populate ERS flag value into PO_item structure is as:

<tt:cond><ERSFlag>

<tt:value ref="$po_item.ers_flag"/>

</ERSFlag></tt:cond>

New Changes:

*****************

XML template with New tag: TaxField1. New Tag included as:

- <TaxField1 name="GST" value="">

- <MultiCurrencyMoney>

<Transaction currency="CAD">400.0000000000000</Transaction>

<Base currency="USD">380.68</Base>

<Local currency="CAD">400.0000000000000</Local>

</MultiCurrencyMoney>

</TaxField1>

I have added new field Taxfield1 with Char1 in structure po_item. I would need to Populate 'Y' to new field Taxfield1 in po_item structure based on the above XML tag.

Could anyone please let me know the Tranformation code to populate 'Y' to new field Taxcode1 in po_item structure based on the above XML tag.

Thanks in advance.

1 REPLY 1
Read only

Former Member
0 Likes
388

Share solution with us. Thank you!!!