on 05-03-2017 10:07 PM
I have a table with one of the column as xml data. I want to extract the xml data from field.in BODS. I tried using several steps but no sucess.
Please let me know the steps.
Dears,
Can any one send the process with steps for extraction xml data from a table field and load in to target table.
Regards,
Harish harish.puthran@outlook.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
RT*M.
SAP Data Services Reference Guide, section 6.3.43 extract_from_xml:
"
This function allows you to extract XML data that is stored in one field of a database table into a query's output schema with Data Services' nested relational data model (NRDM) structure. Varchar data types are supported in the input column. You can use the following methods to extract data from clob and long data types.
"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramesh
To extract the xml data from the database table..
first you need to convert the column into long_to_varchar(column_nm), 1295261, 1), then use merge tansform, then replace all the special characters using replace_substr function, then create xml file at any shared location..
WF should look like this and should be in loop:- DB Table -> query to convert column in long_to_varchar -> merge transform -> query transform to use replace -> target should be xml file.
when all the xml file gets created then you can easily unnest the xml file and extract the data...
Hope that will help.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi dec,
The below is one of the column table where data is storing not in single file,as we are getting from OLTP.
lot of of xml files are there and my intention is to extract data those files from that table using BODS.
Thanks in advance.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.