.pdf attachment problems
I have been having problems with my mail reversing the colors of any pdf attachments I get. It is just the preview of the pdf. If I open it in acrobat I can read it just fine. Any idea what setting in my mail would effect this?
If I double click the graphic that is displayed (the pdf file) then it opens in Acrobat.
My problem lies in the graphic that is displayed. I work for a local newspaper and receive/send pdf files all the time. The "preview" I see in my mail account looks nothing like what the actual file is. I can't see type, yellow color is blue, some graphics are not seen at all. But if I open it in Acrobat or Photoshop, everything looks fine.
Here is an example: The yellow is right, the blue is a screen shot of how I see it in mail
http://i43.tinypic.com/2rpv6f6.jpg
Or this one - I'm sure you can tell which one is right
http://i42.tinypic.com/mwbekz.png
Message was edited by: NDNews
Similar Messages
-
Hi,
Receently, some of our users experienced pdf attachment problem. The user sent a 4mb pdf attachment but after the mail was sent out it only showed 4k in sent item. When the recipient received the e-mail the attachment also showed 4kb and it can't be opend too. These users are using Outlook 2000 and our Exchange server is 2000 Enterprise.
Thanks for the help,
JYHi Suresh,
I just tried this thing in my systtem and it is working... BADI is trigerred everytime there is a change in the PO... even when you release there is a change in the PO so this BADI will be triggerred....
I suggest you should implement BADI in your dev system and place a break point in the POST method...
After that create a PO and release it using ME29N... thereafter when you save the PO... this method will trigger and you will have access to PO details...
PS: Remember this BADI wont work for transaction ME29...
Regards
Gautam -
Pdf attachment problems on osx lion
Hello
i was wondering if apple has fixed the pdf attachment problem seen on other iOS' such as 7.1. I get the same error (blank pdf file, white screen), however, it doesn't happen all the time.
any explanations and comments would be greatly appreciated!OS 7 or IOS 7?
If IOS 7, try the iPad community.
iPad Community -
PDF Attachment problem in Adobe form and send mail is not working
Dear Experts,
Recently i'm facing a problem regarding Adobe form PDF attachment and sending an e-mail along with the PDF attachment to customer mail id.But when i execute the RFC Function module, in customer side no mail is comming. And when i check the transaction SBWP then i found that the PDF attachment hold only 1KB of data which is not right.For that i'm sending my code which i was declared in my program.Can anybody please help me to overcome this problem?
Warm Regards,
sameek.
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
lo_send_request = cl_bcs=>create_persistent( ).
data: t_att_content_hex type SOLIX_TAB.
DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
l_send type ADR6-SMTP_ADDR value 'Already provided an e-mail address here'.
DATA: lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
Message body and subject*
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL,
lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
APPEND 'Dear,' TO lt_message_body.
append ' ' to lt_message_body.
APPEND 'Please fill the attached form and send it back to us.'
TO lt_message_body.
append ' ' to lt_message_body.
APPEND 'Thank You,' TO lt_message_body.
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = lt_message_body
i_subject = 'Customer Information Form').
TRY.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = 'Customer Information Form'
I_ATTACHMENT_SIZE =*
I_ATTACHMENT_LANGUAGE = SPACE*
I_ATT_CONTENT_TEXT =*
I_ATTACHMENT_HEADER =*
i_att_content_hex = t_att_content_hex ).
CATCH cx_document_bcs INTO lx_document_bcs.
ENDTRY.
Add attachment*
Pass the document to send request*
lo_send_request->set_document( lo_document ).
Create sender*
lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
lo_sender = cl_sapuser_bcs=>create( sy-uname ).*
Set sender*
lo_send_request->set_sender(
EXPORTING
i_sender = lo_sender ).
Create recipient*
lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).*
Set recipient*
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = 'X' ).
lo_send_request->add_recipient(*
EXPORTING*
i_recipient = lo_recipient*
i_express = 'X' ).*
Send email*
lo_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = lv_sent_to_all ).
COMMIT WORK.
message 'The Customer Information form has been emailed to the Employee' type 'I'.I am also facing issue with email send .
apex 4.1.1 oracle 11g
create or replace procedure email ( p_email in varchar2)
is
l_workspace_id number;
l_subject varchar2(2000);
l_body clob;
l_body_html clob;
l_email varchar2(40);
begin
l_workspace_id := apex_util.find_security_group_id (p_workspace => 'xyz');
apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
l_email:= p_email;
l_body := ' ';
l_subject := 'You have new tasks';
--if l_email=:P3_CONFIRM_EMAIL_ADDRESS is not null then
-- email( l_email =>:P3_CONFIRM_EMAIL );
-- end if;
l_body_html := '<p />The following tasks have been added.';
apex_mail.send (
p_to => l_email ,
p_from => '[email protected]',
p_body => l_body,
p_body_html => l_body_html,
p_subj => l_subject );
APEX_MAIL.PUSH_QUEUE;
end; I also check the log and queue but both are empty,
select * from
apex_mail_queue
select * from
apex_mail_log Kindly suggest what to do ?
I also created a process in apex , which call this procedure and pass the email address entered by user. -
Thunderbird sending pdf attachment problem – 'empty file' from mac to mac & PC
OSX 10.9.5 with TB 31.6
This problem has just started happening when sending PDFs to clients at different location who are using a mixture of email systems on Mac and PCs (different PDFs over the last week to differetent people but not everyone). The file arrives but it says 'empty file'. I have tried sending the same PDF though gmail and that arrives with no problem.
I can see this is a reoccuring problem with older TB releases but there doesn't seem to be a solution.
Can anyone help?
best
MartinI've now asked 2 people who have received PDFs either as "message saying that they are corrupted" ...
"Hi Martin. Many thanks - the files sent via MailBigFile have all opened up OK. I deliberately use a Mac to try and avoid viruses! No one else in the
factory could open them either. Kind regards, Nicky."
and
"I haven’t got anti-virus software. The third one you sent was openable (the one from from gmail). – Tim" ... this one said "empty file" also on a Mac. -
Facing problem with logo in the PDF attachment when sending mail...
hi friends,
i'm facing problem with logo in the PDF attachment to the mail.
my requirement:
1. enter spool number and mail id in the selection screen.
process:
1. now the program will fetch the spool data and converts it to PDF.
2. but when i'm trying to send mail with this PDF as attachment.
when i open the PDF file from the mail, logo is not coming properly (looks disturbed).
can anyone help me how to resolve this issue...
thanks in advance, murashali.hi dinakar, thanks for your mail...
logo looks good in spool/script/smartform.
even it look good when i download this spool to pdf and to the presentation server as pdf file.
i'm using CONVERT_OTFSPOOLJOB_2_PDF.
when i used CONVERT_ABAPSPOOLJOB_2_PDF, is gives a msg - 'spool number not found'.
here i'm using folloing code to pass pdf to the function module: SO_NEW_DOCUMENT_ATT_SEND_API1.
code:
Transfer the 132-long strings to 255-long strings
lt_mtab_pdf[] = pdf[].
LOOP AT lt_mtab_pdf INTO lwa_mtab_pdf.
TRANSLATE lwa_mtab_pdf USING ' ~'.
CONCATENATE lv_gd_buffer lwa_mtab_pdf INTO lv_gd_buffer.
CLEAR lwa_mtab_pdf.
ENDLOOP.
TRANSLATE lv_gd_buffer USING '~ '.
DO.
lwa_mess_att = lv_gd_buffer.
APPEND lwa_mess_att TO lt_mess_att.
CLEAR lwa_mess_att.
SHIFT lv_gd_buffer LEFT BY 255 PLACES.
IF lv_gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
NOTE: problem i believe is with ''. i'm getting this tilt symbol () in my pdf internal table. here in the above code the line TRANSLATE lv_gd_buffer USING '~ ' is changing the existing tilt to space. so my logo is getting disturbed.
even i tried with REPLACE this tilt with other char, but it doent work.
can you give any idea... -
Problem while opening PDF attachment in Inbox
Hi all,
I am sending PDF attachment through email to inbox.
When am trying to open PDF attachment i am getting error-
'There was an eror opening this document.The fuile changed and couldnt be open'
When i click on attachment some bytes are getting transfere essage is displayed in lower toolbar.
Please guide to resolve this problem.No reply.
-
Hi, my problem es this, I use de FM 'CONVERT_OTFSPOOLJOB_2_PDF' to convert a spool to PDF document, it work ok.
Then I convert th PDF doc from 132 to 255 char, and the end I send the PDF with FM 'SO_OBJECT_SEND'
The mail is sending correctly but when a try to open the PDF attached occurs an error "Error (14)" or "Format Error"
Anyone?
Thanks in advance.Instead of using the function module 'SO_OBJECT_SEND' try to use 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
For more information: check Abhishek Suppal's response in this [thread|PDF attachment in mail;. -
PDF Attachment preview problem
Hello,
Can some one advise me why would there be a problem in viewing pdf attachment properly.The problem is when I try to open a PO attachment that is sent via SAP or preview it in SAP itself, the content seems to vanish when scrolling up and down the document.The print program has been used before for a diiferent output type and it worked good and still is working very well.Thanks.
Regards,
PinkyThere are two reasons I can think of off hand that would cause a problem.
1) Email is a method of sending ascii information through the internet.
Since attached files are not necessarily ascii, different methods of
encoding the attachment and converting it to ascii have been developed.
Both the receiving and sending email programs, must understand the
method of encoding used. If not you are out of luck.
2) If the people are trying to read their mail at work, their employer
might have a policy of either not allowing attachments. They can either
reject all mail with attachments or they can strip the attachments from
the email.
...Mike -
Problem for Mail with PDF attachment
Hello all,
I have a problem regarding sending mail with a PDF attachment from SAP. The attachment contains Payslip of employee that is being generated from a Submit program of the respective HRFORM. I have used the Submit program within a JOB and the spool request generated. From the spool request i am extracting the pages using FM RSPO_GET_PAGES_SPOOLJOB.
Now to convert the spool job to PDF am using FM CONVERT_OTFSPOOLJOB_2_PDF. And after the job is being finished, am deleting both the JOB and SPOOL.
To change the output of the FM CONVERT_OTFSPOOLJOB_2_PDF, into attachment with line width of 255 am using FM SX_TABLE_LINE_WIDTH_CHANGE. Then after filling all the required parameters for FM SO_DOCUMENT_SEND_API1, am sending the mail with the attachment. I have kept the format as PDF.
But the problem here is, the attachment is going as .DAT file and not as .PDF file!!!
Please help to resolve this issue.
with regards,
Koushik.Hello,
Instead of using SO* APIs to send mail you should use the BCS classes. Anyway there is a sample program BCS_EXAMPLE_8 which is very similar to your requirement
Cheers,
Suhas
PS: The sample program BCS_EXAMPLE_6 has got more to do with PDF forms as is your case -
E-Mail problems - will not open pdf attachment found in my e-mail...
Here what I’m using:
OS X (10.3.9)
safari 1.2 (v125)
SBC Yahoo DSL (sbcglobal.net)
SBC MAIL
Running through Safari 1.2 (v125)
Over the weekend I elected to empty my cache and reset Safari (don’t ask me why - I guess I through by doing so it would speed up Safari which as been running a bit show of late) - now I’m unable to open any of my current or new pdf attachments.
I open a pdf attachment, it runs a antiVirus check, then when I try to open the attachments itself from the AntiVirus window it opens a black windows and stops - no pdf document!
So what's up and what do I do?
thanks in advance for the help I going to get!
ric rYou don't need to run any antivirus software at the present time with OS X. There are no viri that currently affect OS X which has been available for 5 years and counting and if the antivirus software used is causing problems which isn't protecting you from anything anyway, you should use the uninstall feature to remove it from the hard drive if included with the antivirus software installed.
You don't need to install any software provided by an ISP which can sometimes cause more problems than it helps.
You can download Firefox for free to test if the same occurs.
http://www.mozilla.com/firefox/
I would like to get myself over to mac's own
service Mail but just how is the question?
The required account information to set up your SBC email account with the Mail.app is provided on SBC's website or you can call SBC.
SBC will tell you they don't support the Mail.app but all you need is the following:
* Account Type - I'm sure POP is the account type.
* Incoming Mail Server
* Account User Name - usually the portion of your email address in front of the @ sign only but for some providers it is the entire email address.
* Account Password - this you should know.
* Outgoing or SMTP server and is the SMTP server authenticated? I don't believe SBC requires or supports SMTP authentication but if authenticated, ask what type of authentication. If SMTP authentication is required, it is usually password authentication which requires entering the same user name and password required to check the account's incoming mail server for new mail.
This is all you need to create and access the account using the Mail.app.
Regarding using Norton SystemWorks, don't. It is poison for OS X and can cause more problems than it resolves. Symantec announced almost 3 years ago they will no longer be supporting SystemWorks or Disk Doctor with OS X but they continue to sell their garbage and they don't sell a Tiger compatible version.
If installed on your hard drive, use the uninstall feature included to remove it and discontinue its use altogether. I believe the uninstall utility included has some problems so visit Symantec's website for an updated removal utility and/or for proper removal instructions. Symantec products installs a large number of components all over the hard drive. -
Problem in sending pdf attachment
hi all
i am facing a problem when i am sending a pdf attachment in mail... It is showing an errror that the file is not decode properly as it is an email attachment. The below code works fine for other file types. please help meFUNCTION ZMAIL_READ.
*"*"Local Interface:
*" IMPORTING
*" VALUE(SUBJECT) TYPE SO_OBJ_DES
*" VALUE(TEXT) TYPE STRING
*" VALUE(SENDER) TYPE ADR6-SMTP_ADDR
*" VALUE(RECEIVER) TYPE ADR6-SMTP_ADDR
*" VALUE(ATTACHMENTS) TYPE Z_T_XATTACH OPTIONAL
*" EXPORTING
*" VALUE(MESSAGE) TYPE STRING
DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
lo_bcs_send_request TYPE REF TO cl_bcs,
l_send type ADR6-SMTP_ADDR ,
l_rec type ADR6-SMTP_ADDR .
data: it_text type table of soli,
wa_text type soli.
DATA: lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
DATA: lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
DATA: lv_recipient_uid TYPE uname,
lv_recipient_mail TYPE adr6-smtp_addr.
data: lo_message type ref to cx_send_req_bcs value is initial,
text_val type string.
data: it_userlist type table of BAPIUSNAME,
wa_userlist type BAPIUSNAME.
data: it_selection_range type table of BAPIUSSRGE,
wa_selection_range type BAPIUSSRGE.
data: wa_attachment TYPE zxattach,
attachment_sub type SO_OBJ_DES.
DATA: xstr type xstring,
str TYPE string,
str1 type string,
it_str2 type table of soli,
wa_STR2 TYPE SOLI,
DATA: LOC_CONV TYPE REF TO CL_ABAP_CONV_IN_CE,
wa_soli type soli,
it_soli type table of soli,
it1_solix type solix_tab.
data result TYPE boolean.
data: i_ext(10) type c,
i_type type soodk-objtp.
wa_text-line = text.
append wa_text to it_text.
CLASS cl_bcs DEFINITION LOAD.
try.
lo_send_request = cl_bcs=>create_persistent( ).
catch cx_send_req_bcs.
endtry.
* Message body and subject
data: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
try.
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = it_text
i_subject = subject ).
catch cx_send_req_bcs.
catch cx_document_bcs.
catch cx_address_bcs.
endtry.
loop at attachments into wa_attachment.
attachment_sub = wa_attachment-file_name.
it_str2 = wa_attachment-attach.
loop at it_str2 into wa_str2.
str1 = wa_str2-line.
try.
CALL FUNCTION 'SSFC_BASE64_DECODE'
EXPORTING
B64DATA = str1
* B64LENG =
* B_CHECK =
IMPORTING
BINDATA = xstr.
catch cx_sy_dyn_call_illegal_type.
endtry.
try.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = xstr
APPEND_TO_TABLE = 'X'
* IMPORTING
* OUTPUT_LENGTH =
TABLES
BINARY_TAB = it1_solix
catch cx_sy_dyn_call_illegal_type.
endtry.
endloop.
try.
CALL FUNCTION 'SA_KW_RFC_FILENAME_EXT_GET'
EXPORTING
AREA = 'IWBSOLAR'
MIMETYPE = wa_attachment-type
IMPORTING
EXTENSION = i_ext
catch cx_sy_dyn_call_illegal_type.
endtry.
i_type = i_ext.
try.
lo_document->add_attachment(
EXPORTING
i_attachment_type = i_type
i_attachment_subject = attachment_sub
i_att_content_hex = it1_solix ).
CATCH cx_document_bcs.
endtry.
endloop.
try.
lo_send_request->set_document( lo_document ).
CATCH cx_send_req_bcs.
endtry.
wa_selection_range-PARAMETER = 'address'.
wa_selection_range-field = 'e_mail'.
wa_selection_range-sign = 'I'.
wa_selection_range-option = 'EQ'.
wa_selection_range-low = receiver.
append wa_selection_range to it_selection_range.
try.
CALL FUNCTION 'BAPI_USER_GETLIST'
* EXPORTING
* MAX_ROWS = 0
* WITH_USERNAME = ' '
* IMPORTING
* ROWS =
TABLES
SELECTION_RANGE = it_selection_range
USERLIST = it_userlist.
catch cx_sy_dyn_call_illegal_type.
endtry.
read table it_userlist into wa_userlist index 1.
try.
lo_sender = cl_cam_address_bcs=>create_internet_address( sender ).
lo_send_request->set_sender(
EXPORTING
i_sender = lo_sender ).
catch cx_send_req_bcs.
catch cx_document_bcs.
catch cx_address_bcs.
return.
endtry.
try.
lo_recipient = cl_sapuser_bcs=>create( wa_userlist-USERNAME ).
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient ).
* i_express = 'X' ).
catch cx_send_req_bcs.
catch cx_document_bcs.
catch cx_address_bcs.
endtry.
try.
** Send email
LO_SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
lo_send_request->send( EXPORTING
i_with_error_screen = ' '
RECEIVING
result = result ).
COMMIT WORK.
CATCH CX_DOCUMENT_BCS.
CATCH CX_SEND_REQ_BCS INTO lo_message.
CATCH CX_ADDRESS_BCS.
text_val = lo_message->IF_MESSAGE~GET_TEXT( ).
endtry.
if result = 'X'.
message = 'E-Mail sent'.
else.
message = 'E-Mail not sent'.
endif.
ENDFUNCTION. -
Smartform PDF email attachment problem
I am not able to see the attachment of email which is PDF format of smartform. It showing me the blank PDF page. Please check the following code and let me know where is the problem.
Thanks in stack.
CONVERT PDF FORMAT
I_OTF[] = WA_RETURN-OTFDATA[].
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = V_LEN_IN
TABLES
otf = I_OTF
lines = I_TLINE
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
if sy-subrc <> 0.
endif.
loop at i_tline.
translate i_tline using '~'.
concatenate wa_buffer i_tline into wa_buffer.
endloop.
translate wa_buffer using '~'.
do.
i_record = wa_buffer.
append i_record.
shift wa_buffer left by 255 places.
if wa_buffer is initial.
exit.
endif.
enddo.
Attachment
REFRESH: I_RECLIST,
I_OBJTXT,
I_OBJBIN,
I_OBJPACK.
CLEAR: WA_OBJHEAD,
WA_DOC_CHNG.
I_OBJBIN[] = I_RECORD[].
Create Message Body**** Title and Description
I_OBJTXT = 'PDF ATTACHMENT 2 !'.
APPEND I_OBJTXT.
DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
READ TABLE I_OBJTXT INDEX V_LINES_TXT.
WA_DOC_CHNG-OBJ_NAME = 'smartform'.
WA_DOC_CHNG-EXPIRY_DAT = sy-datum + 10.
WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
WA_DOC_CHNG-SENSITIVTY = 'F'.
WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
clear i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
append i_objpack.
Attachment* (pdf-Attachment)
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
describe table i_objbin lines v_lines_bin.
read table i_objbin index v_lines_bin.
i_objpack-doc_size = v_lines_bin * 255 .
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'smart'.
i_objpack-obj_descr = 'HELLO NILESH'.
append i_objpack.
clear i_reclist.
i_reclist-receiver = [email protected]'.
i_reclist-rec_type = 'U'.
append i_reclist.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = wa_objhead
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.Hai
go through the following code
REPORT ZRICH_0003.
DATA: ITCPO LIKE ITCPO,
TAB_LINES LIKE SY-TABIX.
Variables for EMAIL functionality
DATA: MAILDATA LIKE SODOCCHGI1.
DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
PERFORM SEND_FORM_VIA_EMAIL.
FORM SEND_FORM_VIA_EMAIL *
FORM SEND_FORM_VIA_EMAIL.
CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
Creation of the document to be sent File Name
MAILDATA-OBJ_NAME = 'TEST'.
Mail Subject
MAILDATA-OBJ_DESCR = 'Subject'.
Mail Contents
MAILTXT-LINE = 'Here is your file'.
APPEND MAILTXT.
Prepare Packing List
PERFORM PREPARE_PACKING_LIST.
Set recipient - email address here!!!
MAILREC-RECEIVER = '[email protected]'.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
PUT_IN_OUTBOX = ' '
TABLES
PACKING_LIST = MAILPACK
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = MAILBIN
CONTENTS_TXT = MAILTXT
RECEIVERS = MAILREC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM PREPARE_PACKING_LIST.
CLEAR: MAILPACK, MAILBIN, MAILHEAD.
REFRESH: MAILPACK, MAILBIN, MAILHEAD.
DESCRIBE TABLE MAILTXT LINES TAB_LINES.
READ TABLE MAILTXT INDEX TAB_LINES.
MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
Creation of the entry for the compressed document
CLEAR MAILPACK-TRANSF_BIN.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 0.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'RAW'.
APPEND MAILPACK.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM GET_OTF_CODE.
LOOP AT SOLISTI1.
MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
APPEND MAILBIN.
ENDLOOP.
DESCRIBE TABLE MAILBIN LINES TAB_LINES.
MAILHEAD = 'TEST.OTF'.
APPEND MAILHEAD.
Creation of the entry for the compressed attachment
MAILPACK-TRANSF_BIN = 'X'.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 1.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'OTF'.
MAILPACK-OBJ_NAME = 'TEST'.
MAILPACK-OBJ_DESCR = 'Subject'.
MAILPACK-DOC_SIZE = TAB_LINES * 255.
APPEND MAILPACK.
ENDFORM.
Form GET_OTF_CODE
FORM GET_OTF_CODE.
DATA: BEGIN OF OTF OCCURS 0.
INCLUDE STRUCTURE ITCOO .
DATA: END OF OTF.
DATA: ITCPO LIKE ITCPO.
DATA: ITCPP LIKE ITCPP.
CLEAR ITCPO.
ITCPO-TDGETOTF = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZTEST_FORM'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DIALOG = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
MOVE-CORRESPONDING ITCPO TO ITCPP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = ITCPP
TABLES
OTFDATA = OTF
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR SOLISTI1. REFRESH SOLISTI1.
LOOP AT OTF.
SOLISTI1-LINE = OTF.
APPEND SOLISTI1.
ENDLOOP.
ENDFORM.
Thanks & Regards
Sreenivasulu P -
PDF ICON problem in attachment
Hi all,
I am sending the PO smartform to mail as PDF attachment .
Attachment was happening correct. but problem is Attachment ICON was not showing as PDF ICON. When Double click on attachment to open , it is asking with OPEN WITH POPUP.in that I am choosing Acorobat reader.
but i need when i double click attachment , it shoube open in directly in PDF.
please help in this.
regards,
Rama
Edited by: ram reddy on Feb 24, 2009 1:47 PMJust check if everything is fine or not.
TYPES : BEGIN OF ty_errorlog,
field(255) TYPE c,
END OF ty_errorlog.
DATA: lwa_objpack TYPE sopcklsti1, "Contents of the Email
lt_objpack TYPE STANDARD TABLE OF sopcklsti1,
lwa_reclist TYPE somlreci1, "Recievers List
lt_reclist TYPE STANDARD TABLE OF somlreci1,
lwa_errorlog TYPE ty_errorlog,
lwa_doc_chng TYPE sodocchgi1, "Mail Contents
lt_errorlog TYPE STANDARD TABLE OF ty_errorlog.
CONSTANTS :lc_1(15) TYPE n VALUE '1', "Email Params
lc_2(15) TYPE n VALUE '2', "Email Params
lc_raw(3) TYPE c VALUE 'RAW', "Email Params
lc_u TYPE c VALUE 'U', "Recipient Property
lc_01 TYPE c VALUE '1',
lc_docsize TYPE so_doc_siz VALUE '510',
lc_x TYPE c VALUE 'X'.
Pack to main body
lwa_objpack-body_start = lc_1.
lwa_objpack-head_start = lc_1.
lwa_objpack-body_num = lc_2.
lwa_objpack-doc_type = lc_raw.
APPEND lwa_objpack TO lt_objpack.
Fill receiver list
lwa_reclist-receiver = p_mail.
lwa_reclist-rec_type = lc_u.
APPEND lwa_reclist TO lt_reclist.
Filling Mail Contents
lwa_doc_chng-obj_descr = p_subject.
lwa_doc_chng-obj_prio = lc_01.
lwa_doc_chng-doc_size = lc_docsize.
lwa_errorlog-field = p_msg.
APPEND lwa_errorlog TO lt_errorlog.
Calling FM to Send Email
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lwa_doc_chng
put_in_outbox = lc_x
commit_work = lc_x
TABLES
packing_list = lt_objpack
contents_txt = lt_errorlog
receivers = lt_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 e011(z_com_msg).
ENDIF.
Edited by: Phanindra Annaparthi on Feb 24, 2009 1:49 PM -
New document: How to avoid known PDF email attachment problems
Have you ever had problems with PDF attachments sent from Adobe Reader for iOS using Share > E-mail Document?
You may find this document useful to avoid the problems.
How to avoid known PDF email attachment problems
Please let us know if you have encountered different types of problems with PDF attachments. We can look for solutions or workarounds for you.Unfortunately, we (Adobe Reader mobile team) do not know if/when Apple will fix the attachment problems (software defects) in Apple Mail.
In particular, the attachment problem with Microsoft Outlook (See Problem #2 in How to avoid known PDF email attachment problems) appears to be a long-standing defect that has been known for years. However, Apple has not provided any fix for Apple Mail yet.
Adobe Reader for iOS merely launches Apple Mail (the default mail app on iOS) to send a PDF document as an attachment. Adobe Reader has no control over whether or not to embed a preview image of an attachment in the body of an email message, which is known to cause the problem with Microsoft Outlook (on the receiving side). The same problem happens when you send a single-page PDF document as an attachment along with an email signature from Apple iBooks on iOS.
For now, all iPad/iPhone users can do is to avoid the problems by using the workarounds that are described in How to avoid known PDF email attachment problems.
When new and different problems with PDF attachments are reported by Adobe Reader for iOS users, we will update the document above.
Sorry for the inconvenience.
Maybe you are looking for
-
How to create a Attribute "Type standard table OF" to a OSS NOTE
Dear experts, I need to add new attributes in a standard class as per one OSS note. I took access key to add new attributes. I have a question. class name: CL_J_1BEFD Attribute: MT_GROUP_C350 Level: Instance Visibility: Private Type STANDARD TABLE OF
-
Hello. I'm using the Photoshop CC in Windows8 64x as trial and find a curious bug with the Move Tool: Usually I select multiple layers creating a selection with the Move Tool on them, but in this new CC version the tool is selecting hidden layers too
-
Link to download Oracle Reports Tutorial Sample Files
Hi, I tried to download Oracle Reports Tutorial Sample Files from the following page: http://www.oracle.com/technology/products/reports/htdocs/getstart/gettingstarted/index/index.html?cat=DEV&col=EXA&submit=Search The files don't seem to be at the ex
-
We have NW04, EP6.0 SP09 on Windows with R/3 4.7 enterprise on MSSQL. Say you have 3 people for your orginazation. CEO = A, midlevel manager = B, and salary worker = C. Right now in MSS, manager B can perform an appraisal for C and A can appraise B.
-
2 moc packages conflicting and pidgin music tracker not working
Hi all, yesterday i installed moc from aur extra/moc 2.4.4-2 [installed] An ncurses console audio player with support for the mp3, ogg, and wave formats i tried setting up pidgin-music-tracker plugin to use moc, but it keeps staying in "Stopped" stat