ZRS: Send report mail
Hello,
I 'm trying to send a report by e-mail. I have configured the SMTP setting on Configuration - Event and Messaging - SMTP Settings.
Also I have configured on Configuration - Reporting Services - Email notification settings with a valid sender and receipt addreses.
I logging on the Zenworks Report Server, select the report and click Send to - E-mail. I leave checked "used default settings" and Submit but NO e-mail is sent. I don't see any error, simply the e-mail message never appears.
I have tried to uncheck "used default settings" and specify all the addresses needed but the result is the same, nothings happens, no errors....
Can anyone tell me if I'm doing something wrong, or how I can configure the e-mail notification report option??
Thank you
Hello,
more info, I continued doing tests and the only way that it works is if I schedule the execution of a specific report and send it by e-mail and specify manually all the information (uncheck used default settings).
If I do the same but leave checked "used default settings" I get an error SMTP 501 - Syntax error. I have configured the SMTP setting on Configuration - Event and Messaging - SMTP Settings with my smtp server and default port 25. Also I have configured on Configuration - Reporting Services - Email notification settings with a valid sender and receipt addreses.
Can someone tell me what I'm doing wrong or if someone is using this funcionality tell me how you configure it ?
Thank you
Similar Messages
-
Ability to send report in excel format through ibot to mail
Hi,
we are using sibel analytics 7.7.1 ,.
my requirement is to send report in excel format as attachment through ibots to mails.
is it possible in 7.7. Default we can send as plain text, pdf, HTML format we can send the report . We need in excel format.
Please give advice
Thanks & Regards
AnjireddyHi,
we are using sibel analytics 7.7.1 ,.
my requirement is to send report in excel format as attachment through ibots to mails.
is it possible in 7.7. Default we can send as plain text, pdf, HTML format we can send the report . We need in excel format.
Please give advice
Thanks & Regards
Anjireddy -
Dear sir,
I try to send a mail via Report Builder, and I got the following error message:
REP-4201:Error occured while initialzing the mail subsystem.
REP-4202:There is the problem with
the mail System.
We use the Lotus Notes R5 mail, not Microsoft Outlook or exchange. Could the Report Builder support it?
Thanks.
LisaHi!
1. Make sure no one else has opened the same file.
2. Dont put image on your report.
later
Mircea Paciu (guest) wrote:
: In Report builder 3.0.5.8.0 I can't open some of my *.rdf
files.
: When trying to open no error message is generated and the "open
: dialog" reappears.
: Some other files can be normally open.
: Does anyone know how to solve this?
null -
How to send a mail with attaching a report
hi gurus,
my requirment is i have to send a mail with attaching the report of a program to the client.. is it possible? help me with sample code.
Thanks in advance.
Regards,
Indira DHi Indira,
plz check out this code below,
*& Report ZATTACH *
REPORT ZATTACH .
TABLES: ekko.
PARAMETERS: p_email TYPE somlreci1-receiver
DEFAULT '[email protected]'.
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
ebeln(10) TYPE c,
ebelp(5) TYPE c,
aedat(8) TYPE c,
matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
Retrieve sample data from table ekpo
PERFORM data_retrieval.
Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
perform populate_email_message_body.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_message
it_attach
using p_email
'Example .xls documnet attachment'
'XLS'
'filename'
changing gd_error
gd_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp aedat matnr
UP TO 10 ROWS
FROM ekpo
INTO TABLE it_ekpo.
ENDFORM. " DATA_RETRIEVAL
*& Form BUILD_XLS_DATA_TABLE
Build data table for .xls document
FORM build_xls_data_table.
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF.
CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_ekpo INTO wa_charekpo.
CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
wa_charekpo-aedat wa_charekpo-matnr
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables pit_message
pit_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = pit_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
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.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
*& Form POPULATE_EMAIL_MESSAGE_BODY
Populate message body text
form populate_email_message_body.
REFRESH it_message.
it_message = 'Please find attached a list test ekpo records'.
APPEND it_message.
endform.
" POPULATE_EMAIL_MESSAGE_BODY
<b>
Reward points if this helps,</b>
Kiran -
Send a mail from report 6i with his function "mail...."
I have tried to send a mail from report using "File" ---> "Mail.." Function that is avaible on report, but it send a file "*.eps" that is not readble with the normal reader.....
It is possible to send a PDF file ???
Thank 's .....
il vampiroHello Mike,
In Reports Builder 6i, Just change the Initial Value of the DESFORMAT System Parameter in the Object Navigator (under Data Model) to PDF, or any other format you want to mail the report in.
Thanks,
The Oracle Reports Team. -
Hi,
i am using SO_NEW_DOCUMENT_ATT_SEND_API1 function module to send a mail of my text file to the customer.
My problem is, the attachment file alignment is not correct. that means it is not aligning to the left or right.
i am using tables parameters as
contents_bin = objbin (attachment of mail)
contents_txt = objtxt ( contents of mail)
how can i rectify the alignment problem?
Regards,
Neptune.Mhi,
the below program will help you to send email with any kind of attachment.It is working fine for me.Just try it.
REPORT ZSAMPL_001 .
INCLUDE ZINCLUDE_01.
DATA
DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
DATA : file_name TYPE string.
data : path like PCFILE-PATH.
data : extension(5) type c.
data : name(100) type c.
SELECTION SCREEN
PARAMETERS : receiver TYPE somlreci1-receiver lower case.
PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.
*PARAMETERS : appfn(150) TYPE c LOWER CASE OBLIGATORY.
DATA : pos TYPE i.
DATA : len TYPE i.
AT SELECTION SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CLEAR p_file.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = p_file.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM ml_customize USING 'Tst' 'Testing'.
PERFORM ml_addrecp USING receiver 'U'.
PERFORM upl.
PERFORM doconv TABLES itab objbin.
PERFORM ml_prepare USING 'X' extension name.
PERFORM ml_dosend.
SUBMIT rsconn01
WITH mode EQ 'INT'
AND RETURN.
FORM
FORM upl.
file_name = p_file.
*file_name = appfn.
*OPEN DATASET appfn FOR INPUT IN BINARY MODE.
*DO.
READ DATASET appfn INTO ITAB.
IF SY-SUBRC EQ 0.
*APPEND ITAB.
ELSE.
*APPEND ITAB.
EXIT.
ENDIF.
*ENDDO.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_name
filetype = 'BIN'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
path = file_name.
CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
EXPORTING
complete_filename = path
CHECK_DOS_FORMAT =
IMPORTING
DRIVE =
EXTENSION = extension
NAME = name
NAME_WITH_EXT =
PATH =
EXCEPTIONS
INVALID_DRIVE = 1
INVALID_EXTENSION = 2
INVALID_NAME = 3
INVALID_PATH = 4
OTHERS = 5
ENDFORM. "upl
***INCLUDE ZINCLUDE_01 .
Data
tables crmrfcpar.
DATA: docdata LIKE sodocchgi1,
objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objhex LIKE solix OCCURS 10 WITH HEADER LINE,
reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
DATA: tab_lines TYPE i,
doc_size TYPE i,
att_type LIKE soodk-objtp.
DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
data v_rfcdest LIKE crmrfcpar-rfcdest.
FORM
FORM ml_customize USING objname objdesc.
Clear Variables
CLEAR docdata.
REFRESH objpack.
CLEAR objpack.
REFRESH objhead.
REFRESH objtxt.
CLEAR objtxt.
REFRESH objbin.
CLEAR objbin.
REFRESH objhex.
CLEAR objhex.
REFRESH reclist.
CLEAR reclist.
REFRESH listobject.
CLEAR listobject.
CLEAR tab_lines.
CLEAR doc_size.
CLEAR att_type.
Set Variables
docdata-obj_name = objname.
docdata-obj_descr = objdesc.
ENDFORM. "ml_customize
FORM
FORM ml_addrecp USING preceiver prec_type.
CLEAR reclist.
reclist-receiver = preceiver.
reclist-rec_type = prec_type.
APPEND reclist.
ENDFORM. "ml_customize
FORM
FORM ml_addtxt USING ptxt.
CLEAR objtxt.
objtxt = ptxt.
APPEND objtxt.
ENDFORM. "ml_customize
FORM
FORM ml_prepare USING bypassmemory whatatt_type whatname.
IF bypassmemory = ''.
Fetch List From Memory
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'LIST_FROM_MEMORY'.
ENDIF.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
COMPRESSED_SIZE =
TABLES
in = listobject
out = objbin
EXCEPTIONS
OTHERS = 1
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'TABLE_COMPRESS'.
ENDIF.
ENDIF.
Header Data
Already Done Thru FM
Main Text
Already Done Thru FM
Packing Info For Text Data
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'TXT'.
APPEND objpack.
Packing Info Attachment
att_type = whatatt_type..
DESCRIBE TABLE objbin LINES tab_lines.
READ TABLE objbin INDEX tab_lines.
objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
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 = whatname.
APPEND objpack.
Receiver List
Already done thru fm
ENDFORM. "ml_prepare
FORM
FORM ml_dosend.
SELECT SINGLE * FROM crmrfcpar WHERE consumer = 'CRM'.
v_rfcdest = crmrfcpar-rfcdest.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' DESTINATION v_rfcdest
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X' "used from rel. 6.10
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
CONTENTS_HEX = objhex
OBJECT_PARA =
object_parb =
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 'SO' TYPE 'S' NUMBER '023'
WITH docdata-obj_name.
ENDIF.
ENDFORM. "ml_customize
FORM
FORM ml_spooltopdf USING whatspoolid.
DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
Call Function
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = whatspoolid
TABLES
pdf = pdf
EXCEPTIONS
err_no_otf_spooljob = 1
OTHERS = 12.
Convert
PERFORM doconv TABLES pdf objbin.
ENDFORM. "ml_spooltopdf
FORM
FORM doconv TABLES
mypdf STRUCTURE tline
outbin STRUCTURE solisti1.
Data
DATA : pos TYPE i.
DATA : len TYPE i.
Loop And Put Data
LOOP AT mypdf.
pos = 255 - len.
IF pos > 134. "length of pdf_table
pos = 134.
ENDIF.
outbin+len = mypdf(pos).
len = len + pos.
IF len = 255. "length of out (contents_bin)
APPEND outbin.
CLEAR: outbin, len.
IF pos < 134.
outbin = mypdf+pos.
len = 134 - pos.
ENDIF.
ENDIF.
ENDLOOP.
IF len > 0.
APPEND outbin.
ENDIF.
ENDFORM. "doconv
FORM
FORM ml_saveforbp USING jobname jobcount.
Data
*data : yhead like yhrt_bp_head.
*DATA : ydocdata LIKE yhrt_bp_docdata,
*yobjtxt LIKE yhrt_bp_objtxt OCCURS 0 WITH HEADER LINE,
*yreclist LIKE yhrt_bp_reclist OCCURS 0 WITH HEADER LINE.
*DATA : seqnr TYPE i.
Head
*yhead-jobname = jobname.
*yhead-jobcount = jobcount..
*MODIFY yhrt_bp_head FROM yhead.
Doc Data
*ydocdata-jobname = jobname.
*ydocdata-jobcount = jobcount.
*MOVE-CORRESPONDING docdata TO ydocdata.
*MODIFY yhrt_bp_docdata FROM ydocdata.
Objtxt
*seqnr = 0.
*LOOP AT objtxt.
*seqnr = seqnr + 1.
*yobjtxt-jobname = jobname.
*yobjtxt-jobcount = jobcount.
*yobjtxt-seqnr = seqnr.
*MOVE-CORRESPONDING objtxt TO yobjtxt.
*MODIFY yhrt_bp_objtxt FROM yobjtxt.
*ENDLOOP.
RecList
*seqnr = 0.
*LOOP AT reclist.
*seqnr = seqnr + 1.
*yreclist-jobname = jobname.
*yreclist-jobcount = jobcount.
*yreclist-seqnr = seqnr.
*MOVE-CORRESPONDING reclist TO yreclist.
*MODIFY yhrt_bp_reclist FROM yreclist.
*ENDLOOP.
ENDFORM. "ml_saveforbp
FORM
FORM ml_fetchfrombp USING jobname jobcount.
*CLEAR docdata.
*REFRESH objtxt.
*REFRESH reclist.
*SELECT SINGLE * FROM yhrt_bp_docdata
*INTO corresponding fields of docdata
*WHERE jobname = jobname
*AND jobcount = jobcount.
*SELECT * FROM yhrt_bp_objtxt
*INTO corresponding fields of TABLE objtxt
*WHERE jobname = jobname
*AND jobcount = jobcount
*ORDER BY seqnr.
*SELECT * FROM yhrt_bp_reclist
*INTO corresponding fields of TABLE reclist
*WHERE jobname = jobname
*AND jobcount = jobcount
*ORDER BY seqnr.
ENDFORM. "ml_fetchfrombp
Regards,
Abdul Hakim -
Report only completion with Send E-mail button
We would like to set up a new Captivate course with the
purpose of familiarizing employees with a new system. Although we
may include some questions for review and reinforcement, we only
want to report that the learners have COMPLETED the course (by
using the "Send E-mail" button) -- we do NOT want to report the
score to the course administrator.
On the Preferences>Quiz>Reporting window, I've made
these selections:
- Enable reporting for this project
- E-mail
- Complete/Incomplete
- Slide views only
- Score (although I'd prefer to leave this blank, but that's
not an option)
- Report Score (this also I'd prefer to leave blank)
I'd actually prefer to leave those last two options blank,
because I don't want to report any "score" information; however,
I'm forced to select:
= either Score or Percent
= and either Report score or Interactions and score
(I am using Captivate 3)
Thank you for any insights or tips!
JanRick,
Thanks for your thoughts. I'm wondering -- if I remove
reporting and place the plain email option at the end of the
course, do we run the risk of some learners skipping to the end of
the course and sending the email, even though they may not have
worked through the whole course?
I've discovered that a course developer can edit the score
page (by de-selecting all of the options) so that it actually shows
nothing to the learner. This would mean that the learner would not
need to worry about a score. And I could place a text box on that
page telling the learner to click the Send E-mail button. Yet still
there's the issue of the course adminstrator receiving the score in
the email, when I just wanted her to receive the "completed"
report.
So, are you thinking that there's not a way to remove the
score results from the email that goes to the course administrator?
Actually, that's what I'm suspecting at this point, but perhaps
someone has discovered a method. And if not, I could work around
it, or perhaps the course administrator would be OK with the scores
-- she could just ignore them if she didn't need them.
I'm still just exploring various options. If you have anymore
thoughts, thanks.
--Jan -
Very urjent how to send report output in mail
hi experts,
how to send report output in mail which function module should i use wht parameters should i pass.
thanks in addavnce,
points to be awarded.CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = '026c'
copies = count
list_name = 'VATS_ASBUILT'
list_text = v_list
immediately = 'X'
release = 'X'
new_list_id = 'X'
expiration = days
line_size = 132
line_count = 65
layout = 'X_65_132'
* sap_cover_page = 'X'
* cover_page = 'X'
receiver = 'SAP*'
department = 'VATS'
no_dialog = 'X'
IMPORTING
out_parameters = params
valid = valid.
SUBMIT zppr_vats_asbuilt WITH p_aufnr EQ v_aufnr
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS params
AND RETURN.
SELECT SINGLE rqident FROM tsp01 INTO l_spoolno
WHERE rqtitle = v_list .
* convert report to PDF format
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = l_spoolno
no_dialog = 'X'
TABLES
pdf = l_ipdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
EXIT .
ENDIF.
Now comes the part to send the mail
try.
* -------- create persistent send request ------------------------
send_request = cl_bcs=>create_persistent( ).
clear document.
* -------- create and set document with attachment ---------------
* create document from internal table with text
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = text
i_length = '12'
i_subject = '' ).
*changing the content of the attachment
binary_content[] = l_iobjbin[].
*change the name of the PDF attachment
concatenate 'Build ID' s_buildid_i 'Rev' v_buildid_rev
into i_att_sub separated by space.
* add attachment to document
call method document->add_attachment
exporting
i_attachment_type = 'PDF'
i_attachment_subject = i_att_sub
i_att_content_hex = binary_content.
*setting the option to send an e-mail more than 50 characters
call method send_request->set_message_subject
exporting
ip_subject = t_sub.
* add document to send request
call method send_request->set_document
exporting
i_document = document.
* --------- set sender -------------------------------------------
* note: this is necessary only if you want to set the sender
* different from actual user (SY-UNAME). Otherwise sender is
* set automatically with actual user.
sender = cl_sapuser_bcs=>create( 'VATSUPPORT' ).
call method send_request->set_sender
exporting
i_sender = sender.
*Send the list based on receivers list obtained
loop at l_ireclist.
AD_SMTPADR = l_ireclist-receiver.
* --------- add recipient (e-mail address) -----------------------
* create recipient - please replace e-mail address !!!
recipient = cl_cam_address_bcs=>create_internet_address(
AD_SMTPADR ).
* add recipient with its respective attributes to send request
call method send_request->add_recipient
exporting
i_recipient = recipient
i_express = 'X'.
ENDLOOP.
call method send_request->set_status_attributes
exporting
i_requested_status = 'E'
i_status_mail = 'E'.
* To send the mail immediately
call method send_request->set_send_immediately( 'X' ).
* ---------- send document ---------------------------------------
call method send_request->send( ).
commit work. -
Report data send through mail in sap
Hi frds
I need help . when i execute report then data send to mail automaticaly by sap .
thanks & regards .
AnupHi,
firstly, you need to read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement].
Cheers -
How to send reports through mail in 11g
Hi,
How can we send reports through mails in 11g, please send me the steps,
ThanksHi,
Please refer the below links.
http://satyaobieesolutions.blogspot.in/2012/06/agent-mail-configuration-for-obiee-11g.html
http://satyaobieesolutions.blogspot.in/2012/06/obiee-11g-agent-mail-configuration-step.html
Hope this help's
Thanks,
Satya
Edited by: Satya Ranki Reddy on Jun 10, 2012 11:50 AM -
How can I send reports to the mail box of staff from my application.
My report was developed using reports 6<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gloria Akika ([email protected]):
How can I send reports to the mail box of staff from my application.
My report was developed using reports 6<HR></BLOCKQUOTE>
I think this will work if you have the default mail set up on your machine:
Q:\ORACLE\BIN\R25RUN32.EXE module=S:\TableDef.rep destype=mail desname=[email protected] userid=username/password@databasename
null -
Sending E-Mail to Microsoft Exchange From Reports-2.5
Hi,
I am trying to send the mail from Reports-2.5.
I am getting the Following Error:
REP-4201:Error occured while initialzing the
mail subsystem.There is the problem with
the mail System.
I am using Microsoft outlook98 in my system.
Thanks in advance.
Krishna.
nullThe solution is:
you have to add a into regedit file in hkey_local_machine\microsoft
the two following strings:
exchange and exchangeserver with value equal to registered. Reset
the PC and try.
Good luck
Stefania
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anantha Krishna ([email protected]):
Hi,
I am trying to send the mail from Reports-2.5.
I am getting the Following Error:
REP-4201:Error occured while initialzing the
mail subsystem.There is the problem with
the mail System.
I am using Microsoft outlook98 in my system.
Thanks in advance.
Krishna.<HR></BLOCKQUOTE>
null -
Sending e-mail to microsoft exchange from reports 6
hi,
i'm trying to send message from reports using micrsoft exchange
thanks in advanceThe solution is:
you have to add a into regedit file in hkey_local_machine\microsoft
the two following strings:
exchange and exchangeserver with value equal to registered. Reset
the PC and try.
Good luck
Stefania
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anantha Krishna ([email protected]):
Hi,
I am trying to send the mail from Reports-2.5.
I am getting the Following Error:
REP-4201:Error occured while initialzing the
mail subsystem.There is the problem with
the mail System.
I am using Microsoft outlook98 in my system.
Thanks in advance.
Krishna.<HR></BLOCKQUOTE>
null -
Sending PDF Mail from Reports 6I
Hi Everyone,
First of all i am sorry to raise an issue that has been discussed here many times but unfortunately i am encountering a strange problem to which you guys might to be able to share some light on it.
Now regards to my problem i have create one report which i being called from a form to this report i pass the parameter
DESNAME :- Email ID of the person whom i am sending the email.
DESTYPE :- MAIL
DESFORMAT :- PDF
BACKGROUND :- YES
I have overcome the problem of OUTLOOK(2003) security through a third party software ,whenever i run this report from the form on my machine either locally or from a remote location things work fine the emails are being sent to its destined mail ids in PDF format without any issue but whenever i try to run the same form from any of my colleagues machines either locally or remotely the OUTLOOK(2003) "MESSAGE" window opens thereby asking the user to PRESS the SEND button in order the mail to be sent.I would be glad if any one could guide as how to suppress this "MESSAGE" and send the mail automatically without any intervention.
I and colleagues are using the following version of softwares
Database : 10g
Developer Tools :- 6i (Forms & Reports)
OutLook:- MS OUTLOOK 2003.
Thanks in Advance
RegardsHi Everyone,
I have found one strange thing whenever i try to run the report(on my colleagues machine) that is being called from the forms independently from the Oracle Reports and set the BACKGROUND parameter to YES the first message from outlook appears "A program is trying to access e-mail addresses your have stored in outlook.Do you want to allow this?"
but the second message " A program is trying to send an email on your behalf" does appear at all.
It opens the "OUTLOOK MESSAGE WINDOW" asking for a user interaction to send the mail ,would be glad if anyone could light on as to why the BACKGROUND parameter is not working and if there any windows setting to allow this.
Regards -
Hello,
I have to change the sender-Adress from Report-Mail. Can somebody tell me how I have to configure the sender-Adress. At the moment I get the sender-Adress oracle@<servername> when destype=mail.
Thanks
HeikeYou can specify the e-mail address in the parameter FROM.
destype=mail FROM=[email protected]
Maybe you are looking for
-
What happens to encrypted data when the server is destroyed?
Backups to tape are encrypted with a certificate. But what happens if the backup server is destroyed? Do I lose all the backup data on those tapes? Can I backup the certificate or is it specific to that specific DPM server? In the case of a catastro
-
okay so my ipod got disabled, so i had to restore it and i was wondering how to get my music from itunes to my ipod?
-
Wont open pdf files, print, and lags excessively
pdf files show url but a completely black screen. when I hit Ctrl P, no print box comes up, nothing print. LAG. Worst ever! AND so many disabled add-ons. It wiped out my printer.
-
Set Date field value through Form datasource
Hello all, Has anyone set the value of a field of type Date through the form's datasource? If (Not Entrega = Nothing And NrDias > 0) Then Entrega = Entrega.AddDays(NrDias) ds.SetValue("U_data", ds.Offset, Entrega) End If End I
-
Various column views in one Pages doc?
Hello All, I want to create a document that has two columns on some pages and one column on others. Is this possible in Pages? I realize that I could create two separate documents, save them as PDFs and merge them in the correct order through Preview