2007 Mar 14 9:30 AM
Hi all,
can anyone tell me how to read the data(file) of apllication server which is in xml format into an abap structure?
thanx in advance
Hi all,
can anyone tell me how to read the data(file) of apllication server which is in xml format into an abap structure?
thanx in advance
2007 Mar 14 9:51 AM
2007 Mar 14 9:57 AM
Hi
please use function module DMEE_GET_XML_DATA_ABA
or try fm SWF_XML_TO_ABAP
**Reward all the helpful answers***
With Regards
Navin Khedikar
2007 Mar 14 10:08 AM
hi,
Use the FM TEXT_CONVERT_XML_TO_SAP
Also, check out the blog
/people/thomas.jung3/blog/2005/05/15/abap-46c-to-640-delta-training
Hope this helps.
Regards,
Richa
2007 Mar 14 10:09 AM
2007 Mar 14 10:12 AM
Try reading data using OPEN DATA SET into t_xml file...
DATA:
t_xml like standard table of SMUM_XMLTB with header line.
We can have a look at the data by looping at the internal table.
LOOP AT T_XML.
WRITE :
/05 T_XML-hier,
20 T_XML-type,
30 T_XML -cname,
70 T_XML -cvalue.
ENDLOOP.
Now using this t_xml fill your internal table...
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |