Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Processing XML File Data

Former Member
0 Likes
1,290

Hi,

I have to process a XLM file data from the application server. Could anyone give me any idea how to put the XML file from application server into an internal table in a proper way? I know there is a class CL_XML_DOCUMENT, but I have never handled a XML file before.If anyone could give me a sample code (my id is [email protected]), that would be very helpful.

8 REPLIES 8
Read only

suresh_datti
Active Contributor
0 Likes
1,119

Hi Sandip,

Pl take a look at the following threads..

Regards,

Suresh Datti

Read only

0 Likes
1,119

Those seem to be something for processing of BDC session. Are they for XML data? I didn't get it properly then.

Read only

0 Likes
1,119

Hi Sandip,

Sorry for messing up the links.. I had another thread open at that time.. Pl check out the following links just in case you haven't already figured out..

Regards,

Suresh Datti

Read only

0 Likes
1,119

Thanks! I am now trying to figure out how to develop a XLST program.

Read only

0 Likes
1,119

check out this weblog where in the code sample i am showing how a xml file can be converted to itab using XSLT (XSLT code is also given)

/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap

Usefule linkg for learning XSLT

http://www.w3schools.com/xsl/

http://help.sap.com/saphelp_erp2005/helpdata/en/a8/824c3c66177414e10000000a114084/frameset.htm

also check out these packages from txn se80

SXSLT

SXSLT_APP

SXSLT_COMP

SXSLT_COMPMSG

SXSLT_DEBUGGER

SXSLT_DEMO

SXSLT_TEST

SXSLT_TOOL

SXSLT_TRAINING

Regards

Raja

Reward the helpful answers by clicking the radiobutton and if you question is answered mark it as answered

Read only

0 Likes
1,119

Thanks a lot Raja.

Read only

athavanraja
Active Contributor
0 Likes
1,119

<i>any idea how to put the XML file from application server into an internal table in a proper way</i>

do you mean reading the values from the xmlfile (node values) and use that to populate itab fields.

you can use CALL TRANSFORMATION for this case. and you have to develop a XLST program to convert the XML into your itab.

Do let me know if you need further help on this.

Regards

Raja

Read only

0 Likes
1,119

Hi,

Thanks! Only thing is my file is in app server?will this way be applicable for that too? and could you please let me know how to develop a XLST program? IF you could provide me a sample code on this approach that will be very helpful.