Sending PDF attachement via OUTLOOK
Hello All,
I am sending the output of a sales order as a PDF attachment via outlook mail.
It wokrs fine. but only worry is the Chinese characters are appearing strange and not the characters what we need. The function module used to convert OTF to PDF is CONVERT_OTF.
If I print / preview the output in SAP it shows the Chinese characters correctly.
What can be the reason ? Please help.
Thanks.
pdf download software correctly multi language supports
Similar Messages
-
To send output as a PDF attachment via email
Hi experts
I have the (smartform) output data in OTF format..and displaying it in PDF form with FM 'HR_EFI_SHOW_PDF_FORM' .
Now the requirement is <b>to send this output as a PDF attachment via email</b>.
Please help me with sample code to perform this.
Regards,
Matt.Hi,
Check this links,
/people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp
Also for email:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9
Refer the following link for more details:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Thanks,
Reward If Helpful. -
How do you send an attachment via email created on a mac
how do you send an attachment via email to another recipient who does not have a mac?
As long as you send it in a recognizable format such as a .jpeg (or .jpg) used for most photos/images or .pdf used for a lot of word processing docs, there is no problem. Also, while in the Mail window, choose "send Windows compatible". It's not who or what you create it on, it is the format you send it in.
-
Can´t open pdf attachment in Outlook 2010 after inst. Reader X
Hi!
Today I updated Reader from 9 to 10.1.2 - I did not face any problems with the installation.
But now I can not open any pdf attachment in Outlook 2010 (Reader opens and closes immediately) if Reader X is not running.
When the Reader is allready running I can open the files without problems.
When I save the file on my desctop I can also open it - also if reader is not allready running.
I un- and reinstalled the reader fiew times, also tried the repair tool - nothing helped.
I receive a lot of pdf Files - any help would be great.Did you try this? It worked for me.
http://www.darrenstraight.com/blog/2010/12/16/adobe-reader-x-there-was-an-error-opening-th is-document-access-denied/
Open up Adobe Reader X
On the Toolbar Menu go to Edit > Preferences
Go to the general tab under Categories.
Untick “Enable Protected Mode at Startup”
If asked if sure, click Yes and then Ok.
Now close Adobe Reader X and try opening the PDF again. -
Regarding sending .PDF attachment through utl_smtp package
Hi All,
How can i send .PDF attachment throuch UTL_SMTP package using oacle pl/sql.
Regds
Shaileshhttp://www.google.com/search?q=UTL_SMTP+attachment
results in a lot of hits how to do this; e.g.: http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
If you are having trouble with the above samples feel free to ask and don't forget to include as much information as possible (e.g. 4 digit database and forms version, your sample source code etc.).
cheers -
How to send pdf attachment SO_NEW_DOCUMENT_ATT_SEND_API1?
Dear All,
I am using SO_NEW_DOCUMENT_ATT_SEND_API1 to send PDF attachment with some text in the body.
How to di it plz help me.
Regards,
Raj...Hi,
Refer below link
http://http://scn.sap.com/thread/3160549
http://http://scn.sap.com/community/abap/blog/2014/05/09/sending-email-with-pdf-attachment -
Error opening PDF file when send as attachment via email
Hi,
I searched around the forum to resolve my issue and there's alot of post that is related but i can't find any answer to my issues.
Here's the scenario :-
I try to convert the smartform to PDF and then send the PDF as an attachment via email.
After converting the smartform to PDF, i managed to download the file and view it without any problem but i can't view the PDF as an attachment. It has the following error :-
Adobe Reader could not open '4500002325.PDF' because it is either not a supported fle type or because the file has been damaged (for example, it was sent as an email and wasn't correctly decoded
The following is the snapshot of my code:-
* Determine smartform function module for invoice
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lf_formname
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
* error handling
ent_retco = sy-subrc.
PERFORM protocol_update_i.
ENDIF.
ls_control_param-getotf = 'X'.
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
zxekko = l_doc-xekko " user_settings = ' '
zxpekko = l_doc-xpekko
IMPORTING
document_output_info = l_ssfcrespd
job_output_info = l_ssfcrescl
job_output_options = l_ssfcresop
TABLES
l_xekpo = l_doc-xekpo[]
l_xekpa = l_doc-xekpa[]
l_xpekpo = l_doc-xpekpo[]
l_xeket = l_doc-xeket[]
l_xtkomv = l_doc-xtkomv[]
l_xekkn = l_doc-xekkn[]
l_xekek = l_doc-xekek[]
l_xkomk = l_xkomk
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc = 0.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
IMPORTING
BIN_FILESIZE = v_len_in
BIN_FILE = v_bin_file
TABLES
OTF = l_ssfcrescl-otfdata
LINES = l_pdf
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
* email subject
CONCATENATE 'Purchase order' l_doc-xekko-ebeln INTO lw_subject
SEPARATED BY space.
* RECIPIENTS
lwa_recipients-rec_type = 'U'.
lwa_recipients-express = 'X'.
SELECT adr6~smtp_addr
INTO TABLE gv_smtp_addr
FROM ekko AS ekko INNER JOIN
lfa1 AS lfa1 ON ekko~lifnr = lfa1~lifnr INNER JOIN
adr6 AS adr6 ON adr6~addrnumber = lfa1~adrnr
WHERE ekko~ebeln = l_doc-xekko-ebeln.
IF NOT gv_smtp_addr[] IS INITIAL.
LOOP AT gv_smtp_addr INTO gv_smtp_addr_line FROM 2.
lwa_recipients-receiver = gv_smtp_addr_line.
lwa_recipients-copy = ''.
APPEND lwa_recipients TO ptb_recipients.
ENDLOOP.
* Text Data
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'ST'
language = 'E'
name = 'TEST'
object = 'TEXT'
TABLES
lines = lv_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
LOOP AT lv_lines INTO lv_lines_line.
ltb_objtxt = lv_lines_line-tdline.
APPEND ltb_objtxt.
ENDLOOP.
DESCRIBE TABLE ltb_objtxt LINES lw_tab_lines.
READ TABLE ltb_objtxt INDEX lw_tab_lines.
* document data contains information for the whole message
lwa_doc_chng-obj_descr = 'ABAPlist'.
* Control Data
lwa_doc_chng-obj_name = 'TESTING'.
lwa_doc_chng-sensitivty = 'F'.
lwa_doc_chng-no_change = 'X'.
lwa_doc_chng-priority = '1'.
lwa_doc_chng-obj_prio = '1'.
lwa_doc_chng-obj_langu = sy-langu.
CLEAR ltb_objpack-transf_bin.
*Attachment
*Move the binary attachment to other internal table.
ltb_objpack-head_start = 1.
ltb_objpack-head_num = 0.
ltb_objpack-body_start = 1.
ltb_objpack-body_num = lw_tab_lines.
ltb_objpack-doc_type = 'RAW'.
APPEND ltb_objpack.
clear : lw_tab_lines.
*Get the number of lines in the Attachment (PDF FILE)
* DESCRIBE TABLE it_mess_att LINES lw_tab_lines.
DESCRIBE TABLE l_objbin lines lw_tab_lines.
ltb_objpack-transf_bin = 'X'.
ltb_objpack-head_start = 1.
ltb_objpack-head_num = 1.
ltb_objpack-body_start = 1.
ltb_objpack-body_num = lw_tab_lines.
ltb_objpack-doc_type = 'PDF'.
ltb_objpack-obj_descr = l_doc-xekko-ebeln.
ltb_objpack-doc_size = lw_tab_lines * 255.
APPEND ltb_objpack.
*Email Subject
lwa_doc_chng-obj_descr = lw_subject.
lwa_recipients-receiver = recipeint.
lwa_recipients-rec_type = 'U'.
lwa_recipients-copy = 'X'.
lwa_recipients-express = 'X'.
APPEND lwa_recipients TO ptb_recipients.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = lwa_doc_chng
COMMIT_WORK = 'X'
TABLES
packing_list = ltb_objpack
contents_bin = l_objbin
contents_txt = ltb_objtxt
receivers = ptb_recipients.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDIF.
Edited by: ~loObie on Apr 23, 2010 12:01 PM
Edited by: ~loObie on Apr 23, 2010 12:02 PMDid you send the pdf in the following format ...
2. Sending PDF as mail.
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = sy-uname.
t_receivers-rec_type = 'B'.
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.
Quote from the Following [LINK|http://www.sap-basis-abap.com/smartforms/convert-the-smart-form-into-pdf-and-send.htm] -
Sending smartforms as PDF attachement via e mail
Hello all:
I have configured PPF actions to send smartforms as PDF attchment via e mail it works fine in one client.
But when I copied the transport to another client, the entries in field 'Recipient' in the configuration step 'Define Conditions and Output Parameters for Comm. of Cust.Shipm. & Cust.Dcl' are not copied to the new client. I had maintained the name of the inbox folder that has e mail addresses in this field. Any one has a similar issue ? Or is this similar to the number ranges and not transportable and we have to maintain them in every client. Any insight into this very much appreciated.Hello:
If you want to send the smartform as a PDF attachment, configure your PPF action as described below:
Step 1: Define Techn. Medium for Msgs (PPF Actions) f. Cust. Shipm. and Cust. Decl.
In the action definition, choose processing type as 'External Communication'
form type: 'Smart Forms'
format: /SAPSLL/FORM_PROC
personalization type: 2 object specific....
Make this action definition partner function dependent and create a Z partner function. Maintain that
partner function in this definition.
Step 2: Define Conditions and Output Parameters for Comm. of Cust.Shipm. & Cust.Dcl
Select Communication Method: Internet Mail
Mail Settings: send status: 3
Configure the reamaining PFF actions as usual.
This will work if that configured partner function is maintained in the customs declaration. And for that business partner, maintain the e mail address in the address dependent section via txn BP. -
Invoice output as PDF attachment via email.
Hi All,
I have a requirement wherein an invoice when saved should generate a mail output (external send) with the invoice as a PDF attachment. I have the system set up for external send & scot settings but am stuck up with the PDF attachment. I also have the same requirement for PO output (because I look into both SD and MM). Any help on either of them would be greatly appreciated.
Thanks & Regards,
Vidya SagarHi,
[External Send - Sending PO by email|http://www.sap-img.com/materials/external-send-sending-po-by-email.htm]:
In order to send PO, your Basis team must configure the system first so that external email can be send out from SAP. If it is not configured, no settings you do on MM will work.
1. You must maintain email address in vendor master data.
2. The same applies to your user master data. For the output type for default values, a communication strategy needs
to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the
Customizing via the following path:
(SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy).
As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
3. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
4. In the condition records for the output type (for example, Transaction MN04), use medium '5' (External send).
5. You can use Transaction SCOT to trigger the output manually. The prerequisite for a correct sending is that the node is set correctly. This is not described here, but it must have already been carried out.
6. To be able to display, for example, the e-mail in Outlook, enter PDF as the format in the node.
Regards,
Srilatha. -
Error message when opening pdf attachment in Outlook 2003
I have several computers in my network running different version of Adobe Acrobat...Adobe 6.0 standard, Adobe 7.0 standard, Adobe 8.0 standard and pro, and Adobe 9.0 standard and pro. The problem I am having with a few of my end users is that when they receive an e-mail in Outlook 2003 with a pdf attachment from certain companies that we deal with in the insurance industry, they receive an error message saying they can not open the file...
"Can't create file:XXXXXXXX.pdf. Right click on the folder you want to create the file in, and then click Properties on the shortcut menu to check permission for the folder."
The strange part about this is they can forward the e-mail to another end user that may or may not be using the same version of Adobe as them, but the other end user has no problem opening and viewing the pdf attachment (also, if the company sending the e-mail sends the same e-mail to another end user who has no issues, they can open it with just fine) Now here is where it gets really strange... if the end user that can view the file saves the file to their hard drive, then sends it back as the same attachment in an e-mail back to the end user that could not open the file originally, now that end user can open and view the pdf attachment. I have three end users that this affecting and they each have a different version of Adobe Acrobat with all of the latest updates. I am stumped and searches so far have revealed no solutions...
Any ideas?The can only open it on their machine if they save the pdf attachment after renaming it. All computers on the network have the latest Outlook 2003 updates, so it puzzles me that only three end users with the same version of Outlook 2003, with the same updates, are not able to view the attachment from Outlook, but the other users can. Also, why do those three end users have to rename the file if the save it to the their computer to be able to view it, but no one else has to. And, it is not every pdf attachment either, just some from certain people that send them an e-mail. Really puzzling issue that I need to get resolved...
-
PDF attachment via File adapter
Dear Friends,
I have a scenario like as follows :
*SAP ECC -
> PI -
> SQL Database(external system )*
*External system -
> PI -- (pdf attachment)----
> Customers*
SAP sending the material number to SQL database via PI.
In turn SQL database will take the corresponding material number and perform certain internal processing logic. Finally it will generate a pdf file.It will place the PDF file in a folder in that system
Now PI need to fetch that pdf file from thefolder and send the pdf attachment to external customers via email.
How can we fufill this requirement?
Please give your guidance friends.Subasree wrote:
Dear Friends,
>
> I have a scenario like as follows :
>
> SAP ECC -> PI -> SQL Database(external system )
this will be a normal IDoc/RFC/Proxy to JDBC scenario
>
> *External system -
> PI -- (pdf attachment)----
> Customers*
>
>
> SAP sending the material number to SQL database via PI.
>
> In turn SQL database will take the corresponding material number and perform certain internal processing logic. Finally it will generate a pdf file.It will place the PDF file in a folder in that system
>
> Now PI need to fetch that pdf file from thefolder and send the pdf attachment to external customers via email.
>
> How can we fufill this requirement?
>
> Please give your guidance friends.
In this case it will be a file to mail scenario.
In case you want to attach the pdf file in the mail, then use the payloadswapbean and help you develop this
refer: http://www.sdn.sap.com/irj/scn/advancedsearch?query=mailadapterattachment#sdn_content_category_value_blogs -
Can't view pdf when scanned image(pdf) attached to outlook
sorry if this is the wrong place to ask. here is some detail.
I'm scanning a letter using hp scanning software. the process automatically converts the letter/image to a pdf file and then attaches the pdf file to outlook(2007) email as an attachment. the email screen opens with the pdf attachment within the email, but outlook itself (the application) appears to be closed. at this point everything seems to be running perfectly.
here's the problem. when double clicking on the pdf file attachment, nothing happens. the pdf file does not open. i would like to review before i send the email on it way. is there any way to view the pdf file before i send the email on its merry way? Oh yeah, using reader v9.3.2.
Thanks for any assistance.Sorry. I have a Mac with OS X 10.9.5
I've since totally deleted Adobe Reader and reinstalled it but have the same problem anytime I try to view a PDF with Adobe Reader. The college website won't let me save the form, only view it. If I use another pdf viewer the form won't fill with my son's info; I think it has to be Adobe Reader for some reason -
Canu00B4t view pdf attached through Outlook Web Access
Good afternoon.
I send an mail with pdf attached, from my System ECC 5.0, and receive the email with , but when looking this email through Outlook Web Access, I can not view the PDF.
This only happening in Outlook Web Access. It works fine in regular Outlook.
How can I solver this problem??.
Best regards.Hi,
if you haven't done yet please ask your exchange admins.
In my opinion is this not a SAP ERP issue.
Regards
Bernd -
Unable to send out emails via outlook express since 06/29/2010
Task '[email protected]" - Sending' reported error (0x80042109) : 'Outlook is unable to connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).' This is a copy/paste of error message from Office Outlook 2003
Our household has been unable to "send" outgoing emails since 06/29/2010. This includes a wireless laptop and a PC. We both lost the ability to send emails same day. We changed NOTHING and did not share emails with each other that would have corrupted our system. During this time I have had 2 Verizon techs dance around in the PC doing all the same things I did as well as what the automated assistant did. The last tech said the Outlook Express 6.0 was corrupted, and to unistall it and then reinstall; this time 2 hours later, I think he just gave up). That did not work either. I tried using the Outlook Office and still got an error message for outging. Everything is set up as it was when it was working until 06/29/2010. I was told that there was a new server being installed and that things wold be working by 07/02/2010... I have tried taking down the firewall, turning off virus protection (McAfee), changing from outgoing.yahoo.verizon.net to just outgoing.verizon.net, checking boxes, unchecked boxes. SMPT is set to 587. We get incoming fine. I hate using the "Verizon email site" as too much monkey motion to get to mail, but that's what we have been doing. I even tried setting up a GMail account, again got mail still could not send. Any ideas?Thank you for your response! I even tried sending an email via dos prompt with Telnet, got past "HELO", but when trying to get a "RCPT TO" (using outgoing.yahoo.verizon.net) I got an "authorization required" response and then was dropped. I have been passed around without a solution. I am about ready to change ISP, but really hate to as most of the time (years now) this has been a decent ISP. If Verizon is having a problem just say so, I can handle it, honesty would be nice, refreshing and not wasting so much of my time as well as the techs!
-
Change Font Size with PDF attachment via e--mail
Hi experts,
I want to send mail with PDF attachment . Now the attachment is ok but only the font size in PDF is a little small.
Is that possible to Change the font size of PDF
Below is my code:
first the data comes from an internal table, then changed to an ABAP Pool.
* Create a new spool from the data in gt_data_pdf
new-page print on
destination c_local "<<== my printer
cover text text-027 "<<== Title or Spool req. name
list name space
list dataset space
immediately space " X means print now
keep in spool c_checked " X means keep spool
new list identification c_checked
line-size 255
line-count 65
no dialog .
loop at gt_data_pdf.
write: / gt_data_pdf-line.
endloop.
new-page print off.
lv_spoolid = lv_spdel-rqident = sy-spono.
lv_spdel-sys = sy-sysid.
*Convert ABAP Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = lv_spoolid
no_dialog = c_checked
importing
pdf_bytecount = lv_pdf_fsize
tables
pdf = lt_pdf_table
exceptions
others = 0.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = lv_doc_chng
put_in_outbox = space
commit_work = c_checked
tables
packing_list = lt_objpack
object_header = lt_objhead
contents_bin = lt_objbin
contents_txt = lt_objtxt
receivers = lt_reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
others = 99.
Anyone could help me?
Thanks a lot.
Sincerely
JulieHi,
we don´t have many options for setting the font type and size in an ABAP list. One option is that you print the output using either SmartForms or AdobeForms, where you can control font type as well as size. This one requires additional work.
Another option is to use the instruction Print-Control:
NEW-PAGE PRINT ON.
PRINT-CONTROL FONT 1 SIZE 1 LPI 6 CPI 10.
WRITE: /10 'FONT 1 size 1 LPI 6 cpi 10'.
SKIP.
PRINT-CONTROL FONT 1 SIZE 5 LPI 6 CPI 5.
WRITE: /10 'FONT 1 size 5 LPI 6 cpi 5'.
SKIP.
PRINT-CONTROL FONT 2 SIZE 5 LPI 6 CPI 10.
WRITE: /10 'FONT 2 size 5 LPI 6 cpi 10'.
SKIP.
NEW-PAGE PRINT OFF.
Maybe you are looking for
-
Adobe media encoder disabled in photoshop
Hi, I am creating a .mp4 video using photoshop cc. When I go to export > render to video , the program does not let me choose any video format. The adobe media encoder option appears grayed out. Can anyone tell me why is this happening? I am using a
-
How can you sort photos by descending date in Photos?
how can you sort photos by descending date in Photos?
-
Hi Experts There are 2 requirements from SD. 1) Will it be possible to post the Credit to the cost of sales into different GL account for the different FOC items during PGI? 2) Material is sold to one customer and returned by another customer? will i
-
Footer not stuck to the bottom
Hey! I made a footer for a site. It's stuck to the bottom in some pages except for a few. Like this: http://mac-reparation.dk/forside.html I looked at the div code it seems to be fine in all others.
-
WebSAPConsole - Issue latest patch
After patching SAPLogon at the webserver with the latest patch (of 02/05/2005) a lot of trouble was resolved! But now we got another 'problem': if people are clicking very fast at a button, sometimes the destination screen is displayed twice or the u