Hi,
I need to parse XML to internal table.XML will be in the format which i have shown below.
<?xml version="1.0" encoding="utf-8" ?>
-<Msg type="B">
<E_MATERIAL_DETAILS C1="100-100" C2="0000001000" C4="135.98" C0="005056A400D91DDDBFCF2CC4FE631570" C3="ST" tv="005056A400D91DDDBFCF2A849DE9F570" />
<E_MATERIAL_DETAILS C1="100-200" C2="0000001000" C4="72.7" C0="005056A400D91DDDBFCF2CC4FE633570" C3="ST" tv="005056A400D91DDDBFCF2A849DE9F570" />
<E_MATERIAL_DETAILS C1="CH-2050" C2="0000001000" C0="005056A400D91DDDBFCF2CC4FE635570" C3="KG" tv="005056A400D91DDDBFCF2A849DE9F570" />
<E_MATERIAL_DETAILS C1="CH-2060" C2="0000001000" C0="005056A400D91DDDBFCF2CC4FE637570" C3="KG" tv="005056A400D91DDDBFCF2A849DE9F570" />
</Msg>
I have to parse this XML to my internal table..
Internal table structure will be like this..
data : begin of itab occurs 0,
c0(20),
c1(20),
c2(20),
c3(20),
c4(20),
end of itab.
How to achieve this.. Please Guide me..
Regards
Bala.