Save query in CSV?
hi,
i want save query in CSV, i have seen option, i am able save in CSV, i dont want any other information all details when i save in CSV , , i dont want dellete manually information, when i save i need only data like infospoke or openhub?
is it possible?
regards
ss
Hello Suneel,
Your question is a bit unclear. It might help if you rephrase it.
In any case, you can use transaction RSCRM_BAPI to run a BeX query and then save the results to a file.
If you use an InfoSpoke (or open hub destination in 7.0), the contents of target CSV file will be overwritten each time you run the InfoSpoke (or the DTP in 7.0).
Hope this helps.
Similar Messages
-
How to save query result on the file server as excel file?
Hi everyone,
I need to save the the query result on the file server as excel file.
Do you have any idees how can I do it?
Regards
Erwini dont think you can save as excel file but you can save it as CSV use APD or RSCRM BAPI for this
-
How to save query result in excel file
Hi all,
How to save query result in excel file from sql*plus tool.
thank youDo you really need an Excel file (binary) or a simple CSV?
If you just need a CSV then search for DUMP_CSV at http://asktom.oracle.com or at this forum
If you need formatting and/or multiple worksheets then you can use free tools like
https://xml-spreadsheet.samplecode.oracle.com/ or https://exceldocumenttype.samplecode.oracle.com/
Regards
Marcus -
Not able to save query.
Error messagae: An unexpected object variable or with block variable not set error occurred in WDBRLOG.
1 ERROR(s) are logged.
This happened when saving the query.hi Kunal,
what this your bw front end version ?
you may need to apply your bw front end support package,
check sp level from BEx Analyzer, menu 'business explorer', somewhere 'help'->'about'
"Execute in browser" button dimmed in WAD after upgrade to 3.5
hope this helps. -
I would like to save files (example:csv) from the subVI to the same folder of main VI? Please help! Thanks.
CP_AT wrote:
I would like to save files (example:csv) from the subVI to the same folder of main VI? Please help! Thanks.
I don't understand the problem. You write in the program where to save files, and it saves them there. Do you mean something else?
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ -
Save Query - An error occurred while creating connection strings for the query
A workbook trying to edit and reload I get the following error "Save Query - An error occurred while creating connection strings for the query" No Power Pivot data model or anything.
I am getting the same error when editing a Power Query in an Excel spreadsheet. It happens when I change a Group By step to do a Sum instead of Count Rows.
-
Script for Save Options- Save Query Results with document
Hi,
Is there any javascript for Save query results with document in save options? If so where can i find that?
Thanks
Kalaihi guys,
I found the answer.The following example shows you how to save the results with the query
section named “SalesQuery”.
ActiveDocument.Sections["SalesQuery"].SaveResults=true -
Hello I am new to cold fusion.
I am wondering if there is a way to query a csv file using a read from cffile? Currently I have it setup as a cffile read and then I try to query the file using cffquery. Obviously this doesn't work because I have to set a datasource. Is there anyway to do this or any way to set a csv file as a data source? Any help or direction would be greatly appreciated.
Thanks.You would have to read in the csv and create a query using QueryNew(). Once you have the csv in a query format, then you can perform query of queries to do most anything you want on the data. There is probably code already written out there to do the csv to query, you just need to find it. The query of queries is in the documentation. The only gotcha is that query of queries sorting and matching is case sensitive. Hope this helps.
-
Cannot save query as local object
Dear community,
One of our users is not able to save a query change as a local object (not to be transported). While another user is able to do this.
Since we don't want the query changes to be transported, I must find a way to allow the save as local object in $TMP.
An authorizations trace shows everything is OK from job role perspective.
When the user changes a query in development and chooses "Save As", she is prompted for a transport. At this time if she chooses "local object" then she is taken to the create a transport dialog.
For another user this is not the case, and the 2nd user is able to save query changes locally without a transport request.
Any thoughts on what might be the cause for this ?Hi Keith,
without knowing the details of you system settings and the system where it happens (prod, dev, ...). One general remark:
If you save a query lots of repository objects are generated an written to a transport request (i.e. structures, selections, ...), not only one for the query itself. Maybe in your case, the original query uses a globally defined structure in the columns or rows. If you now want to "save as" new query, many objects are checked for transportation. The global structure can not be saved as local object, because it was already transported before. Whilst the new query itself can be stored as local object. Means not all objects of the new query can be saved as local, because some are already transported.
One way to check if this could also be your problem, both of your mentioned example users should try to save exactly the same query as new local query.
Regards
Adios -
hi all,
when i am trying to save query i got this errors"
1.The query could not be saved due to a problem in transport.
2.BEx transport request '' is not available or not suitable.
3.Choose an existing request .
please any one help me this is urgent.
Thanks
sada.khi Sada,
you need to create BEx request first.
rsa1->transport connection->click button 'bex with truck' and assign package.
there is oss note 194051 for details.
hope this helps.
oss note 194051
Symptom
An error occurs when you save a query:
Error when saving
"The query could not be saved due to a problem in transport".
Other terms
Business Explorer, query, transport, save, R9 124
Reason and Prerequisites
There are 4 possible reasons for this problem:
1. The BEx default transport request or the development class-dependent transport request is not maintained or released in the Administrator Workbench.
2. The system is set to "cannot be changed". Refer to Note 337950 (as of 2.0b SP 11), which describes how query objects can be edited in systems that cannot be changed.
3. You are not authorized to write to Workbench requests.
4. The BEx default transport request or the development-class-dependent transport request in the Administrator Workbench has another target system than the query (the transport destination of the query is determined via the transport layer of the query's development class (as of 3.0: of the package)).
The error only occurs for query objects which already have a development class, that means, which were already placed on a transport request.
Solution
Solution for Cause 1:
a) Start the Administrator Workbench
b) Choose 'Goto' to change to Transport connection
c) Choose "Request BEx" or "BEx development classes" in the toolbar.
d) Create a (new) request.
e) All changes in the BEx are now written to this request.The end user is no longer confused by 'Transport' dialog boxes.
Solution for Cause 2:
See Note 337950
Solution for Cause 3:
Authorize user to write to Workbench requests.
Solution for Cause 4:
Create a request for each target system. Assign the request suiting the target system of the transport layer of the development class (of the package) to each development class (as of 3.0: to each package) used for BEX objects.
If this does not change the situation, further information is useful for error analysis.
Go to Transaktion SE16, Table RSZCOMPDIR. In field COMPID, select the technical name of your query. Read the COMPUID of your query.
Go to SE37, function module rso_elem_get_related. Parameter I_IOBJNM is set to the COMPUID, and parameter I_OBJVERS (object version) is set to A. Only the export parameters E_T_OBJ_EXISTENTIAL and E_T_OBJ_DEPENDENT are of interest.
These entries are then entered in function module rs_tr_objects_check_insert in import parameter I_T_TR_OBJECT. In this parameter, fill field PGMID fixed with 'R3TR' and field OBJECT fixed with 'ELEM'. Field OBJ_NAME is filled with the contents of field OBJNM from export parameters E_T_OBJ_EXISTENTIAL and E_T_OBJ_DEPENDENT. The other fields are not relevant.
The export parameters of this function module are required for further error determination. Add this information to your OSS message. The table of messages E_T_MSG is important in particular. -
Error in Save Query in BI NW04s
Dear all,
I'm able to execute query in new BI 04s environment, but when I save query (new query or modified existing query) I got error message "Program error in class SAPMSSY1 method UNCAUGHT_EXCEPTION".
Could you help me for this ?
I tried to search in SDN and OSS note but nothing related ...
We're in BI NW04s SPS 10 ...
Thx
Regards,
DIHi DI,
Seems like a problem with your frontend. Are you using the new BI2004s frontend. If so, also check if it is on SPS10. Check this link:
Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation
Bye
Dinesh -
Display New, Save, Query buttons on the screen/applet in siebel application
Hi,
I have created one application screen using siebel tools. I want to display 'New', Save', 'Query' etc. buttons to be displayed on that screen in siebel application. How can i do that?
Thanks & regards,
BhushanHi,
You should have used the wizard to create your applet. That way you can pick the controls you want on your applet.
You can also add them manually.
You should be reading Siebel bookshelf and finding the answers for yourself. Don’t be lazy!
R
Robert Ponder
Lead Architect and Director
Ponder Pro Serve
cell: 770.490.2767
fax: 770.412.8259
email: [email protected]
web: www.ponderproserve.com -
How to save query result in to DSO & Infocube
Dear colleagues:
I met a requirment,I wanna save query results into BW model (infocube & DSO),Is there any solution about this issue ?
Thanks alot
Best regard
DAVID
Edited by: David on Nov 14, 2008 9:59 AMHi David,
Only possiblity is through APD. You can use Query as source and try to creat new ODS or CUBE , you can assign what ever fields you want to be in ODS/CUBE.
for APD creation u go for sap.help.com
You can schedule this APD, and what ever data updated to query it iwll be udated in ODS/CUBE.
cheers
Leena -
Save query output as .csv, .xls
I am looking to save a bunch of query paramenters into a csv
file. i am currently playing around with cffile, cfcontent,
cfheader, but i dotn know what the best approach is. Ultimately i
want save dialog to pop up and allow the user to save it to the
desired location with desired name. what is the best way to do this
in cold fusion?
Thanks
DrewUse cfheader and cfcontent to get the pop up. Use table tags
to format your data. -
Saving result from query into CSV file
Hi folks,
in our application we're generating pages source using general packages (like htp, owa_util, ...). and in this part I'm a really beginner.
I want to modify source one of our page, I want to add functionality to enable save result from query (cursor) into CSV file, to enable user choose place where generated file will be created and also change file name.
I searched this forum and I found procedure, that could be useful:
procedure p_getcsv is
cursor cur is
select 'a1' col1, 'b1' col2, 'c1' col3 from dual
union select 'a2' col1, 'b2' col2, 'c2' col3 from dual
union select 'a3' col1, 'b3' col2, 'c3' col3 from dual;
begin
-- Set the MIME type
owa_util.mime_header( 'application/octet', FALSE );
-- Set the name of the file
htp.p('Content-Disposition: attachment; filename="test.csv"');
-- Close the HTTP Header
owa_util.http_header_close;
-- Loop through all rows in EMP
for x in cur
loop
-- Print out a portion of a row,
-- separated by commas and ended by a CR
htp.prn(x.col1||','|| x.col2||','||x.col3|| chr(13));
end loop;
end;What peace of code should I add to procedure that is generating web page to enable calling this procedure and whole saving process?
Can anybody help me with this?
Many thanks,
Tomas
Message was edited by:
TomeoHi Marc,
thanks for reply, problem is that I'm not using APEX application, I'm just generating web page code straight using oracle general packages.
But I found this solution (maybe some tunning will be good):
In page where I want to display Download i have
begin
htp.anchor2 (
curl => ... .p_getcsv'||'?term=2005&crn=123,
ctext => 'Download Class List'
HTP.br;
end;
...si I'm calling p_getcsv procedure:
procedure p_getcsv( term IN stvterm.stvterm_code%TYPE DEFAULT NULL,
crn IN sirasgn.sirasgn_crn%TYPE DEFAULT NULL) is
v_length NUMBER;
v_file_name VARCHAR2 (2000);
temp_blob blob;
line RAW(32767);
begin
DBMS_LOB.CREATETEMPORARY(temp_blob, TRUE);
FOR i IN 1..6 LOOP
line := UTL_RAW.CAST_TO_RAW(i||','||term||','||crn||',AAA,BBB,CCC'||chr(10));
DBMS_LOB.WRITEAPPEND(temp_blob, LENGTH(UTL_RAW.CAST_TO_VARCHAR2(line)), line);
END LOOP;
v_file_name := 'ClassList.csv';
v_length := DBMS_LOB.getlength (temp_blob);
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
OWA_UTIL.mime_header (NVL ('csv', 'application/octet'), FALSE);
-- set the size so the browser knows how much to download
HTP.p ('Content-length: ' || v_length);
-- the filename will be used by the browser if the users does a save as
HTP.p ( 'Content-Disposition: attachment; filename="'
|| REPLACE (REPLACE (SUBSTR (v_file_name,
INSTR (v_file_name, '/') + 1
CHR (10),
NULL
CHR (13),
NULL
|| '"'
-- close the headers
OWA_UTIL.http_header_close;
-- download the BLOB
WPG_DOCLOAD.download_file (temp_blob);
-- release temporary blob
dbms_lob.freetemporary(temp_blob);
end;Regards,
Tomas
Maybe you are looking for
-
I spilled some pop on the back of my iPad. I cleaned it off and everything seems to be going good but when I play music it will either play with no sound or play then continue with no sound. What can I do to fix this (without being costly, it's a iPa
-
Dual display options, Mac Mini
I have connected an 1440x900 LED display via the Thunderbolt port and have set it up to be a secondary display with a DVI display 1920x1080 as primary . However, using the Thunderbolt port for a VGA interface seems like a bit of a waste! Is there any
-
Call subtemplate if the corresponding node exists in the XML
Hi, I have a requirement to call the sub template if the corresponding exists in the XML file. For example if the invoice node and the corresponding details are present in the XML file then i have to call the invoice sub template. Can any one suggest
-
Define Custom Bank Messages... crashes Logic Pro X 10.0.5
Hi all, Having a devil of a time setting up patch names for my Proteus 2000 in Logic Pro X 10.0.5. The Proteus 2000 requires a custom bank message format to access all of its banks over MIDI, so in the MIDI Environment I select its multi-instrument a
-
Unable to access external speaker by bluetooth. Error message says driver disabled. External speaker has worked previously on same notebook.