About downlaod the report table by Email
hi, everyone, I am studying about report from APEX, I knew about downlaod the table by .CSV \.HTML\EMAIL style, if I want to send the report to others,how to do I need? how to configure Email functiong on APEX. THANK YOU!
I am positive - see screenshots below of services on the SQL server:
Yes, reports work perfectly otherwise... Just cannot subscribe.
-Brad
Similar Messages
-
Hi Gurus,
While executing the program S_ALR_87013105 (Detailed Reports
For Sales Order : Plan/Actual Comparison ) system showing the selection log.
"Have no authorization for the report/table 7KU6_001 and 7KU6_002".
But for the user the authorization check through SU53 was successful.
Pl can any one suggest on this issue.
Thanks in advance,
VijayHi,
Contact your basis consultant to provide the missing authorisation. This is one of the authorisation object.
Regards,
Sankar -
How to send the Report output thru email
Dear All,
Is there a way to send the output of a abap report thru mail. I am sure it is there.
My report output is as following.
Emp Code : A01234
Name: XYZ
Email-ID: [email protected]
Dear XYZ,
You have Rs....... as outstanding. Please clear all dues by ..(date).
Thankyou,
asdf.
Please advice how to accomplish this. Send a sample source code if possible.
Regards,
Alok.Below you can find the sample code for sending the report as email.
Do use this as cross reference..
DATA: reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objhex LIKE solix OCCURS 10 WITH HEADER LINE,
listobject LIKE abaplist OCCURS 0 WITH HEADER LINE,
so_ali LIKE soli OCCURS 0 WITH HEADER LINE,
list_index LIKE sy-lsind VALUE 0,
packing_list LIKE sopcklsti1,
docdata LIKE sodocchgi1,
tab_lines TYPE i,
l_rqident LIKE tsp01-rqident,
att_type LIKE soodk-objtp.
objtxt[] = mail_text[].
IF p_skip_attach IS INITIAL. " INS SIR 3971 TODD
SYSTEM-CALL LOAD LISTLEVEL-STACK INTO wrkstack.
IF wrkstack[] IS INITIAL.
SKIP 2.
WRITE: /30 text-001 COLOR 5.
ENDIF.
ENDIF. " INS SIR 3971 TODD
Prepare Receipient List
REFRESH: reclist.
LOOP AT rcpnt_userids.
IF rcpnt_userids-l_adr_name NA '@'.
reclist-receiver = rcpnt_userids-usrnam.
reclist-rec_type = 'B'.
reclist-express = 'X'.
ELSE.
reclist-receiver = rcpnt_userids-l_adr_name.
reclist-rec_type = 'U'.
reclist-express = 'X'.
ENDIF.
APPEND reclist.
CLEAR reclist.
ENDLOOP.
Prepare Doc Data
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
docdata-obj_langu = sy-langu.
docdata-obj_name = 'ABAP Listing'.
docdata-obj_descr = subject.
docdata-sensitivty = 'O'.
Prepare OBJPACK
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
att_type = 'ALI'.
DESCRIBE TABLE so_ali LINES tab_lines.
READ TABLE so_ali INDEX tab_lines.
objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( so_ali ).
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = att_type.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = subject.
APPEND objpack.
SAP supplied API function module to send Message
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X' "used from rel. 6.10
TABLES
packing_list = objpack
object_header = objhead
contents_bin = so_ali
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_reclist = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE i398(00) WITH 'SAP Office API Error'
sy-subrc
ENDIF. -
Need to send the report output in email body.
Hi Friends,
I need to send the report output in body of the email but not as an attachment.
Requesting your suggestions. Please elaborated answers are expected.
Thanks & Regards,
S.Suresh Babu.If you are looking for same output to be available in the email body, i think this is not possible.
If you are just concentrated on the data, then you can do as below.
1. In your custom program, submit the actual report program via spool and by making use of that spool, read the spool content (We have function modules which can download the content from spool to the internal table), and by making use of this internal table, build the actual internal table as required which will be passed to email function module lets say SO_OBJECT_SEND etc..
2. You can make use of even LIST_TO_MEMORY and LIST_FROM_MEMORY function modules as well instead of spool, if you have data in the final internal table.
I am not sure, how can we handle in terms of logos if any.....or the data in the top of page related things...... -
Emailing the report to external email - Background job
HI
We are creating background job for running the report in background...but i want the output(report) to send an email in Excel format after the job run successfully...
Here the email is External email not SAP inbox..
Do you have any idea how to achieve this? any user-exit or even handling will help this?
Please let me know
Thanks
GoviIam not using custom program to send the email...I know about the FM SO_DOCUMENT_SEND_API1...to send email.
My requirement is to send email to user the report in Excel after the background job runs.
we will define the job in SM36 with variant for the report with program name and variant.
after the job runs the spool request will be created and we can also setup the output of the report to be sent to SAP inbox.
my question is to how to send the output of this report in Excel format to external email i.e. Gmail, yahoo etc...
I hope u r clear now...
Please let me know if you know the answer.
Thanks -
Send the Report output to email from spool
Hi All,
The following process which i am doing to send the report output(Executed in background) to my mail id.
I ran the report in Background and got the output in the spool. i opened the spool from the transaction SM37 and send the output to my external mail id via the following process
click Spool Request->forward-> send SAP data
here i am getting one POP up in there i gave my mail id and tick the check box on Express and click copy.
Now i received the output in my mail .
By doing the above process in the Quality server i am receiving the output in the mail as a PDF format that is correct.(Output is also correct).
But when i execute the same in production server i am receiving the output in the mail as HTML format. (output and format is totally wrong). I want to know why its coming as HTML format instead of PDF format.
Kindly help me regarding this.. Any configuration is there? If yes please let me know soon..
Regards,
Navaneeth...Hi,
use scon, double-click on SMTP, select internet
and compare the types of you both SAP-Systems.
Hope it helps.
Regards, Dieter -
Refresh the report table simultaneous
Hi All,
Even though I have hidden the apply button, the report tabs are not refreshed with the parameters in the bi publisher report. We have to refresh the report page manually for each tabs.Is there a way to refresh all the report tabs at once when we change the parameter in bi publisher 11g report.
Thanks,
SushilIf you removed the apply button, then the action of selecting a new parameter value automatically reruns the report. However, if you want to have the report run with the first value or default value selected, then you may want to set a default value and set the Auto Run property and then the report will be refreshed automatically.
Thanks,
Bipuser -
Send the report output in Email in the case of HR ABAP
Hi
how can i send the output of report in email when i am doin the HR ABAP report .
This report will be sheduled to run automatically every day.
If any body can help please send the answer.
Thanks.hi,
u have to use excel sheet attachment with mail.
u can put internal table data into excel sheet...
sample code...for attachment u have to use objbin..
clear objbin.
refresh objbin.
t<b>his is heading purpose</b>
CONCATENATE 'Name' 'PS No.' 'Grade' 'Location' 'OD' 'DOB'
INTO objbin SEPARATED BY con_tab.
CONCATENATE con_cret objbin INTO objbin.
APPEND objbin.
loop at it_email into wa_email.<<<<----intenal table
this is actual data from internal table
CONCATENATE
wa_email-emp_ename
wa_email-emp_pernr
wa_email-persk
loc
wa_email-od
wa_email-dob
INTO objbin SEPARATED BY con_tab.
CONCATENATE con_cret objbin INTO objbin.
APPEND objbin.
CLEAR objbin.
reclist-receiver = email.
reclist-rec_type = 'U'.
reclist-receiver = 'TC12'.
reclist-rec_type = 'B'.
APPEND reclist.
CLEAR objpack.
att_type = 'XLS'.<<<<<--attachment type
objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = att_type.
objpack-obj_name = 'Attachment'.
objpack-obj_descr = 'Report.xls'.
APPEND objpack.
*Function module to send email with an attachment
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
MESSAGE s899(m3) WITH 'Mail sent successfully!'.
ENDIF.
i hope it will be useful,
regards
vivek -
Downlaoding the Pivot table in PDF problem
Hi Gurus,
I have one pivot table with almost 40 columns. When I tried to download the dashboard into PDF, it is giving blank PDF. Can any one suggest me how to trouble shoot this problem.
Thanks
VNo. of columns in your report is too high here for your report to be downloaded in PDF. 100 % a blank PDF will be shown. The only way to get rid of this issue is to either create a duplicate report & reduce the no. of columns to just important columns in this duplicate report OR play with width size here. Playing with width will def distort your PDF ...So, try to make your business understand the functionality of OBIEE here.
Hope this helps -
How to downlaod the complete table contents
Hi,
I have got one Z table which has got around 108 columns/field ...now I need to download the contents/data of the table in a spreadsheet with all the fields and also need to download the fields of the table in the other spreadsheet.
so can you please guide me how can I do this.
Thanks,
Rajeevhi All.
I have tried the following code but it didn't transfer anything to the file and it displays the following message:
0 bytes transmitted, code page 1160
DATA: it_data LIKE ztable_data OCCURS 0 WITH HEADER LINE.
DATA: v_fullpath TYPE string,
v_length TYPE i.
SELECT * INTO TABLE it_data
FROM ztmztable_data .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = v_fullpath
filetype = 'DAT'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
filelength = v_length
TABLES
data_tab = it_data. -
About updating the data table's column binding to the database..
i have used
com.sun.jsfcl.data.DataCache.Row row =
dataTable1Model.getDataCache().get(dataTable1.getRowIndex());
row.setDeleted(true);
dataTable1Model.commit();
dataTable1Model.execute();to delete the selected row in datatable,
now i give the colum as inpu text. so if i click the update button in thr data table, i want to update the database by using data table, is it possible?
i am writing code like
rowset.absolute(datatable.getRowIndex() + 1);
rowsert.updateRow();but i think this is really stupid...
best regards
kojiwow...
thats my mistake...sorry
i know how to fix it...
koji -
Is it ok to query tables/views that are not in the reporting database?
I have a requirement to show when a resource submitted/modified each of the items in their time sheet I found that we can get in this information by going directly to the publishing table MSP_Assignment_Transactions but it is well documented that accessing
the publishing tables directly is not supported by Microsoft.
What other options are there to get the data from this table or for that matter any table other than the reporting tables that Microsoft would support?
Just as an FYI we do not want to write to them we just want to select the data we need.Even though accessing published DB is not supported for several reason, depending upon query you may start experiencing performance problems, if a later CU/SP alters the DB schema your reports may fail, but personally haven't experienced it in long
time,
Also in my personal experience if you are not acquiring lock on the table while querying, it doesn't harms but then there are downside of it
However as an alternate as Rod suggested use PSI to get the data and stage it in staging table or something and then use it for reporting or you can replicate the publish DB and use that for reporting purpose
Thanks | Sunil Kr Singh | http://epmxperts.wordpress.com -
The report format is:
<filename> <phase> <return code where appropriate>
here what is phase and return code where appropriate?
thanks
with regardsIf you are talking about using the Report Generation Toolkit, the report format for Word reports is .doc format, and for Excel spreadsheets is .xls format. These are binary files whose format is proprietary to Microsoft. If you're talking about an HTML report, obviously the generated file is a .html file that is viewable in a standard text editor. And for Standard Reports, there is no file generation (they get sent straight to the printer).
Hope this helps,
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
I placed in my program some features that generate a word report with some graphics and text using the report generation toolkit. When I'm in the developing system everything works. But the point is that I have to create an exe for a user and in testing this the report is not generated (and no error msg occurs). Does anyone handeled this problem already and could give me some hints? Thx.
Hi muchalla,
the report generation toolkit for MS office depends on the version of MS Office (not the OS). You must generate your application for the version of MS Office or use some dynamic technic.
The different versions of the llbs you need are on the CD in a subfolder called compability.
Here I have asked if some ideas to do this will work. Until now I haven't got the time to verify it by myself.
You will find here more information about using the report toolkit with applications.
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions -
How to refresh the reports in excel using macros ?
Hi All,
I am generating a report using MS Excel to connecting the Sql Server 2008 Database.
In the Sql Server the reporting table is a transaction table.
When open the Excel report and click the Refresh All button under the Data tab. Then the report takes the more time to load the data.
I need the less time to load the data in the Excel report.
How can you performance to increase the report to load the data quickly.
Thanks in Advance.
Thanks,
Sreekanth
sreekanth kancharlaHello,
First, this is a forum for SSRS = SQL Server Reporting Services, not for Excel or other topics of your question.
Do you have a filter in the query to get the data?
Olaf Helper
[ Blog] [ Xing] [ MVP]
Maybe you are looking for
-
How to I get iPhoto to stop opening in fullscreen mode?
Every time I open iPhoto, it opens in fullscreen mode. It's as if there is a setting that has been set for it to do it(though I've checked the settings and there's no such thing). I usually exit fullscreen mode in the usual way and it cooperates, but
-
How to display the rows in to columns and columns into rows?
DES:- I know by using pivot and unpivot you can convert rows into columns and columns into rows but i don't know how to write the syntax?
-
How do i fix error 4310 when burning a cd in itunes?
Hello to anyone who knows more about iTunes and window8 than I do. Am at my wits end at finding a solution to the issue of the error code 4310 when burning a cd in iTunes. Can anyone help, please??????
-
Info from applet back into web page?
I know that information can be passed to an applet via <param> tags, but can information be passed back to the page from an applet, perhaps to a javascript or php function?
-
I get two execution plans in the following: a. Execution Plan 0 SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=35262 1 0 SORT (AGGREGATE) 2 1 BITMAP CONVERSION (COUNT) 3 2 BITMAP INDEX (SINGLE VALUE) OF 'IDXWIPCURRENTFLG' b. Execution Plan 0