Issue facing background email attachment.
Actually I have a problem when I tried to send an email to user from program. This is urgent one. Can I have any suggestions or solutions for this problem from you guys? plz . I welcome to get it as soon as possible. Also I tried to explain as better as I am. If you have any questions or I am not clear , I will explain you for your questions.
Let me explain the problem fully.
1) I need to create a selection screen field for user to enter the email id. - This is done
2)If the user enter the email id and execute the report then I have to email the current output of the report to entered( from selection screen) email id as a text. - This is done
3) Now the user needs the some choice to see the output in email. So he wants to add a check box in selection screen just below the "Email id" field in selection screen. So If the user enter the email id and execute the report without choosing the check box then he would able to see the report's output in the email as text. otherwise the user tick the check box and enter the email id and execute the report then we need to send the report's output as a attachment in the email. So when the person( selection screen email id's owner) opens his email he would like to see the attachemnt then If he opens the attachement he would see the report's output now.
This is the purpose the user needs the check box. - This is done
4) I use FM 'SO_NEW_DOCUMENT_ ATT_SEND_ API1' to send the email as a text to selection screen's email id. - This is done
5) Also I use FM 'SO_NEW_DOCUMENT_ ATT_SEND_ API1' to send the email as a attachment to selection screen's email id. - This is done
6) If the user wants to run this in background and send the email to selection screen's email id(without attachment), then I have to send the report's output to email id as a text. - This is done
7) If the user wants to run this in background and send the email to selection screen's email id(with attachment), then I have to send the report's output to email id as a attachment. - This is not done still. This is partially done. I can able to see the attachment . But If I open the attachment I am seeing only last page of the report's output. I didn't see any other previous pages. If it only one page report then it is ok. But my requirement is more than one page. So I need to send all pages to email as a attachment. I tried it many way. But I could not able to find the solution yet. But If I execute the report in foreground for attachment then I would able to see all the pages in attachment. But I have only problem in BACKGROUND.
I added 2 attachments here. 1) the codes which send the email to email id as a text. 2) the codes which send the email to email id as a attachment.
After look at the below attachment codes plz read this following line.
Also when I used to send the email as a attachment, I used the "SAVE_LIST" FM to catch the current list from memory and compress it through the FM "COMPRESSED_ LIST" and send these internal table records to the EMAIL FM "'SO_NEW_DOCUMENT_ ATT_SEND_ API1". I have read the "SAVE_LIST" FMs documentation too. I have seen that this is not suitable for background emailing. So I think I need any other FMs used here instead of this particular FM or else I would expect any other solutions for this problem.
1) *
DATA: DOC_DATA LIKE SODOCCHGI1,
RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
PACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
TXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
CNT TYPE I,
TEXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
TAB_LINES LIKE SY-TABIX.
Add all email id's from selection screen in the mailing list one by
one
LOOP AT M_EMAIL.
RECEIVERS-RECEIVER = M_EMAIL-LOW.
RECEIVERS-REC_TYPE = 'U'.
APPEND RECEIVERS.
CLEAR RECEIVERS.
ENDLOOP.
there is no entry in the input then don't call the FM
CHECK NOT RECEIVERS[] IS INITIAL.
DO.
CNT = SY-INDEX.
READ LINE SY-INDEX.
IF SY-SUBRC <> 0. EXIT. ENDIF.
TEXT-LINE = SY-LISEL.
APPEND TEXT.
IF CNT > 5500.
REFRESH TEXT.
CLEAR TEXT.
TEXT-LINE = 'Report too large for SAP.'.
APPEND TEXT.
EXIT.
ENDIF.
ENDDO.
DOC_DATA-OBJ_DESCR = 'Report as a text'.
DESCRIBE TABLE TEXT LINES TAB_LINES.
DOC_DATA-DOC_SIZE = TAB_LINES * 255.
Creation of the entry for the compressed document
CLEAR PACK-TRANSF_BIN.
PACK-HEAD_START = 1.
PACK-HEAD_NUM = 0.
PACK-BODY_START = 1.
PACK-BODY_NUM = TAB_LINES.
PACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
CLEAR OBJPACK.
object for showing the report's text
OBJTXT = ' Report as a text'.
APPEND TXT.
CLEAR TXT.
New FM to mail the user & directly to email id
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_DATA
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = PACK
OBJECT_HEADER = TXT
CONTENTS_TXT = TEXT
RECEIVERS = RECEIVERS.
COMMIT WORK.
2)
Structures for recipient addresses
Structures and internal tables for the send data
DATA: pack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: head LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: bin LIKE solisti1 OCCURS 0 WITH HEADER LINE.
DATA: txt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
DATA: doc_chng LIKE sodocchgi1.
DATA: tab_lines LIKE sy-tabix.
DATA: user_address LIKE sousradri1 OCCURS 1 WITH HEADER LINE.
DATA: sent_to_all LIKE sonv-flag.
clear listobject[].
clear compress_list[].
CALL FUNCTION 'SAVE_LIST'
EXPORTING
list_index = sy-lsind
TABLES
listobject = listobject
EXCEPTIONS
list_index_invalid = 1.
IF sy-subrc = 1.
WRITE: 'Error in save_list.'.
ENDIF.
It's always necessary to compress the list
CALL FUNCTION 'TABLE_COMPRESS'
TABLES
in = listobject
out = compress_list
EXCEPTIONS
compress_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
WRITE: 'Error in table_compress.'.
ENDIF.
*move list to office table objbin
MOVE compress_list[] TO bin[].
Create the document which is to be sent
doc_chng-obj_name = 'List'.
doc_chng-obj_descr = 'Report list'.
DESCRIBE TABLE txt LINES tab_lines.
READ TABLE txt INDEX tab_lines.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( txt ).
Fill the fields of the packing_list for the main document:
CLEAR pack-transf_bin.
pack-head_start = 1.
pack-head_num = 0.
pack-body_start = 1.
pack-body_num = tab_lines.
pack-doc_type = 'TXT'.
APPEND pack.
Create the attachment (the list itself)
DESCRIBE TABLE bin LINES tab_lines.
It is binary document
MOVE compressed_list[] to bin[].
pack-transf_bin = 'X'.
pack-head_start = 1.
pack-head_num = 0.
pack-body_start = 1.
pack-body_num = tab_lines.
pack-doc_type = 'ALI'
pack-obj_name = 'Attachment'.
pack-obj_descr = 'Report for email attachment'.
pack-doc_size = tab_lines * 255.
APPEND pack.
Add all email id's in the mailing list one by one
LOOP AT M_EMAIL.
RECLIST-RECEIVER = M_EMAIL-LOW.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
CLEAR RECLIST.
ENDLOOP.
CHECK sy-subrc = 0.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = sent_to_all
TABLES
packing_list = pack
object_header = head
contents_bin = bin
contents_txt = txt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
Hi,
If you are running thru background change the code like this way
submit yXXXXXXXX exporting list to memory
with p_docno = xdocno
and return.
call function 'LIST_FROM_MEMORY'
tables
listobject = report_list
exceptions
not_found = 1
others = 2.
loop at report_list.
move report_;list to objtxt.
append objtxt.
endloop.
objpack-doc_type = 'TXT'.
describe table objtxt lines tab_lines.
objpack-body_start = v_lines.
objpack-body_num = tab_lines.
objpack-doc_size = tab_lines * 255.
objpack-obj_descr = w_docno_temp.
append objpack.
clear objpack.
doc_chng-obj_name = w_docno.
doc_chng-obj_descr = w_subject.
reclist-receiver = to_smtp_addr.
reclist-rec_type = 'U'.
reclist-express = 'X'.
append reclist.
aRs
Similar Messages
-
Issue with excel email attachment after upgrade
Hi ,
We have recently upgraded from ECC 5.0 non-unicode to ECC 6.0 unicode version.
An existing program converts the data in an internal table into HTML code and then sends this as an email attachment(XLS format) using the FM SO_NEW_DOCUMENT_ATT_SEND_API1.
Now if the mail attachment is sent from the non-unicode system , excel converts the HTML code and shows the data perfectly but when i open the mail attachment from the unicode system, the HTML code sits in a cell of the excel and therefore data is not visible.If i wish to see the data, i will have to cut the data from the cell and paste it .
I anticipate that this is because of some issue with the unicode.
Your inputs towards the issue resolution are highly appreciated.
Thanks,
Avanish JoshiI found the note 1151258 and as mentioned in it, i used the BCS class for sending excel attachments and it worked.
My sincere apologies for not replying to those who posted queries to this question.
Thanks. -
AR Invoice XMLP Report does not show as pdf in email Attachment
Hi,
I have developed a AR Invoice Report using XMLP. My requirement is to generate the output in pdf and also send the file as an attachment
to the recipient email address with specified subject and body.
I have developed the xmlp report rtf template and the report.rdf such that
After report in report.rdf :
function AfterReport return boolean is
v_conc_request_id NUMBER;
p_email_address VARCHAR2(100);
v_set_layout_option boolean;
BEGIN
v_set_layout_option := fnd_request.add_layout('APPLN SHORT NAME','PROG_SHORT_NAME for report file','EN','US','PDF');
IF (NOT v_set_layout_option) THEN
srw.message( 10001,'Unable to apply template');
ELSE
srw.message( 10001,'template applied');
v_conc_request_id := FND_REQUEST.SUBMIT_REQUEST( application => 'APPLN SHORT NAME',
program => 'PROG_SHORT_NAME for prog file',
description => NULL,
start_time => TO_CHAR(SYSDATE, 'DD-MON-YY HH:MI:SS'),
sub_request => FALSE,
argument1 => :p_email_address,
argument2 => :P_CONC_REQUEST_ID,
argument3 => NULL,
argument4 => NULL .... upto argument100 );
END IF;
commit;
return (TRUE);
SRW.MESSAGE (10001,'CONC REQ ID:' ||v_conc_request_id );
SRW.MESSAGE (10001,'Email Address:' ||p_email_address );
srw.user_exit( 'FND SRWEXIT' );
end;
The FND_REQUEST.SUBMIT_REQUEST will call another Host program which will send an email with the specified Body and Subject.
The report pdf output will be an attachment along with the email.
Issues faced
When I click on the Report Concurrent Program output, I can see the XMLP pdf output, but when the pdf file comes to my email address, it does not open,
because, it is actually an xml file with the extension of pdf.
I am actually picking up the file output from fnd_concurrent_requests. When I check the file it is xml, but in the conc manager it opens as a pdf,
Is there a way by which I can pick up the pdf file and not the xml file. Is there any other location where this pdf file gets stored, which I see in the Conc manager output window, but not in the fnd_concurrent_requests table.
I also notice that the pdf file gets generated in the Conc manager output window, irrespective of whether or not I use the code for
fnd_request.add_layout.
But when I use : fnd_request.add_layout, the Host program ends with a Warning, whereas if I don''t use it, then it completes successfully.
But still the problem of the attachment persists.
Warning
------------- 1) PUBLISH -------------
Beginning post-processing of request 435302 on node NACRTCDELL005 at 31-OCT-2008 11:37:12.
Post-processing of request 435302 failed at 31-OCT-2008 11:37:12 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
------------- 2) PRINT -------------
Not printing the output of this request because post-processing failed.
Finished executing request completion options.
Concurrent request completed
Current system time is 31-OCT-2008 11:37:12
Can someone please respond to this issue asap, the requirement is very critical.
Thanks to all1. Bursting: You need to call the standard bursting program in the after report trigger, request id is the parameter,
function AfterReport return boolean is
G_REQUEST_ID number;
begin
G_REQUEST_ID := fnd_request.submit_request('XDO',
'XDOBURSTREP',
'XML Publisher Report Bursting Program',
SYSDATE,
FALSE,
:P_CONC_REQUEST_ID,
NULL,
Null,
Null,
Null,
NULL,
NULL,
NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
COMMIT;
SRW.USER_EXIT('FND SRWEXIT');
return (TRUE);
Exception
when others then return true;
end;
You need to create Bursting control file (.xml) and upload in the data definitions. If you want only one file as attachment, (<xapi:request select="/MODULE1/LIST_G_EMPNO/G_EMPNO"> here reduce the tree length) so only one file will be send as an email.
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type ="bursting">
<xapi:request select="/MODULE1/LIST_G_EMPNO/G_EMPNO">
<xapi:delivery>
<xapi:email id ="123" server="smtp_serverl.net" port="25"
from="[email protected]" reply-to="[email protected]">
<xapi:message id="123" to="[email protected]" cc="" attachment="true"
content-type="text/html" subject="Purchase Order Number: ${EMPNO}">Please
see attached Purchase Order File: ${EMPNO}</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="PO_${EMPNO}" output-type="pdf" delivery="123">
<xapi:template type="rtf" location="xdo://CUS.TEST_BURST_1.en.US/?getSource=true"
filter=""></xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
2. another way is,
in your after report trigger, call another program. In that program, wait until your original program completes. After it is done, get the path and PDF file name, call your host program, passing the PDF file name as parameter. You need to modify your host program, a bit. -
I had this problem of not being able to open some files a couple of years ago and eventually was able to fix it but i can't remember how. Any help would be grateful.
The following document should help: Error: Adobe Reader could not open '*.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and was not correctly decoded.)
Please update this thread if your issue is resolved.
Thanks,
Shashi -
Acrobat XI email attachment does not appear to work with Outlook 2013 64 bit
When attempting to send email from Acrobat, the following Microsoft Office Outlook 2013 64 bit error message is received:
"Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default email client."
Naturally, Outlook was set as default client and then reset for good measure. I did both Outlook and Acrobat repairs and have the latest 11.0.2 installed. All other internal Office 2013 email applications work as well as seemingly all other embedded Acrobat funcitions with Office 2013 work well. Office 2010 64 bit and Acrobat X worked fine. I upgraded to Office 2013 64 bit and had the problem with Acrobat X. I then upgraded to Acrobat XI and the issue remained.
Most importantly, I intalled Office 2013 64 bit on my laptop with Acrobat X. An the email attachment function works perfectly.
So, is there some sort of corrupt MAPI file that I have to overwrite on my desktop that the Ofice and Acrobat repair functions do not fix?
Thanks,
JoeI am sorry. In my haste, not only did I attach the link the wrong way, but I also did not specify which solution worked. My problem was a Click to Run issue. The portion of the thread that deals with the problem is:
"HurdleRemove replied on May 16, 2013
I created a solution for this problem for 64 bit Windows 8 where Outlook 2013 was installed as Click-To-Run.......
......A registry edit will fix the problem with Outlook 2013 click to run installations and enable Outlook to be set as the default mail client. This registry edit will for many third party programs eliminate the error "Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client." It worked to resolve the problem where Adobe Acrobat was generating this error.
The registry edit is here for Office 2013 64 bit click to run installations that will enable Outlook 2013 to be recognized by third party applications:
1. Create registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook
2. Create String value:
Bitness
3. Set the String value for Bitness to:
x64
This registry edit is an essential element necessary to resolve the click to run problem that prevents Outlook 2013 from being set as the default mail client. Although it worked with Adobe Acrobat, it will not completely resolve the problem for some third party applications like Kerio Outlook Connecter where the software developer has a web site that includes extra steps necessary for a full resolution for the Kerio product. The Kerio web site includes this registry edit in the context of resolving the Office 365 problem. However, the registry edit works with Office 2013 desktop as well. A similar register edit could likely be made for 32 bit versions but the registry path would not include Wow6432Node. I do not have a 32 bit machine and cannot test a 32 bit solution." -
Email attachment with .txt file (first line blank in the file)
Hi all ,
Iam trying attach .txt file to email , the file that iam accessing from server . But first line blank (extra) even though i dont have blank line in original file .Can any help me out to resolve this issue?
<u>Example</u> original file
12345 aa pq
<u>Email attachment file</u>
-> This line
12345 aa pq
This is my code:
REPORT ZTEST_FILE .
DATA:BEGIN OF t_upload occurs 0,
matnr LIKE zwplcsmev-matnr,
zwgehrrg LIKE zwplcsmev-zwgehrrg,
zwgehrct LIKE zwplcsmev-zwgehrct,
zwgbev LIKE zwplcsmev-zwgbev,
zwpldt LIKE zwplcsmev-zwpldt,
zwacdt LIKE zwplcsmev-zwacdt,
END OF t_upload.
*DATA: maildata type sodocchgi1.
*DATA: mailtxt type table of solisti1 with header line.
*DATA: mailrec type table of somlrec90 with header line.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA:REC(80) TYPE C.
DATA g_mask(20) TYPE c VALUE ',., ..'.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA:P_ERROR(3).
DATA:P_REFO(3).
DATA: gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
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.
selection-screen begin of block b1 with frame title text-001.
parameters:p_file type localfile.
parameter:p_email type ad_smtpadr.
selection-screen end of block b1.
--At Selection-Screen- -
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'TB_LIMIT_WS_FILENAME_GET'
EXPORTING
def_filename = p_file
mask = g_mask
mode = 'S'
title = 'INPUT FILE'
IMPORTING
filename = p_file
EXCEPTIONS
selection_cancel = 1
selection_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
START-OF-SELECTION.
PERFORM process_file.
if p_error = 'X' AND P_REFO <> 'X'.
PERFORM populate_message_body.
ENDIF.
IF P_REFO = 'X' AND P_ERROR <> 'X'.
it_message = 'Please find Attached file'.
APPEND it_message.
PERFORM send_attachment tables it_message
it_attach
using p_email
'Crest to Plc Data'
'TXT'
p_file
changing gd_error
gd_reciever.
ENDIF.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
END-OF-SELECTION.
*& Form process_file
text
FORM process_file.
*CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
DATA :l_path TYPE string.
l_path = p_file.
CONSTANTS: con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB
con_cret type c value cl_abap_char_utilities=>newline.
OPEN DATASET P_FILE FOR INPUT IN TEXT MODE encoding default.
if sy-subrc = 0.
do.
read dataset p_file into IT_ATTACH.
IF SY-SUBRC NE 0 .
EXIT.
ELSE.
T_UPLOAD = IT_ATTACH.
CONCATENATE con_cret it_attach INTO it_attach .
append it_attach.
clear it_attach.
P_REFO = 'X'.
APPEND T_UPLOAD .
clear t_upload.
ENDIF.
ENDDO.
else.
p_error = 'X'.
ENDIF.
ENDFORM. "process_file
*& Form populate_message_body
text
FORM populate_message_body.
w_doc_data-obj_name = 'TEST'.
w_doc_data-obj_descr = 'Crest to Plc Data'.
w_doc_data-obj_langu = sy-langu.
it_message = 'File Not Found'.
APPEND it_message.
t_receivers-receiver = p_email.
t_receivers-rec_type = 'U'.
append t_receivers.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = w_doc_data
document_type = 'RAW'
put_in_outbox = 'X'
tables
object_header = it_message
object_content = 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.
if sy-subrc = 0.
commit work.
SUBMIT rsconn01 USING SELECTION-SET 'SAP&CONNECTINT' AND RETURN.
else.
MESSAGE s027(vv) WITH 'E-mail not sent'.
endif.
ENDFORM. "populate_message_body
*& Form send_attachment
text
FORM send_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.
w_doc_data-doc_size = 1.
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[].
clear t_attachment.
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.
if sy-subrc = 0.
commit work.
SUBMIT rsconn01 USING SELECTION-SET 'SAP&CONNECTINT' AND RETURN.
else.
MESSAGE s027(vv) WITH 'E-mail not sent'.
endif.
Populate error return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM. "send_attachmentJust copy the code below and execute . I just checked and found the exact values on attachment with no blank lines. This is more simple than the one u have written , just include ur data upload logic . For ITAB values to be attached i have written a simple logic to retrive from EKPO. Just copy this code and execute. u will understand then.
I understand that ur initial requirement was to attach the file directly and not to upload and attach. If u still want to go for the old requirement then check out the code(2nd program of the two that i have sent) that i have sent u on ur previous post.
REPORT ZEMAIL_ATTACH .
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_TXT_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
perform populate_email_message_body.
Send file by email as .TXT speadsheet
PERFORM send_file_as_email_attachment
tables it_message
it_attach
using p_email
'Example .TXT documnet attachment'
'TXT'
'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_TXT_DATA_TABLE
Build data table for .txt document
FORM build_txt_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 SPACE . "con_tab.
CONCATENATE con_cret it_attach INTO it_attach." Use this if req.
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 SPACE ."con_tab.
CONCATENATE con_cret it_attach INTO it_attach." Use this if req.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_txt_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
execute this code and i hope that will help u.
regards,
Barath. -
Convert spool to PDF and send as email attachment
When i try to convert SAP spool to PDF and send it as email attachment, size of PDF document becomes large as compared to size of the PDF cocument i download using the same spool.
I am using following FMs.
CONVERT_ABAPSPOOLJOB_2_PDF to convert spool to PDF
and
SO_NEW_DOCUMENT_ATT_SEND_API1 to send email with attchment.
some times size of attchment exceeds 2MB and email results in error in SAP connect (SOST).
Any idea on how to compress the PDF attchment??
ThanksHi Venkat,
Can you plesae assist me.
I have a requirement to convert spool to pdf
send an email to users
issue is that attachement is big cant go through
I have used compress, but when I open the pdf file error that file was not correclty decoded
please assist, anyone -
How to download email attachment video file or document file
Hello
i am unable to download MP4 video file from my gmail account to my Iphone6 plus.
When i just press on email attachment it plays on line but no option for downloading
only Open,Add in reading list & Copy options showing
Do you have some solution for thisHello jlremington and welcome to the forums
Depending on the email integration type and software running on the device
will determine if you are able to use this feature. Can I get the version
of software that is on the device? This can be found under Options -
About. Also what type of email account are the messages coming
from? Are you using a BES account or BIS account? If your are using a BIS account what type of
integrations are you using? POP, IMAP, OWA, Gmail, Yahoo, Hotmail etc…
Message Edited by SmoothRider on 07-14-2009 02:32 PM
-SR
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)! -
Send PDF as email attachment using Outlook 2011 ERROR
Every time I try to send a PDF as an email attachment, I get the following error:
"An error occurred while trying to create a mail document. Acrobat is unable to complete your request."
Prior to getting this error, every time I sent an email Adobe would open the default Mail program on the mac. I opened mail and changed the preference to use Outlook 2011 as the default mail program, but this did not correct the error.
Any ideas?
Thanks!AmbooS wrote:
This is a known issue with Mac Outlook 2011 which is an unsupported version for Acrobat X. This will be supported in the next release.
If adobe was smart it would be added in the update rather than in than in AcrobatXI And while at it they need to add support for SeaMonkey and Thunderbird as well. You've been ingnoring of Dissing Mozilla Products since OSX has been out. -
Send .pdf as email attachment not under tools in 11.0.9
The option to send .pdf as an email attachment is not under the tools menu as it has been in previous versions. Is this an option that has been removed, or is this an error in the installation?
This does not solve the issue. I have updated my system to version 11.0.10 and the feature is still missing.
-
Tried to download Firefox 4 for Macintosh three time and could not prevent Adobe Reader from interfering.
The following document should help: Error: Adobe Reader could not open '*.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and was not correctly decoded.)
Please update this thread if your issue is resolved.
Thanks,
Shashi -
How to retrive the archived (in PDF) smartform as a email attachment.
Hi ,
I have a requirement where the smartform is archived in PDF mode and I have to retrieve the archived smartfrom and send the mail with PDf attachment.
I referred the sdn forum for the same and I could some posts posted earlier and quite a few are solved. I implemented the sample code provided by some of the posts and I still get the same error when I try to open the mail/attachment in SOST transaction. But I didnt understand what exactly they did to get away with the error when we try to open the attachment.
Please help me with the correct code to get this issue solved.
Thanks a lot in advance.
Regards,
NareshHi Sim,
The Error says:
"Adobe reader could not open 'InvoiceDetails_20110228094610.709_X.pdf' because it is either not a supported file or because the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decorded).
Below is the sample code that I got from one of the forum postings. I implemented the same and got the same error that the earlier posting was referring. From that step, I didnt know what to do further.
*// Internal Table Declarations
DATA : li_toa01 TYPE TABLE OF toa01,
li_archivobject TYPE TABLE OF docs,
li_binarchivobject TYPE TABLE OF tbl1024,
li_objcont TYPE TABLE OF soli,
li_receivers TYPE TABLE OF soos1.
*// Work Area Declarations
DATA : lwa_toa01 TYPE toa01,
lwa_objcont TYPE soli,
lwa_receivers TYPE soos1,
lwa_archivobject TYPE docs,
lwa_binarchivobject TYPE tbl1024.
*// Variable Declaration
DATA : lv_length TYPE num12,
lv_binlength TYPE num12,
lv_buffer TYPE xstring,
lv_x TYPE i.
DATA : wa_objbin TYPE solisti1,
i_objbin TYPE TABLE OF solisti1,
wa_objtxt TYPE solisti1,
i_objtxt TYPE TABLE OF solisti1.
DATA : wa_doc_chng TYPE sodocchgi1,
w_l1 TYPE i.
DATA : wa_objpack TYPE sopcklsti1,
i_objpack TYPE TABLE OF sopcklsti1.
DATA : wa_reclist TYPE somlreci1,
i_reclist TYPE TABLE OF somlreci1.
CALL FUNCTION 'ARCHIVOBJECT_GET_TABLE'
EXPORTING
archiv_id = 'ZF'
document_type = 'PDF'
archiv_doc_id = 'DF88D06227DFAEF1A31D0050568361B1'
* ALL_COMPONENTS =
* SIGNATURE = 'X'
* COMPID = 'data'
IMPORTING
length = lv_length
binlength = lv_binlength
TABLES
archivobject = li_archivobject
binarchivobject = li_binarchivobject
* EXCEPTIONS
* ERROR_ARCHIV = 1
* ERROR_COMMUNICATIONTABLE = 2
* ERROR_KERNEL = 3
* OTHERS = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT li_binarchivobject INTO lwa_binarchivobject.
CONCATENATE lv_buffer lwa_binarchivobject-line INTO lv_buffer
IN BYTE MODE.
ENDLOOP.
lv_x = 0.
DO.
wa_objbin-line = lv_buffer+lv_x.
APPEND wa_objbin TO i_objbin.
lv_x = lv_x + 255.
IF lv_x GT lv_binlength.
EXIT.
ENDIF.
ENDDO.
wa_objtxt = 'Test Mail'.
APPEND wa_objtxt TO i_objtxt.
CLEAR wa_doc_chng.
wa_doc_chng-obj_name = 'Invoice Details'.
wa_doc_chng-obj_descr = 'Invoice Details'.
DESCRIBE TABLE i_objtxt LINES w_l1.
READ TABLE i_objtxt INTO wa_objtxt INDEX w_l1.
wa_doc_chng-doc_size = ( w_l1 - 1 ) * 255 + strlen( wa_objtxt ).
CLEAR wa_objpack-transf_bin.
wa_objpack-head_start = 1.
wa_objpack-head_num = 0.
wa_objpack-body_start = 1.
wa_objpack-body_num = w_l1.
wa_objpack-doc_type = 'PDF'.
APPEND wa_objpack TO i_objpack.
CLEAR wa_objpack.
wa_objpack-transf_bin = 'X'.
wa_objpack-head_start = 1.
wa_objpack-head_num = 1.
wa_objpack-doc_type = 'DAT'.
wa_objpack-body_num = w_l1 .
wa_objpack-doc_size = w_l1 * lv_binlength .
wa_objpack-obj_name = 'TEST'.
wa_objpack-obj_descr = 'Naresh'.
APPEND wa_objpack TO i_objpack.
wa_reclist-receiver = -->emailaddress given.
wa_reclist-rec_type = 'U'.
APPEND wa_reclist TO i_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
* IMPORTING
* SENT_TO_ALL =
* NEW_OBJECT_ID =
TABLES
packing_list = i_objpack
* OBJECT_HEADER =
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_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.
ENDIF. -
Hi Friends
I have an issue like i need to send the internal table data to distribution list as an attachment.. I am able to send the email attachment to the list but in the Parameter OBJBIN i hardcoded the sy-uname sy-repid to make sure that along with the output prog name and userid also gets displayed in the attachment..
My issue is Like while debuggin the FM SO_NEW_DOCUMENT_ATT_SEND_API1 i am getting the data line by line but in output attachment i am getting it as a single line..
I want to see the output with prog name and sy-repid line one after other..
Kindly help me in solving this issue
Thanks in advance,
KishoreHi Srinivas,
Thanks a lot for your response. Actually i already have tat piece of code which u have mentioned in your scrap.
This is my code
for eg.
CONCATENATE '0101010101' 'HI HOW ARE U' INTO objbin
SEPARATED BY CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
APPEND OBJBIN.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'PURCHASEORDERS'.
APPEND OBJHEAD.
Creation of the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'HTM'.
OBJPACK-OBJ_DESCR = 'COST SWEEPER.htm'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
Completing the recipient list
clear reclist.
refresh reclist[].
reclist-receiver = 'Z_FI_SYS_ACT'.
reclist-rec_type = 'C'.
APPEND reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
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.
ENDIF.
Thanks a lot
Kishore -
Send report as an email attachment from a page
Hi
I have page which generates a report based on two filters. After the report is generated, 'I want to send that report as an email attachment from that page, when button is clicked "Send Email"
Thanks a lot in advance.'I accomplished functionality I believe similar to what you are looking for in an application once by querying a report into an html e-mail message. This approach gives you all kinds of flexibility. At least this would be one way of doing it. I am going to include a simplified sample here of what the script looked like. I hope this is at least helpful.
DECLARE
l_body_html CLOB;
BEGIN
l_body_html :=
'<html>
<head>
<style type="text/css">
body{font-family: Arial, Helvetica, sans-serif;
font-size:9pt;
margin:30px;
background-color:#ffffff;}
</style>
</head><body>
' || UTL_TCP.crlf;
l_body_html :=
l_body_html || '<table border="1"><tr bgcolor="#999999">
<th width="75" scope="col">
Department
</th>
<th width="75" scope="col">
Course
</th>
</tr>' || UTL_TCP.crlf;
FOR c1 IN (SELECT some_table.DEPARTMENT, some_table.COURSE FROM some_table)
LOOP
l_body_html :=
l_body_html || '<tr><td>
' || c1.DEPARTMENT || '
</td>' || UTL_TCP.crlf;
l_body_html := l_body_html || '<td>
' || c1.COURSE || '
</td>' || UTL_TCP.crlf;
l_body_html := l_body_html || '</tr>' || UTL_TCP.crlf;
END LOOP;
l_body_html := l_body_html || '</table>' || UTL_TCP.crlf;
apex_mail.send(
p_to => '<some email address>',
p_from => '<desired from address here>',
p_body => NULL,
p_body_html => l_body_html,
p_subj => '<desired subject line here>');
END loop;
apex_mail.push_queue;
END;
Edited by: stbrownOSU on Dec 8, 2009 2:53 PM
I think something must have happened when I copied and pasted the code from TOAD. I have corrected the above code. Please try it again. -
Problem - email attachment, Elements 7 & Windows 7
Both email attachment and photo mail do not work. I just purchased a new Dell computer with Windows 7 and they installed Photoshop Elements 7. I have tried setting the email setting to both Windows Live mail and to Adobe email service and neither works - I get error messages with both.
Does Photoshop Elements 7 work with Windows 7. If it does, how can I get email attachment and photo mail to work?
I have set my default email to Windows Live Mail (Outlook express is not supported in Windows 7) and it doesn't help.
I need help. Does anyone have an answer?Please tryout the suggestion by Adobe employee http://forums.adobe.com/message/2664893#2664893. It should work. Let me know if it solves the issue.
~V
Maybe you are looking for
-
Ical week numbers and heat map missing in preferences
Hi, This page describes that you can turn on/off the heat map and week numbers: http://www.controlyourmac.com/2012/02/10-amazing-features-of-ical-5-on-os-x.html I migrated from 10.6 to 10.7.4 and wonder where these checkboxes are. So, the configurati
-
How to assign F1 help to the selection screen fields
Hi All, I have a requirement.I have to create a button named "HELP" at the side of Execute button in the selection screen.If I place my cursor in the selection screen field and I press that "HELP" button, I should get the Documentation help for that
-
I am running Acrobat 8 Professional on a Mac with Snow Leopard. I am trying to reduce a 48 MB pdf (every page is an image). I am getting inconstant results when trying to reduce the file size. I added a few links to some of the pages, then use PDF Op
-
Applescript: color file name in finder
Hi Community, I'm working on a huge data management program and i want to be able to tag certain files with incorrectly inputed data so i can easily go back to them later. Rather than moving them all to a certain place, I was wondering if, with apple
-
Adobe Captivate Help | Smart shapes
This question was posted in response to the following article: http://helpx.adobe.com/captivate/using/smart-shapes.html