Download data from interactive report
Hi all. I'm on apex 3.1.1.00.09.
I have this problem: when I download data from interactive report I can download only in CSV and PDF. If I try to download into pdf it creates a file of only 1 KB.
I would know if I must configure my apex in order to download correctly in pdf and if I must configure it in order to download in doc and xls format.
Thanks all for collaboration,
Fabrizio
Thank you for your reply.
I am able to download the csv file, but my problem is: I don't want the column headings to show.
Is it possible to download only the data, not the column headings?
Similar Messages
-
Empty CSV exports of data from interactive reports.
Currently using version 4.2.1.00.08 of APEX. My application has interactive reports; when I try to export data to CSV file, it is empty. Tried HTML, that just has the control widget for the report. I could swear this used to work. Thanks for any help.
-jg-Hi!
Check that the RFC is set as a trusted connection and it uses the current user for the connection.
Check that you use the same user in RSCUSTV3 as in the source system you have set up in RSA1 for the REP and the BI client.
Check that the user you use for this is configured as follow
- On the tab Logon data select System as User Type, SUPER as User group and also enter an initial password; use password welcome.
- On the tab Roles assign the roles SAP_BC_USR_CUA_CLIENT and SAP_BC_USR_CUA_SETUP_CLIENT (Valid From and Valid to should be left empty). In addition, assign the profiles S_BI-WHM_RFC and S_BI-WX_RFC on the tab Profiles.
rollo -
Download data from query report
Hi All,
I m in a situation where i need to download the report output into an Excel sheet and program needs to run in background.
This is a Query report.
It will be better If anyone can suggest me other then changing the code of Query reoport.
Thanks,
SagarHello Sagar,
First Create One Program in SE38 like normal program.
which is below:
Data: QUERY LIKE AQADEF-QUNAME,
USERGROUP LIKE AQADEF-BGNAME.
CALL FUNCTION 'RSAQ_QUERY_CALL'
EXPORTING
WORKSPACE = ' '
QUERY = 'ZXYZ' " your query Name
USERGROUP = 'ZUSRGRP' " your User Group name
QUERY = 'FUELREPORT'
USERGROUP = 'PMTEST'
DBACC = 0
SKIP_SELSCREEN = ' '
DATA_TO_MEMORY = ' '
FREE_SELECTIONS =
IMPORTING
REF_TO_LDATA =
LISTTEXT =
LIST_ID =
PROGRAM =
USED_VARIANT =
TABLES
SELECTION_TABLE =
LISTDESC =
FPAIRS =
EXCEPTIONS
NO_USERGROUP = 1
NO_QUERY = 2
QUERY_LOCKED = 3
GENERATION_CANCELLED = 4
NO_SELECTION = 5
NO_VARIANT = 6
JUST_VIA_VARIANT = 7
NO_SUBMIT_AUTH = 8
NO_DATA_SELECTED = 9
DATA_TO_MEMORY_NOT_POSSIBLE = 10
OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
then
see the final table of your report and use GUI_DOWNLOAD function and pass your all parameter.
In case any problem Let me know.
Have a Nice Day.
Certain appreciation is welcome.
Regards,
Sujeet -
Strip Tags From Interactive Report Download.
Hi,
Is it possible to strip html tags from a column during a CSV download on a interactive report?
Basically i have a report where one of the columns is as follows
453<font color="red"> | </font>0
but in the download i want to strip out the tags so in the csv the column would show
453 | 0
Any ideas how i can do this using the standard csv download from the drop down menu?
Thanks AndyJust wondering if any one had any thoughts on how I may be able to do this
-
Download from Interactive Report to csv is not working
Hi there,
when I try to create a download form my interactive report I get an empty csv/pdf.
I just checked with other report pages where the download functionality is working - but the settings seem the same.
In the interactive report properties I've set the check boxes for csv and pdf and it is also displayed properly then on the report page. But when I click on the download (csv or pdf) just an empty document is opened.
What settings can I check now - what might be the reason for the error?
BR & thank you,
LenaKeerti,
You're using the "Display Condition" of the Interactive Report Region (IRR) to show the report or not.
If you have multiple selects just use a PL/SQL expression as in:
:P1_MULTI_1 IS NOT NULL
AND :P1_MULTI_2 IS NOT NULLNow, if that works for you lets take things a little further... You don't need the second submit button all the time (I'd get rid of it entirely but you seem to really want to hide the region until a selection is made). I did the following:
1. Updated the display condition of the report to use a PL/SQL expression.
2. Set the display condition of the submit button to the opposite of the IRR.
3. Added the item name of the select to the interactive report attributes > Advanced Attributes > Page Items to Submit.
Now the go button can be used for everything.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
Edited by: Dan McGhan on May 14, 2009 12:28 PM
Updated as only clicking "go" works with Page Items to Submit. -
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 -
How to download data from an internal table to a text
Hi All,
I want to download data from an internal table to a text file.
The fields should be pipe(|) separated. I have tried GUI_DOWNLOAD but it is not taking the field separator.
The sample of the desired data that i require should be this way:-
13456TR|M|COUP|MATERIAL|KGS
Thanks in advance.
Regards
Satish.Hi,
Try this..
REPORT zc1download message-id zc1dwnmsg.
*& Declaration Section for the Tables *
TABLES: makt.
*& Declaration Section for the Internal Tables
DATA: intab TYPE TABLE OF makt,
wa_intab LIKE LINE OF intab,
no_of_rec TYPE i,
count TYPE i.
DATA: BEGIN OF f_intab,
str(255) TYPE c,
END OF f_intab.
DATA: t_intab LIKE TABLE OF f_intab,
w_intab LIKE LINE OF t_intab,
temp(255) TYPE c.
FIELD-SYMBOLS: <f> TYPE ANY.
*& Selection ScreenSection for the file download
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: file TYPE rlgrap-filename MEMORY ID file,
tab RADIOBUTTON GROUP rad1 DEFAULT 'X',
others RADIOBUTTON GROUP rad1,
delimit TYPE c.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
IF file IS INITIAL. " check to ensure file.
MESSAGE i001.
EXIT.
ENDIF.
IF others = 'X'. " check to ensure delimiter.
IF delimit = ' '.
MESSAGE i002.
EXIT.
ENDIF.
ENDIF.
SELECT * FROM makt INTO TABLE intab.
IF tab = 'X'. " default delimiter tab is used
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = file
filetype = 'DAT'
mode = 'A'
TABLES
data_tab = intab
EXCEPTIONS
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
no_authority = 10
OTHERS = 11.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSE. " If user defind delimiter is to be used
Counts the number of fields *
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE wa_intab TO <f>.
IF sy-subrc <> 0.
EXIT.
ELSE.
count = count + 1.
ENDIF.
ENDDO.
LOOP AT intab INTO wa_intab.
DO count TIMES. " Adding the delimiter in required places
ASSIGN COMPONENT sy-index OF STRUCTURE wa_intab TO <f>.
CONCATENATE temp delimit <f> INTO temp.
ENDDO.
SHIFT temp.
APPEND temp TO t_intab.
CLEAR temp.
ENDLOOP.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = file
filetype = 'ASC'
mode = 'A'
TABLES
data_tab = t_intab
EXCEPTIONS
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
no_authority = 10
OTHERS = 11.
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.
WRITE:/ 'The Data has been tranfered to :', file.
Cheers
Kathir!~ -
How to download data from itab to Excel sheet..
Hi sap Experts,
I develop one report to download data from itab to excel sheet.I done it perfectly.
My doubt is in the excel sheet i need to put headings. and also at last i need to display total no.of Records.
Please help me how to do this.
Thanks in Advance....
Thanks and Regards
Siri.......................u can either use GUI_DOWNLOAD or the method below...just give a try
DATA:WK_string TYPE STRING.
DATA:Wk_EXT(4) TYPE C value '.xls'.
DATA:WK_path TYPE STRING.
DATA:wk_file_name type string.
data:wk_records type sy-tfill.
wk_file_name = 'Downloaded'.
describe table itab lines wk_records.
LOOP AT ITAB.
at first.
**Provide path
concatenate 'C:\' wk_file_name Wk_EXT into wk_path.
open dataset WK_path for output in text mode encoding default.
if sy-subrc 0.
write:'ERROR while opening dataset !!!!!!'.
EXIT.
endif.
CONDENSE wk_path.
**Heading Part
concatenate 'Part No' 'Description'
into wk_string separated by cl_abap_char_utilities=>horizontal_tab.
endat.
**Data ITAB
CONCATENATE ITAB-MATNR itab-maktx into wk_string
separated by cl_abap_char_utilities=>horizontal_tab.
transfer wk_string to WK_path.
at last.
clear wk_string.
Concatenate 'Records Passed:' wk_string into wk_string.
transfer wk_string to WK_path.
close dataset WK_path.
endat.
endloop. -
Download data from memory to Excel format.
Hi Gurus,
How can I download data from Memory( not in application server ) to Excel format ? Now I am using below function modules but not coming in proper format.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'LIST_TO_ASCI' "report to ASCII text
TABLES
listasci = listasci
listobject = listobject
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.Hi,
use this function module.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
Regards,
NNR. -
Hi,
My client wants me to download all the data in infotypes(std and custom) from production client. Then they will migrate this data to their new system. What would be the approach for downloading?
1. Through SE16N (we are not authorized to use SE11/SE16)? But couldnt save the data to local file when we use se16n.
even i get se11 authorization -> we can download only 64,000 records in excel. Do i need to split? or any other way?
2. Write custom progms to download data from infotypes.
3. Any data migration tools ?
4. Basis can do client copy?
Thanks!Hi,
U can write a report to donwload data, but my preferde way is to use the hr toolbox (Transaction PU12), it's very simple to use .
Here is a link to know how ti use it :
http://shafiq.us/sap/index.php?option=com_content&view=article&id=47:hr-interface-toolbox-pu12&catid=36:pu12tutorial&Itemid=14
i Hope it helps u. -
Automatically delete row data on interactive report
Hi All,
I would like to know it's possible to automatically delete row data on interactive report when the check box is checked.
I'm appreciating if you all can share your opinion or solution.
Thanks a lot in advance!
Best regards,
LizHi,
Why you like have checkbox ?
Is it more clear for user have image/button like my example ?
This is just example you need modify according your needs. Example do not have confirmation dialog.
Page HTML header
<script>
function delIRRow(p_pk_val){
var a = new htmldb_Get(null,null,'APPLICATION_PROCESS=DELETE_ROW');
a.addParam('x01',p_pk_val);
var r=a.get();
if(!r=='1'){alert('Delete operation failed!');}else{gReport.search('SEARCH');}
</script>On Demand process DELETE_ROW
BEGIN
delete from your_table where pk_col = APEX_APPLICATION.G_x01;
htp.p('1');
EXCEPTION WHEN OTHERS THEN
htp.p('0');
END;Change your_table and pk_col according your table name and pk column name.
Call javascript from image/button (IR column link) or checkbox, and send primary key value as parametter
Br,Jari
Edited by: jarola on Jul 5, 2010 11:58 AM -
How to download data from abap-ouput to excel sheet with logo
how to download data from abap-ouput to excel sheet with standard logo
Edited by: Harish Kasyap on Nov 18, 2008 8:19 AM
Edited by: Harish Kasyap on Nov 18, 2008 8:20 AMFor saving the report you can goto System -> List -> Save -> Local File -> Location where you want to save in your presentation server.
You can also give a option in your selection screen to save the file to Presentation server using FM GUI_DOWNLOAD.
Hope it helps.
Thanks,
Jayant. -
Exporting data from ALV Report...
Dear All,
While I am exporting data from ALV report to any other Format (Excel, Txt, HTML) it only export the data of last column, but the heading is comming properly and also the column heading is displaying properly.
So how to rectify it. (the report is Object Oriented).
Regards,
DahrmeshHi Davabap,
Refer this sample program "BCALV_GRID_VERIFY" . I hope it is problem with structure mismatching.
Otherwise can you paste your code ?
Regards,
Vicky
PS: Award points if helpful -
How to download data from a an external hard drive ?j
How to download data from an external hd ?
You need to copy the data onto your computer and transfer it via that (either via iTunes, or if the app that you want to transfer the data to supports, via wifi). Like the previous reply said, you can't do it directly without a computer being involved.
-
How to exctract data from a report to use it in a process
Hi! I would like to know how to exctract data from a report to use it in a process. Let's say that I have a report which have following fields: id_person, name_person. And then, I want to make a process which introduce the id_person (from report) into an associative tabel. How can I reffer to the fields from my report?
I was thinking about something like that( this should be the code from my process)
insert into associative_table(id_person)
values(id_person) or
insert into associative_table(id_person)
values(Report_name.id_person) but it doesn't work....
Thank you very much.Another option, use collections.
Create an on load process that loads all the rows you would have in your report into a collection:
begin
HTMLDB_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION(
p_collection_name => 'ASSIGNED_CALENDAR_CONTACTS' );
for x in (SELECT CONTACT_ID, CONTACT_FNAME, CONTACT_LNAME
FROM CONTACT
WHERE InStr( pkg_CalendarMgr.f_FetchContactIDsForDay( TO_DATE( :P3_CALENDAR_DT, 'YYYYMMDD' ), 'OF' ), CONTACT_ID ) > 0 )
loop
htmldb_collection.add_member(p_collection_name => 'ASSIGNED_CALENDAR_CONTACTS',
p_c001 => x.CONTACT_ID,
p_c002 => x.CONTACT_FNAME,
p_c003 => x.CONTACT_LNAME);
end loop;
end;
Then, instead of your report selecting from the table, have it select from the collection, this way your display will match what's in the collection:
SELECT c001, c002 || Chr(32) || c003 CONTACT_NAME, 'Remove' remove
FROM htmldb_collections
WHERE collection_name = 'ASSIGNED_CALENDAR_CONTACTS'
ORDER BY c003, c002
Then you can have a button on the form that steps through the collection, one element at a time and does whatever you want it to.
Maybe you are looking for
-
Connecting to ipod touch model router WRT160N
WRT160N does not have PW capabilities, so how can I connect my ipod touch. Also can not get to the site to change setting with IP address 192.1689.1 It does not let me continue pass the PW screen. Very frustrating I hope someone can help me
-
PO error regarding PR already ordered in full
Hi, I am making a PO with respect to a PR (whose account assigment is a WBS) but system is giving error that PR already ordererd in full. But i have checked the PR, there is no PO made out of that PR. What can be the problem?? Regards Kalpesh
-
Is spry compatible with flash video? I used the Dreamweaver wizard to insert a flash video. I inserted it into a spry region and changed the source of the flash video to be: src="{link}" however, this does not work. I have tried several other javascr
-
i recently got a brand new nokia X6. i tried updating the phone software n my computer got switched off during the process. now my phone wont start. when i press the on/off button it vibrates for some time and then stops.nothing else. is there anythi
-
PowerBook G4 12" 1.33ghz hangs on boot after installing Leopard
I have a Powerbook G4 40gig HD; 512 RAM, 1.33 processor which has a spinning icon on boot under an Apple symbol. I left the computer to work on booting for an hour. Yes, the clock spun for an hour. To solve the problem, I just installed Leopard; and