Problem while exporting ADF table to excel
Hello,
I have some columns of random size which are left padded with 0.
now the problem comes when I export the table containing these columns to excel, excel remove all those zeros from left.
eg: 000000003726819563(table column value) after exporting to excel shows as 3726819563.
Along with this I also want the footer part of table in excel.
For some of the columns I have summary filed(i.e. sum) at the footer of the table which I want to show in excel.
Can someone please guide me through these issues.
Thanks in advance.
Take a look at this: http://adfreusablecode.blogspot.com/2012/07/export-to-excel-with-styles.html
With this code you can export the footer: http://dl.dropbox.com/u/22312971/adf-samples/ExportToExcelDemo/ViewController/src/view/ExcelBean.java
Here is the entire demo project: http://dl.dropbox.com/u/22312971/adf-samples/ExportToExcelDemo.zip
I a few days I will update the above post.
Hope this help.
AP
Similar Messages
-
Problem While exporting HTML table to Excel(.CSV) in SharePoint 2010
Hi ,
I was exporting HTML table to .CSV file.
Problem is if any field contains '>' or '<' symbol then after exporting to .CSV, it was showing like '>' and '<' and the code is as below.
//Export HTML table to CSV
function toCSV() {
var data = document.getElementById('reportstable');
var csvData = [];
var tmpArr = [];
var tmpStr = '';
for (var i = 0; i < data.rows[0].cells.length; i++)
tmpArr.push((data.rows[0].cells[i].innerText || data.rows[0].cells[i].textContent));
csvData.push(tmpArr.join('\t'));
for (var i = 1; i < data.rows.length; i++)
tmpArr = [];
for (var j = 0; j < data.rows[0].cells.length; j++)
tmpArr.push(data.rows[i].cells[j].innerHTML);
csvData.push(tmpArr.join('\t'));
var output = csvData.join('\n');
SaveContents(output);
//For saving the file
function SaveContents(element) {
if (document.execCommand) {
var oWin = window.open("about:blank","_blank");
oWin.document.write(element);
oWin.document.close();
var success = oWin.document.execCommand('SaveAs', false, "FilteredReport.xls")
oWin.close();
Thanks in AdvanceHi,
According to your post, a problem occurred when you exported the HTML table to Excel(.CSV).
The following code for your reference:
function toCSV() {
var data = document.getElementById('reportstable');
var csvData = [];
var tmpArr = [];
var tmpStr = '';
for (var i = 0; i < data.rows[0].cells.length; i++)
tmpArr.push((data.rows[0].cells[i].innerText || data.rows[0].cells[i].textContent));
csvData.push(tmpArr.join('\t'));
for (var i = 1; i < data.rows.length; i++)
tmpArr = [];
for (var j = 0; j < data.rows[0].cells.length; j++)
tmpArr.push(data.rows[i].cells[j].innerHTML);
csvData.push(tmpArr.join('\t'));
var output = csvData.join('\n');
SaveContents(output.replace(/</g, '<').replace(/>/g, '>'));
Best Regards
Dennis Guo
TechNet Community Support -
Hi All,
Does anybody know how to export adf table records to excel sheet without using DCIteratorBinding.Hi Frank,
Thanks for your suggestion.in the below method
public void exportToExcel(ActionEvent actionEvent) throws
IOException {
FacesContext facesContext = FacesContext.getCurrentInstance();
Application application = facesContext.getApplication();
// BindingContainer bindings = this.getCustomers();
ValueBinding customerListBind =
application.createValueBinding("#{CustomerViewBean}");
customerView customer =
(customerView)customerListBind.getValue(facesContext);
customer.exportHtmlTableToExcel();
in this method i need to send CustomerViewBean to the exportHtmlTableToExcel method. -
Problem in exporting dates table to excel
hey experts,
i have a problem with exporting data to excel sheet .
1) when i export date it converts into string format and stores in the excel sheet ex: "02.02.2008"
but the problem here is that when i revert back the excel data to abap internal table , it is not working since the date is now in string format ..
please help urgently.
Point will b rewarded suitably.
thx and regards,
Anoop Guptahey thankx for the immediate reply , but still the problem is that , when i am am receiving the excel sheet data , i have no idea about which filed is having the date value . so first i need to find out the field in which date is stored and then only i can apply that RFC .
so can u please suggest some other work around or a method to know which filed is having date .
Any help will be appreciated and will be rewarded.
Thx & Regards.
Anoop -
Problem while exporting internal table to memory id using EXPORT
Hi friends,
Iam facing a following problem.
I have 4 line items in my va01 tcode.
now when i give material number and quantity and hit enter the processing for that line item starts.
iam moving that current line item to a internal table lt_vbap in userexit_check_vbap.
now for the 2nd line item also i have to move to internal table lt_vbap.
but my problem is that in internal table lt_vbap iam not getting all the line items.
every time the current line item is being processed the the previous line items are being refreshed.
from lt_vbap internal table.
how can i export internal table.
code
move vbap to lt_vbap.
append lt_vbap.
export lt_vbap to memory id 'ZXYZ'.>
Prakash Pandey wrote:
> Hi Priyanka,
>
> The internal table lt_vbap will always be empty unless you import it from the Memory ID (in your case ZXYX).
>
> Use the code this way:
>
> IMPORT lt_vbap FROM MEMORY ID 'ZXYX'.
>
> move vbap to lt_vbap.
>
> append lt_vbap.
>
> export lt_vbap to memory id 'ZXYZ'.
>
> Regards,
> Prakash Pandey
The memory id shud be same in both cases -
Image Display Problem while exporting jasper report in EXCEL
Hi
I am using Jasper reports for my reporting work using java code.
when i export my report in PDF then , report is ok and displaying Image properly.
but when i export my report in EXCEL then , there is no image in my report, rest part is fine.
Can anyone please help me in getting image in excel format also.
thanks in advance
PraveenI have not any problem in picture or logo.
But I have an another problem.
My Excel format produce multiple column,that is unefficient format.
If you have not this problem please mail me at --- [email protected] -
Problem while creating ADF Table
When I drag view object from data control palette and place it on jspx page as a ADF Table then it does not show any table fields in Edit Table Columns dialog box. I am using JDeveloper 10.1.3.2
Please Help, its urgent.
Thanks in advance.Hi,
When you expand your view object in data control can you see those fields?
Bogdan -
Hi All,
Does anybody knows how to write ADF Table records into pdf?
Thanks in advanceHi user535777,
Some ideas:
http://technology.amis.nl/blog/?p=514
http://iadvise.blogspot.com/2007/04/export-adf-table-to-excel.html
http://wiki.apache.org/myfaces/Exporting_DataTable_To_MS-Excel
Hope it helps,
Regards,
Tif -
Problem while Exporting Table Data to Excel Sheet
Hi All,
Im getting problem while downloading the table data to Excel.
Steps i was fallowed:
1)created Context node with four attributs.
2)created one attribut(resource) type: com.sap.ide.webdynpro.uielementdefinitions.Resource
3)Taken one Filedownload UI and Property resource bounded to (resource)
4)Added required jar file in the library and copied the same jar file in the navigator lib file
written the necessary coding but showing the below problem in the Browser
You must Flush before accessing the resource content
Please give me any suggestion on this
Regards
PolakaHi
Check this might help with Brian Fernandes comments.
Flush?
Regards
Arun Jaiswal -
Problem while exporting the data from a report to an excel file.
Hi SAP guru's,
I have a problem while exporting the data from a report to an excel file.
The problem is that after exporting, the excel file seems to have some irrelevant characters....I am checking this using SOST transaction..
Required text (Russian):
Операции по счету
№ документа Тип документа № учетной записи Дата документа Валюта Сумма, вкл. НДС Срок оплаты Описание документа
Current Text :
? 5 @ 0 F 8 8 ? > A G 5 B C
! 4 > : C "" 8 ? 4 > : C ! C G 5 B = > 9 7 0 ? 8 A 8 0 B 0 4 > : C 0 ; N B 0 ! C < ! @ > : > ? ; 0 B K ? 8 A 0 = 8 5 4 > : C
Can you help me making configuration settings if any?
Regards,
Avinash RajuHi Avinash
To download such characteres you need to adjust code page to be used during export. You can review SAP note 73606 to identify which code page is required for this language
Best regards -
Problem export pdf table to excel spreadsheed
Hi, my name is Marco.
Last month a customer has bought a copy of Adobe Acrobat Professional 9 in my computer shop for edit some pdfs files.
After some days he told me that he need to export a table to excel's spreadsheet but the function "open table in excel spreadsheet" work ONLY for the page where i right-click. How can i copy all the document in excel (without lose the format)?
Sorry for the bad english, if you don't understand i try to rewrite it better or in Italian!
Thank you!A lot depends on the structure of the PDF. I it has tags included that provide the format information, then the conversion may be easy. If the tags are not included, then retaining the format is almost impossible. This may even be a problem with recognizing columns. In that case, selecting columns with the ctrl key held during the selection. More information is available under "Copying Text" in the help menu (complete help). The help also talks about the ability to retain format as I have suggested.
To select items on multiple pages, you have to use continuous view.
It might be easier to the Save As to DOC and go from there. The backward conversion is not the forte or intent of Acrobat. In reality, one should never delete the original XLS (or other) file with the intent of going back in the future. Sounds like it is too late for your customer. -
Exporting ADF Table Headers to an EXCEL sheet
Hello,
We have an adf table (Jdev10.1.3g). We need to export the Headers of the table to an excel sheet. I have hold on the headers and can put it in an array/arrayList. Basically, I need help with how to browse to the file where user wants to store the table headers._ I think once we can browse to the file location, we can use the POI HSSF API as we have for the task below. Any code examples are welcome.
We are already SUCCESSFULLY uploading the contents of the excel sheet (using <af:inputFile> tag) and writing the contents to adf table. Lucas Jellema's article and code example was very helpful.
Thanks,Hi,
this thread is duplicate of this.... Exporting ADF table Headers to Excel
Please be patience untill the reply comes.... dont duplicate the thread its meaningless
Regards,
Suganth.G -
Error rollback segment while exporting a table
I am getting error while exporting a table, can someone advise me how i can handle this issue.
EXP-00056: ORACLE error 1555 encountered
ORA-01555: snapshot too old: rollback segment number with name "" too small
ORA-22924: snapshot too old
ThanksHi, I have the same problem...
I have a table with a blob type (14740 records)
I have increase the PCTVERSION to 100 (= maximum)
undo_retention = 604800 (7 days)
undo tablespace = 2 Gb
exporting with parameter CONSISTENT=n
Still I got the message
EXP-00056: ORACLE error 1555 encountered
ORA-01555: snapshot too old: rollback segment number with name "" too small
ORA-22924: snapshot too old
When exporting the table
What do I have to do more ????? -
Problem with Exporting a Table with BLOB data.
Hello All,
I get error messages while exporting a table from Oracle8i ( 8.1.7.4.1), containing BLOB data:
ORA-01555: snapshot too old: rollback segment number with name "" too small
ORA-22924: snapshot too old
Metalink says there is a bug in release 8.1.7.4.1 and suggests to create a new tablespace (with manual space management) ant move BLOB object to this TB.
Can i solve this problem without creating a new tablespace ?
Maybe somebody's experienced in such problem.
thank you in advance.Maybe you could solve Your problem without creating new tablespace.
Consider changing the value of MAX_ROLLBACK_SEGMENTS to max value if currently is not at that value and creating new bigger rollback segments. -
Hi,
I have made an application in BSP which reads a database table and fills up an internal table. I have displayed the result in a tableView <htmlb:tableView>
Now I have to export this list to an excel file.
How can I do it?
Kindly help me solve the problem.
Thanks,
Reemacheck out the following threads
Re: File Upload & Download into excel
Re: export bsp-table to excel
Re: Download to Excel
and close your previous threads in BSP forum
BSP Application URL
Target Frame with navigation->next_page
Event Handling in treeNode
BSP Exception: CX_SY_CONVERSION_NO_NUMBER
Regards
Raja
Maybe you are looking for
-
How to go into a function module through SE80 t - code
Hi All , How to go into a function module through SE80 t - code. Thanks in advance.
-
Use 2 carriers on at a time and keep the settings active?
Can somebody please advice me on the following: I use 1 Dutch Vodafone BB subsription + device while in Europe and 1 Indonesian Telkomsel BB subsription + device while in Asia. I now would like to go back to 1 device and replace my Dutch or Indonesia
-
OSX Mountain Lion install / download issue. Help Please!
I have attempted to download OSX ML 3 times now, each time the download completes, install runs then after restart there is no change. ML hasn't been installed. Anyone had the same issue? Any fix?
-
Help required in using Javanbean in forms
Can any one can write me the easy steps of how to use Javabean in a form. I am using D.S 9i.... Thanks
-
I want to burn an MP3 disc of my purchases for my car but it will not let. Do I need to deauthorize or something? I tried that and it did nothing. If you cant do this then think might start buying real cds again.thanks in advance folks