Incomplete excel resource download
Hi All,
we have a custom webdynpro java application and in which there is an option for user to download the table content, now only very few users are not able to download the excel from portal, download is ending up with say like 30% or 40% and after some time it is failing with message saying couldnt be downloaded, we don't see any errors in default trace as well, below are the details on the same.
1. jxl jars haven been used
2. below is the method of generating excel resource
FileInputStream ExcelCSVFile = new FileInputStream(Excel_File);cachedExcelResource = WDResourceFactory.createCachedResource(ExcelCSVFile, File_Name,WDWebResourceType.XLS, false);
Please help me on this
1. is it really problem with the logic in which the way we are generating the excel resource ?
2. is it related to server cache ?
Thanks,
Sanjay.
may these links will help you,
Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)
Web Dynpro Java - Exporting Table Data Using On-Demand Streams - SAP NW 7.0 - Code Gallery -
SCN Wiki
Similar Messages
-
What is the resource download URL in the exported books.xml file?
What is the purpose of the resource download URL in the exported books.xml file? The following is an excerpt of a books.xml file.
<resourceItemInfo>
<resource>urn:uuid:309dffc8-7993-4837-b8e9-00easde241cfa</resource>
<resourceItem>1</resourceItem>
<metadata>
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Paradise Lost</dc:title>
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Milton</dc:creator>
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">application/epub+zip</dc:format>
<dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Project Gutenberg</dc:publisher>
<dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en</dc:language>
<dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/">http://www.gutenberg.org/ebooks/26</dc:identifier>
</metadata>
<src>http://xxxxx.com/books/309dffc8-7993-4837-b8e9-00e97e1cfa.epub</src>
<downloadType>simple</downloadType>
<licenseToken>
<resource>urn:uuid:309dffc8-7993-4837-b8e9-00e97e241cfa</resource>
<permissions>
<display/>
<excerpt/>
<print/>
</permissions>
</licenseToken>
</resourceItemInfo>No real purpose.
-
Thanks to this excellent resource I have my music back
I've been able to get rid of itunes 7 and its problems. I renamed my previous library itunes file "itunes library.itl, threw away the itunes music library xml.file and in library, receipts, the itunesX.pkg. The installation of 6.0.5 went smoothly and I'm completely back in business.
I just want to thank this forum and its participants for providing such an excellent resource...and as well pass on this most excellent remedy!We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
If you rented it on your phone then you've tried searching for it via its spotilight search screen, and/or tried a soft-reset of your phone and searched/checked the Videos app for it after the phone has restarted ?
If you still can't find it then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption -
Header in Excel when downloading using GUI DOWNLOAD
Hi,
I have a requirement where i need to download data from table into an excel sheet on a location in PC. I used FM 'GUI DOWNLOAD' for this purpose. Now, i need a header to be displayed in the excel when i download. The header should contain a date which is entered during the execution as a screen input. How to display this date as a header in the excel sheet when using GUI DOWNLOAD.Hi,
If you only want the header to be displayed in the first row, you can do as suggested by Ikshula.
If you want a real excel header, you can use OLE and set the property ActiveSheet.PageSetup.LeftHeader (or CenterHeader, or RightHeader) to the value "&D". This will add the current system date as header (you can of course pass any other value between the " ").
Kr,
m. -
I solved excel file download from jsp or javabean
first jexcel api download
i used the jexcel api
here sample ; using jexcel api
This code is servlet
==================================================================
SaleAgent sa = null;
public void init(ServletConfig config) throws ServletException {
super.init(config);
// get Sale List DB Agent Class
// you are modify
sa = new SaleAgent();
public void service(HttpServletRequest req, HttpServletResponse res)
throws IOException, ServletException {
res.setContentType("application/vnd.ms-excel");
res.setHeader("content-disposition", "attachment; filename=datesale.xls");
// to get Sale List Parameter
// you are modify
String biz_id = req.getParameter("biz_id");
String begindate = req.getParameter("begindate");
String enddate = req.getParameter("enddate");
// send parameter , set Parameter to get Data List from Database
// you are modify
sa.processDaySale(biz_id, enddate);
ServletOutputStream out = res.getOutputStream();
try {
WritableWorkbook workbook = Workbook.createWorkbook(out);
WritableSheet sheet = workbook.createSheet("datesale", 0);
// head cell
WritableCellFormat cf = new WritableCellFormat();
cf.setAlignment(Alignment.CENTRE);
cf.setBackground(Colour.LIGHT_GREEN);
cf.setWrap(true);
// data cell
WritableCellFormat cf2 = new WritableCellFormat();
cf2.setAlignment(Alignment.CENTRE);
cf2.setWrap(true);
// total cell
WritableCellFormat cf3 = new WritableCellFormat();
cf3.setAlignment(Alignment.CENTRE);
cf3.setBackground(Colour.LIME);
cf3.setWrap(true);
// etc
WritableCellFormat cf4 = new WritableCellFormat();
cf4.setBackground(Colour.LIME);
cf4.setWrap(true);
// column width setting
sheet.setColumnView(0, 10);
sheet.setColumnView(1, 15);
sheet.setColumnView(2, 15);
sheet.setColumnView(3, 15);
sheet.setColumnView(4, 15);
sheet.setColumnView(5, 15);
sheet.setColumnView(6, 15);
sheet.setColumnView(7, 15);
// head row setting
Label label = new Label(0, 0, "NO.", cf);
sheet.addCell(label);
label = new Label(1, 0, "sale_date", cf);
sheet.addCell(label);
label = new Label(2, 0, "week", cf);
sheet.addCell(label);
label = new Label(3, 0, "total_sale", cf);
sheet.addCell(label);
label = new Label(4, 0, "net_sale", cf);
sheet.addCell(label);
label = new Label(5, 0, "cash", cf);
sheet.addCell(label);
label = new Label(6, 0, "card", cf);
sheet.addCell(label);
label = new Label(7, 0, "merch_bond", cf);
sheet.addCell(label);
// data row setting
int t_total = 0;
int t_net = 0;
Number number = null;
int maxRow = sa.getCount();
for(int i = 0; i < maxRow; i++) {
int t_sales = sa.getTotal_Sales_Price(i);
int n_sales = sa.getTotal_Sales_Price(i) - sa.getTotal_Dc_Price(i);
number = new Number(0, i+1, i + 1, cf2);
sheet.addCell(number);
label = new Label(1, i+1, sa.getSale_Time(i), cf2);
sheet.addCell(label);
number = new Number(2, i+1, t_sales);
sheet.addCell(number);
number = new Number(3, i+1, sa.getTotal_Dc_Price(i));
sheet.addCell(number);
number = new Number(4, i+1, n_sales);
sheet.addCell(number);
number = new Number(5, i+1, sa.getCash(i));
sheet.addCell(number);
number = new Number(6, i+1, sa.getCredit_Card(i));
sheet.addCell(number);
number = new Number(7, i+1, sa.getMerch_bond(i));
sheet.addCell(number);
t_total = t_total + t_sales;
t_net = t_net + n_sales;
// total row setting
label = new Label(0, maxRow + 2, "", cf4);
sheet.addCell(label);
label = new Label(1, maxRow + 2, "Total : ", cf3);
sheet.addCell(label);
number = new Number(2, maxRow + 2, t_total, cf4);
sheet.addCell(number);
label = new Label(3, maxRow + 2, "", cf4);
sheet.addCell(label);
number = new Number(4, maxRow + 2, t_net, cf4);
sheet.addCell(number);
label = new Label(5, maxRow + 2, "", cf4);
sheet.addCell(label);
label = new Label(6, maxRow + 2, "", cf4);
sheet.addCell(label);
label = new Label(7, maxRow + 2, "", cf4);
sheet.addCell(label);
workbook.write();
workbook.close();
} catch(JXLException e) {
e.printStackTrace();humm
may be servlet link's target have to hidden frame
i don't know correctly reason... -
Hi,
Is it possible to download excel file on the server on a JSP page. Kindly advice.
Thanks in advance.yes...
What is the scenario....
is it..
1. You have a XLS on server...alredy created..
2. Now you need a link on JSP page....that is linked to this EXS file...
3. User acess your web application and click on link....
4. A popup comes up....and user selects either to save or download the file....
Is this your scenario....
If not then specify steps you are looking for....and you face issue in which step....
Edited by: Saurabh Agarwal on Jul 6, 2011 12:21 PM -
Alv Grid to Excel Sheet Downloading problem for Bank account Number(CHAR18)
Hi every one,
I am downloading Alv grid to excel using local file---> spreadsheet
but, the bank account no is populating as like ''11+E213". When press F2 in that column then only its showing the correct value.
If i do download directly from ctrlshiftF7 , its down loading perfectly but my user Needs the Header of the ALV also, Buecause HEader Consists of Payment Date and all details.
I have checked the same from the Satandard table also its also populating in the same way as in the report,
So if any body have valueble suggestions, Please reply soon,
Thanks & Regards,
Raj SHi Lalit,
Thanks for Ur promt reply,
I ahve alraedy Changed the lenght to 25 but it doesnot effect,
But when i concatenate the same number with any one character in front of the A/C No. Its generating perfectly,
But i cant do so as its an account No.
Thanks,
Raj S -
Regarding ALV output to Excel file download
Hi all,
i had a requirement when downloading the ALV output to the Excel file it should ask for the password.if the user enters the password then this pass word shuld be assigned to the Excel file that was downloaded.
Can i know how this can be implementedHi,
Using EXCEL_OLE_STANDARD_DAT you can specify the PASSWORD & PASSWORD OPTION.
Regards,
Sharat -
Is there any function module which can help me download data from an internal table into mutiple sheets on an excel workbook ?
My internal table contains more than 65536 records.Check it out !!
*& Report Y_EXCEL_MULTIPLE *
REPORT Y_EXCEL_MULTIPLE.
parameters: p_fname like RLGRAP-FILENAME
default 'C:\temp\testNN.xls'.
data: fname like p_fname,
kn like sy-repid.
data: cnt type i value 0.
data: sheetname(10) value 'TEST ',c_row type i,
scnt type i,
val(20), wb(2).
parameters: p_exvis as checkbox default 'X',
p_workbk(2) type p default '01',
p_wsheet(2) type p default '01'.
CONSTANTS: OK TYPE I VALUE 0.
INCLUDE OLE2INCL.
DATA: EXCEL TYPE OLE2_OBJECT,
WORKBOOK TYPE OLE2_OBJECT,
SHEET TYPE OLE2_OBJECT,
CELL TYPE OLE2_OBJECT,
CELL1 TYPE OLE2_OBJECT,
COLUMN TYPE OLE2_OBJECT,
RANGE TYPE OLE2_OBJECT,
BORDERS TYPE OLE2_OBJECT,
button TYPE OLE2_OBJECT,
int TYPE OLE2_OBJECT,
FONT TYPE OLE2_OBJECT,
ROW TYPE OLE2_OBJECT.
data: application type ole2_object,
book type ole2_object,
books type ole2_object.
data: ole_book TYPE ole2_object.
do p_workbk times.
move p_fname to fname.
unpack sy-index to wb.
replace 'NN' with wb into fname.
perform create_EXCEL.
create sheets and save
perform sheet.
perform save_book.
enddo.
write: ' Done'.
FORM create_excel *
form create_excel.
CREATE OBJECT EXCEL 'EXCEL.APPLICATION'.
if sy-subrc ne 0.
write: / 'No EXCEL creation possible'.
stop.
endif.
set property of EXCEL 'DisplayAlerts' = 0.
CALL METHOD OF EXCEL 'WORKBOOKS' = WORKBOOK .
Put Excel in background
if p_exvis eq 'X'.
SET PROPERTY OF EXCEL 'VISIBLE' = 1.
else.
SET PROPERTY OF EXCEL 'VISIBLE' = 0.
endif.
Create worksheet
set property of excel 'SheetsInNewWorkbook' = 1.
call method of workbook 'ADD'.
endform.
FORM save_book *
form save_book.
get property of excel 'ActiveSheet' = sheet.
free object sheet.
free object workbook.
GET PROPERTY OF EXCEL 'ActiveWorkbook' = WORKBOOK.
call method of workbook 'SAVEAS' exporting #1 = p_fname #2 = 1.
call method of workbook 'CLOSE'.
call method of excel 'QUIT'.
free object sheet.
free object workbook.
free object excel.
endform.
FORM sheet *
form sheet.
do p_wsheet times.
unpack sy-index to sheetname+5(2).
if sy-index gt 1.
CALL METHOD OF EXCEL 'WORKSHEETS' = sheet.
call method of sheet 'ADD'.
free object sheet.
endif.
scnt = sy-index.
call method of excel 'WORKSHEETS' = SHEET EXPORTING #1 = scnt.
call method of sheet 'ACTIVATE'.
SET PROPERTY OF SHEET 'NAME' = sheetname.
free object sheet. "OK
perform fill_sheet.
CALL METHOD OF EXCEL 'Columns' = COLUMN.
CALL METHOD OF COLUMN 'Autofit'.
free object COLUMN.
call method of sheet 'BUTTON' = button.
call method of button 'ADD'.
set property of button 'fmButtonStyle' = 0.
exporting #1 = '96.75' #2 = '372' #3 = '123.75' #4 = '12'.
set property of button 'Characters' = 'ButtonTest'.
free object button.
free object font.
free object int.
free object cell.
free object: cell1.
free object range.
free object borders.
free object: column, row.
enddo.
free object font.
free object int.
free object cell.
free object cell1.
free object range.
free object borders.
free object column.
free object row.
free object sheet.
endform.
FORM border *
--> we *
form border using we.
*left
call method of CELL 'BORDERS' = BORDERS exporting #1 = '1'.
set property of borders 'LineStyle' = '1'.
set property of borders 'WEIGHT' = we. "4=max
free object borders.
right
call method of CELL 'BORDERS' = BORDERS exporting #1 = '2'.
set property of borders 'LineStyle' = '2'.
set property of borders 'WEIGHT' = we.
free object borders.
top
call method of CELL 'BORDERS' = BORDERS exporting #1 = '3'.
set property of borders 'LineStyle' = '3'.
set property of borders 'WEIGHT' = we.
free object borders.
bottom
call method of CELL 'BORDERS' = BORDERS exporting #1 = '4'.
set property of borders 'LineStyle' = '4'.
set property of borders 'WEIGHT' = we.
set property of borders 'ColorIndex' = 'xlAutomatic'.
free object borders.
endform.
FORM border2 *
--> we *
form border2 using we.
*left
call method of CELL 'BORDERS' = BORDERS exporting #1 = '1'.
set property of borders 'LineStyle' = '5'.
set property of borders 'WEIGHT' = we. "4=max
free object borders.
right
call method of CELL 'BORDERS' = BORDERS exporting #1 = '2'.
set property of borders 'LineStyle' = '6'.
set property of borders 'WEIGHT' = we.
free object borders.
top
call method of CELL 'BORDERS' = BORDERS exporting #1 = '3'.
set property of borders 'LineStyle' = '7'.
set property of borders 'WEIGHT' = we.
free object borders.
bottom
call method of CELL 'BORDERS' = BORDERS exporting #1 = '4'.
set property of borders 'LineStyle' = '8'.
set property of borders 'WEIGHT' = we.
set property of borders 'ColorIndex' = 'xlAutomatic'.
free object borders.
endform.
FORM border3 *
--> we *
form border3 using we.
*left
call method of CELL 'BORDERS' = BORDERS exporting #1 = '1'.
set property of borders 'LineStyle' = '9'.
set property of borders 'WEIGHT' = we. "4=max
free object borders.
right
call method of CELL 'BORDERS' = BORDERS exporting #1 = '2'.
set property of borders 'LineStyle' = '10'.
set property of borders 'WEIGHT' = we.
free object borders.
top
call method of CELL 'BORDERS' = BORDERS exporting #1 = '3'.
set property of borders 'LineStyle' = '11'.
set property of borders 'WEIGHT' = we.
free object borders.
bottom
call method of CELL 'BORDERS' = BORDERS exporting #1 = '4'.
set property of borders 'LineStyle' = '12'.
set property of borders 'WEIGHT' = we.
set property of borders 'ColorIndex' = 'xlAutomatic'.
free object borders.
endform.
FORM fill_cell *
--> color *
--> pattern *
form fill_cell using color pattern.
call method of cell 'INTERIOR' = int.
set property of int 'ColorIndex' = color.
set property of int 'Pattern' = pattern.
free object int.
endform.
FORM font *
--> bold *
--> size *
form font using bold size.
call method of CELL 'FONT' = font.
set property of font 'BOLD' = bold.
set property of font 'SIZE' = size.
free object font.
endform.
FORM fill_sheet *
form fill_sheet.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'A1'.
perform font using 1 '14'.
SET PROPERTY OF CELL 'VALUE' = 'Counter'.
perform fill_cell using '15' '1'.
perform border using '2'.
free object cell.
val = 'Workbook-Count'.
move wb to val+16.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'B1'.
SET PROPERTY OF CELL 'VALUE' = val.
perform fill_cell using '14' '1'.
perform border using '4'.
free object cell.
val = 'Sheet-Count'.
unpack sy-index to val+12.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'C1'.
SET PROPERTY OF CELL 'VALUE' = val.
perform fill_cell using '12' '1'.
perform border using '4'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'E3'.
perform border using '1'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'E5'.
perform border using '2'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'E7'.
perform border using '3'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'E9'.
perform border using '4'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'F3'.
perform border2 using '1'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'F5'.
perform border2 using '2'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'F7'.
perform border2 using '3'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'F9'.
perform border2 using '4'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'G3'.
perform border3 using '1'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'G5'.
perform border3 using '2'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'G7'.
perform border3 using '3'.
free object cell.
CALL METHOD OF EXCEL 'RANGE' = CELL EXPORTING #1 = 'G9'.
perform border3 using '4'.
free object cell.
val = 'ROW-Count'.
do 19 times.
c_row = sy-index + 1.
unpack c_row to val+12(4).
CALL METHOD OF excel 'CELLS' = CELL1 EXPORTING #1 = c_row #2 = 2.
SET PROPERTY OF CELL1 'VALUE' = val.
free object cell1.
CALL METHOD OF excel 'CELLS' = CELL1 EXPORTING #1 = c_row #2 = 4.
SET PROPERTY OF CELL1 'VALUE' = val.
free object cell1.
enddo.
endform.
You find SAP OLE programs under development Class 'SOLE' *
MSTAPPL Table Maintenance APPL *
RSOLEDOC Document list *
RSOLEIN0 OLE Load Type Information *
RSOLEINT Type Info Loaded *
RSOLETI0 OLE Object Browser *
RSOLETI1 OLE Object Browser *
RSOLETI2 OLE Object Browser *
RSOLETI3 F4 Help For OLE Objects *
RSOLETT1 OLE 2.0 Automation Demo Program *
Transactions: *
SOLE *
SOLO - List of OLE applcations with loaded type info *
You will find the decription of possible objects and methods in the *
windows help file for excel. *
Hope thisll give you idea!!
<b>P.S award the points.!!! !!!</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
Excel sheet download problem from ALV
Hi all,
when i am trying to download an ALV report into localfile... Excel, two middle coloum values are not appeared in excel sheet but headings are available.
last three coloums values are overlapped in these headings.
Where might be the problem exist?Hi,
Reprots
http://www.sapgenie.com/abap/reports.htm
http://www.allsaplinks.com/material.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
ALV
1. Please give me general info on ALV.
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
2. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
3. How do I add subtotals (I have problem to add them)...
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
4. How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
5. How to print page number / total number of pages X/XX in ALV? http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
7. How can I set the cell color in ALV? http://www.sapfans.com/forums/viewtopic.php?t=52107
8. How do I print a logo/graphics in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=81149
http://www.sapfans.com/forums/viewtopic.php?t=35498
http://www.sapfans.com/forums/viewtopic.php?t=5013
9. How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
10. How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
11. How can I display an icon in ALV? (Common requirement is traffic light icon).
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
12. How can I display a checkbox in ALV? http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
Check this for basic concepts of OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
Tabstrip
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf
Editable ALV
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc
Tree
http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
General Tutorial for OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
http://www.sapdevelopment.co.uk/reporting/alvhome.htm
http://www.sap-img.com/abap/what-is-alv-programming.htm
http://www.sap-img.com/abap-function.htm
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm
http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf
http://www.sap-img.com/abap-function.htm -
Problem In Excel File download
Hi
I have created an excel file fro table using HSSF api.When i click on the link download excel,it opens properly but an empty new window also opens along with it..i do not want that to happen
any Suggestions??Hi,
I also tried for it but couldnt get any solution.I think it is the default behaviour.
Regards,
Sudhir -
Hi Experts,
I am downloading an excel file which is stored at the MII server using JSP file. I am using the below code for the same. I am able to download the excel file successfully but when I open the same I get some junk value as content. I mean to say the content is not at readable format. I have tested the java code using standalone program where it worked successfully.
I tested this JSP at MII 12.2 and MII 14.0 and both provided same result. I have attached the screenshot of excel how it looks after opening
I want to know is this a problem with Netweaver web server?. I mean the way it runs JSP. Unfortunately I could not test this on another web server
Any help on this is very much appreciated.
<%
String filePath = "C:\\myfile.xls";
try
FileInputStream in = new FileInputStream(filePath);
response.setContentType("application/vnd.ms-excel");
response.addHeader("content-disposition","attachment; filename=" + filePath);
int octet;
while((octet = in.read()) != -1)
out.write(octet);
in.close();
out.close();
catch(Exception e)
out.println("Exception occured:"+e);
%>
Thanks
ShajiHi Christian,
Thanks for your response.
I tried that as well but same result. I get a alert message as below while opening the file.
"Excel cannot open the file Demo.xls because the file format or file extension is not valid. Verify that file has not been corrupted and that the file extension matches the format of the file"
I am trying to run the same file on another web server such as tomcat and see if the issue persist.
Thanks
Shaji -
Excel documents downloading as CSV
During the past week, I downloaded some files from websites using Firefox. (i.e., a list of bank account info & list of insurance claims)
For some reason, they have started saving as csv documents instead of Excel. They open in Excel but when I try to save, I receive this error message:
file name.csv may contain features that are not compatible with CSV (comma delineated). Do you want to keep the workbook in this format?
Regardless of what option I choose, the information will not save in Excel.
Is there a way to make these files download as an Excel document instead of .csv? Under Options, .csv doesn't show up in Applications File Type.
Thanks in advance for any help you can provide!The file type that downloads is controlled by the server?
However there are a number of third party sites that can convert a csv to an exel file type (google drive Import csv, then save as excel and [https://support.office.com/en-za/article/Import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba office] ) but it varies with formatting as well. -
Data in 3 container should be merged in a single excel while downloading.
Hi Experts,
I created ALV report using OO ABAP where i splitted the container into 3 parts . Each container contains seperate internal table with data. Now the requirement is when i download to excel all the data contained in 3 seperate container should be merged in a single excel sheet. Can any one of you help me out in this.Hi,
What exactly is the issue you are facing?
I would suggest you to create a gui status and handle the user command for downloading in your PAI, where you can easily merge your 3 tables onto one before downloading it with gui_download method...
Kr,
Manu. -
Excel 2007 Download Error from SQL Server 2012
Thank you for your help/comments in advance
We are running SQL Server 2012, downloading SSRS reports into Excel 2007.
The report renders to the monitor just fine.
Most downloads are fine but we get an error with the largest downloads (common denominator) but can be hit or miss. Usually a second try it will download. Today we tried numerous times and kept getting the error.
I saw a link to a service pack fix ...https://msdn.microsoft.com/en-us/library/dd255234(v=sql.110).aspx which somewhat fits my issue.
The Report Server Log (O:\MSRS11.MSSQLSERVER\Reporting Services\LogFiles\ReportServerService__04_01_2015.log) gives the following error message:
library!ReportServer_0-2!29bc!04/01/2015-15:02:01:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: Invalid offset for item. ReferenceID: fffffffffffffffe, Offset: -2, Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
An internal error occurred on the report server. See the error log for more details.;
library!ReportServer_0-2!29bc!04/01/2015-15:02:12:: i INFO: Dump result: External dump process return code 0x20000001.
External dump process returned no errors.
processing!ReportServer_0-2!29bc!04/01/2015-15:02:12:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
An internal error occurred on the report server. See the error log for more details.;
library!ReportServer_0-2!29bc!04/01/2015-15:02:12:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.RSException: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See
the error log for more details. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for
more details.
at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.RegisterRuntimeErrorInExpression(VariantResult& result, Exception e, IErrorContext iErrorContext, Boolean isError)
at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateTextRunValueExpression(TextRun textRun)
at Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.TextRunImpl.GetResult(IReportScopeInstance romInstance)
at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.EvaluateOriginalValue()
at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.get_ProcessedWithError()
at Microsoft.ReportingServices.Rendering.SPBProcessing.TextBox.WriteCustomNonSharedItemProps(RPLElementProps nonSharedProps, RPLWriter rplWriter, PageContext pageContext)
at Microsoft.ReportingServices.Rendering.SPBProcessing.PageItem.WriteNonSharedItemProps(RPLElementProps elemProps, RPLWriter rplWriter, PageContext pageContext)
at Microsoft.ReportingServices.Rendering.SPBProcessing.TextBox.WriteItemToStream(RPLWriter rplWriter, PageContext pageContext)
at Microsoft.ReportingServices.Rendering.SPBProcessing.TextBox.CalculatePage(RPLWriter rplWriter, PageItemHelper lastPageInfo, PageContext pageContext, PageItem[] siblings, RepeatWithItem[] repeatWithItems, Double parentTopInPage, Double&
parentPageHeight, Interactivity interactivity)
at Microsoft.ReportingServices.Rendering.SPBProcessing.Rectangle.CalculatePage(RPLWriter rplWriter, PageItemHelper lastPageInfo, PageContext pageContext, PageItem[] siblings, RepeatWithItem[] repeatWithItems, Double parentTopInPage, Double&
parentPageHeight, Interactivity interactivity)
at Microsoft.ReportingServices.Rendering.SPBProcessing.Tablix.TablixContext.AddRowMemberContent(TablixMember rowMember, Int32 rowIndex, Int32 colIndex, Int32 rowSpan, Int32 colSpan, Byte memberState, Int32 defTreeLevel, LevelInfo childLevelInfo,
Double updateWidth)
at Microsoft.ReportingServices.Rendering.SPBProcessing.Tablix.TablixContext.AddRowMember(TablixMember rowMember, Int32 rowIndex, Int32 colIndex, Int32 rowSpan, Int32 colSpan, Byte memberState, Int32 defTreeLevel, LevelInfo childLevelInfo)
at Microsoft.ReportingServices.Rendering.SPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, InnerToggleState parentToggleState, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex,
Int32 parentColIndex, Int32 level, TablixContext context, Boolean& advanceRow, LevelInfo& parentLevelInfo, List`1& ignoreTotals, Boolean keepTogether)
at Microsoft.ReportingServices.Rendering.SPBProcessing.Tablix.CreateTablixItems(Tablix tablix, TablixContext context)
at Microsoft.ReportingServices.Rendering.SPBProcessing.Tablix.CalculatePage(RPLWriter rplWriter, PageItemHelper lastPageInfo, PageContext pageContext, PageItem[] siblings, RepeatWithItem[] repeatWithItems, Double parentTopInPage, Double&
parentPageHeight, Interactivity interactivity)
at Microsoft.ReportingServices.Rendering.SPBProcessing.ReportBody.CalculatePage(RPLWriter rplWriter, PageItemHelper lastPageInfo, PageContext pageContext, PageItem[] siblings, RepeatWithItem[] repeatWithItems, Double parentTopInPage, Double&
parentPageHeight, Interactivity interactivity)
at Microsoft.ReportingServices.Rendering.SPBProcessing.ReportSection.CalculatePage(RPLWriter rplWriter, Int32 page, Int32 totalPages, Int32 regionPageNumber, Int32 regionTotalPages, Boolean firstSectionOnPage, Boolean lastSection, Interactivity
interactivity, Double heightToBeUsed, PageItemHelper& lastBodyInfo, Boolean& delayedHeader, Boolean& delayedFooter, Boolean& lastSectionOnPage)
at Microsoft.ReportingServices.Rendering.SPBProcessing.Report.NextPage(RPLWriter rplWriter, ReportSectionHelper& lastPageInfo, Int32 page, Int32 totalPages, Interactivity interactivity, Boolean hasPaginationChunk)
at Microsoft.ReportingServices.Rendering.SPBProcessing.SPBProcessing.GetReportNextPage(Stream& stream, Boolean collectPageBookmarks)
at Microsoft.ReportingServices.Rendering.SPBProcessing.SPBProcessing.GetNextPage(RPLReport& rplReport, Boolean collectPageBookmarks)
at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties,
CreateAndRegisterStream createAndRegisterStream)
--- End of inner exception stack trace ---
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.HandleRenderingException(ReportRenderingException rex)
at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.Execute(IRenderingExtension newRenderer)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(RenderingContext rc, ProcessingContext pc)
at Microsoft.ReportingServices.Library.RenderFromSnapshot.DoRendering(ProcessingContext pc, RenderingContext rc)
at Microsoft.ReportingServices.Library.RenderFromSnapshot.CallProcessingAndRendering(ProcessingContext pc, RenderingContext rc, OnDemandProcessingResult& result)
at Microsoft.ReportingServices.Library.RenderStrategyBase.ExecuteStrategy(OnDemandProcessingResult& processingResult)
The user sees the following on her monitor when downloading ...Hi Mark,
As you know this is an known issue in the SSRS 2012 and the fix for this issue was first released in Cumulative Update 3 for SQL Server 2012. For more information about this cumulative update package, click the following article number to view the article
in the Microsoft Knowledge Base:
2723749Cumulative update package 3 for SQL Server 2012
More details information in below article:
http://support.microsoft.com/en-us/kb/2707015
As I have tested on my loacal environment and can't reproduce the issue and you have also mentioned that that you didn't meet the issue now. If you got the issue next time, please feel free to let us know if the hotfix will work or not.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support
Maybe you are looking for
-
Assigning a value to a number field through a button
11gxe , apex 4.x , hi all , i am trying to assign value to a number field through a button , i created a button , then a dynamic action for this button , when it is clicked , the dynamic action is based on Pl\Sql code , and the code is begin :p2_assi
-
How do I get my library back after a PC re-build
Had problems with my profile so had to re-build my machine. I now have nothing in my Purchased list. Is it possible to get the library back?
-
SUP in untrusted forest using SCCM 2012 SP1
Hi, I have a single primary site in a single domain/AD forest. I also have a single site system in an untrusted forest behind a firewall. I have installed a DP and an MP onto this server in the untrusted forest and have now installed WSUS and added t
-
Executing CR HOST script, encountering command not found
Hi All, I new to writing Host scripts, especially for use within the Applications. I need to go out to an FTP site and grab a file. The FTP portion of the script works fine. The problem I'm encountering is with the execution of regular commands like
-
Drop6: Java/Class Diagrams - associations + thumbnail isssue
Hi JDev team I'm having a play with the Java/Class Diagrams in 11g Drop6 and importing existing class structures to display. Under an ADF BC project I've created both a Java Diagram and a Class Diagram, and added the "oracle.jbo.server.AppModuleImpl"