How to extract data in a given format
Hi,
Can anyone help me to get the data in the given format. Any Help will be highly appreciated.
entity instance id_1 Type_1 Val
ert_enquiry SAP_096_0980_K or_Cost currency 128.0
ert_enquiry SAP_096_0980_K ort_cur_sum currency 145.0
ert_enquiry SAP_096_0980_K ort_cur_on currency 125.0
ert_enquiry_1 AAP_011_0865_G or_Cost currency 108.0
ert_enquiry_1 AAP_011_0865_G ort_cur_sum currency 126.0
ert_enquiry _1 AAP_011_0865_G ort_cur_on currency 115.0
Database 11g ver 11.2.0.2.0
with t as(
select xmltype(
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:i24n="http://www.w3.org/2005/09/ws-i24n"
xmlns:typ="http://oracle.com/determinations/server/10.3/rulebase/assess/types">
<SOAP-ENV:Header>
<i24n:international>
<i24n:locale>en_US</i24n:locale>
<i24n:tz>GMT-0700</i24n:tz>
</i24n:international>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<typ:assess-response>
<typ:global-instance>
<typ:entity id="ert_enquiry">
<typ:instance id="SAP_096_0980_K">
<typ:attribute id="or_Cost" type="currency" inferred="true">
<typ:number-val>128.0</typ:number-val>
</typ:attribute>
<typ:attribute id="ort_cur_sum" type="currency" inferred="true">
<typ:number-val>145.0</typ:number-val>
</typ:attribute>
<typ:attribute id="ort_cur_on" type="currency" inferred="true">
<typ:number-val>125.0</typ:number-val>
</typ:attribute>
</typ:instance>
</typ:entity>
<typ:entity id="ert_enquiry_1">
<typ:instance id="AAP_011_0865_G">
<typ:attribute id="or_Cost" type="currency" inferred="true">
<typ:number-val>108.0</typ:number-val>
</typ:attribute>
<typ:attribute id="ort_cur_sum" type="currency" inferred="true">
<typ:number-val>126.0</typ:number-val>
</typ:attribute>
<typ:attribute id="ort_cur_on" type="currency" inferred="true">
<typ:number-val>115.0</typ:number-val>
</typ:attribute>
</typ:instance>
</typ:entity>
</typ:global-instance>
</typ:assess-response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>') col
from dual)
select x.*
from t,
xmltable(XMLNamespaces('http://schemas.xmlsoap.org/soap/envelope/' AS "SOAP-ENV"
, 'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS "typ")
, 'SOAP-ENV:Envelope/SOAP-ENV:Body/typ:assess-response/typ:global-instance/descendant::typ:attribute'
passing t.col
columns
id_1 varchar2(100) path '@id',
type_1 varchar2(100) path '@type',
val varchar2(100) path '.'
) x
Thanks
Ankith
hi odie_63
i also don't reproduce
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
SQL> with t as
2 (select xmltype('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
3 xmlns:i24n="http://www.w3.org/2005/09/ws-i24n"
4 xmlns:typ="http://oracle.com/determinations/server/10.3/rulebase/assess/types">
5 <SOAP-ENV:Header>
6 <i24n:international>
7 <i24n:locale>en_US</i24n:locale>
8 <i24n:tz>GMT-0700</i24n:tz>
9 </i24n:international>
10 </SOAP-ENV:Header>
11 <SOAP-ENV:Body>
12 <typ:assess-response>
13 <typ:global-instance>
14 <typ:entity id="ert_enquiry">
15 <typ:instance id="SAP_096_0980_K">
16 <typ:attribute id="or_Cost" type="currency" inferred="true">
17 <typ:number-val>128.0</typ:number-val>
18 </typ:attribute>
19 <typ:attribute id="ort_cur_sum" type="currency" inferred="true">
20 <typ:number-val>145.0</typ:number-val>
21 </typ:attribute>
22 <typ:attribute id="ort_cur_on" type="currency" inferred="true">
23 <typ:number-val>125.0</typ:number-val>
24 </typ:attribute>
25 </typ:instance>
26 </typ:entity>
27 <typ:entity id="ert_enquiry_1">
28 <typ:instance id="AAP_011_0865_G">
29 <typ:attribute id="or_Cost" type="currency" inferred="true">
30 <typ:number-val>108.0</typ:number-val>
31 </typ:attribute>
32 <typ:attribute id="ort_cur_sum" type="currency" inferred="true">
33 <typ:number-val>126.0</typ:number-val>
34 </typ:attribute>
35 <typ:attribute id="ort_cur_on" type="currency" inferred="true">
36 <typ:number-val>115.0</typ:number-val>
37 </typ:attribute>
38 </typ:instance>
39 </typ:entity>
40 </typ:global-instance>
41 </typ:assess-response>
42 </SOAP-ENV:Body>
43 </SOAP-ENV:Envelope>') col
44 from dual)
45 --
46 select b.entity, c.instance, d.*
47 from t,
48 xmltable(XMLNamespaces('http://schemas.xmlsoap.org/soap/envelope/' as "SOAP-ENV",
49 'http://oracle.com/determinations/server/10.3/rulebase/assess/types' as "typ"),
50 'SOAP-ENV:Envelope/SOAP-ENV:Body/typ:assess-response/typ:global-instance/typ:entity'
51 passing t.col
52 columns entity varchar2(100) path '@id',
53 res_tmp2 xmltype path 'typ:instance') b
54 ,xmltable(XMLNamespaces('http://schemas.xmlsoap.org/soap/envelope/' AS "SOAP-ENV",
55 'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS "typ"),
56 'typ:instance'
57 passing b.res_tmp2
58 columns instance varchar2(100) path '@id',
59 res_tmp3 xmltype path 'typ:attribute') c
60 ,xmltable(XMLNamespaces('http://schemas.xmlsoap.org/soap/envelope/' AS "SOAP-ENV",
61 'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS "typ"),
62 'typ:attribute'
63 passing c.res_tmp3
64 columns id_1 varchar2(100) path '@id',
65 type_1 varchar2(100) path '@type',
66 val varchar2(100) path '.'
67 ) d
68 /
ENTITY INSTANCE ID_1 TYPE_1 VAL
ert_enquiry SAP_096_0980_K or_Cost currency 128.0
ert_enquiry SAP_096_0980_K ort_cur_sum currency 145.0
ert_enquiry SAP_096_0980_K ort_cur_on currency 125.0
ert_enquiry_1 AAP_011_0865_G or_Cost currency 108.0
ert_enquiry_1 AAP_011_0865_G ort_cur_sum currency 126.0
ert_enquiry_1 AAP_011_0865_G ort_cur_on currency 115.0
6 rows selected
SQL>
Similar Messages
-
Open Hub: How-to doc "How to Extract data with Open Hub to a Logical File"
Hi all,
We are using open hub to download transaction files from infocubes to application server, and would like to have filename which is dynamic based period and year, i.e. period and year of the transaction data to be downloaded.
I understand we could use logical file for this purpose. However we are not sure how to have the period and year to be dynamically derived in filename.
I have read in sdn a number of posted messages on a similar topic and many have suggested a 'How-to' paper titled "How to Extract data with Open Hub to a Logical Filename". However i could not seem to be able to get document from the link given.
Just wonder if anyone has the correct or latest link to the document, or would appreciate if you could share the document with all in sdn if you have a copy.
Many thanks and best regards,
VictoriaHi,
After creating open hub press F1 in Application server file name text box from the help window there u Click on Maintain 'Client independent file names and file paths' then u will be taken to the Implementation guide screen > click on Cross client maintanance of file name > create a logical file path by clicking on new entiries > after creating logical file path now go to Logical file name definition there give your Logical file , name , physical file (ur file name followed by month or year what ever is applicable (press f1 for more info)) , data format (ASC) , application area (BW) and logical path (choose from F4 selection which u have created first), now goto Assignment of physical path to logical path > give syntax group >physical path is the path u gave at logical file name definition.
however we have created a logical path file name to identify the file by sys date but ur requirement seems to be of dynamic date of tranaction data...may u can achieve this by creating a variable. U can see the help from F1 that would be of much help to u. All the above steps i have explained will help u create a dynamic logical file.
hope this helps u to some extent.
Regards -
How to Extract Data from IT 0025 and Modify the layout for Printing
Hi All,
Query----> My client has a requirement to output the appraisal data in a given format from IT 0025. (The entire appraisal done for the employee)
I would like to know from where this data will be picked up is this data stored in some cluster table and how can we change the layout for printing in the desired format?
Note: PA and PD is Integrated. When we create appraisal in IT 0025 no record gets created in PA0025, in which table does the record gets created and how to retrieve the data?hello,
normally stored in pa0025.
are you using the old or new appraisal system?
if you are using the new one. its not stored in pa0025 it is done with relationships..
regards
stefan -
How to extract data from custom made Idoc that is not sent
Hi experts,
Could you please advise if there is a way how to extract data from custom made idoc (it collects a lot of data from different SAP tables)? Please note that this idoc is not sent as target system is not fully maintained.
As by now, we would like to verify - what data is extracted now.
Any help, would be appreciated!Hi,
The fields that are given for each segment have their length given in EDSAPPL table. How you have to map is explained in below example.
Suppose for segment1, EDSAPPL has 3 fields so below are entries
SEGMENT FIELDNAME LENGTH
SEGMENT1 FIELD1 4
SEGMENT1 FIELD2 2
SEGMENT1 FIELD3 2
Data in EDID4 would be as follows
IDOC SEGMENT APPLICATION DATA
12345 SEGMENT1 XYZ R Y
When you are extracting data from these tables into your internal table, mapping has to be as follows:
FIELD1 = APPLICATIONDATA+0(4) to read first 4 characters of this field, because the first 4 characters in this field would belong to FIELD1
Similarly,
FIELD2 = APPLICATIONDATA+4(2).
FIELD3 = APPLICATIONDATA+6(2).
FIELD1 would have XYZ, FIELD2 = R, FIELD3 = Y
This would remain true in all cases. So all you need to do is identify which fields you want to extract, and simply code as above to extract the data from this table.
Hope this was helpful in explaining how to derive the data. -
Hi,
I'm working with VB.net and SBO 2005. My question is :
How to extract data of a view ?
Thank you.Hi!
View is just a T-SQL statement stored and saved on the server side. All you need is to query this view using the following syntax:
SELECT <view columns> FROM <view name> WHERE <conditions>
So the syntax is the same as T-SQL SELECT-clause
HTH -
How to extract data from SAP in FDM 11121
I came across some documents from version 11113, says there is a SAP adapter, however ,when I check 11121 there's no such adapter, does anyone know how to extract data from SAP in FDM 11121?
I download a package from Bristlecone, but I dont see any xml files in it, just a bunch of dll and I didn't find any instructions on how to set up/configure in FDM, it just explained how to register in SAP app server and client.
Hyperion 11113 has readme on sap adapter(Hyperion Readme Template), but I cannot find the same readme file in 11121, all I can find is ERP Integration Adapter document. any idears where I can find at least a readme document? -
How to extract data from web URL
I was doing one project which need to extract data from web pages and then analyze these data. the question is how to extract data from there, using html parser? need help, thanks a lot
I was doing one project which need to extract data
from web pages and then analyze these data. the
question is how to extract data from there, using
html parser? need help, thanks a lotTry this:
http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
Or, like you said yourself, use an HTML parser:
http://java-source.net/open-source/html-parsers -
How to extract data from Chart History?
Dear all, I have read a lot of posts, but still don't understand how to extract data from Chart history.
Suppose you acquired 1024 points of data every time, then use "build array" to build an array, then send to intensity chart to show, then save the history into a .txt file, but how to extact data from the file?
How Labview store the data in the 2D history buffer?
Anybody has any examples?The simplest would be to save the 2D array as a spreadsheet file, the read it back the same way.
Maybe the attached simple example can give you some ideas (LabVIEW 7.1). Just run it. At any time, press "write to file". At any later time, you can read the save data into the second history chart.
If you are worried about performance, it might be better to use binary files, but it will be a little more complicated. See how far you get.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
IntensityChartHistorySave.vi 79 KB -
How to extract data from planning book
nu t apo. need help regarding how to extract data from planning book givn the planning book name , view name & some key figures.
Total Demand (Key Figure DMDTO):
o Forecast
o Sales Order
o Distribution Demand (Planned)
o Distribution Demand (Confirmed)
o Distribution Demand (TLB-Confirmed)
o Dependent Demand
Total Receipts (Key Figure RECTO):
o Distribution Receipt (Planned)
o Distribution Receipt (Confirmed)
o Distribution Receipt (TLB-Confirmed)
o In-Transit
o Production (Planned)
o Production (Confirmed)
o Manufacture of Co-Products
Stock on Hand (Key Figure STOCK):
o Stock on Hand (Excluding Blocked stock)
o Stock on Hand (Including Blocked stock)
In-Transit Inventory (Cross-company stock transfers)
Work-in-progress (Planned orders / Process orders with start date in one period and finish date in another period)
Production (Planned), Production (Confirmed) and Distribution Receipt elements need to be converted based on Goods Receipt date for projected inventory calculation.Hello Debadrita,
Function Module BAPI_PBSRVAPS_GETDETAIL2 or BAPI_PBSRVAPS_GETDETAIL can help you.
For BAPI BAPI_PBSRVAPS_GETDETAIL, the parameters are:
1) PLANNINGBOOK - the name of your planning book
2) DATA_VIEW - name of your data view
3) KEY_FIGURE_SELECTION - list of key figures you want to read
4) SELECTION - selection parameters which describe the attributes of the data you want to read (e.g. the category or brand). This is basically a list of characteristics and characteristic values.
BAPI_PBSRVAPS_GETDETAIL2 is very similar to BAPI_PBSRVAPS_GETDETAI but is only available from SCM 4.1 onwards.
For the complete list of parameters, you can go to transaction SE37, enter the function module names above and check out the documentation.
Please post again if you have questions.
Hope this helps. -
How to extract data from ODS to non-SAP system
Hi,
Can anybody tell me, step by step, how to extract data from ODS to a non-SAP system?
Is it possible to do it without programming effort? And is there volume limits for this kind of extraction?
The non-SAP system is an unix system.
Thanks in advance
EllaElla,
You can look at it from the concept of a BADI / Infospoke
Extract the data from the ODS to a Flat file / RDBMS using an infospoke. I am not sure as to how the infospoke loads data into the RDBMS ( did it very long ago ) but then you can push it into an RDBMS and I am sure it will be system neutral.
Hope this helps...
Arun
Assign points if it helps -
How to extract data from oracle database directly in to bi7.0 (net weaver)
how to extract data from oracle database directly in to bi7.0 (net weaver)? is it something do with EDI? can anybody explain me in detail?
Thanks
YorkYou can use UDConnect to get from Oracle database in to BW
<b>Data Transfer with UD Connect -</b>
http://help.sap.com/saphelp_nw04/helpdata/en/78/ef1441a509064abee6ffd6f38278fd/content.htm
<b>Prerequisites</b>
You have installed the SAP WAS J2EE Engine with BI Java components. You can find more information on this in the SAP BW installation guide on the SAP Service Marketplace at service.sap.com/instguides.
Hope it Helps
Chetan
@CP.. -
JDBC-XI-FILE scenario. How to extract data from more than one table in JDBC
Hi,
I was asked a question like in JDBC-XI-FILE scenario........ How to extract data from more than one tables (i.e from JDBC system) ?? What is the logic to do the same ??
I am not sure whether this is a valid question..........but any help in this regards is highly appreciated.
Regards
KumarHI,
Yes it can be possible ,please see the following links
JDBC Receiver with Oracle Stored Procedures
configuring jdbc adapter with multiple tables
RFC -> XI -> JDBC Scenario Updating Multiple Tables
/people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
JDBC Adapter multiple Selects
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=jdbc%20with%20multiple%20tables&cat=sdn_all
Regards
Chilla.. -
How to extract data from info cube into an internal table using ABAP code
HI
Can Anyone plz suggest me
How to extract data from info cube into an internal table using ABAP code like BAPI's or function modules.
Thankx in advance
regds
AJAYHI Dinesh,
Thankq for ur reply
but i ahve already tried to use the function module.
When I try to Use the function module RSDRI_INFOPOV_READ
I get an information message "ERROR GENERATION TEST FRAME".
can U plz tell me what could be the problem
Bye
AJAY -
How to extract data from Essbase to Flat File using ODI
Hi,
Anyone know how to extract data from Essbase to Flat File using ODI?
Thanks in advance.
Regards,
SumardiHi,
Have you read through :-
Oracle Data Integrator Adapter for Hyperion Essbase Getting Started - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_getting_started.pdf
Oracle Data Integrator Adapter for Hyperion Essbase User's Guide - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_users.pdf
If you have read them and are still have a problem at what stage are you having the issues?
Cheers
John
http://john-goodwin.blogspot.com/ -
How to extract data from XML file with JavaScript
HI All
I am new to this group.
Can anybody help me regarding XML.
I want to know How to extract data from XML file with JavaScript.
And also how to use API for XML
regards
NagarajuThis is a Java forum.
JavaScript is something entirely different than Java, even though the names are similar.
Try another website with forums about JavaScript.
For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3
Maybe you are looking for
-
Bullets and Numbering "Text After" attribute
Hi Everyone, I need to grab "Text After" attribute of and existing bullet list in InDesign document and change it to my text. I think, I need to get access to "kBNBulletTextAfterBoss", but I don't know which boss agregates it. Thanks
-
Is there a way to automatically backup the Airport Extreme Configuration file (.baseconfig). I know (in hindsight) that I can manually export it from the Airport Utility, but ideally I would like to include it in my Time Machine backup. I had a situa
-
Subcontract goods receipt without components withdrawal.
Hi, we're noticing many occurrences of this problem since we've upgrade to ECC 6.0. Too often we encounter GR of subcontracting PO's that doesn't consumed all components existing at the "Components Overview". Besides the common reasons for this (unti
-
Some UI Elements not visible to Users
Hi Experts, We are facing some weird issue in Web Dynpro applications on Enterprise Portal. Some UI elements are not visible to users on screen for no apparent reason. However to other users, same UI elements in same application are visible & render
-
hi, sorry to post a question that's been posted a thousand times but my copy of photoshop cs keeps crashing. everything loads as normal but just after the work area appears the application crashes but the process remains and must be killed using task