Download reports to Excel sheet
Hi Experts,
I have report like
Col1 Col2 Col3
AAA 220 21
BBB 400 20
CCC 0 10
Here Col3=Col2/@PV (Presentation Variable)
@PV=20 Default and if Col2=0 then Col3=10 Default.
My Question is, when I am trying to download the report to Excel, Col3 values shows 0 and in filter shows Col3 is equal to @{PV} but I need to show the Presentation Variables values in Excel sheet. I think this is bug in OBISE1 but if you any one able to solve this issue plz help me.
Thanks in Advance
Balaa...
For more information,
go through these threads,
Calculations done with PVs not seen when downloaded to excel
Re: PVs not seen in downloaded CSV file-Alternative way of doing?
Regards,
Raghu
Similar Messages
-
Formatting problem in download report into EXCEL Sheet
I have requirement that the Column in the report have values as 1.50,1.5,3.50,when i'm downloading the report into Excel sheet,The values are rounded and appearing as 1.5,1.5,3.5.
Can anyone please let me know how to resolve this requirementhi,
1) Excel will not take zero's after decimal(1.50) it will roundup(1.5) the values.
2) you can do like in formula section use CAST(column_name as CHAR) and download it to excel then u will get the zero i think...i didn't tried
or Column properties--->Data format --> Select Number--->use 1000's Seperator for 1 decimal and save the report and download it
but it should work!
thanks,
saichand.v
Edited by: saichand on Oct 27, 2009 4:11 PM
Edited by: saichand on Oct 27, 2009 4:12 PM -
Download report into excel sheet
Hi
I have requirement like, in report output I want a button, if I press that button it has to ask where I have to save that output list in excel sheet format.
Plz help me out
Thanks in advance
Regards
RaoPls do like...
START-OF-SELECTION.
* Select and Process the data .
PERFORM select_and_process_data.
* Display Records.
PERFORM display_result.
* Set the pf-status and user command.
SET PF-STATUS '110_VAL'. " create yr button here
AT USER-COMMAND.
* Download result to spreadsheet.
PERFORM download_to_spreadsheet.
END-OF-SELECTION
FORM download_to_spreadsheet .
DATA:
l_filefilter TYPE string,
l_filename TYPE string,
l_path TYPE string,
l_fullpath TYPE string,
l_user_action TYPE i.
IF sy-ucomm = 'DLOAD'. " Button name (Function code)
l_filefilter = 'EXCEL Files (*.XLS)|*.XLS|Text Files (*.TXT)|*.TXT|All files (*.*)|*.*||'.
CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'
EXPORTING
file_filter = l_filefilter
default_extension = 'xls'
IMPORTING
filename = l_filename
path = l_path
fullpath = l_fullpath
user_action = l_user_action.
IF l_user_action = 1 OR l_user_action = 0.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = l_fullpath
filetype = 'ASC'
TABLES
data_tab = o_file
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSEIF l_user_action = 2.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
append = 'X'
filename = l_fullpath
filetype = 'ASC'
trunc_trailing_blanks = 'X'
TABLES
data_tab = o_file
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " download_to_spreadsheet
" Note : Give the path according yr requirement.
Regards,
RH -
Dump in prodcution server while downloading ALV report to excel sheet
HI ALL,
ALV report is working fine in bother DEV and PROD servers....but in production while downloading report to excel sheet it is going to dump.
"dump is below:
Short text
Field symbol has not yet been assigned.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLKKBL" had to be terminated because it has
come across a statement that unfortunately cannot be executed. "
But in development this problem is not there, iam able to download ALV report to EXCEL sheet.
Any help experts......
Thanks in advance
RamHi,
I had the same problem,
Run a consistency check for your ALV and you will find out. See if you havent passed any unnecessary parameter to FM.
/people/rainer.hbenthal/blog/2009/09/25/sos--my-alv-report-is-not-working
Dump while printing ALV (field symbol not assigned)
Sumit -
Avoid splitting of columns ALV report while download output to Excel sheet
Hi friends,
I have 170 columns in my ALV report
while downloading the report to Excel sheet
the column descriptions and values are splitting in two lines.
How can i avoid the problem.
before calling REUSE_ALV_GRID_DISPLAY function module in my code
for the Layout i assigned LS_LAYOUT-MAX_SIZE = 1023.
but still the problem is not solved.
Please help me in this Issue.
Thanks in Advance,
GaneshHi friends,
I dont want to use and Keyboard shiftcntrl....
or dont want to change any code in ALV report
by simply assigning some value to any of the export parameter in ALV function module
can we achieve the functionality
Thanks in Advance,
Ganesh -
Download ALV report to excel sheet
halo fellow SAPiens,
i want to download my alv report into excel sheet...........for tht i used UGI_DOWNLOAD........here if i use the file type as 'ASC' all the leading zeros of numeric values are removed and date format is "yyyy/mm/dd".......
i need the leading zeros and date format in "dd/mmyyy"
when i use file type 'DBF' i get the leading zeros but my date is replaced by '#####.............wht shld i do...........To get the leading zeros to come, append an apostrophe to the start of each field that has the leading zeros as shown
loop at itab.
concatenate '''' itab-field1 into itab-field1.
modify itab.
endloop.
note that
1. This sometimes doesnt show correctly in excel and you may have to double click on the cell to prevent the apostrophe from displaying in the sheet
2. You field needs to have an extra character to add the apostrophe -
Error in XXL_FULL_API function module for download report to excel
Hi all,
I am using XXL_FULL_API function module for download report to excel, In this FM we have to fill a table called sema = t_gxxlt_s. in this table we have a fields called
i_sema-col_no = 19.
i_sema-col_src = 19.
i_sema-col_typ = 'STR'.
i_sema-col_ops = 'DFT'
here in 'col_typ' if we put STR in excel it will come as a text but i wnat the time field what i have to pass ?
and for filed 'col_ops' also ??
Thaks,
SridharHi sridhar joshi,
Please check this program
REPORT Excel.
TABLES:
sflight.
* header data................................
DATA :
header1 LIKE gxxlt_p-text VALUE 'Suresh',
header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
* Internal table for holding the SFLIGHT data
DATA BEGIN OF t_sflight OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA END OF t_sflight.
* Internal table for holding the horizontal key.
DATA BEGIN OF t_hkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_h.
DATA END OF t_hkey .
* Internal table for holding the vertical key.
DATA BEGIN OF t_vkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_v.
DATA END OF t_vkey .
* Internal table for holding the online text....
DATA BEGIN OF t_online OCCURS 0.
INCLUDE STRUCTURE gxxlt_o.
DATA END OF t_online.
* Internal table to hold print text.............
DATA BEGIN OF t_print OCCURS 0.
INCLUDE STRUCTURE gxxlt_p.
DATA END OF t_print.
* Internal table to hold SEMA data..............
DATA BEGIN OF t_sema OCCURS 0.
INCLUDE STRUCTURE gxxlt_s.
DATA END OF t_sema.
* Retreiving data from sflight.
SELECT * FROM sflight
INTO TABLE t_sflight.
* Text which will be displayed online is declared here....
t_online-line_no = '1'.
t_online-info_name = 'Created by'.
t_online-info_value = 'KODANDARAMI REDDY'.
APPEND t_online.
* Text which will be printed out..........................
t_print-hf = 'H'.
t_print-lcr = 'L'.
t_print-line_no = '1'.
t_print-text = 'This is the header'.
APPEND t_print.
t_print-hf = 'F'.
t_print-lcr = 'C'.
t_print-line_no = '1'.
t_print-text = 'This is the footer'.
APPEND t_print.
* Defining the vertical key columns.......
t_vkey-col_no = '1'.
t_vkey-col_name = 'MANDT'.
APPEND t_vkey.
t_vkey-col_no = '2'.
t_vkey-col_name = 'CARRID'.
APPEND t_vkey.
t_vkey-col_no = '3'.
t_vkey-col_name = 'CONNID'.
APPEND t_vkey.
t_vkey-col_no = '4'.
t_vkey-col_name = 'FLDATE'.
APPEND t_vkey.
* Header text for the data columns................
t_hkey-row_no = '1'.
t_hkey-col_no = 1.
t_hkey-col_name = 'PRICE'.
APPEND t_hkey.
t_hkey-col_no = 2.
t_hkey-col_name = 'CURRENCY'.
APPEND t_hkey.
t_hkey-col_no = 3.
t_hkey-col_name = 'PLANETYPE'.
APPEND t_hkey.
t_hkey-col_no = 4.
t_hkey-col_name = 'SEATSMAX'.
APPEND t_hkey.
t_hkey-col_no = 5.
t_hkey-col_name = 'SEATSOCC'.
APPEND t_hkey.
t_hkey-col_no = 6.
t_hkey-col_name = 'PAYMENTSUM'.
APPEND t_hkey.
* populating the SEMA data..........................
t_sema-col_no = 1.
t_sema-col_typ = 'STR'.
t_sema-col_ops = 'DFT'.
APPEND t_sema.
t_sema-col_no = 2.
APPEND t_sema.
t_sema-col_no = 3.
APPEND t_sema.
t_sema-col_no = 4.
APPEND t_sema.
t_sema-col_no = 5.
APPEND t_sema.
t_sema-col_no = 6.
APPEND t_sema.
t_sema-col_no = 7.
APPEND t_sema.
t_sema-col_no = 8.
APPEND t_sema.
t_sema-col_no = 9.
APPEND t_sema.
t_sema-col_no = 10.
t_sema-col_typ = 'NUM'.
t_sema-col_ops = 'ADD'.
APPEND t_sema.
CALL FUNCTION 'XXL_FULL_API'
EXPORTING
* DATA_ENDING_AT = 54
* DATA_STARTING_AT = 5
filename = 'TESTFILE'
header_1 = header1
header_2 = header2
no_dialog = 'X'
no_start = ' '
n_att_cols = 6
n_hrz_keys = 1
n_vrt_keys = 4
sema_type = 'X'
* SO_TITLE = ' '
TABLES
data = t_sflight
hkey = t_hkey
online_text = t_online
print_text = t_print
sema = t_sema
vkey = t_vkey
EXCEPTIONS
cancelled_by_user = 1
data_too_big = 2
dim_mismatch_data = 3
dim_mismatch_sema = 4
dim_mismatch_vkey = 5
error_in_hkey = 6
error_in_sema = 7
file_open_error = 8
file_write_error = 9
inv_data_range = 10
inv_winsys = 11
inv_xxl = 12
OTHERS = 13
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
please refer this link
http://www.thespot4sap.com/Articles/Download_to_excel.asp
Best regards,
raam -
Downloading data in excel sheet
Hi All,
I want to download data in excel sheet. My requirment is to use the same excle sheet to fill data.
The next data should be entered in the column of the excel sheet. Is there a possible to write data in excel sheet at a particular row/column.
Please let me know if this can be achevied?
For Ex:
Data: 10, 20, 30
Excel sheet:
10
20
30
Data: 40, 50, 60
Excel sheet:
10 40
20 50
30 60
Thanks & Regards,
Rupali RayHi,
This should be possible by OLE concept.
Have a look at report RSDEMO01
Regards -
How can I Display my Reports in Excel sheet?
Hello,
I have developed my reports using oracle report Developer 6i, I am getting output in PDF and HTML CSS by the the parameter DESTYPT=HTML CSS/PDF through web.
1.Now I want to show reports in Excel sheet also through web using 9 Internet Development Suit/9IAS .How it can be possible?
2. Another thing is where should I deploy my all RDF reports in 9IAS?
3. In 9IAS no Web DB listener is present so how it can be possible to run the reports through web?
Thanks and Regards,
AshwaniHi,
1. To display the output in Excel, refer "Output to Excel with Oracle9i Report"
at http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
2. The Reports RDF files will be deployed in Report server tier, i.e the place you
have installed your Business Inteligence componentes of 9iAS.
3. In 9 iAS, Report servlet/JSP can be run inside oc4j container. Report cgi can be
run the default http server present in 9iAS. Refer the 9iAS rel-2 manulas for more information
Thanks,
Rohit -
Problem in exporting ALV Report to excel sheet
Hi All,
I have developed a Report and now facing problem in exporting the same to excel sheet.
When we click the "Locate File" icon in the report layout, the system will pop up a window with radio buttons. I have opted for 'Spreadsheet'.
When i save the excel sheet into my desktop, the excel file has all the report headers (Title of each column). But no value is exported.
There are around 15 columns in the report and the excel sheet shows value of last 2 columns which has some text.
I have been into ALV report development and developed around 30+ reports in the same fashion.
What might be the reason behind this issue?
When i export other reports into excel sheet, everything is perfect without any flaws......
Kindly help me out......
Regards
PavanHi,
Here's my suggestion: Install OpenOffice.org and ask SAP to deliver good integration with OpenOffice.org.
Alternative suggestion: re-install SAP Gui on the PC where the integration is not working. If that does not help, re-install Microsoft Office as well.
Here's my comment: I think you should ask this question in a different forum, e.g. in the Duet forum. That may not be the correct forum either, but as it is a Microsoft/SAP integration technology forum, someone there may know the solution.
Regards,
Raj. -
How export report into excel sheet automatically using SSRS 2010?
Hi,
I have created many reports using SQL Server Data Tool 2010 and at my work, we are using active batch to ran reports every month.
Now question is, my boss want me to set up reports such a way that when active batch is ran, reports should be exported into excel sheet automatically with the default values given for parameters at some specific folder location. How can I export report
into excel sheet automatically when active batch is executed?
Please help me on this. Thanks for the help in advance.
VickyCheck this:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:/test.xls'
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = t_output
Regards. -
Generating webi report from excel sheet.
Hi to all.
can I generate the web intelligence report by excel sheets in info view,if yes how can I generate them or any alternative solution exist to this..
please reply
thanks in advanceHi Rajat,
Starting from BOXI R3.0 version, Rich client is used for accessing WebI reports other than Infoview. i.e. Similar to Desk top intelligence, it can be installed in any local machine and using it we can access WebI reports.
If you don't have Rich client then install it in your pc, then start creating WebI reports from excel using Rich client.
Navigation: Open rich client -> select local source(browse to your doucment i.e excel sheet) -> select required tab in excel(for the report) -> ok
Cheers,
Suresh Aluri.
Edited by: Suresh Babu Aluri on Feb 1, 2010 9:52 PM -
How to Export the BI Beans report to Excel sheet?
Hi all,
I have a requirement of exporting the report generated by using BI Beans to Excel sheet (*.xls NOT *.csv)
Is this possible directly using any feature of BI Beans?
If not can I get the java resultset object along with meta data like column header and row header, which I can use to write the report to Excel sheet using third party excel writers like JExcel?
Please provide the code excerpts for getting the resultset.
Thanks,
MrutyunjayHi,
Currently we only support export to csv file. The code below might help you traverse a crosstab. It is from a demo system, when a user clicks on a data cell it finds where the user clicks and updates a linked graph. So this code gets a query and traverses a particular dimension. It should hopefully point you in the correct direction.
DataComponentHandle ch = (DataComponentHandle) e.getComponentHandle();
* Thru the ComponentInfo, you can determine the row and column number
* where the user clicked. We want the dimension/dimension member combinations
* for where the user clicked. This is achieved by looking at the QDR - or
* Qualified Data Reference. Data Access will resolve the row/col into
* a dimension/dimension member pair
DataAccess dataAccess = m_linkableCrosstab.getModel().getDataAccess();
QDR qdr = ch.getComponentInfo().getQDR(dataAccess, QueryDataAccess.QDR_WITH_PAGE);
// Get the Geography selection from the QDR
QDRMember member = qdr.getDimMember(GEOGRAPHY);
// Chnage the Graph to display the data for the Geographical
// region the user selected in the Crosstab
try {
// Get the Query of the top right Graph
QueryClient query = (QueryClient)m_linkableGraphTop.getDataSource();
if (query != null) {
Selection sel = query.findSelection(GEOGRAPHY);
sel.removeAllSteps();
// Create a new MemberStep for Geography,
// and set the member on it to be the one user cliekd on in the Crosstab
MemberStep ms = new MemberStep(GEOGRAPHY);
ms.setHierarchy(sel.getHierarchy());
ms.addMember(member.toString());
sel.addStep(ms);
// Apply the new Geography selection to the Graph
query.applySelection(sel);
catch (Exception ex) {
getParentFrame().showExceptionDialog(ex);
Hope this helps
BI Beans PM Team
Oracle -
I want to download a report into Excel sheet with color Heading..Is it Poss
Hi All
I want to download error records into Excel sheet with color Heading..Is it Possible to download into excel with Color Heading?
here i am <b>using the 3 sheets in one</b>
t_error-bkpf -> Sheet1
t_error-bseg-> sheet 2
t-error-bsec -> sheet3.
Rgds
Raghav<b>The following thread has the code which will put data into multiple sheets</b>
Download to multiple sheets in Excel
FOR COLOR LOGIC JUST REFER THIS PROGRAM
*& Report ZNEGI17 *
REPORT ZNEGI17 NO STANDARD PAGE HEADING.
* this report demonstrates how to send some ABAP data to an
* EXCEL sheet using OLE automation.
INCLUDE OLE2INCL.
* handles for OLE objects
DATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT. " font
TABLES: SPFLI.
DATA H TYPE I.
* table of flights
DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
*& Event START-OF-SELECTION
START-OF-SELECTION.
* read flights
SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
* display header
ULINE (61).
WRITE: / SY-VLINE NO-GAP,
(3) 'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(4) 'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(8) 'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
ULINE /(61).
* display flights
LOOP AT IT_SPFLI.
WRITE: / SY-VLINE NO-GAP,
IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
ENDLOOP.
ULINE /(61).
* tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* PERCENTAGE = 0
TEXT = TEXT-007
EXCEPTIONS
OTHERS = 1.
* start Excel
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
* PERFORM ERR_HDL.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
* CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:kis_excel.xls'
* PERFORM ERR_HDL.
* tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* PERCENTAGE = 0
TEXT = TEXT-008
EXCEPTIONS
OTHERS = 1.
* get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
PERFORM ERR_HDL.
* add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
PERFORM ERR_HDL.
* tell user what is going on
* CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
* EXPORTING
** PERCENTAGE = 0
* TEXT = TEXT-009
* EXCEPTIONS
* OTHERS = 1.
* output column headings to active Excel sheet
PERFORM FILL_CELL1 USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL1 USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL1 USING 1 3 1 'Von'(003).
PERFORM FILL_CELL1 USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL1 USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
* copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
* changes by Kishore - start
* CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
PERFORM ERR_HDL.
* add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2.
PERFORM ERR_HDL.
* tell user what is going on
SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
* CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
* EXPORTING
** PERCENTAGE = 0
* TEXT = TEXT-009
* EXCEPTIONS
* OTHERS = 1.
* output column headings to active Excel sheet
PERFORM FILL_CELL1 USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL1 USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL1 USING 1 3 1 'Von'(003).
PERFORM FILL_CELL1 USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL1 USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
* copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
* changes by Kishore - end
* disconnect from Excel
* CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'C:SKV.XLS'.
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL.
* FORM FILL_CELL *
* sets cell at coordinates i,j to value val boldtype bold *
FORM FILL_CELL1 USING I J BOLD VAL.
data : color(5) type x value 'H80000008'.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL.
SET PROPERTY OF H_F 'ColorIndex' = 3 .
PERFORM ERR_HDL.
ENDFORM.
*& Form ERR_HDL
* outputs OLE error if any *
* --> p1 text
* <-- p2 text
FORM ERR_HDL.
IF SY-SUBRC <> 0.
WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
*& Form FILL_CELL1
* text
* -->P_H text
* -->P_1 text
* -->P_0 text
* -->P_IT_SPFLI_CARRID text
form FILL_CELL using I J BOLD VAL.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL.
endform. " FILL_CELL1
kishan negi -
How to Restict number of rows to download data in excel sheet
hi,
my requirement is that i m showing top 50 seller in my dashboard. but when we click on download to excel then all 500 rows are downloading. i want to restrict downloading all data and want show only displayed data of dashboard in excel sheet.(ex if 50 top seller are selected then only 50 rows is downloaded.)
Edited by: 941334 on Jun 18, 2012 6:15 AMHi,
Yes.my suggestion is you set each report design analysis page itself(just to -->edit analysis-->look at the table propeties -->here u can set it how ever you want(50 rows, 500 rows etc..analysis visible page) to show/download it as per your requirment.
Changing instance confic will affect entire report.for controling this you can set dashboard/prompt filter then you control data downloading.
Check Oracle Doc for more info
http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/answersconfigset.htm#CIHJGAAH
-----------------------------------FYI------------------
Just FYI:If you have bulk volum of data like more than 8MB then you have increase the download size
steps configure bulk volumn data more than 8MB:
go to you bi installed drive \oracle\instances\instance1\config\OracleBIJavaHostComponent\coreapplication_obijh1\
2. Open config.xml file in an editor and search for the below lines
<XMLP> <InputStreamLimitInKB>8192</InputStreamLimitInKB>
<ReadRequestBeforeProcessing>true</ReadRequestBeforeProcessing> </XMLP>
3. The default size is 8 MB, you can increase to the size you want. If you want to set unlimited, then replace 8192 with 0 (zero) but it’s not recommended (performance may impact) then Restart BI Service and test .
Thanks
Deva
Maybe you are looking for
-
How can I get/set the vaule of a varibale in the planning function
Hi All, in the fox I can get the value of a variable using VAR(), but How can I get/set it in a normal planning function? any proposal would be very appreciated.
-
Creation of logical file while creating APD
Hello, I am creating an APD in which Multiprovider as source and flat file as the target with some filter in between. While defining the target as flat file, I have selected application server and logical file name. Can any one please let me know how
-
Just got my iPhone today. My email server has a simple, self-signed SSL certificate (IMAPS and TLS on the MTA). The iPhone doesn't like this and refuses to work with my mail/imap server. This won't work for me and I'm wondering if there is a way arou
-
I have problems to deploy the API's Java Mail and Java Activator into Oracle 8.1.5 on a NT4 server. When deploying the classes in the API's that has names beginning with "com/sun/java..." everything works fine, but when trying to deploy the classes s
-
Attempting to copy to the disk failed. An unknown error occured (-69)
i bought a whole bunch of stuff on itunes, then when i went to sync my ipod it asked if i wanted to update to the new software, i said yes and updated, then while it was syncing it says attempting to copy to the disk failed, an unknown error. it wont