Changing XML data
This example shows you how to change XML data when it turns out that System Y uses different currency code than the SAP customization. After reading the XML file, we need to map external currency codes to SAP ERP internal ones. Airlines from the XML file, Antarctica Airline, use Antarctica dollars as currency and CURRCODE in external system use AQD acronym in context of Antarctica dollars and in SAP system we use AQQ. This will not differ from our previous example, so you can simply copy the ZMSA_R_CHAPTER6_01 report into a new ZMSA_R_CHAPTER6_02 file.
We need to access a currency code value from our XML structure and from the CURRCODE node. To handle such requests, we have to use the find_simple_element method which can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access