How to group data from SQL queries in XMLP Enterprise Edition
Hi all,
I have installed XMLP EE on a windows machine. I tried creating the data set with the type as SQL Query. In my case I have just joined the EMP and DEPT tables from the SCOTT schema:
select EMP.EMPNO as EMPNO,
EMP.ENAME as ENAME,
EMP.JOB as JOB,
DEPT.DNAME as DNAME,
EMP.DEPTNO as DEPTNO
from SCOTT.EMP EMP,
SCOTT.DEPT DEPT
where DEPT.DEPTNO=EMP.DEPTNO
and DEPT.DNAME = nvl(:DeptName,DEPT.DNAME )
I want that the data should be displayed in my report so that for each value of DNAME all the details (EMP.EMPNO, EMP.ENAME, EMP.JOB ) should be displayed as in master detail format in my XML output, so that it is easier to build the template using the <?for-each?> tags.
Can anyone suggest how I can do this?
I am facing another error :
The report cannot be rendered because of an error, please contact the administrator.
Can anyone help me with this too?
Thanks.
Hi
On the error, have you tried running the report to generate data only ? If that is failing then you have an issue with your query or connection
On the grouping, hopefully you have the Template Builder installed. That can help you build the grouping you want in the output. For this report and to get you started check out the Table Wizard. There is a screen in that flow allowing you to specify Grouping criteria.
the following blog article may help too:
http://blogs.oracle.com/xmlpublisher/2007/05/03#a265
and this getting started with templates doc
http://www.oracle.com/technology/products/xml-publisher/xmlpclient.html
Regards
Tim
Similar Messages
-
How to select data from Sql server 2005 database tableinto oracle database table
Hi,
I have table text1 in sql server database and text2 in oracle database (11g). Now how to move data from SQL Server table into oracle table. So please help me how to do it.
Thanks a lot in advance.
rk
OS: Windows 7 professionalHi,
you can use export/import wizard and specify sql server as a source and oracle as destination.
I hope this is helpful.
Please Mark it as Answered if it answered your question
OR mark it as Helpful if it help you to solve your problem
Elmozamil Elamir Hamid
MCSE Data Platform
MCITP: SQL Server 2008 Administration/Development
MCSA SQL Server 2012
MCTS: SQL Server Administration/Development
MyBlog -
How to import data from SQL server to Oracle?
Dear Sir/Madam,
I want to move database data from SQL Server to Oracle, but don't how to do it, will you please help me do it?Oracle Migration Workbench is your best bet:
http://www.oracle.com/technology/tech/migration/workbench/index.html
Cheers, OTN -
How to group data from two tables ?
Hello,
I have two tables and i want to group data from them but two table not linked.
Table TEXT_IN : ID_IN (primary_key), DATE_IN
Table TEXT_OUT : ID_OUT(primary_key),DATE_OUT
Example :
Result :Group Date and Order by IN,OUT
And It seems a bit
confusing because we do not link
.You can give me solutions.
Thank you.SELECT MAX(CASE WHEN Rn = 1 THEN [IN] END) AS [IN1],
MAX(CASE WHEN Rn = 1 THEN [OUT] END) AS [OUT1],
MAX(CASE WHEN Rn = 2 THEN [IN] END) AS [IN2],
MAX(CASE WHEN Rn = 2 THEN [OUT] END) AS [OUT2],
MAX(CASE WHEN Rn = 3 THEN [IN] END) AS [IN3],
MAX(CASE WHEN Rn = 3 THEN [OUT] END) AS [OUT3],
MAX(CASE WHEN Rn = 4 THEN [IN] END) AS [IN4],
MAX(CASE WHEN Rn = 4 THEN [OUT] END) AS [OUT4],
MAX(CASE WHEN Rn = 5 THEN [IN] END) AS [IN5],
MAX(CASE WHEN Rn = 5 THEN [OUT] END) AS [OUT5],
FROM
SELECT COALESCE(m.DATE_IN,n.DATE_IN) AS DATE_IN,
COALESCE(m.Seq,n.Seq) AS Seq,
ID_IN AS [IN],
ID_OUT AS [OUT],
ROW_NUMBER() OVER (PARTITION BY Seq ORDER BY COALESCE(m.DATE_IN,n.DATE_IN)) AS Rn
FROM
SELECT ROW_NUMBER() OVER (PARTITION BY DATE_IN ORDER BY DATE_IN) AS Seq,*
FROM TEXT_IN
)m
FULL OUTER JOIN
SELECT ROW_NUMBER() OVER (PARTITION BY DATE_IN ORDER BY DATE_IN) AS Seq,*
FROM TEXT_OUT
)n
ON n.Seq = m.Seq
AND n.DATE_IN = m.DATE_IN
)t
GROUP BY Seq
to make it dynamic see
http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/dynamic-crosstab-with-multiple-pivot-columns.aspx
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
How to pull data from sql server ( Seperate server) & upload it into sap
Hi All,
I have a SQL Server database in System1,
data base name DB1
Table name TB1
I want pull data from TB1 & upload the same into ztable in SAP.
How I can I achive this in ABAP.
Thanks in Advance
Appropriate points will be rewarded.
Arun kumarHi Arun,
You have to do the following:
1. Create an entry in Trxn DBCA for SQL Server in SAP, you are creating a database connection for the SQL server in SAP.
2. You use this connection, and write Native SQL stmnts...between EXECSQL...ENDEXEC to fetch the data..and then normal ABAP statements to put that data into your ztable.
Regards,
Raj
For eg:
TABLE DBCON Entry can be like this...depends on your External database..
CON_NAME Raj Logical name for connection
DBMS MSS Microsoft SQL Server
USER_NAME <User name> For SQL Serve
PASSWORD <password> " "
CON_ENV MSSQL_SERVER=<server> MSSQL_DBNAME=<database name>
DB_RECO Availability type for an open database connect
FUNCTION z_houston_connect.
""Local interface:
EXEC SQL.
CONNECT TO 'RAJ' AS 'V'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'V'
ENDEXEC.
*- Get the data from MS-SQL Server
EXEC SQL.
open C1 for
select
l.loc_id,
l.loc_name,
a.acc_id,
a.acc_name,
d.person
from ho_loc_mast as l
inner join snd_acc_mast as a on l.loc_id = a.loc_id
inner join snd_acc_addr as d on a.loc_id = d.loc_id and
a.acc_id = d.acc_id
where l.loc_id = '001'
ENDEXEC.
DO.
EXEC SQL.
FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_acc_id, :wa-c_acc_name, :wa-c_person
ENDEXEC.
IF sy-subrc = 0.
PERFORM loop_output.
ELSE.
EXIT.
ENDIF.
ENDDO.
EXEC SQL.
CLOSE C1
ENDEXEC.
ENDFUNCTION. -
How to pull Data from SQL server in FDM
Hi Experts
How to pull the HFM data from One SQL server to Another SQL Server using integration scripts in FDQM?
regards
DevCould you clarify why you want to do this?
If you are trying to synchronize two databases (apps) to have a backup or something running in a development environment, I would suggest configuring replication between the two databases. It would be much more efficient to do this at the SQL Server level than through the FDM application, IMHO.
Charles -
How to retrive data from SQL or any database.
Hi Experts,
I am integrating FTP, DATABASE and SAP R/3 system.
1. FTP system stores xml files processed by customer requesting account info.
2. Database system ( SQL/Oracle) consists of Details about Customer accounts.
3. Finally response ( Account info ) to be sent to SAP R/3 system (customer request and database response)
Scenario: Customer request regarding account info is stored as xml in FTP server. XI has to pick the xml file and retrieve the relevant data from Database (SQL / Oracle) and store the whole data in SAP R/3 System.
Please let me know which BAPI I need to use for this scenario..and if you could explain the steps involved for this scenario that will really helps me.
Thanks and Regards,
SunilI dont think there will be a separate bapi for this scenario.
Use file adapter to pickup the file, call the JDBC adapter in synchronous mode (call a Stored Procedure) and then call an RFC or proxy to push the data in to R3.
Refer and File to Jdbc and File to RFC scenarios. You might need to use BPM if you below SP14 on XI 3.0 I believe..!!
VJ -
How to merge data from SQL server to Oracle Database
Dear Expert,
I am having problem with SQL server with Oracle.
Problem: I want to merge table records from SQL server to Oracle Table. Which License free tool I can use to achive the goals.
If I able to make a free DB link from Oracle to SQL server , then we can select table and will be able to update.
Right now I have made a DB link from SQL server to Oracle, Using that I can see the records from oracle database but I can't update them.
Thanks,
SherHi,
What about using Oracle SQL Developer for migration
http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
HTH -
How to move data from Sql Server 2008 R2 to Visual Foxpro 6.0 dbf file format
I have some data that resides in SQL that needs to be automated via a SSIS package to create the output to a Visual Foxpro 6.0 format for use by another application that cannot access the SQL server.
How can this be done with SSISuse the OLEDB provider from Microsoft http://www.microsoft.com/en-us/download/details.aspx?id=14839
Arthur My Blog -
How to retrieve data from SQL server?
I'm thinking this is a request for plug-ins as I'm not aware that Indesign CS3 can hook into a SQL server.
Specifically, I'm trying to connect to a data server which has a built-in "SQL Stored Procedure" which will give me access to this database? I'm trying to avoid dumping into a intermediate data file, like Excel or XML.
What pointers should I try to look into? thanx, samI would say it depends on what you need to do. There are a few good plugins for InDesign out there that can hook up to a database, easycatalog by 65 bit http://www.65bit.com and Cacidi http://www.cacidi.com are some of the high end plugins that I can recommend, but the question is if cost outweights need. Both in their full version are quite costly.
If you can give a better description of what you need to do it might be easier to recommend a solution. -
How to Group Data from column?
Hi All,
Can any one solve my problem please?
I have Two Column "Age" and "Employee ID".
I want to Group "Number of Employees" for specific AGE range Like:
Age | Number of Employees
20 to 30 | 06
31 to 40 | 13
41 to 50 | 16
51 to 60 | 03
And data in Columns are fallowing
Age | Employees ID
30 | 002
38 | 008
33 | 298
22 | 213
54 | 083
24 | 098
So on.
Waiting for your HELP.
In advance Thank you very much...
Take careHere you go..
Drag any column in Answers and name it as Age and in its fx write
case
when tablename.age between 20 and 30 then '20 to 30'
when tablename.age between 31 and 40 then '31 to 40'
when tablename.age between 41 and 50 then '41 to 50'
when tablename.age between 51 and 60 then '51 to 60'
end
Drag any column in Answers and name it as "Number of Employees" and in its fx write
Count(tablename.EmployeeID)
This would give you the desired Report
Hope its helpful...
Thanks
Ashish Gupta -
How to extract data from dmp file to oracle express edition database
Hi,
I wanted to extract a oracle dump file in oracle express edition database. Is it possible? If yes, then can anyone please guide me how to do it?
ThanksHi,
This might help
Backup/Export Question!
Br,Jari -
How to compare result from sql query with data writen in html input tag?
how to compare result
from sql query with data
writen in html input tag?
I need to compare
user and password in html form
with all user and password in database
how to do this?
or put the resulr from sql query
in array
please help me?Hi dejani
first get the user name and password enter by the user
using
String sUsername=request.getParameter("name of the textfield");
String sPassword=request.getParameter("name of the textfield");
after executeQuery() statement
int exist=0;
while(rs.next())
String sUserId= rs.getString("username");
String sPass_wd= rs.getString("password");
if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
exist=1;
if(exist==1)
out.println("user exist");
else
out.println("not exist"); -
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 -
How to replicate data from MS SQL Server to Oracle
Hi,
Can someone please help me on how to replicate data from MS SQL Server to Oracle 8i database.Dear,
I'm a student.
I do simple replication on Oracle 8.0.5 successfully. (one master site and one snapshot site). I only use the SQL*Plus and Schema Manager to do.
But when I do advance replication (multimaster replication) I meet many problem. So I don't get the result.
Do you show me the technology to do that ?
Thanks !
Maybe you are looking for
-
Hi folks, Wonder if you can help. When I sent a clip from the timeline in fcp to shake, I opened it up successfully and applied a constant speed change in shake. The problem is that it seemed to then lose the in and out point of the clip and apply it
-
I'm within range of a Meraki network signal that will apparently let me access the internet. However, Apple Airport is a modem and Access Point in one and appears to be interfering with the signal. If I purchase a Meraki repeater to extend the signal
-
Data Replication between Oracle 9i and 10g
Hello, I have a question regarding possible Replication Models between Oracle 9i and 10g. Does anybody know a possible way to syncronize the schema data between a 9i and 10g database in realtime? If yes can you please post perhaps a link with a kind
-
BW Integration with Documentum
Hi, I need to Integrate in BW -Reporting documents from Documentum. Some Body, know how to do it? Tankyou very much...
-
How to Assign T-code to a ZTable
Hi All I have a requirement to assign a T-code for an ZTable. Please let me know how to assign a transaction code to Ztable. Does, any specific attributes has to maintained in ZTable in order to generate a transaction code for it. Thanks Prasead K