Email with text attachment with line width 1250
Dear all,
I want to send the email with text attachment whose line width in text file is 1250. Kindly let me know how to send email attachment with more than 255 line width.
Regards,
Manoj
Moderator Message: Frequently Asked Question. Please search for available information before posting.
Edited by: kishan P on Apr 29, 2011 2:48 PM
Hi,
What ever text you are sending in the email, create a standard text for it using tcode SO10. In the program use the FM READ_TEXT to get the data into internal table which will be of length 132 char. If you want line widht of 255 chars convert using FM SX_TABLE_LINE_WIDTH_CHANGE as below,
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
line_width_dst = '255'
TABLES
content_in = it_data
content_out = it_mess_att
EXCEPTIONS
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
OTHERS = 4.
Use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send email.
Hope this will help you.
regards,
Tulasi.
Similar Messages
-
Send Email with Excel attachment with formatting(bold, color) in Background
Hi,
I have requirement wherein I have to send an email with excel attachment with proper formatting of certain fields in the excel sheet like making it bold or setting different color. The data is available in an internal table. Just to to format it and send an email when the program is executed in background mode.
Any pointers on this would be highly appreciated!
Thanks,
Anil.I resolved my own problem using the BCS_EXAMPLE_7 program as sample.
-
How to send an email without any attachment with a simple message???
Hello ALL,
I have a requirement of sending an email on click of a button. I have navigated through the class CL_BCS,
but I am anable to understand certain things. First is : WHAT IS THE USE OF CREATE_PERSISTENT ???
Second: which method would send an email?
How do I add the sender's email id and receipent's email id?TRY.
create persistent send request
lp_send_request = cl_bcs=>create_persistent( ).
Get the text
IF iv_stxt IS NOT INITIAL.
CALL METHOD zfi_flexgl_common=>read_text
EXPORTING
iv_stxt = iv_stxt
IMPORTING
et_tline = lt_tline
ev_failed = ev_failed.
LOOP AT lt_tline INTO ls_tline.
APPEND ls_tline-tdline TO lt_text.
ENDLOOP.
ENDIF.
create and set document
create document from internal table with text
lp_document = cl_document_bcs=>create_document(
i_type = iv_format_type "'XLS' "HTM'
i_text = lt_text
i_subject = iv_msg_subj ).
IF it_attach IS NOT INITIAL.
Add attachment
DATA: l_size TYPE sood-objlen, " Size of Attachment
l_lines TYPE i. " Lines count
l_lines = LINES( it_attach ).
l_size = l_lines * 255.
CALL METHOD lp_document->add_attachment
EXPORTING
i_attachment_type = 'RAW'
i_attachment_subject = 'My attachment'
i_attachment_size = l_size
i_att_content_text = it_attach.
ENDIF.
add document to send request
CALL METHOD lp_send_request->set_document( lp_document ).
Sender addess
*l_sender = cl_sapuser_bcs=>create( sy-uname ).
*call method l_send_request->set_sender
exporting
i_sender = l_sender.
LOOP AT it_rec INTO ls_rec.
lv_receiver = iv_rec.
TRY.
CALL METHOD cl_cam_address_bcs=>create_internet_address
EXPORTING
i_address_string = lv_receiver
RECEIVING
result = lp_recipient.
CATCH cx_address_bcs .
ENDTRY.
CALL METHOD lp_send_request->add_recipient
EXPORTING
i_recipient = lp_recipient
i_blind_copy = abap_true
i_express = abap_true.
ENDLOOP.
IF sy-subrc <> 0.
ev_failed = abap_true.
EXIT.
ENDIF.
---------- send document ---------------------------------------
CALL METHOD lp_send_request->send(
RECEIVING
result = lv_flag ).
CATCH cx_send_req_bcs.
ev_failed = abap_true.
CATCH cx_document_bcs.
ev_failed = abap_true.
ENDTRY. -
Selecting type with text tool - grabbing lines
This is has happened in the past but much more so with my current version of illustrator (I have CS2). When I use the text tool to revise text, it seems to want to select whatever lines are closest to the text rather than the text. This is very frustrating - I want my text tool to select whatever TEXT it is closest too, not lines. Is this a fault of the program or is there a setting somewhere I can change to make this happen less, or preferably, not at all?
Pressing Alt is
supposed to force-toggle the infuriating text tool between the TypeTool and the TypeOnAPathTool.
So if the path that you don't want to turn into a PathType object is an open unfilled path (like a manually-drawn underline, and it is in front of the text object you want to edit, this seems to work, when the TypeTool is selected:
1. Press Ctrl to momentarily invoke the most recently-used pointer. Select the underlying text object.
2. Release Ctrl. The TypeTool cursor returns. Note that when the cursor is in proximity to the path, it changes to the TypeOnAPathTool cursor (the one with the wavy line).
3. Press Alt. Note that the cursor changes to the TypeTool, and has a circle around it. Click and you should enter the text, not create a PathType object.
However, as far as I can figure out (actually, as far as I can bear to muck with this awful interface), this does not work correctly if the unwanted path is filled. Try this:
1. Create a text object with some text in it.
2. Draw a filled rectangle that overlays just part of the text.
3. TypeTool: Press Alt to momentarily invoke a pointer. Click the text object to select it.
4. Release Alt. TypeTool comes back.
5. Hover within proximity to the filled rectangle. The cursor becomes the normal TypeTool cursor enclosed in a circle.
This suggests that a click will enter the text, not create a PathType. Alas, it creates a PathType anyway. Try it again, this time pressing Alt. Pressing Alt makes the cursor change to the TypeOnAPath cursor, with no circle around it. Clicking creates a PathType.
Worst text-handling interface I have ever seen.
JET -
Only vibrates does not ring or sound with text even with tones selected
HELP!!! My phone is not on silent or do not disturb but it only vibrates and does not ring or sound with text messages All sounds have been selected correctly. Any idea what could be wrong?
Thanks!I don't have sound anymore either. The mute button is in the correct position, the sounds are all on and the volume is all the way up. iTunes plays but I only get vibrations when a call or text comes through. I tried resetting but it did not solve the problem.
-
Email report as attachment with link to webi version
I want to schedule a webi report such that the report is sent as an excel attachment.
In addition I want to provide a URL to the report that the user can click to view the report in Webi in the browser with live/current data if required. The actual report will also have options to slice and dice the data so user can interact with the data and derive any other information the he/she needs.
I've got the email and attachment part taken care of.
How to I provide a URL to the original report (not the instance of the report). I am using SAP BO 4.1.Hi Vivek,
try this..
Please use Open Document Concept here and copy OpenDocument URL Email Body as hyperlink.
Ex:http://<Servername>:PortNo/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID="
Thanks,
Venkat -
When my phone (Droid 4: I like the physical keyboard, which seems to be going the way of the dodo) was upgraded to 4.1.2 a while back, the following happened:
-- Spell check disappeared from text entry using any browser;
-- Auto-complete started losing track of where I was in a sentence, so hitting backspace deleted entire words instead of the last character typed;
-- The Swype keyboard ceased to function.
As a result, I had to give up on many of the spell-check features and give up on the Swype keyboard.
I'm really hoping that an update is forthcoming, and further, that it will fix the issues with the last one.
Anyone have any idea?I have not installed any third party messaging apps or keyboard functionality apps, at least not intentionally. I rebooted in Safe Mode and all symptoms are the same. I tested it by going to Google Translate, which has a web input window. Spell check was inactive, Swype was capitalizing every word, making it basically useless.
A symptom that I failed to mention continues to be present in Safe Mode also – when hitting the shift key and backspacing, the selected text is not highlighted, so I basically have to guess what I’ve selected, and only find out if I’m right once I hit backspace or start typing in replacement text.
Spell check was inactive in third party applications also, for example Quick Office. It did show up in Gmail. I was unable to duplicate any application getting lost in terms of where the cursor is so that I deleted the wrong text; however, this is an intermittent problem, so I would probably have to do a lot of typing, etc., to duplicate it. However, I have seen other posts complaining about phone behavior very similar to what I reported.
Bottom line – The phone acted precisely the same in Safe Mode as it did outside of Safe Mode.
Thanks.
(Also, it would be helpful if you could tell me how to reply to a post in the community – I got this reply posted by replying to the e-mail, but I don’t see any reply link on the message webpage.) -
Financial Reporting 9.1.3 - Modifying Email Body text of cmd line scheduled
I would like to add text to the body of the command line scheduled email that is sent out using Financial Reporting.
Ideally I would like to suppress the text that is automatically added to the body of the email by Financial Reporting as well.
I have modified the subject line by modifying the XML files.
I tried adding text to the body tag, but that does not seem to be working. (no matter what I put into the body tag it does not show up).
any ideas?Hi,
Have you configured the SMTP server settings in the various config files for the new version that you are using? Your log seems to suggest that it is still set to 'mail' which I think is the default.
I think the minimum you need to do is Essbase, Financial Reporting and Workspace, files as detailed below (paths may vary depending upon platform, windows & tomcat provided below even though it sounds like you've done this before).
Essbase: C:\Hyperion\AnalyticAdministrationServices\server\ OlapAdmin.properties
Financial Reporting: C:\Hyperion\BIPlus\lib\ fr_global.properties
Workspace: log in and select Navigate > Administer > Notifications
You may also need to restart the related services.
Hope this helps
Stuart Game
www.analitica.co.uk -
Ever since downloading ios8 onto my 5S the camera isn't cooperating with other apps--messages, Freshbooks in particular. What's up with that? Very frustrating!
MacBook Pro / Mozilla Firefox / Netflix / Silverlight Update solved - DON'T DWNLOAD FROM NETFLIX
I solved this problem tonight. I have a MacBook Pro with 10.5.8. I know, it's old. But I love my Netflix and I recently noticed that Firefox plays Netflix much better. Then I suddenly got this message that I needed to download the latest Silverlight - it only takes 30 seconds! - WRONG. However, after much searching, I finally did the steps in order and it worked.
This was after repeatedly downloading Silverlight from the Netflix site without success. So here's what I did:
1. Went to http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx
2. Followed the directions. I felt like such an idiot for not doing it right before.
3. Go to your hard drive and search for "Silverlight" to locate ANY existing Silverlight files: .dmg, etc.
[also check your Libary/ Internet Plug-ins, but the above search is faster]
4. Drag it all to the trash and empty it.
5. Go back to the Get Silverlight page and click on the Install on that page, not the Netflix site.
6. Note the steps for Safari or Mozilla Firefox - I wanted Firefox, so I follwed those instructions.
7. Once it's installed, close all the browsers and Restart that bad boy. Right away.
8. Open a browser, go to Netflix and proceed to joyfully rot your brain with Netflix content. Yay! -
Problem in excel format while sending mail with excel attachment.
Hi Gurus ,
I am sending a email with Excel attachment using FM SO_DOCUMENT_SEND_API1 or SO_NEW_DOCUMENT_ATT_SEND_API1.
I am able to send a mail with excel attachment with a piece of code which I got from SDN itself.
But the problem is when I am trying to open the attachment, <b>A pop up comes which says that it is not in recognizable format. Would you like to open it?
and several other lines of caution.</b>
When i choose to open it, i get the correct data in one excel sheet. Certain vertical lines of the excel sheet is missing. <b>But no data is missing. </b>
I am attaching the code below. Can any one please tell me where is the problem in this code ?
Thanx in advance
types: begin of t_mara,
matnr type mara-matnr,
matkl type mara-matkl,
mtart type mara-mtart,
meins type mara-meins,
end of t_mara.
data: gt_mara type table of t_mara,
wa_mara like line of gt_mara,
it_packing_list type table of SOPCKLSTI1,
wa_packing_list like line of it_packing_list,
it_receivers type table of SOMLRECI1,
wa_receivers like line of it_receivers,
it_mailbody type table of SOLISTI1,
wa_mailbody like line of it_mailbody,
it_attachment type table of SOLISTI1,
wa_attachment like line of it_attachment.
data: la_doc type SODOCCHGI1.
constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF.
* get material
select matnr matkl mtart meins
into table gt_mara
from mara
up to 25 rows.
* Populate the subject/generic message attributes
la_doc-obj_langu = sy-langu.
la_doc-obj_descr = 'Material Details' . "Mail Header
la_doc-sensitivty = 'F'.
la_doc-doc_size = 1.
* Add the recipients email address
CLEAR wa_receivers.
REFRESH it_receivers.
wa_receivers-receiver = 'PCSDEVL'.
wa_receivers-rec_type = 'U'.
wa_receivers-com_type = 'INT'.
wa_receivers-notif_del = 'X'.
wa_receivers-notif_ndel = 'X'.
APPEND wa_receivers to it_receivers.
* Mail Body
CLEAR wa_mailbody.
REFRESH it_mailbody.
wa_mailbody-line = 'Please find the attachment'.
APPEND wa_mailbody to it_mailbody.
* Mail attachmwnt
CLEAR wa_attachment.
REFRESH it_attachment.
CONCATENATE 'MATNR' 'MATKL' 'MTART' 'MEINS'
INTO wa_attachment SEPARATED BY con_tab.
CONCATENATE con_cret wa_attachment INTO wa_attachment.
APPEND wa_attachment to it_attachment.
LOOP AT gt_mara INTO wa_mara.
CONCATENATE wa_mara-matnr wa_mara-matkl
wa_mara-mtart wa_mara-meins
INTO wa_attachment SEPARATED BY con_tab.
CONCATENATE con_cret wa_attachment INTO wa_attachment.
APPEND wa_attachment to it_attachment.
ENDLOOP.
* Describe the body of the message
CLEAR wa_packing_list.
REFRESH it_packing_list.
wa_packing_list-transf_bin = space.
wa_packing_list-head_start = 1.
wa_packing_list-head_num = 0.
wa_packing_list-body_start = 1.
wa_packing_list-body_num = 1.
wa_packing_list-doc_type = 'RAW'.
APPEND wa_packing_list to it_packing_list.
* Create attachment notification
wa_packing_list-transf_bin = 'X'.
wa_packing_list-head_start = 1.
wa_packing_list-head_num = 1.
wa_packing_list-body_start = 1.
DESCRIBE TABLE it_attachment LINES wa_packing_list-body_num.
wa_packing_list-doc_type = 'XLS'. " To word attachment change this as 'DOC'
wa_packing_list-obj_descr = ' '.
concatenate wa_packing_list-doc_type 'file' into wa_packing_list-OBJ_DESCR
separated by space.
wa_packing_list-doc_size = wa_packing_list-body_num * 255.
APPEND wa_packing_list to it_packing_list.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = la_doc
PUT_IN_OUTBOX = 'X'
* SENDER_ADDRESS = SY-UNAME
* SENDER_ADDRESS_TYPE = 'B'
COMMIT_WORK = 'X'
* IMPORTING
* SENT_TO_ALL =
* NEW_OBJECT_ID =
* SENDER_ID =
tables
packing_list = it_packing_list
* OBJECT_HEADER =
CONTENTS_BIN = it_attachment
CONTENTS_TXT = it_mailbody
* CONTENTS_HEX =
* OBJECT_PARA =
* OBJECT_PARB =
receivers = it_receivers
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.REPORT Zex5 LINE-SIZE 255 LINE-COUNT 255 .
class CL_ABAP_CHAR_UTILITIES definition load. "-->
TABLES : vbap.
SELECT-OPTIONS: s_vbeln FOR vbap-vbeln.
DATA : BEGIN OF itab OCCURS 1,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
matnr LIKE vbap-matnr,
END OF itab.
parameters : p_email like somlreci1-receiver
DATA: tlines type i.
DATA: itmessage LIKE solisti1 OCCURS 1 WITH HEADER LINE. "Ok
DATA: itattach LIKE solisti1 OCCURS 2 WITH HEADER LINE. "Ok
DATA: itpacklist LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
DATA: itreclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
data: itattachment like solisti1 OCCURS 2 WITH HEADER LINE.
start-of-selection.
SELECT vbeln posnr matnr
FROM vbap
INTO TABLE itab
WHERE vbeln IN s_vbeln.
**Make the internal table data to be compatible in excel format .
PERFORM BUILD_XLS_FORMAT.
**Populate message of body text.
clear itmessage.
refresh itmessage.
itmessage = 'Please find attached Excel file'.
append itmessage.
PERFORM send_mail_as_xls_attachment tables itmessage
itattach
using p_email 'Excel Attachment' 'TXT' " 'XLS'
using p_email 'TEXT Attachment' 'TXT' " 'XLS'
'TestFileName'
'SalesOrders' .
*& Form BUILD_XLS_FORMAT
text
--> p1 text
<-- p2 text
form BUILD_XLS_FORMAT.
previosuly we were using for unicode ..now replaced
**Declare constants for the spacing .
*Constants : con1 type x value '0D',
con2 type x value '09'.
Constants : con1 type c
value CL_ABAP_CHAR_UTILITIES=>CR_LF,
con2 type c
value CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
**For the Header descriptions.
Concatenate 'SalesORdNo'
'Item'
'Materialno' into itattach separated by con2.
Concatenate con1 itattach into itattach.
Append itattach.
**Now align the items in the itab as above .
Loop at Itab.
concatenate itab-vbeln
itab-posnr
itab-matnr into itattach separated by con2.
concatenate con1 itattach into itattach .
Append itattach.
endloop.
endform. " BUILD_XLS_FORMAT
*& Form send_mail_as_xls_attachment
text
-->P_ITMESSAGE text
-->P_ITATTACH text
-->P_P_EMAIL text
-->P_0116 text
-->P_0117 text
-->P_0118 text
-->P_0119 text
form send_mail_as_xls_attachment tables p_itmessage
p_itattach
using p_email
p_mtitle
p_format
p_filename
p_attdescription.
Data : xdocdata like sodocchgi1,
xcnt type i.
*Fill the document data.
xdocdata-doc_size = 1.
*Populate the subject/generic message attributes.
xdocdata-obj_name = 'SAPRPT'.
xdocdata-obj_langu = sy-langu.
xdocdata-obj_descr = p_mtitle.
*Fill the document data and fetch size of attachment.
clear xdocdata.
read table itattach index xcnt.
xdocdata-doc_size = ( xcnt - 1 ) * 255 + strlen( itattach ).
xdocdata-doc_size = ( xcnt - 1 ) * 255.
xdocdata-obj_name = 'SAPRPT'.
xdocdata-obj_langu = sy-langu.
xdocdata-obj_descr = p_mtitle.
clear itattachment. refresh itattachment.
itattachment[] = p_itattach[].
*Describe the body of the message.
clear itpacklist. refresh itpacklist.
itpacklist-transf_bin = 'X'.
itpacklist-head_start = '1'.
itpacklist-head_num = '0'.
itpacklist-body_start = '1'.
describe table itattachment lines itpacklist-body_num .
itpacklist-doc_type = 'TXT'.
itpacklist-doc_type = 'XLS'.
append itpacklist.
*Create attachment notification.
itpacklist-transf_bin = 'X'.
itpacklist-head_start = '1'.
itpacklist-head_num = '1'.
itpacklist-body_start = '1'.
describe table itattachment lines itpacklist-body_num .
itpacklist-doc_type = p_format.
itpacklist-obj_name = p_filename.
itpacklist-obj_descr = p_attdescription.
itpacklist-doc_size = itpacklist-body_num * 255 .
append itpacklist.
*FIll the receivers list.
Clear itreclist. refresh itreclist.
itreclist-receiver = p_email.
itreclist-rec_type = 'U'.
itreclist-com_type = 'INT'.
itreclist-notif_del = 'X'.
itreclist-notif_ndel = 'X'.
*itreclist-notif_read = 'X'.
append itreclist.
*CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = xdocdata
PUT_IN_OUTBOX = 'X'
commit_work = 'X'
SENDER_ADDRESS = SY-UNAME
tables
packing_list = itpacklist
CONTENTS_BIN = itattachment
CONTENTS_TXT = itmessage
receivers = itreclist
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8
*IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = xdocdata
PUT_IN_OUTBOX = 'X'
TABLES
packing_list = itpacklist
CONTENTS_BIN = itattachment
CONTENTS_TXT = itmessage
receivers = itreclist
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " send_mail_as_xls_attachment
Just execute the above code and let me know.
What is the sap version u r using .
Vijay -
Regarding text attachment in Email in ABAP program
Hello...
Need your expertise in one of the issues. Requirement is seems to be simple
but i am stuck up at this moment. i have refereed SDN with Several code but
some point its not giving the proper solution. So its a request to you please
do not provide any SDN link for reference as i am very much tried all of them.
please share piece of code.
Requirement : Need to develope one ABAP program, Email text attachment with Header line.thought its
very simple but still facing difficulties.
i have tried many code either its showing Data in single line without new line , in one of the Codes
data is coming in successive line but there is lot of spacing within Words means all alphabates are tab
separated. coud you please provide ,me the proper solution for this.
in one of the codes is working fine for excel but when Txt extension done data is not coming in successive line all
data is coming in single line.
Ex. Text file should contain 1 head and 4 colunns and Data size 50..
Thanks
NishiHi,
Another option....
Some sample code using cl_bcs .
Note the use of cl_abap_char_utilities=>cr_lf .
FORM mail_1_prep_10
USING
it_data TYPE table
CHANGING
ob_document_bcs TYPE REF TO cl_document_bcs .
DATA: txt_line TYPE string .
DATA: txt_data TYPE string .
* Create some text data .
DO 20 TIMES .
txt_line = '' .
DO 10 TIMES .
CONCATENATE txt_line '|' 'some data 01' '|' INTO txt_line .
ENDDO .
CONCATENATE txt_line cl_abap_char_utilities=>cr_lf INTO txt_line .
CONCATENATE txt_data txt_line INTO txt_data .
ENDDO .
* Mail stuf....
DATA: it_solix TYPE solix_tab .
CALL METHOD cl_bcs_convert=>string_to_solix
EXPORTING
iv_string = txt_data
IMPORTING
et_solix = it_solix.
DATA: attachment_subject TYPE so_obj_des .
DATA: attachment_type TYPE so_obj_tp .
attachment_subject = 'Some text data' .
attachment_type = 'txt' .
TRY.
CALL METHOD ob_document_bcs->add_attachment
EXPORTING
i_attachment_type = attachment_type
i_attachment_subject = attachment_subject
i_att_content_hex = it_solix.
CATCH cx_document_bcs .
ENDTRY.
ENDFORM . "mail_1_prep_10
regards.
This is how I see it in my mail : -
Attachment with more than 255 columns
Hi together,
i want to send a mail in background with an attachment with more than 255 columns through the function module SO_DOCUMENT_SEND_API1 . The required content-structure of this function module have 255 columns......
I try it also with the function module SO_DOCUMENT_REPOSITORY_MANAGER with the method 'SEND'
but i can't suppress the popup of this function module.
Have anybody an solution for me ?
br
Markus
Edited by: Markus Garyant on Aug 21, 2008 3:39 PMAttachement table has a strucutre SOLISTI1 which can contain only 255 characters BUT you can use the CL_ABAP_CHAR_UTILITIES=>CR_LF for the new line and CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB for the column separater.
You need to concatenate this Separters in the attachment table.
Check out this example:
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
Regards,
Naimesh Patel -
Excel attachment with SO_DOCUMENT_SEND_API1
Hello Everyone,
I am using SO_DOCUMENT_SEND_API1 for sending mail.
It works well with text attachment.
Whereas with excel attachment:
The fn module for sending mail SO_DOCUMENT_SEND_API1 gives return code zero.
The excel attachment mail can be seen in transaction SOST. But its process fails stating that it cannot be converted.
(Message : Message cannot be processed as it cannot be converted)
Can anyone suggest me what might be wrong ??Hi
Please refer these sample progs to send an xcel attachment via mail...
http://www.sapdevelopment.co.uk/reporting/email/attach_xlsmod.htm
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
http://www.sapgenie.com/abap/code/abap31.htm
Regards,
Anjali -
I have created an image with text (map with town names). The
text is 12px Verdana bold. When I export to a gif (only a few
colors) and show on a page I want to get the text to show clear
when the page is resized. But it does not it becomes more obscure
as it gets smaller. I have the image which I have styled
{width:100%;height:100%;} to stop the image expanding the td it's
in.
Can anyone advise how best to achieve good font clarity in
images that may be resized?
thanks.ROGM wrote:
> Can anyone advise how best to achieve good font clarity
in images that may be
> resized?
Use Flash format, which is scalable. GIF's are not scalable.
Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
http://www.projectseven.com
Fireworks Newsgroup:
news://forums.projectseven.com/fireworks/
CSS Newsgroup: news://forums.projectseven.com/css/
http://www.adobe.com/communities/experts/ -
PO Attachment with mail.
Hi all,
Right now I am functioning on Oracle finance and I am stuck .I will grateful if you make available me any solution or any hint.
Step:
1) User will create PO orders .
2) He/She will approve PO orders.
3) After User will attaché couple of Document e.g. *.doc,*.els etc…with this PO Orders.
4) Now once user will click on approve button standard orders will sent to supplier with attached PDF(this PDF file will create Oracle internally and attached with mail) file.
Que : Here supplier will get email with only standard attachment not all other *.doc and *.els with is attached with current order. I would like to change this development and want to attach all attachment along with Stand orders PDF.
Note : This process is calling one JAVA Concurrent Prog : (PO Output for Communication)
Thanks Looking for response.
Thanks
RajHi all,
Right now I am functioning on Oracle finance and I am stuck .I will grateful if you make available me any solution or any hint.
Step:
1) User will create PO orders .
2) He/She will approve PO orders.
3) After User will attaché couple of Document e.g. *.doc,*.els etc…with this PO Orders.
4) Now once user will click on approve button standard orders will sent to supplier with attached PDF(this PDF file will create Oracle internally and attached with mail) file.
Que : Here supplier will get email with only standard attachment not all other *.doc and *.els with is attached with current order. I would like to change this development and want to attach all attachment along with Stand orders PDF.
Note : This process is calling one JAVA Concurrent Prog : (PO Output for Communication)
Thanks Looking for response.
Thanks
Raj
Maybe you are looking for
-
Can't get setMask to work at all
I am using Flash CS3 with ActionScript 2.0 I am trying to load a jpg in and display it in an existing movieClip. I have created a movieClip on the stage with an instance name of maskMovieClip. I then create a new/empty clip within maskMovieClip, and
-
Can no longer see iPhone photos in iPhoto
After upgrading my iPhone to 3.1.2 iPhoto no longer autolaunches when the iPhone is connected to my Mac Book Pro (10.6). When I launch iPhoto ('08, 7.1.5) myself the phone's camera shows up on the left-hand side but when I select it I see no photos t
-
Gurus, I am using TAXINJ.I have entered the tax code in PO.When i click on invoice,i am abl to ee the calculation of duties.But when i try to see the print preview the system is throwing a error msg Tax code in procedure TAXINJ is invalid
-
How can copy master inspection characteristic from plant1 to plant2
Now I have 2 plants I already created all master inspection characteristic that i need by QS21 for plant1 Is there any way I can copy all master inspection characteristic from plant1 to plant2 ?
-
Solaris 11.1 Application Problem
I had previously used the Live Media (ver 11) and understood that any change made would not be saved and so I installed 11 Automated Install, erverything went fine and I then installled GDM and and that went ok. My problem is that I cannot even get t