Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8667

Re: XML Transformation: Representation of internal table entries

$
0
0

In that case, we can strip hardware tag first, and then rename item tag to hardware.

Reason being, hardware tag appears once, item tag appears for every row.

 

Code snippet:

REPLACE ALL OCCURRENCES OF '<HARDWARE>' IN lv_xml WITH ''.

REPLACE ALL OCCURRENCES OF '</HARDWARE>' IN lv_xml WITH ''.

REPLACE ALL OCCURRENCES OF '<item>' IN lv_xml WITH '<HARDWARE>'.

REPLACE ALL OCCURRENCES OF '</item>' IN lv_xml WITH '</HARDWARE>'.


Viewing all articles
Browse latest Browse all 8667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>