Hi,experts.
How to set a constant attribute to xml transformation.
For example i have only sender field and want to get an xml = <issuance xmlns=”http://www.w3schools.com” sender=”700069297″>
</issuance>
I found how to set an sender attribute by ref, but how to set a constant of xmlns?
<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”>
<tt:root name=”ROOT” type=”ddic:ZVA_ESCHF_GET”/>
<tt:template>
<issuance>
<tt:attribute name=”sender” value-ref=”ROOT.SENDER”/>
</issuance>
</tt:template>
</tt:transform>