Query to Excel
I have a page that displays results of a search query. I'd
like to give users an option to export the results that they see
into Excel format by clicking on an icon.
How can I do that?
I do have an UDF that convert query to Excel and takes query
as an argument. Anyway I can call it after the page's been
rendered?
Any suggestions welcome.
Thank you
I used to use the html method which is very simple - generate
your output in an html table, save it to a file with an .xls
extension and then open it using cfcontent. Excel automatically
converts the html table into excel rows and columns and some basic
formatting is also retained.
More recently however I've been using Jakarta POI which is
simple to use and much more powerful. I won't try explaining how to
use it as there's a page that already does a nice job of it
>>HERE<<
cheers
Similar Messages
-
Procedure to save the output of a query into excel file or flat file
Procedure to save the output of a query into excel file or flat file
I want to store the output of my query into a file and then export it from sql server management studio to a desired location using stored procedure.
I have run the query --
DECLARE @cmd VARCHAR(255)
SET @cmd = 'bcp "select * from dbo.test1" queryout "D:\testing2.xlsx;" -U "user-PC\user" -P "" -c '
Exec xp_cmdshell @cmd
error message--
SQLState = 28000, NativeError = 18456
Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'user-PC\user'.
NULL
Goel.AmanHello,
-T:
Specifies that the bcp utility connects to SQL Server with a trusted connection using integrated security. The security credentials of the network user,
login_id, and password are not required. If
–T is not specified, you need to specify
–U and –P to successfully log in.
-U:
Specifies the login ID used to connect to SQL Server.
Note: When the bcp utility is connecting to SQL Server with a trusted connection using integrated security, use the
-T option (trusted connection) instead of the
user name and password combination
I would suggest you take a look at the following article:
bcp Utility: http://technet.microsoft.com/en-us/library/ms162802.aspx
A similar thread regarding this issue:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b450937f-0ef5-427a-ae3b-115335c0d83c/bcp-connection-error-sqlstate-28000-nativeerror-18456?forum=sqldataaccess
Regards,
Elvis Long
TechNet Community Support -
Oracle SQL Query from EXCEL 2007 with prompt
Hello,
I have many excel reports where I am pulling information from our Oracle 9 db through Excel using the following method:
http://blog.mclaughlinsoftware.com/microsoft-excel/how-to-query-oracle-from-excel-2007/
http://blog.mclaughlinsoftware.com/2009/11/30/sql-query-in-excel-2007/
However, I am having trouble when I try the following query due to the prompt:
SELECT
IM.ITEM_GROUP,
IM.ITEM,
IM.DESCRIPTION
FROM
LAWSON.ITEMMAST IM
WHERE
IM.ITEM = '&ITEM';
Does any one know how I can connect a prompt to an excel cell and then pass the query on to Oracle, or have a PL SQL prompt work from Excel?
Thanks,
BenThe 'prompt' as you call it is a sqlplus feature, so does not belong to the SQL language
You would need to write a stored procedure returning a resultset.
create or replace procedure foo(rc in out sys_refcursor, p_item) as
begin
open rc for
'SELECT
IM.ITEM_GROUP,
IM.ITEM,
IM.DESCRIPTION
FROM
LAWSON.ITEMMAST IM
WHERE
IM.ITEM = '||p_item;
end;
and call that using ODBC or asp.net
Obviously this is profusely documented.
Sybrand Bakker
Senior Oracle DBA -
Hi,
I create a cfm to export data from my query, qOrds (which
comes from my cfc).
I actually have a button in flex which, when I click, needs
to export data from my query to Excel.
My flex button calls the following function :
My function in Flex
public function RetrieveExcel():void
var urll:URLRequest = new URLRequest("
http://bang:8500/dcsnew/Export2xls.cfm");
navigateToURL(url,"_blank");
Text
HERE is my Exportt2xls.cfm
<cfinvoke component="mycfc.cfc" method="getOrds"
returnvariable="qOrds">
<cfinvokeargument name="mydate" value="#url.mydate#">
</cfinvoke>
<CFCONTENT TYPE="application/vnd.ms-excel">
<cfheader name="Content-Disposition"
value="filename=report.xls">
<cfquery name="exportdata" dbtype="query">
SELECT *
FROM qOrds
</cfquery>
<table>
<cfoutput>
<tr>
<cfloop list="#exportdata.columnlist#" index="TDFIELD">
<td>#TDFIELD#</td>
</cfloop>
</tr>
</cfoutput>
<cfoutput query="exportdata">
<tr>
<cfloop list="#exportdata.columnlist#"
index="COLUMNNAME">
<td>#exportdata[COLUMNNAME][exportdata.currentrow]#</td>
</cfloop>
</tr>
</cfoutput>
<cfreturn #exportdata#>
I have a date argument that I want to pass to the cfm.
But when am running the function, it is giving me the
following error :
"Element mydate is undefined in URL."
Where do I need to pass the variable "mydate" in my flex
code.
Any help would be highly appreciated.
Thxvar urlString:String =
http://bang:8500/dcsnew/Export2xls.cfm?myDate="
+ myDataVar;
var url:URLRequest = new URLRequest(urlString); -
Anyone know where I can find a good Query 2 Excel UDF that
allows me to
specify a query and what column headers to export into either
a CSV or an
XLS.
Seems like all the ones I find are confusing or don't allow
me to specify
the column headers on the outputed excel document.I've attached my code that exports a query to an XLS.
Basically you set it up with
<cfcontent type="application/msexcel">
<cfheader name="Content-Disposition" value="inline;
filename=All_Leads.xls" charset="utf-8">
Then build your table in HTML and whatever is there, is how
it will be in XLS. -
Ask again user and pass, when download query on excel on BW3x
Dear,
When try download query at excel, ask me again user and pass, can you help me about that.
best regards
OArenasGood day,
This sounds like you are not using an anonymous user or alias users ..??
When you download into Excel, the cookie for the MIME handler is not held. This means that the system needs to verify the userid/password again. Check out the SAP Notes 516884 and 487456 - there are some other SAP Notes referenced in these that may also be helpful if you still have a problem.
Regards,
Karen -
Using Powershell Script Run simple query in MS Access 2007 and export the results of query to Excel
Hi Experts,
I have a Access 2007 DB file and 2 Big tables inside that (bigger than the size that can be easily handled by MS Excel 2007).
My requirement is automate using powershell scripts the below things.
1. Create a SQL query in Access DB and save that in access DB
2. Run the saved query and export the result in excel sheet where I can create the charts and Pivots. Thanks in advance
PrajeshDo you have to use the Access query, couldn't you just recreate the query in Powershell? Here's a link with good info that references an existing script for querying an Access database:
http://blogs.technet.com/b/heyscriptingguy/archive/2009/08/13/hey-scripting-guy-can-i-query-a-microsoft-access-database-with-a-windows-powershell-script.aspx
Once you have your dataset you can pipe it to
Export-Csv -NoType c:\pathtofile\output.csv -
Cannot open query in Excel (BEX analyzer)
Hello Experts,
Issue: Cannot open the BEX report in Excel but can open the same report on IE.
1) I am trying to open a BEX report "ReportA" in Excel (BeX Analyzer).
2) As soon as the report opens it shows me a message "Do you want to open the 3.X workbook for upgrade"
3) I click on "OK"
4) then i get a message window listing a lot of warnings liike " Access to project denied" "creation of items failed"
5) i click on "OK"
6) Now, variable entry screen appears
7) i enter values and click on "OK" the report does not show any data.
Now, the same report "reportA" when i open it in Internet Explorer, it displays data. What can be reason for this problem in BEX analyzer ?
Please comment.
Regards,
Suraj S Nair
Edited by: Suraj S Nairon Dec 28, 2009 10:50 AMHi Suraj,
If you want to execue your query, you can use the bex analyzer.
If you are opening the query from query designer 3.x query in 7.0 fronend, it will get upgraded and then cannot be reveted.
In your case this automatic migration might be havng some issues, owing to complexities.
Please recheck.
-Vikram -
Error 'Unable to open file' when downloading SAP Query to Excel
Hi all
I'm running a SAP Query which is set to download straight to a spreadsheet (Pivot Table / Microsoft Excel). Intermittently it does not work - apparently at random (at least, I've can't recreate the error at will).
It does one of the following:
- Works ok, and creates the pivot table
- Gives an Excel error message 'Unable to open file', then returns to the 'save the data in a spreadsheet' popup when enter is pressed on the error.
- Does not issue error message, just goes to the 'save the data in a spreadsheet' popup.
In the last two cases, the excel pivot table sheet is not created.
Has anyone seen anything similar, or have any idea as to what is causing the problem?
Any help gratefully received!
Not urgent as I've found a way round - further testing seems to show that I don't get the error is Excel is already open - but in the past I've run many SAP query downloads without needing to open Excel first. I suppose it's possible that this is just something to do with the Excel setup at the user site
Message was edited by:
E GregoryHi,
Ensure that file name with same name and in same path should not be open while saving the data.
Award if it helps.
Jogdand M B -
In C# is there a way of refreshing query in EXCEL (REFRESH ALL)
Hi All,
Need C# code in SSIS Sript task which should refresh all excel data which extracts from a table using Microsoft query.
Can anyone help at all ?
Thanks
Sri.TummalaHi All,
Found the code to refresh excel data the above code is saving before refrshing so I added application wait for 20 seconds so that it refrshes first than saves it.
Microsoft SQL Server Integration Services Script Task
Write scripts using Microsoft Visual C# 2008.
The ScriptMain is the entry point class of the script.
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
using Microsoft.Office.Interop.Excel;
namespace ST_53932a75e92c44f086535fc017a56e6a.csproj
[System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
The execution engine calls this method when the task executes.
To access the object model, use the Dts property. Connections, variables, events,
and logging features are available as members of the Dts property as shown in the following examples.
To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
To post a log entry, call Dts.Log("This is my log text", 999, null);
To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
To use the connections collection use something like the following:
ConnectionManager cm = Dts.Connections.Add("OLEDB");
cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
To open Help, press F1.
public void Main()
// TODO: Add your code here
ExcelRefresh(@"C:\Documents and Settings\ST84879\Desktop\ROBERT_DATA_SET\TEST.xls");
Dts.TaskResult = (int)ScriptResults.Success;
private void ExcelRefresh(string Filename)
object NullValue = System.Reflection.Missing.Value;
Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.ApplicationClass();
excelApp.DisplayAlerts = false;
Microsoft.Office.Interop.Excel.Workbook Workbook = excelApp.Workbooks.Open(
Filename, NullValue, NullValue, NullValue, NullValue,
NullValue, NullValue, NullValue, NullValue, NullValue,
NullValue, NullValue, NullValue, NullValue, NullValue);
Workbook.RefreshAll();
System.Threading.Thread.Sleep(20000);
Workbook.Save();
Workbook.Close(false, Filename, null);
excelApp.Quit();
Workbook = null;
System.Runtime.InteropServices.Marshal.ReleaseComObject(excelApp);
Thanks All
Sri.Tummala -
User kicked out of PS when running Query to excel
Hi,
Just to note, I am actually a developer and doesnt know a thing about configurations or any PS tech admin knowledge regarding installation and setting up Psoft. So please be patient with me since im starting this just now and only starting to gain knowledge in this are.
Just to give an overview, currently we are supporting US psoft and I am located in malaysia tranferring the servers here at our end. we are on UAT right now and having trouble with the psoft application itself and from I see it, it can be caused by how it is installed. Because the US env (server in US) is working perfectly but the M'sia env are having errors (server in M'sia). Just to remind that its the same env only installed in different location, you can call it parallel testing if you like.
Now with the problem, when the user tries to run a query in the Query manager and doing "run to excel", the user gets kicked out of PeopleSoft online and giving just the literal "Error" message. And when I look at the PSQRYSRV dump file (just learned it yesterday), can't really understand what it says. I try googling it but to no success.
Does anybody can help me with this? TIA!
DUMP FILE:
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ==================================================================================
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) PSQRYSRV crash dump at 2009-06-08 17.06.06.000000
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Database=HRUS/ORACLE; ToolsRel=8.44.10; AppsRel=HRMS 8.80.01.000/SP 1; AppServer=//psfapp01:7000; Server=PSQRYSRV; Domain=HR8PRD1; Platform=HP/UX
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Exception Code=0000000b; SIGSEGV: Segmentation violation
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Call stack:
= begin trace Tue Jun 9 06:06:30 GMT 2009 on 10159
== process 10159
-- process 10159
== dumps
going to run gdb -nx batch command 10310/commands /proc/10159/exe 10159
/opt/psoft/hr8prd/bin/psprocinfo[7]: gdb: not found.
=== gdb 10159
--- gdb 10159
-- dumps
- end trace Tue Jun 9 06:06:30 GMT 2009 on 10159
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Customized definitions --
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RDM(JOB/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RDM(JOB_LBR_GBL_SBR/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RDM(Z_CC_TBL_LANG/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RDM(Z_COST_CNTR_TBL/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RDM(Z_EMPLOYEES/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RDM(Z_EMPLOYEES_SBR/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RDM(Z_JOB/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RDM(Z_LOC_ORG_TBL/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RDM Definitions: Total=47 Customized=8 In-Use=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) QDM( /TO_US_EXPRESS/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) QDM Definitions: Total=1 Customized=1 In-Use=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) MNDM Definitions: Total=1 Customized=0 In-Use=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) SRM Definitions: Total=1 Customized=0 In-Use=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) CRM Definitions: Total=10 Customized=0 In-Use=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) SSM Definitions: Total=7 Customized=0 In-Use=1
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) CLM Definitions: Total=1 Customized=0 In-Use=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) UPM(PSHC)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) UPM Definitions: Total=1 Customized=1 In-Use=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) URL(PPM_MONITOR/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) URL Definitions: Total=1 Customized=1 In-Use=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) PRDM(EMPLOYEE/ENG)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) PRDM Definitions: Total=1 Customized=1 In-Use=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Request Object
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) HTTPMethod : POST
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Protocol : HTTP/1.1
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Scheme : http
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ServerName : psfapp01.apis.dhl.com
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ServerPort : 8000
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ContentURI : http://psfapp01.apis.dhl.com:8000/psc/hr8prd_2/
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RequestURI : /psc/hr8prd_2/EMPLOYEE/HRMS/q/
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) PathInfo : /hr8prd_2/EMPLOYEE/HRMS/q/
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) QueryString : ICQryName=TO_US_EXPRESS
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) FullURI : http://psfapp01.apis.dhl.com:8000/psc/hr8prd_2/EMPLOYEE/HRMS/q/
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RelativeURL : True
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) LogoutURL : http://psfapp01.apis.dhl.com:8000/psp/hr8prd_2/EMPLOYEE/HRMS/?cmd=logout
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ResetTimeoutURL : http://psfapp01.apis.dhl.com:8000/psp/hr8prd_2/EMPLOYEE/HRMS/?cmd=resettimeout
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) BrowserType : IE
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) BrowserVersion : 6.0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) BrowserPlatform : WINNT
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ExpireMeta : <script language='JavaScript'>
var totalTimeoutMilliseconds = 3600000;
var warningTimeoutMilliseconds = 3300000;
var timeOutURL = 'http://psfapp01.apis.dhl.com:8000/psp/hr8prd_2/EMPLOYEE/HRMS/?cmd=expire';
var timeoutWarningPageURL = 'http://psfapp01.apis.dhl.com:8000/psc/hr8prd_2/EMPLOYEE/HRMS/s/WEBLIB_TIMEOUT.PT_TIMEOUTWARNING.FieldFormula.IScript_TIMEOUTWARNING';
</script>
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ByPassSignOn : False
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Timeout : 3600
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) WarningTimeout : 3300
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) AuthTokenDomain : .dhl.com
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RemoteHost : 7.248.9.197
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RemoteAddr : 7.248.9.197
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) CharSet : UTF-8
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) GetHelpURL(...) : http://psfapp01.apis.dhl.com:8050/PSOL/htmldoc/f1search.htm?ContextID=%CONTEXT_ID%&LangCD=%LANG_CD%
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) GetContentBody() :
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) GetHeader(...) :
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) User-Agent : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Referer : http://psfapp01.apis.dhl.com:8000/psc/hr8prd_2/EMPLOYEE/HRMS/q/?ICAction=ICQryNameExcelURL=PUBLIC.TO_US_EXPRESS
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Host : psfapp01.apis.dhl.com:8000
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Cookie : psfapp01-apis-dhl-com-8000-PORTAL-PSJSESSIONID=KtZGKjVkQvcJ7dtMnfZ2GXF21GTMy2W2!1326557168; http%3a%2f%2fpsfapp01.apis.dhl.com%3a8000%2fpsp%2fhr8prd%2femployee%2fhrms%2frefresh=list:|||; PS_LOGINLIST=http://psfapp01.apis.dhl.com:8000/hr8prd; SignOnDefault=PSHC; PS_TOKENEXPIRE=8_Jun_2009_23:06:10_GMT; ExpirePage=http://psfapp01.apis.dhl.com:8000/psp/hr8prd/; PS_TOKEN=AAAApAECAwQAAQAAAAACvAAAAAAAAAAsAARTaGRyAgBObwgAOAAuADEAMBSPf+/Tr6qoaRnDIxX4SMQ3HizizwAAAGQABVNkYXRhWHicJYpdCkBAGEXPIFmAbZCR32fEk6Ykj7MEG7Q41/hunU73fsBtojjBoIuejxmOg40pZWFnzZnVXFLPqcVrcw01lTJSiF3gIFqllLeipQ/+5/t/AY0yC8k=; HPTabName=DEFAULT
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Content-Type : application/x-www-form-urlencoded
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Content-Length : 219
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Connection : Keep-Alive
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Cache-Control : no-cache
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Accept-Language : en-us
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Accept-Encoding : gzip, deflate
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Accept : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) GetCookie(...) :
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) SignOnDefault : PSHC
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) PS_TOKENEXPIRE : 8_Jun_2009_23:06:10_GMT
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) PS_TOKEN : AAAApAECAwQAAQAAAAACvAAAAAAAAAAsAARTaGRyAgBObwgAOAAuADEAMBSPf+/Tr6qoaRnDIxX4SMQ3HizizwAAAGQABVNkYXRhWHicJYpdCkBAGEXPIFmAbZCR32fEk6Ykj7MEG7Q41/hunU73fsBtojjBoIuejxmOg40pZWFnzZnVXFLPqcVrcw01lTJSiF3gIFqllLeipQ/+5/t/AY0yC8k=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) PS_LOGINLIST : http://psfapp01.apis.dhl.com:8000/hr8prd
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) psfapp01-apis-dhl-com-8000-PORTAL-PSJSESSIONID: KtZGKjVkQvcJ7dtMnfZ2GXF21GTMy2W2!1326557168
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) http%3a%2f%2fpsfapp01.apis.dhl.com%3a8000%2fpsp%2fhr8prd%2femployee%2fhrms%2frefresh: list:|||
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) HPTabName : DEFAULT
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ExpirePage : http://psfapp01.apis.dhl.com:8000/psp/hr8prd/
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) GetParameter(...) :
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) PSHome : hr8prd_2
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Portal : EMPLOYEE
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Node : HRMS
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) InputKeys_bind2 : 06/08/2009
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) InputKeys_bind1 : 06/07/2009
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICYPos : 0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICXPos : 0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICType : Query
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICStateNum : 1
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICResubmit : 0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICQryName : TO_US_EXPRESS
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICFocus : InputKeys_bind2$prompt
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICElementNum : 2
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICChanged : -1
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ICAction : #ICQryDownloadExcelFrmPrompt
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ContentType : q
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ContentID :
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) PeopleCode Globals
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &global_DN : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &bConfigRead : Bool=False
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &bDynamicRole : Bool=False
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &host : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &cnctDN : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &cnctPWD : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &dirProd : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &scope : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &base : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &authAttr : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &defaultUserId : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &authMethod : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &sslYN : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &anonYN : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &authNMap : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &g_strDefaultTab : Str=DEFAULT
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &g_sTraceName : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &g_sFilter : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &g_sCommand : Str=
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &menuNum : Str=46
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) &gQueryRec : Record=NULL
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Current Service=ICQuery; Return code=0; Ok=True
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Component=; Market=; Page=xyzzy; Process flags=700431c0; Mode=0081
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Build Keylist
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Current Keylist
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Begin Component
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Page xyzzy IdxCount=2
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Field InputKeys.bind1 type=editbox occ=(1,1,1) use=0000 rect=(0,0,0,0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) IdxList: scrl=(-1,-1,-1) rec=0 field=0
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Field InputKeys.bind2 type=editbox occ=(1,1,1) use=0000 rect=(0,0,0,0)
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) IdxList: scrl=(-1,-1,-1) rec=0 field=1
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) End Component
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Begin Scrolls
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Begin level 0[row 0] occcnt=1 activecnt=1 hiddencnt=0 scrlcnt=0 flags=0000 nrec=1
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) RecordsEventSet 00000000 SubscrollsEventSet 00000000
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Rec InputKeys (recdefn 00f5a8e0) keyrec=-1 keyfield=-1
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) EventSet 00000000
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) Row 0 at 00ecef58.
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) CRecBuf InputKeys(00f423f8) fields=2 changed new lvl0 needsinit
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) bind1(001fc498)='2009-06-07'; changed (was '') updated key used
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) bind2(001fc4e4)='2009-06-08'; changed (was '') updated key used
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) End level 0[row 0]
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) End Scrolls
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) User ID=PSHC; Browser=IE/6.0; OpSys=WINNT;
PSQRYSRV.10159 [06/09/09 06:06:30 [email protected] (IE 6.0; WINNT) ICQuery](0) ==================================================================================
}Hi,
We have the same issue as yours.
Did you solve it already?
If yes, would you mind to share your soloution to us?
Thanks,
Richard -
I'm using SQL to query a database which works fine. Then I want to pass it to excel from within Labview. So intially I just have it reading row by row, column by column to take in data. Well this can take forever with a lot of info from the database. Is there a faster way than just by using for loops to do this?
I guess if it doesn't work, I'll just go back to doing it in excel.But if your strings are not actually representations of numerics, or if you just want to write them to a spreadsheet file without converting to numbers first, you can do it easily by using Array to Spreadsheet String and Write Characters to File (see attached image).
Regards,
JohnMessage Edited by Johnner on 03-08-2005 11:48 AM
Attachments:
2Dstring.png 4 KB -
How to extract a query in EXCEL Form using ABAP?
Hi,
is there a way using ABAP to extract the results from a specific BW Query and save them in an EXCEL format file?Hi,
You can do it by using InfoSpoke or RSCRM_BAPI.
see in the following URL, there one blog in(https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy)
How to transfer the Data from SAP-System to Non-SAP system without additional Cost/License
/people/surendrakumarreddy.koduru/blog/2009/03/11/how-to-transfer-the-data-from-sap-system-to-non-sap-system-without-additional-costlicense
Re: Running Quaries automatically and saving them in as a Excel file in Server
Re: Data transfer to external systems
Re: Loading from a Custom R/3 Table
Re: How can I schedule my Bex report to execute in background
Re: How can I insert the RSCRM_BAPI into Process chain?
Thanks
Reddy -
How to send output of my query in Excel to inbox .
hi,
1. I have created a query
2. executed the in RSRT Tcode and set the broad casting setting.
3. execute the broadcasted settings .
I got that to my inbox also (only hyperlinlk).
Now my doubt how to get the output in excel format to my inbox directly .
I checked the braod caste settings.it only show me MHTML,HTML ,Online link to Current Data
i do not find an excel option there in broad cast settings.
Can any one help me...or even docu's......
Regards
LaxmanHi,
Goto Transaction :RSRD_ADMIN
click on "Settings"
Enter the Technical Name and Descreption of the broadcasting
in the Basis Object
type - BQ - query
technical name - Query Technical name
Content
Distribution type - MAIL
Outputformat - XLS
and click on F8(Execute).
Next goback and select Schedule and enter the scheduling parameters and check.
Regards
KP -
I actually found what I needed to do this on the forum last week and now I can't duplicate it nor can I find the original forms thread. I need to get the SAP Query results to a file or to Excel. The first time I tried this, I executed the query in background, got the spool number then went to SP01. There I believe it did the following:
[Execute]
Selected: Spool Request / Forward / Export as Text
At this point, I was presented a popup similiar to when downloading with options: unconverted, spreadsheet, etc. I selected spreadsheet and everyting went fine.
Now when I repeat the process, after I do Spool Request / Forward / Export as Text, the file is automatically written to a text file; I do not get the option to put it in a spread sheet.
Please, can someone tell me what I'm doing wrong? If I hadn't saved the spreadsheet last week, I would have myself convinced I only dreamed that I got it to work.You can try this way
sp01> display spool>spool request> forward> save to local file--> spread sheet
otherwise try with
Once you logged in, press Alt+F12 -> Options -> Local Data. Then just press "Clear History" button
and try spool> forward> write to text
a®
Maybe you are looking for
-
How do I set up new Document Profile with custom page sizes?
I see that different profiles have different sets of page sizes. I need a set of page sizes which I use often, and I would like to create a set of these sizes in a new profile, or at least somehow add them to the very minimal set of page sizes which
-
Need advice about coalesce and deallocate unused space
Hi experts; Here looking for an advice about coalesce and deallocate unused space. I got this tablespace with 87% full, one of the table in that tablespace has 1,150,325 records. I'm going to delete 500,000 records from that table, but to release th
-
hello, recenlty I purchased a new PC. Previously had an IMAC (bubble base,flat screen). Anyway, my 20 gig ipod is full, and I wanted to transfer all my tunes, to my new PC. When I plugged in the ipod to the new PC, I rcvd a msg saying this ipod was o
-
Unable to update apps or get new apps since 8.2 upgrade
hi im unable to update current apps or install new apps since iOS 8.2 update ???
-
Help Menu Search Bar Transparency Not Opaque With Increase Contrast Option
Hi, I am running OS X 10.10 and I've turned on the Reduce Transparency and the Increase Contrast options. I've noticed, however, that with the Increase Contrast On the background of the search bar in the Help menu is transparent again and with black