EWA as Word Attachment
Hi,
We have SolMan 7.0.
I am getting EWA as HTML text in mail. Is it possible to get that report as attachment in mail.
I could not find any information regarding an automatic mail with an attachement.
Your help will be greately appreciated.
Regards,
SC
Hi Sume,
Please check below links
http://help.sap.com/saphelp_sm40/helpdata/en/49/fa6b41419f031de10000000a155106/frameset.htm
http://help.sap.com/saphelp_sm40/helpdata/EN/af/73563c1e734f0fe10000000a114084/content.htm
Regards,
Srinu
Similar Messages
-
Occasionally, when composing and email, the word "Attaching" appears at the bottom of the window and a progress bar repeatedly sweeps as though a file is being attached, but I haven't tried to attach anything to the email.
Hi mark11111,
Does this happen when you are composing new emails, or when you are replying to emails?
Or both? -
Help, I Can't open excel or word attachment​s
I received an email with an excel attachment. I open it and the screen is blank. when I open a word attachment, it looks like a fuzzy picture of the doc. How can I open and use word and excel attachments (I use office 2003)
This is not normal!! Can you please try with a soft reset of your device...pull the battary out for 30sec.
tanzim
If your query is resolved then please click on “Accept as Solution”
Click on the LIKE on the bottom right if the post deserves credit -
Send email with microsoft word attachment
Hi,
I need to send the microsoft word as an attachment to external email. When I send an email using transaction SBWP to external email, the recipient will receive the attachment in Microsoft word format. But when I send the attachment to external email using my program, the Microsoft word automatic change to pdf. Kindly help. Attach is my sample program.
*& Form send_email
FORM send_email .
LOOP AT raw_tab.
MOVE raw_tab-l TO it_attach-line.
APPEND it_attach.
ENDLOOP.
WRITE 'Test' TO w_doc_data-OBJ_DESCR.
perform get_packing.
perform populate_email_message_body.
perform receiver.
lt_objhead = 'TEST'.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
object_header = lt_objhead
contents_bin = it_attach
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.
COMMIT WORK AND WAIT.
ENDFORM. " send_email
*& Form get_packing
FORM get_packing .
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-body_num = t_packing_list-body_num.
t_packing_list-doc_type = 'TXT'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_attach LINES body_num2.
t_packing_list-body_num = body_num2.
t_packing_list-doc_type = 'DOC'.
t_packing_list-obj_descr = 'TXT attachment'.
t_packing_list-obj_name = 'ATTACHMENT'.
DOC_SIZE2 = ( ( body_num2 - 1 ) * 255 ) + STRLEN( it_message ).
t_packing_list-doc_size = doc_size2.
APPEND t_packing_list.
ENDFORM. " get_packing
*& Form populate_email_message_body
form populate_email_message_body.
REFRESH it_message.
it_message = 'Testing program'.
APPEND it_message.
ENDFORM. " populate_email_message_body
*& Form receiver
FORM receiver .
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
t_receivers-receiver = [email protected]'.
APPEND t_receivers. clear t_receivers.
ENDFORM. " receiverjust pass mail Id and the Pc file path of word doc in the selection screen of the below program ,it will send it as word attachment to the recepient.pls reward points if helpfull -
REPORT ZGILL_SENDMAIL_PDF .
INCLUDE ZGILL_INCMAIL. "SEE BELOW FOR INCLUDE PROGRAM CODE.
DATA
DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
DATA : file_name TYPE string.
data : path like PCFILE-PATH.
data : extension(5) type c.
data : name(100) type c.
SELECTION SCREEN
PARAMETERS : receiver TYPE somlreci1-receiver lower case DEFAULT '[email protected]'.
PARAMETERS : p_file LIKE rlgrap-filename
OBLIGATORY DEFAULT 'C:\TEMP\SALARY_SLIP1.PDF'.
AT SELECTION SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CLEAR p_file.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = p_file.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM ml_customize USING 'Tst' 'Testing'.
PERFORM ml_addrecp USING receiver 'U'.
PERFORM upl.
PERFORM doconv TABLES itab objbin.
PERFORM ml_prepare USING 'X' extension name.
PERFORM ml_dosend.
SUBMIT rsconn01
WITH mode EQ 'INT'
AND RETURN.
FORM
FORM upl.
file_name = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_name
filetype = 'BIN'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
path = file_name.
CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
EXPORTING
complete_filename = path
CHECK_DOS_FORMAT =
IMPORTING
DRIVE =
EXTENSION = extension
NAME = name
NAME_WITH_EXT =
PATH =
EXCEPTIONS
INVALID_DRIVE = 1
INVALID_EXTENSION = 2
INVALID_NAME = 3
INVALID_PATH = 4
OTHERS = 5
ENDFORM. "upl
*********************iNCLUDE pROGRAM********************************************
*& Include ZGILL_INCMAIL *
Data
DATA: docdata LIKE sodocchgi1,
objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objhex LIKE solix OCCURS 10 WITH HEADER LINE,
reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
DATA: tab_lines TYPE i,
doc_size TYPE i,
att_type LIKE soodk-objtp.
DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
FORM
FORM ml_customize USING objname objdesc.
Clear Variables
CLEAR docdata.
REFRESH objpack.
CLEAR objpack.
REFRESH objhead.
REFRESH objtxt.
CLEAR objtxt.
REFRESH objbin.
CLEAR objbin.
REFRESH objhex.
CLEAR objhex.
REFRESH reclist.
CLEAR reclist.
REFRESH listobject.
CLEAR listobject.
CLEAR tab_lines.
CLEAR doc_size.
CLEAR att_type.
Set Variables
docdata-obj_name = objname.
docdata-obj_descr = objdesc.
ENDFORM. "ml_customize
FORM
FORM ml_addrecp USING preceiver prec_type.
CLEAR reclist.
reclist-receiver = preceiver.
reclist-rec_type = prec_type.
APPEND reclist.
ENDFORM. "ml_customize
FORM
FORM ml_addtxt USING ptxt.
CLEAR objtxt.
objtxt = ptxt.
APPEND objtxt.
ENDFORM. "ml_customize
FORM
FORM ml_prepare USING bypassmemory whatatt_type whatname.
IF bypassmemory = ''.
Fetch List From Memory
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'LIST_FROM_MEMORY'.
ENDIF.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
COMPRESSED_SIZE =
TABLES
in = listobject
out = objbin
EXCEPTIONS
OTHERS = 1
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'TABLE_COMPRESS'.
ENDIF.
ENDIF.
Header Data
Already Done Thru FM
Main Text
Already Done Thru FM
Packing Info For Text Data
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'TXT'.
APPEND objpack.
Packing Info Attachment
att_type = whatatt_type..
DESCRIBE TABLE objbin LINES tab_lines.
READ TABLE objbin INDEX tab_lines.
objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = att_type.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = whatname.
APPEND objpack.
Receiver List
Already done thru fm
ENDFORM. "ml_prepare
FORM
FORM ml_dosend.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X' "used from rel. 6.10
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
CONTENTS_HEX = objhex
OBJECT_PARA =
object_parb =
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
WITH docdata-obj_name.
ENDIF.
ENDFORM. "ml_customize
FORM
FORM ml_spooltopdf USING whatspoolid.
DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
Call Function
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = whatspoolid
TABLES
pdf = pdf
EXCEPTIONS
err_no_otf_spooljob = 1
OTHERS = 12.
Convert
PERFORM doconv TABLES pdf objbin.
ENDFORM. "ml_spooltopdf
FORM
FORM doconv TABLES
mypdf STRUCTURE tline
outbin STRUCTURE solisti1.
Data
DATA : pos TYPE i.
DATA : len TYPE i.
Loop And Put Data
LOOP AT mypdf.
pos = 255 - len.
IF pos > 134. "length of pdf_table
pos = 134.
ENDIF.
outbin+len = mypdf(pos).
len = len + pos.
IF len = 255. "length of out (contents_bin)
APPEND outbin.
CLEAR: outbin, len.
IF pos < 134.
outbin = mypdf+pos.
len = 134 - pos.
ENDIF.
ENDIF.
ENDLOOP.
IF len > 0.
APPEND outbin.
ENDIF.
ENDFORM. "doconv
**********************INCLUDE END******************************** -
Why can't I open an email word attachment in pages anymore
When opening an email word attachment I was always given the option to open an attachment in Pages or as a PDF or in Dropbox but this no longer happens. Can anyone tell me if the functionality has been closed off or is it now dealt with in a different way?
Is the PDF Maker available in Excel? It is necessary to have PDF Maker workinig in OFFICE to be able to import those files.
-
My mother has an iPad and so do I. I have successfully sent photos and videos to her. She took a photo with her iPad and sent it to me. I receive her mail with the word, "attachment" and with the paper clip symbol - but there is never an attachment! No photo! How is this possible if she is doing the exact steps that I do when mailing photos? Is something locked? Thanks for help.
Scroll down to the bottom of the email. Is there a message there to download the rest of the email?
Quit Mail and try again. Go to the Home screen and double click the Home button. That will reveal the row of recently used apps at the bottom of the screen. Tap and hold on the app in question until it jiggles and displays a minus sign. Tap the minus sign to actually quit the app. Then tap anywhere on the screen above that bottom row to return the screen to normal. Then restart the app and see if it works normally. -
Couldn't open my microsoft word attachment.
New to a mac. Just got one on the new release of OSX. I mailed myself a word attachment from a PC and when I got it on my Mac, it didn't recognize it as a word document. Microsoft Office 2004 is installed. I tried to do a "open with" and clicked WORD, it still wasn't recognized as a word document.
Has anyone run into this problem? Are there any suggestions?Sorry everyone, it was my point of orgin that was setup incorrectly. I changed my outgoing mail from RICH TEXT to HTML and everything seems to be alright.
-
I opened a word attachment to an email in my gmail account and now I can't get rid of it. When I tap the mail icon the doc appears not my emails. Can anyone help?
1. Double-click the Home button reveal the Task Bar
2. Hold the Mail icon down for a minute or two until the minus sign appear
3. Hit the minus sign to close the Mail icon -
Hi,
I tried to send a email with a word document as attachment. The word document is stored in the server. I read it with cl_crm_documents=>get_document and get a table lt_cont_b with binary content. Then I use this binary table as import parameter for the methd
data document type ref to cl_document_bcs.
document->add_attachment( i_att_content_hex = lt_cont_b ).
send_request->set_document( document ).
recipient = cl_cam_address_bcs=>create_internet_address( e_mail ).
send_request->add_recipient( recipient ).
sent_to_all = send_request->send( i_with_error_screen = 'X' ).
commit work.
But just a email with a empty word document will be sent. What's wrong?
thanks for ur helpI'm a RoadRunner customer and I haven't experienced the same.
Are you able to send a text only message without a Word attachment?
Are you able to send any other type of file as an attachment such as a picture or jpeg file? -
EWA Report as Word Attachment to email address
hi
Currently I have html format of EWA report automatically sent to Basis Team email id .
How do I get EWA report file as MSWORD Attachment in email.
Yes. I can see that in Solman System , MSword file is generated ., But emailed only HTML version.
Hope you got my Point .Mahesh Gangula wrote:
Thanks for all your replies .
>
> SAP Already confirms that , Thats not possible.
>
> My Client Manager Asking , why EWA comes are In-place(email body) HTML .
>
> Can we make it asd HTML Attachment as email delivery ?
Hello Mahesh
The main technical difficulty is the fact that many a email servers reject HTML content as a attachment. Plus the fact that the EWA report uses IGS services if opened as a HTML page will fail all the time since the email is not connected to the IGS server of the Solution Manager.
Hence a mail body is created instead of a attachment.
I hope that you now understand the technicality of the issue.
Regards
Amit -
How to pass variable to data tab which replace text in Word attachment
Dear ABAP folks,
I use METHOD cl_gui_frontend_services=>gui_upload to upload my word doc in BINARY and sucessful sent this word doc as attachment with Thomas Jung's FUNCTION 'Z_E_KEG_SEND_SIMPLE_EMAIL'.
However, inside the word file, i need insert varible personnel number p0000-pernr.
*How to pass the value p0000-pernr to data tab (lt_data) which replace symbol text &s_pernr& in doc before created as attachment ? *
I try 'SCMS_BINARY_TO_TEXT' and 'SCMS_BINARY_TO_STRING' but fail.
Need expert 's help.
Thanks & Rgds,
Felice
Below are my code:
** Upload file to read data as binary
CALL METHOD cl_gui_frontend_services=>gui_upload
IF lt_data[] IS NOT INITIAL.
CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
EXPORTING
full_name = lv_filename
IMPORTING
stripped_name = lv_str_filename
EXCEPTIONS
x_error = 1
OTHERS = 2.
SPLIT lv_str_filename AT '.' INTO lv_junk lv_filetype.
ls_attach-type = lv_filetype.
ls_attach-subject = lv_str_filename.
ls_attach-CONTENT_HEX[] = lt_data[].
APPEND ls_attach TO lt_attach.
CLEAR ls_attach.
ENDIF.
CALL FUNCTION 'Z_E_KEG_SEND_SIMPLE_EMAIL'
EXPORTING
REQUESTED_STATUS = 'E'
DOCUMENTS = lt_attach
RECIPIENTS = lt_rec
MESSAGE = t_objtxt
SUBJECT = 'Confirmation Review'.
COMMIT WORK.
clear lt_rec.
clear ls_rec-i_copy.Dear Luigi,
Do you have sample code which replace the value in Word file ?
I try sample code below, but the mergefield 'Title' in Word file not replace instead it override the whole file.
Even i try with different download path, it also not update field 'Title'.
The mergefield i insert by microsoft word > mailings > insert merge field >Title.
report ztestmail_c.
data: global_filename LIKE RLGRAP-FILENAME.
data: begin of imerge occurs 0,
Title(85) type c, field02(85) type c,
field03(85) type c, field04(85) type c,
end of imerge.
data: begin of itabf occurs 31,
ff(10),
end of itabf.
itabf-ff = 'Title'. "append itabf.
imerge-Title = 'test0'.
append imerge. clear imerge.
global_filename = 'c:\temp\confirm-form0508.doc'.
CALL FUNCTION 'WORD_OLE_FORMLETTER'
EXPORTING
WORD_DOCUMENT = global_filename
* hidden =
* word_password = " Password for the mail merge file (.DOC)
* password_option = 1 " i Controls password use
* file_name = 'confirm-form0508' " rlgrap-filename Name of download file (w/o ext.)
* new_document = " Create new Word document
DOWNLOAD_PATH = 'C:\temp\confirm-form0615.doc'
TABLES
DATA_TAB = imerge
FIELDNAMES = itabf
EXCEPTIONS
INVALID_FIELDNAMES = 1
USER_CANCELLED = 2
DOWNLOAD_PROBLEM = 3
COMMUNICATION_ERROR = 4
OTHERS = 5. -
Adding Word attachment to a SOFM object and then to Workflow container
Hi!
I have a Web Dynpro for ABAP application that should send attachments of uploaded files to a workflow container. I have already managed to do this, and it works fine for TXT files, but when I try to attach a WORD (.DOC) file the file looks corrput when I open it from the SAP inbox.
When uploading files in Web Dynpro it is as an XSTRING. I have tried out the following alternatives regarding convertion of the XSTRING before it is inserted in the SOFM object:
1) Convert from XSTRING to STRING using codepage 4110.
Then it is split into a string table of 255 chars
2) Convert from XSTRING to STRING using codepage 4102
Then it is split into a string table of 255 chars
3) Convert from XSTRING to BINARY format
I use function module 'SWL_SOFM_CREATE_WITH_TABLE'
and then swf_create_object lr_sofm 'SOFM' ls_sofm_key.
before I call some macros to fill the container.
Anyone else who have tried to do this with success? I'm greatful for any help.
Regards, TineHello there.
This is probably an usability question that you should ask Microsoft, not us. In any case, you probably need to open the document (it's probably a document that can't be open inside Firefox, so use the appropriate software) and copy it from there.
I'm sorry I can't be of more help. -
Send Word attachment on iPhone?
Can I add a Pages or Word or PDF document as an attachment on iPhone3G?
I need to write a document on my laptop when abroad and then send it via my iPhone (I am often in remote areas away from wi fi). Can I email the Word or PDF to myself, download on iPhone then forward to another person by email? Or bluetooth the PDF to iPhone from the laptop, then attach it?
If so, how?Yes, you can email it to your iPhone from your Laptop, but if you can email from your laptop, why not just email it to the final recipient from your laptop without going through you iPhone?
If you're in a remote area with no wifi, you obviously won't be able to email it from your laptop to your iPhone, unless your laptop has a cellular service.
You can't BT the doc over. With no connection to your laptop, you may be able to sync the doc over via iTunes, i.e. email, notes or Calendar, depending on the length of the doc. -
Hey Guys,
Just wondering if anyone else has had this issue. If a word document is sent as an attachment to the iPhone with "track changes" turned on the iPhone does not distinguish the original text from the changes. The iPhone merges everything together, making the the MS Word document unreadable, very annoying.This is because the iPhone does not have a full functioning "Word" program, just a reader.
-
Microsoft word attachment D110a returns system error
I have a D110a with the eprint feature turned on. When I email the printer with an attached word document my hp center says there is a system error. I can print my document if i copy and paste the text int the body of the email but I lose my formatting. Does any one have any solutions.
Are there graphics in the Word doc you are sending?
How big is the attachment?
Since HP ePrint provides convenience printing, it may be a better document printed using a different method. Documents printed with ePrint may appear different from the original. Style, formatting, and text flow may differ slightly from the original document
Although I am an HP employee, I am speaking for myself and not for HP
Maybe you are looking for
-
Hi, I am facing the problem that when I read the content of the texteditor, store it in a javascript variable, and then write it again into the editor area, all line breaks (not html line breaks, just the line breaks for the code structure) are gone.
-
Problem in Closing a web dynpro application
Hi experts, I wanted to close the application when the user clicks on the close button. I created a out bound plug "EXIT" of type 'EXIT' in my window. I also created a parameter "CLOSE_WINDOW" of type "WDY_BOOLEAN" for the outbound plug Now in action
-
How to know (package , procedures or functions) name for current sessions
Hi all I'm DBA and i want to find way to get object name whatever (package , procedures or functions) for current running statement in active session. To clarify when i open session browser from toad i can see active sessions and see current statemen
-
Displaying IPOD Video on Television
I just have a couple questions regarding hooking my 5G IPOD to my television. I have a stereo receiver with a few video input/out connections, which my DVD is currently attached to among other things. When I hook up the IPOD to the stereo, which is h
-
"Not enough disc space" when exporting
Hello all - I am running iPhoto 2.0.1 with OX 10.3.9. My hard disc has 40GB. Every once in a while, when I try to export a large number of photos into a desktop folder or as a slide show to QuickTime, I will get an error message saying, in effect, th