Skip to Content

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

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

<AMT>1000</AMT>

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.

Srinivas

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