XML element attributes in program
I am using following FMs to create XML document from internal table
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
CALL FUNCTION 'SDIXML_DOM_TO_XML'
My internal table has field 'AMT' and generated XML file has following line
But I want this line to be generated as <AMT Ccy = 'USD'>1000</AMT>
I tried to use set_attribute method of element but not able to get this.I should be missing somethig as I am new to this XML.
Can anyone please advsie how I can get this?
Thanks for your help.