on 02-27-2017 7:35 AM
Dear All.
please find my input xml file.
we would like to convert this xml as an internal table to store the values to Ztables.
Customer doesn't have a SAP PI resource, so we decided to do this scenario like, XML XSLT with ABAP. and i found an refrence link.
using XSLT_TOOL if new for us, is there a way where we can get the XSLT code for the same. can anyone can help us to get the XSLT code.
i can see using "simple transformation" in XSLT_TOOL we can get the code automatically, but i don't think above xml structure may suites or not?
please do needful.
please find the attached xml file for your reference.pain-002-001-03-filelevelacknowledgement-sample.txt
There are different ways to parse XML files into ABAP.
Libraries: iXML or sXML
Transformations: XSLT or ST.
Make yourself acquainted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramesh,
Why to use a XSLT transformation?, your XML seems to be a simpler example, you can access directly to the header part and later in a LOOP to parse the body. For ABAPer is not difficult to do it, check this example
https://wiki.scn.sap.com/wiki/display/ABAP/Parse+an+xml+file+and+insert+values+in+ABAP
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try creating transformation using the XSLT guide
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is many ways to do that. But can you tell us, whether you are using SAP PI or not or direct send this to ECC (ABAP System)?
Regards,
Anoop Rai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The XSLT (transformation) need to created to process the input file. You can refer to the wiki below XML XSLT with ABAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.