Export to Excel from WEB - How to restrict amount of data
Hi
We have a standard web template w. the option to export to excel. Is there anyway we can restrict / disable this button if the number of rows in the query/dataprovider is more than X.
The reason why I'm asking is that if one or several users export a large amount of data from our BI portal to a local excel file the portal sometimes crash.
br,
Kaare
This, can only be achieved by modifying the WEB template which is used at your client.
If its standard template 0ANALYSIS_PATTERN , change the logic for the button export to excel and embedded the code to thorogh an error if report output exceeds certain limit.
Deepak
Similar Messages
-
Maximum number of rows export to excel from WebI
Hello,
I have a WebI Report in BO 4 SP6 which has 14 columns and 80,000 rows. I opened the report in WebI (Internet explorer) and clicked on the export icon but nothing happened. this report was being run for a month 201301.
So I modified the same report with 1 week's data which is 4500 rows and when I exported it to excel 2007 and it worked.
My questions are:
1- how do I export 80,000 rows of data to excel?
2- what servers/services are responsible for exporting data to excel?
3- any other opinions that you can share which might help me.
PS: I have not test this in rich client since rich client is not being used by users, Users only use WebI.
Regards,
samiqueAfter you click on export to excel. wait for some time for the pop up to come up.... Even after some time if it doesn't come up and throw a timeout error "Missing sEntry parameter", then you can try by increasing the time limit. But I won't recommend this since, this is happening due to huge volume of data.
Below thread might help you
Error when exporting WebI to PDF
If you export it using rich client, you can clearly see that the file size is too large.. It was 45 MB in my case. So I requested my user to put some filters and then do an export to excel. -
How to download data in excel from web report in sap ?
how to download data in excel from web report made in sap abap?
through tcode smw0.for exemple using
MS_EXCEL_OLE_STANDARD_DAT -
Exporting to Excel from Aria People Search
Is it possible to export to Excel from Aria People Search.
I would like to output the Org Chart (built in) and the Tree (I created) to an Excel file.
Does anyone know how to do this?
Thanks,
TomHi,
If you are using 10g, then OLE2 is supported. However, it will be executed in the App Server Machine.
If you want to do the operation in the Client machine (as how it was done in the Client / Server), you need to use Client_OLE (Which is part of WebUtil).
Look at
http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
for more details on WebUtil.
HTH.
Regards,
Arun -
Any method to Import & Export to Excel from Client Side
Hi,
Is there any method to Import and Export to Excel from the Client side. I have one procedure to export to Excel , but the excel file will be opened in the Application Server only, even if it executed from the client side. Also this procedure will not work if OLE2 chnaged CLIENT_OLE2. I am writing my procedure, Is there any idea to get it in the client side.
PROCEDURE pr_Forms_to_Excel(p_block_name IN VARCHAR2 DEFAULT NAME_IN('system.current_block')) IS
-- Declare the OLE objects
application OLE2.OBJ_TYPE;
workbooks OLE2.OBJ_TYPE;
workbook OLE2.OBJ_TYPE;
worksheets OLE2.OBJ_TYPE;
worksheet OLE2.OBJ_TYPE;
cell OLE2.OBJ_TYPE;
range OLE2.OBJ_TYPE;
range_col OLE2.OBJ_TYPE;
-- Declare handles to OLE argument lists
args OLE2.LIST_TYPE;
-- Declare form and block items
form_name VARCHAR2(100);
f_block VARCHAR2(100);
l_block VARCHAR2(100);
f_item VARCHAR2(100);
l_item VARCHAR2(100);
cur_block VARCHAR2(100) := NAME_IN('system.current_block');
cur_item VARCHAR2(100) := NAME_IN('system.current_item');
cur_record VARCHAR2(100) := NAME_IN('system.cursor_record');
item_name VARCHAR2(100);
baslik VARCHAR2(100);
row_n NUMBER;
col_n NUMBER;
filename VARCHAR2(100);
ExcelFontId OLE2.list_type;
BEGIN
-- Start Excel
application:=OLE2.CREATE_OBJ('Excel.Application');
OLE2.SET_PROPERTY(application, 'Visible', 'True');
-- Return object handle to the Workbooks collection
workbooks:=OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
-- Add a new Workbook object to the Workbooks collection
workbook:=OLE2.GET_OBJ_PROPERTY(workbooks,'Add');
-- Return object handle to the Worksheets collection for the Workbook
worksheets:=OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
-- Get the first Worksheet in the Worksheets collection
-- worksheet:=OLE2.GET_OBJ_PROPERTY(worksheets,'Add');
args:=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 1);
worksheet:=OLE2.GET_OBJ_PROPERTY(worksheets,'Item',args);
OLE2.DESTROY_ARGLIST(args);
-- Return object handle to cell A1 on the new Worksheet
go_block(p_block_name);
baslik := get_block_property(p_block_name,FIRST_ITEM);
f_item := p_block_name||'.'||get_block_property(p_block_name,FIRST_ITEM);
l_item := p_block_name||'.'||get_block_property(p_block_name,LAST_ITEM);
first_record;
LOOP
item_name := f_item;
row_n := NAME_IN('SYSTEM.CURSOR_RECORD');
col_n := 1;
LOOP
IF get_item_property(item_name,ITEM_TYPE)<>'BUTTON' AND
get_item_property(item_name,VISIBLE)='TRUE'
THEN
-- Set first row with the item names
IF row_n=1 THEN
------updated by faisal-to give Bold font-----
--FOR k IN 1 .. 3 LOOP
args := OLE2.create_arglist;
OLE2.add_arg(args, 1);
OLE2.add_arg(args, col_n);
cell := OLE2.get_obj_property(worksheet, 'Cells', args);
OLE2.destroy_arglist(args);
--cell_value := OLE2.get_char_property(cell, 'Value');
ExcelFontId := OLE2.get_obj_property(Cell, 'Font');
OLE2.set_property(ExcelFontId, 'Bold', 'True');
--END LOOP;
baslik:=NVL(get_item_property(item_name,PROMPT_TEXT),baslik);
args:=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, row_n);
OLE2.ADD_ARG(args, col_n);
cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
OLE2.DESTROY_ARGLIST(args);
OLE2.SET_PROPERTY(cell, 'Value', baslik);
OLE2.RELEASE_OBJ(cell);
END IF;
-- Set other rows with the item values
args:=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, row_n+1);
OLE2.ADD_ARG(args, col_n);
cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
OLE2.DESTROY_ARGLIST(args);
IF get_item_property(item_name,DATATYPE)<>'NUMBER' THEN
OLE2.SET_PROPERTY(cell, 'NumberFormat', '@');
END IF;
OLE2.SET_PROPERTY(cell, 'Value', name_in(item_name));
OLE2.RELEASE_OBJ(cell);
END IF;
IF item_name = l_item THEN
exit;
END IF;
baslik := get_item_property(item_name,NEXTITEM);
item_name := p_block_name||'.'||get_item_property(item_name,NEXTITEM);
col_n := col_n + 1;
END LOOP;
EXIT WHEN NAME_IN('system.last_record') = 'TRUE';
NEXT_RECORD;
END LOOP;
-- Autofit columns
range := OLE2.GET_OBJ_PROPERTY( worksheet,'UsedRange');
range_col := OLE2.GET_OBJ_PROPERTY( range,'Columns');
OLE2.INVOKE( range_col,'AutoFit' );
OLE2.RELEASE_OBJ( range );
OLE2.RELEASE_OBJ( range_col );
-- Get filename and path
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG( args, p_block_name );
OLE2.ADD_ARG( args,'Excel Workbooks (*.xls, *.xls');
filename := OLE2.INVOKE_CHAR( application,'GetSaveAsFilename',args );
OLE2.DESTROY_ARGLIST( args );
-- Save as worksheet
IF NVL(filename,'0')<>'0' THEN
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG( args,filename );
OLE2.INVOKE( worksheet,'SaveAs',args );
OLE2.DESTROY_ARGLIST( args );
END IF;
-- Close workbook
--OLE2.INVOKE( workbook ,'Close');
-- Release the OLE objects
OLE2.RELEASE_OBJ(worksheet);
OLE2.RELEASE_OBJ(worksheets);
OLE2.RELEASE_OBJ(workbook);
OLE2.RELEASE_OBJ(workbooks);
--OLE2.INVOKE(application, 'Quit');
OLE2.RELEASE_OBJ(application);
-- Focus to the original location
go_block(cur_block);
go_record(cur_record);
go_item(cur_block||'.'||cur_item);
END;
Thanks in advance.
Rizly FaisalAlternatively you could use OLE2 to do the bulk of the importing and exporting and then use the webutil file transfer functions to move the file to the client and then simply open the file there...That might be more efficient in terms of performance as well.
Regards
Grant -
How to Restrict Single Delivery Date for PO with Multiple Line Items
Dear Experts,
How to Restrict Single Delivery Date for PO with Multiple Line Items.
System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
Can we achive this by Some Enhancement in SAP or Not ???
If so how to do it.
Any Inputs is highly appreciated.
Thanks and Regards,
Selvakumar. MHi Selvakumar,
we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
(for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
Regards,
Madhu. -
What is tuxedo9.1/bin/sql and how to restrict amount of memory it uses?
Hi,
We have AIX 5.3 server running Oracle 10.2 database and Tuxedo, a few days ago the database crashed as
there was no free memory (this was configmed by AIX log).
According to our monitoring (Open View) memory was consumed by two 'sql' processes
(where 'sql' is process name): within one hour each process went from 24,000 to 800,000 memory pages.
I searched the box and found executable named 'sq' in tuxedo9.1/bin:
ls -l tuxedo9.1/bin/sql-r-xr-xr-x 1 abcPadm abcP 73128 Oct 24 2008 tuxedo9.1/bin/sql
Would you be able to tell me what is this 'sql' executable and how to restrict amount
of memory it consumes (other than through ulimit)?
Thanks
SevHi Sev,
As Ian says, the SQL support in Tuxedo where Tuxedo actually provided a relational database resource manager has long been deprecated and certainly hasn't been supported in over 10 years. The Tuxedo sql program in the Tuxedo bin directory is an interactive SQL utility. I seriously doubt that it is the same executable that caused your memory problem. If it is the same executable, there isn't really much Oracle is going to be able to do for you as that component hasn't been supported for years. You would really need to change the application to use a standard supported SQL utility and relational database.
Regards,
Todd Little
Oracle Tuxedo Chief Architect -
How to remove values formatting in export to excel from ALV grid
Hi all,
I have small issue, I have ALV Grid with some data, but the problem is with columns containing e.g. gross amounts, because it is displayed in the grid as e.g. 1.764,81, and after export to excel it is still in this format (with dot and comma), so excel doesn't treat it as numeric value but as text, and then when I try to calculate total on the column then this values are not taken to the total. Do you know if that is possible to remove column formatting?
kind regards,
MarcinI replied too soon to Peter's suggestions. For some reason, I was able to add new info. to my first new row, but not the second. However, I finally figured out the problem.
I found the Help Center page on: "Here are ways to change custom formats and apply changes to table cells:"
To change the elements associated with a custom format that’s been applied to cells, select the cells and click Show Format in the Format pane of the Table inspector.
I saw that the "cell format" was listed as "automatic," so I changed it to "Custom;" then left the new custom window at it's default settings. Now my cells would accept pasted info. without spreading it through the lower rows. Whatever automatic was in the table, it was not what I wanted. Doing this to other new cells, solved my problem. Thanks again. -
Why authorization needed when accesing an export in excel from Bex
Hi Experts,
Before upgrade to version 7.0 when our user export a report to excel is
neccessary enter user and password, the issue is that not everybody
have a user therefore so they cannot see the excel.
This problem is due to the icons are in the server and in the excel
there are links to these icons of the server.(for example the icon of the hierarchy node)
If you configurate the excel to not load the icons the issue disappears
In Microsoft Excel
Select tools->Options->General->Web Options->General tab
and unmark the flag "Load pictures from Web pages"
But this solution is not always available for all users due to different excel plug-ins installed in their local computers.
Our questions are:
1.- How can we avoid these icons in the future?
2.- Why these problems occurs since the upgrade to SAP BW 7.0?
3.- Is there any option to insert the icons instead of having links?
Thanks in advanceHi Reddy,
it has been some time ago you have posted this issue so I'm not sure if you still need a solution for this issue.
Anyway, I assume you have found the manual regarding the export to excel, csv and pdf for Visual Composer (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123)
We also had issues with the export funcationality described in the document. I don't recall the exact error message.
Just some advice:
Copy the code from the document into Notepad. Then, make sure you re-arrange the code into 1 single line (remove all enters). Then, copy the code into the formula editor of the hyperlink action. Don't forget to define a store (e.g. reptname) but that is explained in the document as well.
Regards,
Sven -
We are trying to launch excel from a web form using the command WEB.SHOW_DOCUMENT. We are not able to get the form to run excel on the client. Excel starts and runs on the server. Any ideas on how to make excel run on the client?
My mistake! I tried this and it works great. The URL looks like this:
Web.Show_Document('http://server/vdir/test.xls', '_blank');
This displays the test.xls document residing in the vdir virtual directory on the web server in a new browser window.
The trick would appear to be the need to do this through a web server such as IIS, having the Excel file resident in a virtual directory to which you can refer. Also, this copies the file down to the client machine, so any edits go into the copy, not the original spreadsheet.
Does anyone know whether it is possible to show the file on the server instead of a copy? I tried file://, but that couldn't display the file (page not found, presumably due to access restrictions?). -
Export to Excel in Web Analyzer: Change description
In Web Analyzer we have a button Export to Excel. When we click that button the report gets downloaded in to excel. By default the excel sheet will be saved as example 0Analysis_Pattern-87.
Is there any way, by default when i click on export to excel button, excel should save either by query description or by query technical name.
Where do i make such a setting.Hi,
Only one name can be kept while expoting to excel.
You may try bradcast option from your portal, There if you will choose format as excel and send then it will take the technical name of the report as file name.
I hope it will help.
Thanks,
S -
Export to PDF from Web teomlpate (wrong style)
Hi Gurus,
i created a new portal style and used it as default portal style. The colors are shown in my portal "and" in my BI web templates. That means my web template uses the correct style. But if i export to Excel or PDF the style is not used. I can see the standard colors from common portal style.
I have also checked the settings in the export web template but there i can only select two different motives. I dont want to use a motive. The template should show my style. Where i select my portal style as template for my PDF or Excel exports?
Regards,
AdemSolved.
Adem -
Export to Excel from Report region (pl/sql returning sql query)
Hello all,
I have encountered an interesting problem. I have an HTMLDB application with a lot of sql reports coded straight inside the report region. In order to better organize my reports, I decided to
1. make all my report regions of type "Pl/Sql function returning SQL query"
2. create a package inside my database schema which houses all reports as pl/sql functions returning VARCHAR2, the string returned being the report query
3. just calling "return package_name.function_name" from inside my report region of type "Pl/sql function returning SQL query".
This technique seemed to work perfectly. The reports were being returned as expected. I was then asked to provide the "Export to Excel" capability to all my reports. This seemed like a piece of cake using HTML DB's "Export to Excel" extension. However, the "export to excel" does not function correctly when my reports are inside a package in the database. HTML DB tries to export but inside the excel spreadsheet, instead of seeing row data, I see:
<pre>failed to parse SQL query:
ORA-00936: missing expression
<!-- select a.username, b.table_name, 'View Row Data' from schema_browser_user_list a, all_tables b where a.user_id = and a.username = b.owner order by b.table_name asc
--!>
</pre>
I am building my query string inside of my package functions by using a combination of literal strings and concatenating them with some parameter values being passed in. It seems that the HTML DB engine which exports the report to excel does not properly understand the concatenation of variables as can be seen by the empty space to the right of the equal sign in the "a.user_id = " clause. Does anybody have any input as to whether this is a known issue or if I am doing something wrong? Thanks a lot for your time.
- Kenny R.James,
Thanks for the quick reply. I think you mis-understood what I'm doing. All I'm doing is creating packaged functions which return VARCHAR2. The VARCHAR2 that they return is the report query. With this technique, I no longer have to type the query into the HTML DB report region. Instead, I make the report region a "Pl/sql function returning sql query" and make the following call: return package_name.function_name(some_application_items passed in as parameters)
This makes for a much more organized html db app. The problem is that the "export to excel" function does not correctly interpret the VARCHAR2 that my packaged functions are returning. Is this a better explanation? Thanks again for your time.
- Kenny R. -
Export to Excel from PL/SQL Procedure
Hello,
I am creating a report using PL/SQL and html code. Once the report is display, I click on "Export to Excel" button. it should open the new window with Excel. The window opens in Excel, but no data. I have following code
as the first statement in the procedure.
OWA_UTIL.MIME_HEADER ('application/vnd.ms-excel', FALSE);
and this is the script
<script language="JavaScript">
var param_list
l_param_list := l_param_list || '&p_app_main_id=' || p_app_main_id;
l_param_list := l_param_list || '&p_from_date=' || p_from_date ;
l_param_list := l_param_list || '&p_to_date=' || p_to_date ;
htp.prn('
param_list = ''');
htp.prn( l_param_list);
htp.prn('''
function NewWindow(mypage,myname,w,h,scroll){
var win = null;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = ''height=''+h+'',width=''+w+'',top=''+TopPosition+'',left=''+LeftPosition+'',scrollbars=''+scroll+'',resizable''
win = window.open(mypage,myname,settings)
win.focus();
function ExportToExcel() {
var wndname = ''ExpCodeMoveRep'';
var wndw = screen.width-10;
var wndh = screen.height-10;
var wattr = ''scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes'';
var wndurl = ''pm_codemove_report?p_output=E'';
wndurl = wndurl + param_list;
NewWindow(wndurl,wndname,wndw,wndh,wattr);
</script>
My submit is
htp.prn('
<p align="center">
<input type="button" class="printbutton" value="Close" class="button" OnClick="window.close();">
<input type="button" class="printbutton" value="Export To Excel" class="button" OnClick="ExportToExcel();">');
Can anyone tell me what is wrong.
I have the same code in another schema and it is working fine. Both schema are on the same server. Do they have any set up on appserver in DAD file to be able to see the data in Excel?
Thanks
YagnaThank you for your answer dccase!
I decided to go with on demand process. I have trouble with calling procedure from (button URL - javascript:popupURL('#OWNER#.exportXML')) pop window which cause "Forbidden, The requested operation is not allowed" error. I read that this is because I'm using XE edition and there is no HTMLDB_PUBLIC_USER role in XE.
Now, I use on demand process and button URL link:
javascript:popupURL('f?p=&APP_ID.:0:&APP_SESSION.:APPLICATION_PROCESS=PLSQL_Export_XML:NO::')
It is working. Now I have to find solution to automatically close popup window :-)
Thanks!
Marko -
Export to Excel in Web Analysis
We are in the process of upgrading to Web Analysis (and the rest of the products for that matter) 11G and we're having an issue when someone tries to export to excel. It pops up and wants the user to drill down to excel.exe so it can launch excel and open the report.
Has anyone seen this before? If so what is the resolution?
I know there was a config fil in Analyzer 7 that we had to update a excelpath variable, but I don't see anything similar in 11g and I can't find a good admin guide for Web Analytics 11g.With System 9 and SmartView you also have the option to Export to Excel in
Query Read - preserves its connectivity
Fully Formatted - preserves its formatting.
Brian Chow
Maybe you are looking for
-
How to print the picture in PDF ?
I developed a plug-in(Annot) that dynamically display a picture according some condition in PDF,but the picture cannot be printed. How to print the picture ?
-
HT202157 What does it mean by "reorder icons on the second page"?
I'd love to reorder the icons on my AppleTV (3rd Gen) but can't figure out if that's possible. Thoughts? The latest software update says "reorder icons on the second page" but I can't figure out what it means by "second page" or how to get it to wor
-
Forgot iCloud username and password
How can I restore username and password for @me.com
-
Deleting a Deployed Categorization Schema
*Hello,* *I was wonder if anyone knows how to delete a categorization schema with deployed status? After playing in the IC web client it only appears draft categorization schema's can be deleted.* *Is there a way to delete deployed schema's in back e
-
Are there any plans to include .odt in pages?
It would be grate to be able to open .odt in pages. Are there any plans to enable this? If not, how can I add this to a wish list? Thanks OC