Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Strans - Optional Transform templates

Hi Gurus!

I am new to transformations and I am having an issue that's revealing to be to mutch for me.

<?sap.transform simple?>

<tt:transform xmlns:tt="http://www.sap.com/transformation-templates"

               xmlns:ddic="http://www.sap.com/abapxml/types/dictionary"

               xmlns:def="http://www.sap.com/abapxml/types/defined" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

               xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03">

   <tt:root name="DOCUMENT" type="ddic:Z3FI_SEPA"/>

   <tt:template>

     <DOCUMENT>

Line 5 has an attribute with a literal value. This attribute is there because a version of XML file that I am trying to deserialize has this atribute in his <DOCUMENT> element:

<?xml version="1.0" encoding="utf-8"?>

<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<CstmrCdtTrfInitn>

Now I need to deserialize another document that is almost the same (with some additional non obligatory fields) but wiht atribute xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.003.02".

Is there a way to remove/discard/ignore this attribute?

Thank you guys!

Best regards,

Carlos

Former Member
Not what you were looking for? View more on this topic or Ask a question