Recordset output from multiple queries to single table
Hi
I am trying to find a way to build a dynamic table where the columns appear to need to come from to different queries or from a union query but am confused.My table would look like this and if there is month data then there will be Year to Date data but not neccessarily vice versa.
The number of records will vary.
My sql for Month is
Select Class, sum(Value) as MonthData
From Data
Where Month = Jan
Group By Class
For Year is
Select Class, sum(Value) as YearData
From Data
Group By Class
So all data is coming from my table data which has columns Class, Month, Year, Value
In my recordset in DQ I want to be able to specify a variable "Month" so user can change it but want year to date to always be year to todays date.
any thoughts gratefully received.
Simon
Class
Month
Year to Date
A
DataSource1
Datasource2
B
DataSource1
DataSource2
C
DataSource1
DataSource2
Hi
I am trying to find a way to build a dynamic table where the columns appear to need to come from to different queries or from a union query but am confused.My table would look like this and if there is month data then there will be Year to Date data but not neccessarily vice versa.
The number of records will vary.
My sql for Month is
Select Class, sum(Value) as MonthData
From Data
Where Month = Jan
Group By Class
For Year is
Select Class, sum(Value) as YearData
From Data
Group By Class
So all data is coming from my table data which has columns Class, Month, Year, Value
In my recordset in DQ I want to be able to specify a variable "Month" so user can change it but want year to date to always be year to todays date.
any thoughts gratefully received.
Simon
Class
Month
Year to Date
A
DataSource1
Datasource2
B
DataSource1
DataSource2
C
DataSource1
DataSource2
Similar Messages
-
BEX Workbook - consolidating common data from multiple queries into a table
Hello BW Gurus,
We have couple of queries. One getting data for Material and its components and the other query getting sales volume for material along with many other data.
In the other tab, I would like to display only the Material and its sales volume as another table.
Is there a setting in the BEX to group only these fields and populate values in a different tab?
regards
S RCan you pls elaborate?
Do you want multiple reports on single excel sheet? also do you want to have any relation between them like only those materials that appeared in first report? -
How to get the data from multiple tabes into single table
hi all,
here i am having 10 data base tables,how to get the data into a single table.
regards,
subba reddyhi,
non XI/PI related
Regards,
Michal Krawczyk -
Display Data from multiple models in one table
Hi Experts,
Is it possible to display data from multiple models in one table smltnsly.
I have created a table dynamically.Now I would like to display data from multiple models... If this possible,can anyone give me a lead as to how to do it..
Regards
SUHi
Your Model Nodes be
Model1
---Output_Model1
Attrib1
Attrib2
Model2
---Output_model2
Attrib1
Attrib2
and the value node is
ValueNode
---Attrib1
---Attrib2
Now the coding.
int size;
IPrivate<ViewName>.IOutput_mode1Node node1 = wdContext.nodeOuptut_Model1();
IPrivate<ViewName>.IValueNodeElement elem;
size = node1.size();
for(int i=0; i<size; i++)
elem = wdContext.createValueNodeElement();
elem.setAttrib1( node1.getOutput_Model1ElementAt(i).getAttrib1() );
elem.setAttrib2( node1.getOutput_Model1ElementAt(i).getAttrib2();
wdContext.nodeValueNode().addElement( elem );
similar code for Model Node 2
Regards
Abhimanyu L -
How to get the data from multiple nodes to one table
Hi All,
How to get the data from multiple nodes to one table.examples nodes are like A B C D E relation also maintained
Regards,
IndraHI Indra,
From Node A, get the values of the attributes as
lo_NodeA->GET_STATIC_ATTRIBUTES( IMPORTING STATIC_ATTRIBUTES = ls_attributesA ).
Similarily get all the node values from B, C, D and E.
Finally append all your ls records to the table.
Hope you are clear.
BR,
RAM. -
How do I display data from Multiple Queries in a spreadsheet?
I am running Oracle forms 10g as a kicker to export a report (rdf 10.1.2.0.2) to PDF or Excel Spreadsheet - User's choice.
Doesn't matter if I have desformat = SPREADSHEET, DELIMITEDDATA, or DELIMITED; I still get only the first query displayed when I run in spreadsheet format.
How do I display data from Multiple Queries in a spreadsheet? Is this possible?
Thanks in advance!Hi adam,
did you search the forum? You will find a lot of threads handling the problem of Excel file access.
In short: you need to use ActiveX (the RGT also uses ActiveX under the hood)!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Hi Experts
Is it possible to create a query from multiple queries? if yes, how can I do it?
Thanks
HachimHi Hachim EL ALAMI ,
I am giving you some insight to do this but I am not sure whether we can acheive this or not.
Assigning a query to another InfoSet (Enhanced copy functions) -> Maybe this can to some extent give you the idea.
The standard copy functions of transactions SQ01 and SQ02 were extended by report RSAQCOPY.For example, you can copy an InfoSet including all dependent queries or copy a query into another InfoSet.For further information see note 324393. By doing so we can make a fresh query from already existing queries.
General link to SAP Query..
http://help.sap.com/saphelp_nw04/helpdata/en/7f/af0c36932211d194f60000e82de14a/frameset.htm
http://www.saptechies.com/sap-query/
Regards,
Vvieks
Note : This is not the detailed answer for your query -
How can i import the data from multiple sources into single rpd in obiee11g
how can i import the data from multiple sources into single rpd in obiee11g
Hi,
to import from multiple data sources, first configure ODBC connections for respective data sources. then you can import data from multiple data sources. When you import the data, a connection pool will create automatically.
tnx -
Open Hub - Data from multiple sources to single target
Hello,
I am using Open Hub to send the data from SAP BI to Flat files. I have a requirement where I want to create a single destination from multiple sources. In other words in BI we have different tables for attributes and text. I would like to combine the data from attributes and text into a single file. For eg. I want to have material attributes and text in the same single file as output.
Is this possible in Open Hub? If yes could you please help me to understand the process.
Thanks,
KKHi,
1. Create the Info Spoke and activate it
2. Change it and go to transformation
3. Check the box InfoSpoke with Transf. Using BAdI
4. You are asked if you want to generate the spoke. Say yes & Simply set some texts and activate here, then return.
5. You can now change the target structure. Simply create a Z structure with all the attributs & text field in it in the SE11 and enter it here.
6. Double click on BAdI implementation & then double click again on "TRANSFORM" method of the implementation. It will take you to method
"IF_EX_OPENHUB_TRANSFORM~TRANSFORM"
7. Write a code to select & fill the text field & map other filed with the attribute fields.
Example:
ZEMPLOYEE_ATTR_STRU - Target Structure for InfoSpoke EMPLOYEE_ATTR
EMPLOYEE /BI0/OIEMPLOYEE NUMC 8 0 Employee
DATETO /BI0/OIDATETO DATS 8 0 Valid to
DATEFROM /BI0/OIDATEFROM DATS 8 0 Valid from
COMP_CODE /BI0/OICOMP_CODE CHAR 4 0 Company code
CO_MST_AR /BI0/OICO_MST_AR CHAR 4 0 Controlling Area of Master Cost Center
HRPOSITION /BI0/OIHRPOSITION NUMC 8 0 Position
MAST_CCTR /BI0/OIMAST_CCTR CHAR 10 0 Master Cost Center
TXTMD RSTXTMD CHAR 40 0 Medium description
Note: Text and attribute are in same structure. -
How to embed multiple queries in single workbook
Hi,
I am working in BI 7.0 environment. My requirement is
1) I have 6 different SD queries.
2) I need to create workbook out of each query.
3) I need to embed workbook created from each query into a single work book (each worksheet in workbook should have workbook created from 1single query).
This way the final workbook will have six work sheets with six different queries (all saved as workbooks).
Can anyone please give me an idea to create the workbook.
We are latest version of Excel.
Thanks in advance.Hi Padma,
You can embed multiple queries in a workbook.Please follow below steps.
1. Open the query in a Bex analyzer (first query)
2. Go to second tab and select a cell and insert anlaysis item (second icon on the Bex Toolbar)
3. Right click and assign query to the data provider.
4. Goto next tab and insert analysis item for third query . Similarly you can insert many queries but embedding multiple queries will degrade performace.
5. Goto workbook settings (last icon in Bex tool bar) for workbook properties like refresh workbook on open. pop up variable screen on refresh etc.
Also please go thru below links .
http://help.sap.com/saphelp_nw04/helpdata/en/ba/45583ca544eb
51e10000000a114084/content.htm
Hope this helps. Let me know if you have any queries.
Regards
Suvarna -
Transforming from multiple node to single node
Hi,
I new to BPEL trying to transform data from two different multiple nodes to single node of complex type.
For Eg where 'req1' and 'req2' are multiple nodes in request:
Request::
<req1>
<a1/>
</req1>
<req2>
<b1/>
</req2>
Response::
<c>
<ca1>
<cb2>
</c>
Please can anyone help me in getting the solution.
Hope the pseudo-logic is clear!!!
Edited by: c devi on Oct 18, 2011 7:12 AM
Edited by: c devi on Oct 18, 2011 7:12 AMHi',
You can try this,
<xsl:template match="/">
<client:processResponse>
<xsl:for-each select="$Var2.payload/client:process">
<client:result>
<xsl:value-of select="client:input"/>
</client:result>
</xsl:for-each>
<xsl:for-each select="/client:process">
<client:result>
<xsl:value-of select="client:input"/>
</client:result>
</xsl:for-each>
</client:processResponse>
</xsl:template>
Source:
<req1>
<a1/>
</req1>
<req2>
<b1/>
</req2>
Target
<c>
<c1/>
</c>
You can do like this,
Inside the Transform first put the for-each over the target variable, i.e. just above c1, then right click on the for-each > add XSL node > 'Clone' for-each.
This will create the source one more time i.e. you will have now 2 targets of the same type,
Like this.
Target
<c>
<c1/>
</c>
<c>
<c1/>
</c>
now join the wires from source to target for both of them, now right click on the transform (in the center) and do Test, this will give you the output.
-Yatan -
FlatFile import with multiple formats to single table
I need to import a Flatfile which can have varying number of columns eg row1 7 x cols, row2 15 x columns, row3 12 x columns.
The file needs to be added to a single table.
Any thoughts on best way to approach this.What version of SSIS are you using? If you're using 2012 or later, you can most likely do this in the data flow without scripting.
You'll configure your flat file source with the maximum number of columns you'll expect in any data row, and each column's data type would need to be configured to accommodate the largest/widest value expected in any row for that column. In SSIS 2012 or
2014, the flat file source will interpret any missing columns as NULLs. Then just load the output of the flat file source to your destination table with the appropriate mappings. Any missing values will be NULL.
The behavior was different in SSIS 2005 and 2008. If you had fewer than expected columns in any row, the flat file source would continue to read data from the file until it got all of the columns it expected - even if that meant reading data from the next
line of text. For those versions, scripting the source was the easier solution.
Tim Mitchell | TimMitchell.net | @tim_mitchell -
Log messages from multiple instances in single file.
Hi!
I have a requirement that i need to log messages from muliple instances of the same object in a file. The new file will be created every day. Likewise, multiple objects might have various instances each.
One class
->multiple instances
-> log message stored in single file.
Note :
I am using the Message driven bean. I need to log from the bean class. JDK 1.3
If u could help me out that would be great.As long as they are all from the same OS program (a single Java VM), that's OK - you can use Log4j, and use a rotating file logger.
If you point two different virtual machine processes at the same file, one may have it open when the other is trying to rotate it, and your rotation may fail (at best) and/or you may lose the old log (the worst case).
If you need to collect log messages from multiple processes (or even multiple machines), use a syslog-based logger (Log4j has a SyslogAppender) or use Log4j's SocketAppender to write to a log4j-builtin log listener (SocketNode). -
Multi page recordset output from ASP page on Spry Tabbed Panel Widget
I am using a simple Spry Tabbed panel set on my asp page to show the output from different ASP pages, inside the tabbed panels. The tabbed panels on the page under consideration (destination page) display the output from different asp pages (source pages). The source asp pages generate multi page outputs which are paginated on the source page itself and pagination links are displayed on the source page itself.
However, we dont want to display the source page outside of the tabbed panel, but instead the output content from the source asp pages should show inside the tabbeed panels only. The first page generated by the source asp page displays correctly inside the tabbed panel. However, when the user clicks on the links for the next page generated by the source asp page, but which is being displayed inside the destination page tabbed panel, they dont display the next page inside the tabbed panel. Instead the source asp page displays the output outside the tabbed panel destination page.
Please advise on how to ensure that the user can page through the recordset generated by the source asp page by clicking on the pagination links at the bottom of the records, while ensuring that the output displays within the tabbed panels on the destination asp page.
I am enclosing the source code being used to generate the spry tabbed panel widget and also updating it with the output from the source asp page. In this case, the code given below is from the main page containing the widget and the source asp page is "sample.asp", which generates multi page output.
Please note that I am not too keen on using xml data sets output from the source asp page, but would be more comfortable with directly using the asp pages to fill the tabbed panel content.
Please help
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<script language="javascript" src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script src="/SpryAssets/xpath.js" type="text/javascript"></script>
<script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
<link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('two','sample.asp?page=' <%=i%>); Spry.Data.initRegions();" >Tab 1</li>
<li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div id=two class="TabbedPanelsContent">Content 1</div>
<div class="TabbedPanelsContent">Content 2</div>
</div>
</div>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
</script>
</body>I fully agree that the problem does not lie with tthe tabbed panels.
The solution would probably be first required to be tried using ajax on any div tab.
Then the same code would have to be used on Sprytabbed panel. Hence, the following may be advised:
1. Sample code for server side pagination and displaying inside any div tag and refreshing it using ajax. the update link would also lie inside the div tag which would show the next/ previous page without reloading the page.
2. Then adapting the refresh technique using ajax in the Spry Tabbed panel using the inbuilt updatecontent method of the Spry Tabbed panels.
In order to achieve the above, I am getting the recordset output in the tab content as expected. The recordset is also getting the pagination links from server side asp as required.
However, it is also generating the following error.
Webpage error details
Message: Unterminated string constant
Line: 9
Char: 56
Code: 0
URI: http://localhost/test/test5.asp
The sourcecode is as given below. If you can help with the error indicated above, my problem would probably get solved.
<html><head>
<title>Untitled Document</title>
<link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
<script src="/SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
<script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="/SpryAssets/xPath.js" type="text/javascript"></script>
</head>
<body>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('one','untitled-5.asp');">Tab 1</li>
<li class="TabbedPanelsTab" tabindex="0" >Tab 2</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div id=one class="TabbedPanelsContent">Content 1</div>
<div id ="two" class="TabbedPanelsContent">Content 2</div>
</div>
</div>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
</script>
</body>
</html> -
Transform data from multiple sources to single target in bpel 10.13.1.0
Hi,
I need to transform data from mulitple sources to single target schema.
Please any one can give some idea.
Regards
janardhanWe are gone a other way merge multiple information into one target.
First we have created a wrapper variable with the structure of the target variable that we want use in the transformation.
With a assign element we filled the wrapper variable with information from the inputvariable of the bpel process and some addtional information.
Then we called in the transformation the wrapper variable as source and the target variable as target.
We have used that way in some bpel process and it works for us.
Within Oracle SOA Suite 11g, there is the mediator component that does simply routing
and transformation functionality within a composite (SCA).
That's all, I hope that help.
Michael
Maybe you are looking for
-
What are the mail settings for icloud after migration ?
Ive migrated from mobile me , and have posted a problem , but noone has offered to help I wish to know what the settings are for in Mail now ( using cloud ) surely they are not mobile me , shouldnt it say cloud or something ? I migrated a week or so
-
Is There A Command To Find & Extract ".zip" Files
Is There A Terminal Command I Can Use To Find and "Extract"...All zip Files From one External HD and To Unzip Them To Another External Drive I Would Like For Terminal To Find all the zip files on my old external Hard Drive inside of my karaoke folder
-
Trigger mail to MRP controller if Scheduled job for MRP fails
How to configure Triggerring of mail to MRP controller if Scheduled job for MRP fails ?
-
Nothing is opening just blank screen
nothing is opening what wrong
-
Data Analysis Plus won't install. OS 8.1 with MS Office Professional Plus 2013
Hi. I am trying to install Data Analysis Plus and it won't install. An error occurs stating that: The value of the property 'type' cannpt be parsed. The error is: Could not load file or assembly 'Microsoft.Office.BusinessApplications.Fba, Version=14.