Mail PDF attachment is not visible
I have just owned a new iPad 4th generation and using it with full energy.
I have a query and if anyone can guide me.
I have configured Gmail in the Mail of my iPad. Now when I am getting an e-bill from Airtel India for payment, the attached PDF bill copy is not there in the mail.
Is it that I have to change any settings, please advice.
Thanks and Regards.
scy123.
You should see a paper clip icon next to the senders name in the preview window if there is an attachment in the email. If you do see the icon but can't see the PDF, quit mail, reboot and look again.
From your home screen. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the mail app icon. Tap the home button or anywhere above the task bar.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
Similar Messages
-
Mail app PDF attachment is not visible
I found several reports (and workarounds) of PDF attachment hiding in Mail application. It seems to be still not fixed, as I got the issue with current up-to-date software configuration: OS X 10.6.7, Mail 4.5 (1084).
My details:
- email is generated by some automatic system, it has HTML body and one PNG image (referred from the HTML). I know there is also PDF attachment (2 pages).
- In mail view I see HTML rendering and PNG image as the only attachment; attachment count is 1. Nothing about PDF, also PDF contents is definetly not visible "inline".
- in mail source I can see that the HTML, PNG and PDF are there (as MIME attachments). Quick look to the source does not show anything obviously broken there; I've programmed MIME email sending in low level and have some idea about it.
- in File-Quick view attachments I can see PDF contents
- in File-Save attachments also PDF attachment is saved fine
- in most other emails I can see PDF files, inline or as attachments. So it has something to do with specific mail format, or MIME configuration.
So the issue is that by normal view I just would have no idea that there is this hidden attachment.
I happened to know from another mail reader (gmail) that the attachment is there, otherwise I could never notice it. Therefore it is major annoyance, especially that Apple has not succeeded to fix it fully for 5 years or so.I'm having the exact same problem here. I'm in Lion 10.73 running Mail 5.2.
This is very frustrating because the "list view" window, there's an attachement column that show's there's 2 attachments (presumably one image attachment for a signature and one for a pdf)... but in the message window there's no pdf attachment.
Surprisingly I have an iPad3 and the same message is missing the attachment as well.
But then I go online to my webhost's webmail access and the attachment is there. -
Attachment MIR4 not visible on FI document.
Dear forum readers,
When we attach a PDF file with the MIR4 transaction (business object BUS2081), this attachment is not visible from the attachment list on the follow-on document (FI document, business object BKPF). The attachment is only visible in the material document. Does anybody know how to solve this issue?
Many thanks,
John.Hi,
check this OSS Note:
Note 360610 - MR3M / MIR4: Display of linked documents in FI
https://service.sap.com/sap/support/notes/360610
Best regards. -
Attachment icon visible in Mail 5.1 but attachment is not visible
Running a couple of iMac's with OSX Lion and Mail 5.1.
Quite often we have problems receiving mails with attachments.
Lately in the list of received emails you do see the attachment icon (paper clip) yet in the message itself there is no attachment visible. Although there should be one. We have checked that the email was indeed sent with attachment and others (not with the same set-up/Mac) do receive these attachments.
Have found several threads about attachment issues but with earlier OSX and Mail versions.
The amount of knowledge here is too big ;-)
Any help is more than welcome.Exactly the same problem here. Yesterday installed Lion, since then some attachments show for example in google mail web interface but not in mail (exactly as you describe above). Also Outlook 2010 receipents (windows) don't see the attachments that I send anymore....
I just switched to Microsoft Entourage. Sad story, had been using mail for a long time it it worked pretty well, but there is no way I can live with these issues. If anybody comes up with a solution please let me know.
Chris -
PDF attachment does not show in Mail
When I receive a mail with PDF attachment, I can't see any icon or inline text. Can anyone advice?
All of my mail accounts either show the icon or the file itself in the Mail App. Try these simple things first.
Restart the iPad by holding down on the sleep button at the top of the iPad until the red slider appears, then slide to the right to power off the iPad. Turn the iPad on again by pressing the sleep button until the Apple logo appears. Once the iPad has fully rebooted, open Mail to relaunch.
Try a hard reset by pressing and holding down on the sleep button at the top of the iPad while holding down on the home button at the bottom, until the Apple logo appears and the iPad restarts. Launch Mail again and see what happens.
Message was edited by: Demo -
STO mail : pdf attachment has an error 'file damage' when try to open it
Dear expert,
I need to send an e-mail to the vendor with the sto list as attachment at the email.
I managed to send email to external addresee and made the pdf attachment, BUT somehow when I open the attachment it has an error says "Adobe Reader could not open xx.pdf because it is either not a supported file type or because the file has been damaged(for axample, it was sent as an email attachment and wasn't corectly decoded)."
Really need your experties to help me. Here is my abap coding to send email and do the pdf attachment at the new ouptput type to send email.
TYPES: BEGIN OF lty_drad,
doknr TYPE drad-doknr,
END OF lty_drad,
BEGIN OF lty_recpt,
smtp_addr TYPE ad_smtpadr,
END OF lty_recpt.
DATA: lt_doc TYPE STANDARD TABLE OF docs,
lt_recpt TYPE STANDARD TABLE OF lty_recpt,
lt_tline LIKE tline OCCURS 0 WITH HEADER LINE,
lt_data TYPE solix_tab,
lt_docu TYPE STANDARD TABLE OF lty_drad,
lt_docfiles TYPE STANDARD TABLE OF bapi_doc_files2,
lw_tline LIKE LINE OF lt_tline,
lw_docu LIKE LINE OF lt_docu,
lw_docfiles LIKE LINE OF lt_docfiles,
lw_objdes TYPE tnati-objdes,
lt_text TYPE bcsy_text,
lw_recpt TYPE adr6-smtp_addr,
lw_adrnr TYPE lfa1-adrnr,
lw_object TYPE drad-objky,
lw_doknr TYPE drad-doknr,
lw_return TYPE bapiret2,
lw_xcontent TYPE xstring,
client TYPE REF TO if_http_client,
url TYPE string,
lw_subrc TYPE sysubrc,
response TYPE REF TO if_http_response,
lw_message1 TYPE string,
sent_to_all TYPE os_boolean,
bin_filesize type i.
CONSTANTS: lc_dokar_srm TYPE drad-dokar VALUE 'SRM',
lc_type TYPE so_obj_tp VALUE 'RAW'.
CLASS-DEFINITIONS
DATA: send_request TYPE REF TO cl_bcs.
DATA: document TYPE REF TO cl_document_bcs.
DATA: sender TYPE REF TO cl_sapuser_bcs.
DATA: recipient TYPE REF TO if_recipient_bcs.
DATA: exception_info TYPE REF TO if_os_exception_info,
bcs_exception TYPE REF TO cx_bcs.
RANGES: lr_po_pr FOR drad-objky.
DATA: lw_banfn TYPE ekpo-banfn,
lw_bnfpo TYPE ekpo-bnfpo.
IF nast-nacha = '5'. "8
Create recipient and check if exist
Get email ID
start commented by sapnislina 21.12.06
SELECT SINGLE adrnr FROM lfa1 INTO lw_adrnr
WHERE lifnr = p_ekko-lifnr.
IF sy-subrc NE 0.
PERFORM protocol_update
USING '303' 'Address of Vendor:' ekko-lifnr 'not found' space
p_retco = sy-subrc.
EXIT.
ENDIF.
end commented by sapnislina 21.12.06
SELECT smtp_addr INTO CORRESPONDING FIELDS OF TABLE lt_recpt
FROM adr6
WHERE addrnumber = p_ekko-adrnr. "lw_adrnr.
IF lt_recpt[] IS INITIAL.
PERFORM protocol_update
USING '303' 'Email address(es) does not exist for vendor'
p_ekko-lifnr space space.
p_retco = sy-subrc.
EXIT.
ENDIF.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
use_otf_mc_cmd = 'X'
IMPORTING
bin_filesize = bin_filesize
TABLES
otf = otfdata[]
doctab_archive = lt_doc
lines = lt_tline
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.
IF sy-subrc <> 0.
PERFORM protocol_update
USING '303' 'PO Convertion from OTF to PDF failed'
space space space.
p_retco = sy-subrc.
EXIT.
ENDIF.
Get object description from mail title of output types
SELECT SINGLE objdes INTO lw_objdes
FROM tnati
WHERE spras = sy-langu
AND kappl = nast-kappl
AND kschl = nast-kschl.
CONCATENATE lw_objdes ekko-ebeln INTO lw_objdes SEPARATED BY
space
DATA L_TXT(255) TYPE C.
DATA L_TXT2(255) TYPE C.
CONCATENATE 'STO' EKPO-EBELN 'Created for' EKPO-WERKS '/'
EKPO-LGORT
'Supply Plant' EKKO-RESWK into l_txt separated by space.
lw_objdes = l_txt.
CONCATENATE 'STO' EKKO-EBELN INTO L_TXT2 SEPARATED BY SPACE.
APPEND L_TXT2 TO LT_TEXT.
APPEND lw_objdes TO lt_text.
Instantiate
CLASS cl_cam_address_bcs DEFINITION LOAD.
CLASS cl_abap_char_utilities DEFINITION LOAD.
insert by sapnislina 22.12.06
DATA : CONTENT_OUT TYPE SOLIX,
LINE_WIDTH_SRC TYPE I,
POS_OUT TYPE I,
POS_IN TYPE I,
LEN_OUT TYPE I.
DATA OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF CONTENT_IN,
LINE TYPE TLINE,
DUMMY TYPE TLINE,
END OF CONTENT_IN.
TYPES PDF_RAW TYPE X LENGTH 268.
FIELD-SYMBOLS <PDF_BIN> TYPE PDF_RAW.
DESCRIBE FIELD CONTENT_IN-LINE LENGTH LINE_WIDTH_SRC IN BYTE MODE.
REFRESH lt_data.
CLEAR CONTENT_OUT.
POS_OUT = 0.
LOOP AT OTFDATA INTO CONTENT_IN-LINE.
ASSIGN CONTENT_IN TO <PDF_BIN> CASTING.
MOVE <PDF_BIN> TO CONTENT_OUT-LINE+POS_OUT.
ADD LINE_WIDTH_SRC TO POS_OUT.
WHILE POS_OUT >= 255.
APPEND CONTENT_OUT TO lt_data.
CLEAR CONTENT_OUT.
SUBTRACT 255 FROM POS_OUT.
IF POS_OUT > 0.
POS_IN = LINE_WIDTH_SRC - POS_OUT.
MOVE <PDF_BIN>+POS_IN TO CONTENT_OUT-LINE.
ENDIF.
ENDWHILE.
ENDLOOP.
IF POS_OUT > 0.
APPEND CONTENT_OUT TO lt_data.
ENDIF.
end inserted by sapnislina 22.12.06
starting to create attachment to mail
TRY.
CLEAR send_request .
Create persistent send request
send_request = cl_bcs=>create_persistent( ).
Build the document
document = cl_document_bcs=>create_document(
i_type = lc_type "RAW
i_text = lt_text "def of output type
i_length = '12'
i_subject = lw_objdes ).
Attached the document object
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = lw_objdes "definition of output
type
i_attachment_size = '12'
i_att_content_hex = lt_data.
completed first part to attached PO (pdf format) as attachment
Now attach the PO related attachments to the mail..
.... need to read from table DRAD and get all the attachment per PO
at run time
REFRESH: lr_po_pr."lt_return.
CLEAR: lr_po_pr,lw_return.
MOVE 'ICP' TO lr_po_pr.
CLEAR: lw_object.
completed second part for PO related attachments
Now prepare to send mail
Add document to send request
CALL METHOD send_request->set_document( document ).
Get sender object
sender = cl_sapuser_bcs=>create( sy-uname ).
Add sender
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
LOOP AT lt_recpt INTO lw_recpt
WHERE NOT smtp_addr IS INITIAL.
recipient = cl_cam_address_bcs=>create_internet_address(
lw_recpt ).
Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'X'.
CLEAR recipient.
ENDLOOP.
Send the document
CALL METHOD send_request->send
RECEIVING
result = sent_to_all.
Catch any exception
CATCH cx_bcs INTO bcs_exception.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
msg_arbgb = bcs_exception->msgid
msg_nr = bcs_exception->msgno
msg_ty = bcs_exception->msgty
msg_v1 = bcs_exception->msgv1
msg_v2 = bcs_exception->msgv2
msg_v3 = bcs_exception->msgv3
msg_v4 = bcs_exception->msgv4
EXCEPTIONS
OTHERS = 1.
p_retco = sy-subrc.
ENDTRY.
ENDIF.
IF NOT result-tdfaxid IS INITIAL OR " 422131
NOT result-tdmailid IS INITIAL. " 422131
CLEAR syst-msgv1. " 422131
IF NOT result-tdfaxid IS INITIAL. " 422131
syst-msgv1 = result-tdfaxid. " 422131
ELSEIF result-tdmailid IS INITIAL. " 422131
syst-msgv1 = result-tdmailid. " 422131
ENDIF. " 422131
CALL FUNCTION 'NAST_PROTOCOL_UPDATE' " 422131
EXPORTING " 422131
msg_arbgb = 'VN' " 422131
msg_nr = '095' " 422131
msg_ty = 'I' " 422131
msg_v1 = syst-msgv1 " 422131
EXCEPTIONS " 422131
OTHERS = 1. " 422131
ENDIF. " 422131
IF result-userexit EQ 'C' OR
result-userexit EQ 'E'.
p_retco = '9'.
ENDIF.
ENDFORM. " ENDE
end inserted
Regards
NislinaHi Nislina,
Could you please let me know how do you solve this issue.
Code:
if lt_binary[] is not initial.
* add attachment to document
call method document->add_attachment
exporting
i_attachment_type = 'PDF'
i_attachment_subject = 'My Attachment'
i_att_content_hex = lt_binary.
endif.
Thanks & Regard's
Sateesh -
File to mail .pdf attachment
I have a scenario file to Mail and in the file vendor no 1234 then 1234.pdf in the file net. so when vendor no 1234 appears then i have to pick the 1234.pdf from filenet and attached to the mail. How can we do this scenario. Could you please help me this one.
and one more how can i add the link in the mail body. i did one file to mail scenario. body is not showing . that one also showing as attachment. how can i do this.
Advanced Thanks
Regards
SundherHi Sundher,
Hey configure a scenario like this File -> XI -> Mail. In this, u pick up the fiile using file adapter and send it to XI. For sending the files as an attachment, provide the MessageTransformationBean in the receiver mail adapter and pass the parameter 'ContentDispostion' with its value set as attchment.
For more details u can check the following link
<a href="https://websmp209.sap-ag.de/form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202&_OBJECT=011000358700004556712005E">https://websmp209.sap-ag.de/form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202&_OBJECT=011000358700004556712005E</a>
Regards,
Akshay -
I have a Samsung i760 with Verizon Wireless. I am running Windows Mobile 6 Professional. I have installed Adobe Reader PPC 2.0, and the Reader application itself appears to work fine (appears in my Program list, I can open the program, etc.). I have my work e-mail (from an Exchange server)pushing to my phone, and my e-mail has been working fine. Every day, I receive a report via e-mail with a .pdf document attached. When I open this e-mail, and click on the .pdf attachment, it says "Downloading..." on the bottom of my screen, but the file never finishes downloading or opens up. The file is only "(12K)" according to the e-mail, so it should download fairly quickly, and then Adobe Reader should open up and display the file. Any ideas why this does not happen? It just says "Downloading" forever until I manually stop the download. Thanks.
Hey there,
Same I experienced the same problem, hopefully someone can help up... -
Shopping Cart attachment is not visible in Purchase order
Hello All
I am new to SRM world and struggling with below issue.
When we are attaching documents in shopping carts then those documents are not visible in back end purchase orders. Problem here is that this scenario is running fine on our productions system but not on quality system. So I assume that there is no problem with code (BADIs implemented). If this would have been code then this problem would have been on Production also.
When I go to purchase orders attachment tab then I am able to see the document name there but when I go to Originals Tab then I am not able to see actual document (PDF).
What could be wrong with configurations here?? DC10, 20 and 30 configurations are same on Quality and production.
Please advise on this.Dear Poster,
As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
Best Regards,
SDN SRM Moderation Team -
PDF form data not visible when opened in Illustrator CS5
I've been searching the forums but have been unable to find an answer to my specific problem.
I've created a form using Adobe Acrobat Pro. The PDF form fields are then populated with data via Netsuite. When I open the PDF (with data) in Acrobat all of the information shows up, however when I open the PDF in Illustrator CS5 the field data is not visible. Is there a way to force the data to be visible when opened in Illustrator?
Thanks in advance for any help!You could try first flattenening the fields. This converts the field appearances to regular page contents. You can do this with JavaScript, PDF Optimizer, or a Preflight fixup.
-
Mail Receiver: Attachment gets not generated
Hi,
AFAIK in SXMB_MONI in the MappingStep the attachment is shown, when it was created.
My mapping does not show the attachment.
Although my mapping is identical to former XIs where I implementes "Mail with attachment"
We are now on NW04S_16_REL. Does anybody had the same problems?
My field are filled as follows:
/ns0:Mail/Subject = "BlaBla"
/ns0:Mail/From = "xyz@xyz"
/ns0:Mail/To = "xyz@xyz"
/ns0:Mail/Content_Type = Constant: multipart/mixed; boundary="AaBb--984dfgeSSd3532"
/ns0:Mail/Content_Disposition = Constant: attachment
/ns0:Mail/Content =
<Content>--AaBb--984dfgeSSd3532
Content-Type: text/plain; charset="UTF-8"
some Text
--AaBb--984dfgeSSd3532
Content-Type: text/plain;charset="UTF-8";name=attachment.txt
--AaBb--984dfgeSSd3532
ThisSouldbeTheTextInTheAttachment</Content>
Why does the attachment not be generated?
Thanks, Regards
MarioNo,
but consider:
Befor the message enters the CC the attachment should already be seen in SXMB_MONI
Regards
Mario
Edited by: Mario Müller on Apr 20, 2009 4:05 AM -
Mail send from iPhone not visible from Macbook
Any mail I sent from my iPhone (latest OS) is not visible from my Macbook Pro (latest OS) in the sent box.
I need this to be fixed. How? I have read through the forums and there seems to be no fix to this. And yes, I have everything configured properly (ie. to keep sent messages on server, etc).
Any help to fix this would be appreciated as I need to access all my emails for work from my computer.Please ignore the above . I have discovered what I did wrong - but don't know how to delete the question!
Sorry -
Responses in PDF form are not visible
I have Adobe Acrobat Pro XI installed and have produced a form which can be filled in by third parties.
I have received a return in which the all of the responses are not visible unless I click in the fieldMost likely, the fault lies with the application used to fill in the forms,
which is probably Apple Preview, that is known to cause this problem. You
can fix the forms with this utility:
http://blog.practicalpdf.com/2013/08/introducing-the-practicalpdf-fix-form-utility/
And in the future instruct your users not to use Preview, but only Adobe
Reader (or Adobe Acrobat). -
SENDING REPORTS O/P THRU E-MAIL: ATTACHMENT NAME NOT VISIBLE
Hi,
I have created a report program which will convert report o/p to excel sheet and send the attachment to the mail id provided in the selection screen. Here in this case the mail is going perfectly, and the attachment also but the problem is the attachment name is not visble.
From the program it is expected that the attachment name is delivery.xls. but in the mail it is showing only .xls...
here is the code I used. Please correct me...
REPORT ZRAM.
TABLES: LIPS.
DATA: BEGIN OF IT_LIPS OCCURS 0,
VBELN LIKE LIPS-VBELN,
POSNR LIKE LIPS-POSNR,
MATNR LIKE LIPS-MATNR,
WERKS LIKE LIPS-WERKS,
END OF IT_LIPS.
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.
SELECT-OPTIONS: S_VBELN FOR LIPS-VBELN.
PARAMETERS : P_EMAIL TYPE somlreci1-receiver lower case DEFAULT
'[email protected]'.
SELECT VBELN POSNR MATNR WERKS
FROM LIPS INTO TABLE IT_LIPS
WHERE VBELN IN S_VBELN.
PERFORM build_xls_data_table.
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
'Delivery details'
'XLS'
'delivery'
changing gd_error
gd_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*& 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 'VBELN' 'POSNR' 'MATNR' 'WERKS'
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_LIPS.
CONCATENATE IT_LIPS-VBELN IT_LIPS-POSNR
IT_LIPS-MATNR IT_LIPS-WERKS
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 lips records'.
APPEND it_message.
endform. " POPULATE_EMAIL_MESSAGE_BODYHi
check the blow code:
DATA: receiver LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
MESSAGE ZF100 (FTP an UDB fehlgeschlagen)
text-msgid = msgid.
text-msgno = msgno.
text-msgv1 = msgv1.
text-msgv2 = ' '.
text-msgv3 = ' '.
text-msgv4 = ' '.
express_hold_time
express_hold_time-days = 01.
express_hold_time-h_min_sec = 240000.
receiver
receiver-receiver = mreceivr.
Gruppe von Empfängern
receiver-rec_type = 'C'.
und Expressmeldung ausgeben
receiver-express = 'X'.
APPEND receiver.
CALL FUNCTION 'MESSAGE_SEND_AS_MAIL'
EXPORTING
msgid = text-msgid
msgno = text-msgno
msgv1 = text-msgv1
msgv2 = text-msgv2
msgv3 = text-msgv3
TABLES
receivers = receiver.
IF sy-subrc <> 0.
WRITE:/ 'hat nicht geklappt', 'SY-SUBRC =', sy-subrc.
ENDIF. -
Retrieve mail pdf attachment in xstrinf or otf format.
Hi,
as in the Subjesct I must retrieve from mail the attachments that are in pdf format and convert then in xstring or otf format, then archive the documents in DMS server.
It's possible?
Thanks for answers.Hi,
In SAP we execute function SX_OBJECT_CONVERT_OTF_PDF which generates binary context for a PDF document.
Or check the below code
data: l_pdf_xstring type xstring,
lt_lines type table of tline,
ls_line type tline,
l_pdf_len type i,
itab type TSFOTF,
witab type ITCOO,
tmp_line type STRING,
tmp_header type STRING.
tmp_header = 'BSP to PDF'.
tmp_line = file_content.
CONCATENATE
tmp_header
tmp_line
INTO tmp_line IN CHARACTER MODE.
APPEND tmp_line TO itab.
call function 'CONVERT_OTF'
exporting
format = 'PDF'
importing
bin_filesize = l_pdf_len
bin_file = l_pdf_xstring
tables
otf = itab
lines = lt_lines
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5
if sy-subrc EQ 0.
response->set_header_field( name = 'content-type'
value = 'application/pdf' ).
response->set_header_field(
name = 'cache-control'
value = 'max-age=0' ).
response->set_header_field(
name = 'content-disposition'
value = 'attachment; filename=test.pdf' ).
l_pdf_len = xstrlen( l_pdf_xstring ).
response->set_data( data = l_pdf_xstring
length = l_pdf_len ).
navigation->response_complete( ).
ENDIF.
Edited by: Raj on Jul 26, 2010 2:02 PM
Maybe you are looking for
-
Hi, i have a macbook pro version 10.6.8 with boot camp version 3.0.4. I managed to install windows 7 professional x64 bits but however when i tried to install the drivers using the OSX MAC CD using boot camp, it prompt me boot camp x 64 is unsupporte
-
How can you connect Ipod to a linux system?
Bought our study abroad student an Eee PC computer that will work well in his home country of Africa. My boys got Ipods for Christmas and I gave him one too. We are unable to find a way to get it to connect to his linux system. Is is possible?? It is
-
How can I restore my ringtones files after an iTune software update?
This has really upset me but I can't find anyone to help. If you can, it would be greatly appreciated. I have create a bunch of ringtones and they have been showing up fine on my iTune and synced to my iPhone without any problem. Recently, i have rep
-
ADF -11g : Question on how to create a pivot table
Hi, I am trying to create a dynamic pivot table (the number of column and row layers change for each request) and I cannot use a data base structure to back it up. I thought of doing it through a managed bean but in order to do it I need to know how
-
Need to download Adobe Acrobat X Pro (v10.1.8) onto new laptop
Need to download Adobe Acrobat X Pro (v10.1.8) onto new laptop. How can this be accomplished?