Export Multiple Distribution List
Hello, Is there a way to Export Multiple Distribution List and send them to users to Import into Office 2007\2013 easily?
Thank for any help.
Michael
Hi,
Do you want to export multiple Distribution List at the same time?
A simple way to do this I can figure out is as follows:
(Outlook 2013 for example)
1. Click New Email button to create a new email. Restore Down the New Email window.
2. Switch to People in Navigation bar. Change Current View to List view. Restore Down the mail Outlook window.
3. Hold CTRL key and select all Distribution Lists that you want to share with other users.
4. Drag the selected Distribution Lists and drop them to the email body field in the New Email window. Now, you will see all the distribution lists are added as attachment in the new mail window.
5. Fill the To box with users' email address that you want to share the distribution lists with.
6. Click Send.
On the recipients side, please do these:
1. Open the email containing the distribution list attachments. Restore Down the message window.
2. Switch to People in Navigation bar. Restore Down the mail Outlook window.
3. Go to the received email window, hold CTRL key and select all distribution list attachments. Then drag the distribution list
attachments from the email message onto the desired Contacts folder.
Hope this helps.
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.
Similar Messages
-
How do I add one contact to multiple distribution lists?
I have employees that work on more than one project and therefore need to be on multiple distribution lists. Outlook groups is able to accomplish this but I can not get it to work on my MAC using Mail and Contacts.
For Example, John needs to be on the following lists:
Entire Team
Project A
Project B
Problem I am facing is that when I drag and drop the John from main contacts it will only allow him to be in one group and removes him from the one he was previously added to. How do I get around this?
Thank you!Hello,
Welcome to Apple Discussions.
1. Make the first event in iCal when and how you want it.
2. If you are not in month view, switch to it.
3. Highlight the event in the calendar view and press Cmd-C (copy).
4. Click on the blank area on a day you want to copy to.
5. Press Cmd-V (paste).
6. Repeat steps 4-5 for all needed dates.
Best wishes
John M -
Creating a Distribution list for iPhone using Outlook
I use Microsoft outlook for contacts and have multiple "Distribution lists" that I send information to. The DL's are not syncing with my iPhone. I need to send group emails and am having to put each name in individually. Is there a way, using Outlook that I can create a "Distribution list", have it sync with the phone, select that group and send an email to all the contacts on the DL
My address book groups in the Address Book on my Mac are synced and available on my iPhone, but addressing an email or an SMS to an address book group or distribution list is not supported - at the present time anyway.
-
Power-shell distribution list update Managedby with foreach loop
The script function is to find a user that is listed a a manager/owner on a distribution list and then replace that manager. The issue is I'm unable to replace the manager when they are a owner/manager of multiple distribution list. The script is successful
if I remove the foreach loop and just run the script on one distribution list. Please see error message below. Any help is appreciated.
$user = "eharris"
#$DLSimilarmgr = "harris, aaron m"
$username = (get-aduser $user).name
$listDLgroup = get-distributiongroup -resultsize unlimited | where {$_.managedby -like "*$username*"} |fl name
$Foreach ($GrpDL in $listDLgroup) {
$listDLManager = $GrpDL.ManagedBy
$NewDLManager = get-user -id "aharris"
$listDLManager+= $NewDlManager
set-distributiongroup $GrpDL -managedby $listDLManager -BypassSecurityGroupManagerCheck
Aaron Harris ExchangeSharePointGuyHaving issue combing the two scripts. The first scripts gets the DL managers. The second script will update the managed by field of the users and the previous managers of the DL. However, I don't know how to update a multiple DL when the user is listed as
a manager of more than 1 DL at a time. In script 2 I would like to update the multiple return value for script 1. Any help would be appreciated.
#script 1 list the dl's the users is a manager of
$user = "eharris"
$username = (get-aduser $user).name
$listDLgroup = get-distributiongroup -resultsize unlimited | where {$_.managedby -like "*$username*"} |fl name
#Script 2 working gets the dl and adds the new member and the previous members of that DL
$GrpDL = Get-DistributionGroup -id "#365DLTest"
$listDLManager = $GrpDL.ManagedBy $NewDLManager = get-user -id "eharris"
$listDLManager+= $NewDlManager set-distributiongroup "#365DLTest" -managedby $listDLManager -BypassSecurityGroupManagerCheck
Aaron Harris ExchangeSharePointGuy -
Multiple (mail) destinations for one report using distribution list
I would like to email a report to multiple destinations using a distribution list.
Environment:
Oracle reports: 10.1.2.3
OS: Windows 7
Database:Oracle 11g(11.2.0.2)
This is the content of the distribution file:
<destinations>
<foreach>
<mail id="a1" from="[email protected]" to="&<mail_to>" subject="Invoice">
<body srcType="text" format="ascii">Invoice attached
</body>
<attach srcType="report" name="invoice.pdf" format="pdf" instance="this">
<include src="report"/>
</attach>
</mail>
<mail id="a2" from="[email protected]" to="[email protected]" subject="Invoice sent to &<mail_to> ">
<body srcType="text" format="ascii">Attached invoice was sent to the customer
</body>
<attach srcType="report" name="invoice.pdf" format="pdf" instance="this">
<include src="report"/>
</attach>
</mail>
</foreach>
</destinations>
When I run this using the following URL:
http://testserver.our_servers.local:7778/reports/rwservlet?server=rep_dev&report=VKR0030.rdf&userid=myuser/test123@ORCL&distribute=yes&destination=VKR0030.xml&onfailure=rollback&onsuccess=commit
I get the following error: REP-34304: Distribution failed to complete, please review the distribution lists
When I remove one mail element, it works fine.
One mail tag with multiple email addresses in the "to" parameter isn't possible because I have to use 2 different mail templates(subject and body differ).
According to the documentation(https://docs.oracle.com/html/B14048_02/pbr_dist.htm#i1005830), it should be possible to use multiple mail elements.
Required/Optional
Optional. You can have as many mail elements as you require.
What am I doing wrong?Found the solution.
When putting each mail element in a foreach, it works. -
Enabling the Export function for a distribution list in 'Private folders'
Dears,
Could someone please guide to the appropriate authorization that would allow the 'Export...' function for a distribution list created in a folder under 'Private folders' - Transaction : SBWP
The option is dimmed, although the user used has the SAP_ALL profile.
Thanks.
Redaclick file/publish settings/flash/actionscript settings and make sure frame 1 is set as the export frame.
if that's already set, don't use test scene. -
Report email multiple users or distribution list
I have created an output device for PDF format for report painter output. When I print, there is space for a single mail address. I have created distribution lists in the workplace, tcode SBWP. I need to know how to send the pdf of the report painter output to the distribution list or multiple users.
this sounds to me like the client is not handling errors properly
and instead of resubmitting to only those that failed, it is resubmitting all
I would say to look at the mail.log_current. make sure logging is on the defaults channel
set LOG_CONNECTION=3
and LOG_MESSAGE_ID=1
in option.dat
recompile configuration
imsimta cnbuild
reload configuration
imsimta reload
The original problem was when a temporary error occurred in sending one of the addresses, and we didn't handle that properly. Happened sometimes when Brightmail was involved.
Since these are not Messaging lists, but Outlook lists, it's entirely possible that it's Outlook that's not handling the errors correctly. -
Export distribution list / csv
hello,
Does anyone know how to export distribution list users and their email addresses to a csv? I tried formativ but somehow it did not work. We use Groupwise 7.0.2 . Thanks.On 9/21/2011 5:37 AM, Jakub Gorecki wrote:
> hello,
> Does anyone know how to export distribution list users and their email
> addresses to a csv? I tried formativ but somehow it did not work. We use
> Groupwise 7.0.2 . Thanks.
Well Admin API could do that, but you'd have to write your own code.... -
Hello Guys
Distribution lists in shared folder's SBWP had been deleted by a user!
Could I export distribution List from another environement?
Thank you for answers.
ChristopheUnfortunatelly no, you can copy and paste the receivers from the other environment to create a new one.
Regards,
Felipe
Edited by: fsimionatto on Dec 20, 2011 5:07 PM -
I want to be able to take all the email addresses someone else has used to distribute an email and create the same distribution list for myself for future use. I don't want to add all those people to anywhere in my contacts list. I just want them to be in my "new distribution list", like "soccer families", etc. I tried to copy and paste, but didn't get anywhere. Maybe I was close, or maybe it isn't possible. Thoughts?
Ed on iPad wrote:
I don't want them in contacts because they are simply a related group (like my sons current soccer team). People I may never need to email again after a sports season. I don't want to have to have these people in my contacts permanently.
You don't. When the season is over, delete them.
But, the text clipping should work.
The next IOS should have a feature "create mailing list from distribution list". A fast and simple way to retain a distribution list from an email you received. People get copied all the time using distribution lists they may want to reuse easily, like school, sports or work groups. Oh well.
How is that any different from adding them to Contacts? Here's the feedback page: http://www.apple.com/feedback/
There is a set of Mail Scripts that has a function to Add Addresses from an email to any group. But, it doesn't work with Mountain Lion. -
How do I set up a distribution list with multiple email addresses?
I can't figure out how to do this - I am a .mac member and really have no idea how to use the desktop mail function but I am assuming that I need to set up the distribution list in mail since I can't find anywhere to do it on .mac.
I am really sorry for this lame question - is it a problem with my ISP (sbc) or is it my operating system - 10.3.9?Welcome to the discussions, CassC.
You may need to re-post in the pre-Tiger mail forum.
But what I THINK you need to do is use your Address Book, and make a group. Add to the group (by selecting, dragging and dropping) the contacts you need in the distribution list. Now in Mail use the name of the group in the To: or Cc: or Bcc: field to send them all mail.
AK -
How to sync changes in user-created distributions lists when used by multiple Outlook users
Hi all,
Thanks for looking at my post. We are using Outlook exchange and Outlook 2010.
I have created a distribution list that is comprised of 20 members (students) with email addresses outside our organisation. I have sent this list to others in my workteam (Lecturers) and they have added the list to their own contacts group - we
share this list as we all email the same students for different reasons.
My issue arises when a student needs to be deleted from the distribution list and I am the first person to find out about it. Ideally, I would like to take the student off and have this distribution list automatically update for the other lecturers instead
of having to re-send the list to them after it has been edited. As it stands at the moment, each lecturer has to go into the distribution list I originally sent to them to delete the student.
There has to be an easier way to sync the changes that each lecturer makes to this list.
Any ideas?
Thanks in advance
SharynYou can place the group in a shared Contacts folder so everyone will see the same group.
Depending on your Exchange infrastructure and working habits, this could be a folder in your mailbox, a Public Folder, Shared Mailbox or even a SharePoint List.
Robert Sparnaaij
[MVP-Outlook]
Outlook guides and more: HowTo-Outlook.com
Outlook Quick Tips: MSOutlook.info -
Send email to distribution list using OOP...
Hello Experts,
I currently have a requirement to send email(w/o attachment) to a distribution list or specific user. I have searched the forum and it doesnt suit my requirement as the examples gives only how to send email to specific user/s. Any inputs would be appreciated.
Thank you guys and take care!Hi ,
For sending mail with attachments in multiple sheets of an excel document please see the
sample code below:
REPORT ZBC_ITAB_TO_EXCEL_NEW .
CLASS: cl_abap_char_utilities DEFINITION LOAD.
DATA: docdata LIKE sodocchgi1,
objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin1 LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin2 LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin_final LIKE solisti1 OCCURS 10 WITH HEADER LINE,
reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE,
tab_lines TYPE sy-tabix.
DATA: gd_sender_type LIKE soextreci1-adr_typ.
DATA: c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
c_ret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
DATA: c_dev TYPE sy-sysid.
DATA: BEGIN OF i_data OCCURS 0,
a(20),
b(20),
END OF i_data.
DATA: BEGIN OF st,
f1(2) TYPE c,
f2(2) TYPE n,
END OF st.
DATA: itab1 LIKE TABLE OF st WITH HEADER LINE,
itab2 LIKE TABLE OF st WITH HEADER LINE.
DATA: n TYPE i.
PARAMETER: p_email1 LIKE somlreci1-receiver
p_sender LIKE somlreci1-receiver.
START-OF-SELECTION.
itab1-f1 = 'AA'. itab1-f2 = '01'. APPEND itab1.
itab1-f1 = 'BB'. itab1-f2 = '02'. APPEND itab1.
itab1-f1 = 'CC'. itab1-f2 = '03'. APPEND itab1.
itab2-f1 = 'ZZ'. itab2-f2 = '26'. APPEND itab2.
itab2-f1 = 'YY'. itab2-f2 = '25'. APPEND itab2.
LOOP AT itab1.
CONCATENATE itab1-f1 itab1-f2 INTO objbin1 separated BY c_tab.
CONCATENATE c_ret objbin1 INTO objbin1.
APPEND objbin1.
ENDLOOP.
LOOP AT itab2.
CONCATENATE itab2-f1 itab2-f2 INTO objbin2 separated BY c_tab.
CONCATENATE c_ret objbin2 INTO objbin2.
APPEND objbin2.
ENDLOOP.
LOOP AT objbin1.
MOVE objbin1-line TO objbin_final-line.
APPEND objbin_final.
ENDLOOP.
LOOP AT objbin2.
MOVE objbin2-line TO objbin_final-line.
APPEND objbin_final.
ENDLOOP.
PERFORM process_email.
c_dev = sy-sysid.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
IF sy-subrc = 0.
WRITE: / 'Email succesfilly delivered'.
ELSE.
WRITE: / 'failure'.
ENDIF.
*& Form process_email
* text
FORM process_email.
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
*Body
docdata-obj_name = 'Mail_Excel_File'.
docdata-obj_descr = 'Excel file attachment'.
objtxt = 'Attached is the sample Excel file'.
APPEND objtxt.
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 = 'RAW'.
APPEND objpack.
*Attachment
n = 1.
DESCRIBE TABLE objbin1 LINES tab_lines.
objpack-doc_size = tab_lines * 255.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = n.
objpack-body_num = tab_lines.
objpack-doc_type = 'XLS'.
docdata-obj_name = 'Excel_File_Attachment1'.
objpack-obj_descr = 'Excel File Attachment1'.
APPEND objpack.
n = n + tab_lines.
DESCRIBE TABLE objbin2 LINES tab_lines.
objpack-doc_size = tab_lines * 255.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = n.
objpack-body_num = tab_lines.
objpack-doc_type = 'XLS'.
docdata-obj_name = 'Excel_File_Attachment2'.
objpack-obj_descr = 'Excel File Attachment2'.
APPEND objpack.
*Create the list of recipients
reclist-receiver = p_email1.
reclist-rec_type = 'U'.
reclist-express = 'X'.
APPEND reclist. "For sending mail to multiple ids append this internal table with your reqd ids
*Send the e-mail
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
contents_bin = objbin_final
contents_txt = objtxt
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.
COMMIT WORK.
ENDFORM. "process_email
Hope it helps,
Regards
Mansi
Edited by: MANSI ASNANI on Oct 13, 2009 7:56 AM -
How to send spool to Distribution List using JOB_CLOSE
Please help on sending Distribution list when job defined using JOB_OPEN, JOB_Submit and JOB_CLOSE
Thanks.Hi, this is code:
DATA WA_RECIPIENT LIKE swotobjid.
CONSTANTS: gc_objname TYPE oj_name VALUE 'RECIPIENT'.
PERFORM get_distribucion_list USING 'NAME_LIST' " name of List of distribution
CHANGING WA_RECIPIENT.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_jobcount
jobname = l_jobname
strtimmed = 'X'
recipient_obj = wa_recipient
IMPORTING
job_was_released = l_libero
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
FORM get_distribucion_list USING p_objnam TYPE so_obj_nam
CHANGING p_wa_recipient LIKE swotobjid.
DATA: it_tab LIKE STANDARD TABLE OF soxdl
INITIAL SIZE 0 WITH HEADER LINE.
CHECK NOT p_objnam IS INITIAL.
CALL FUNCTION 'SO_DLI_LIST_READ_XDL'
EXPORTING
dli_generic_name = p_objnam
public = 'X'
subscript = 'X'
TABLES
dli_display_tab = it_tab
EXCEPTIONS
communication_failure = 1
dl_list_no_entries = 2
owner_not_exist = 3
system_failure = 4
x_error = 5
parameter_error = 6
OTHERS = 7
IF sy-subrc = 0.
READ TABLE it_tab INDEX 1.
IF sy-subrc = 0.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = p_wa_recipient-logsys
EXCEPTIONS
own_logical_system_not_defined = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
MOVE gc_objname TO p_wa_recipient-objtype.
CONCATENATE it_tab-dlitp it_tab-dliyr it_tab-dlino
INTO p_wa_recipient-objkey.
ENDIF.
ELSE.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. -
How to send mail to all the receipients in distribution list
Hi All,
As per my requirement I need to send error log in doc format.
I am using the help of following code suggested by someone in sdn.
Mehr Beispile unter BCS_EXAMPLE_* mit se38
Mehr Beispile unter BCS_TEST* mit se38
DATA: SEND_REQUEST TYPE REF TO CL_BCS.
DATA: SUBJECT TYPE SO_OBJ_DES.
DATA: ATT_TYPE TYPE SOODK-OBJTP.
DATA: IT_TEXT TYPE BCSY_TEXT.
DATA: WA_TEXT LIKE SOLI.
DATA: IT_BIN TYPE SOLIX_TAB.
DATA: WA_BIN TYPE SOLIX.
DATA: DOCUMENT TYPE REF TO CL_DOCUMENT_BCS.
DATA: SENDER TYPE REF TO CL_SAPUSER_BCS.
DATA: RECIPIENT TYPE REF TO IF_RECIPIENT_BCS.
DATA: BCS_EXCEPTION TYPE REF TO CX_BCS.
DATA: SENT_TO_ALL TYPE OS_BOOLEAN.
Bytes der Datei
DATA: IT_LENGHT TYPE SO_OBJ_LEN.
DATA: N10(10) TYPE N.
START-OF-SELECTION.
PERFORM MAIN.
PERFORM RSCONN01_EXECUTE.
END-OF-SELECTION.
FORM MAIN.
TRY.
Dokument erstellen (mit Anhang)
SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
PERFORM HEAD_CONT.
PERFORM RAW_ATT.
Dokument (mit Anhang) setzen
CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
Absender setzen
SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ).
CALL METHOD SEND_REQUEST->SET_SENDER
EXPORTING
I_SENDER = SENDER.
Empfänger setzen
RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
'email@address' ).
CALL METHOD SEND_REQUEST->ADD_RECIPIENT
EXPORTING
I_RECIPIENT = RECIPIENT
I_EXPRESS = 'X'.
Dokument senden
CALL METHOD SEND_REQUEST->SEND(
EXPORTING
I_WITH_ERROR_SCREEN = 'X'
RECEIVING
RESULT = SENT_TO_ALL ).
COMMIT WORK.
Sende-Error abfangen
CATCH CX_BCS INTO BCS_EXCEPTION.
WRITE: 'Fehler aufgetreten.'(001).
WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
EXIT.
ENDTRY.
ENDFORM. "main
FORM HEAD_CONT.
CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
ATT_TYPE = 'RAW'.
SUBJECT = 'Betreffzeile'.
WA_TEXT = 'First Line'. APPEND WA_TEXT TO IT_TEXT.
WA_TEXT = 'Second Line'. APPEND WA_TEXT TO IT_TEXT.
DESCRIBE TABLE IT_TEXT LINES N10.
N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
IT_LENGHT = N10.
TRY.
DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
I_TYPE = ATT_TYPE
I_TEXT = IT_TEXT
I_LENGTH = IT_LENGHT
I_SUBJECT = SUBJECT ).
Error abfangen
CATCH CX_BCS INTO BCS_EXCEPTION.
WRITE: 'Fehler aufgetreten.'(001).
WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
EXIT.
ENDTRY.
ENDFORM. "HEAD_CONT
*& Form RAW_ATT
text
FORM RAW_ATT.
CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
ATT_TYPE = 'RAW'.
SUBJECT = 'Text Anhang'.
WA_TEXT = 'First Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
WA_TEXT = 'Second Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
Lenght of Att_Text
DESCRIBE TABLE IT_TEXT LINES N10.
N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
IT_LENGHT = N10.
TRY.
CALL METHOD DOCUMENT->ADD_ATTACHMENT
EXPORTING
I_ATTACHMENT_TYPE = ATT_TYPE
I_ATT_CONTENT_TEXT = IT_TEXT
I_ATTACHMENT_SIZE = IT_LENGHT
I_ATTACHMENT_SUBJECT = SUBJECT.
Error abfangen
CATCH CX_BCS INTO BCS_EXCEPTION.
WRITE: 'Fehler aufgetreten.'(001).
WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
EXIT.
ENDTRY.
ENDFORM. "ATT_RAW
But From this method I am not able to send the mail to the distribution list created.
Please suggest How this can be done.
I dont want to changHi Smriti,
You can make changes like shown below. The changes are shown in the code format for your easy reference. You can remove the code in bold. This will work.
Mehr Beispile unter BCS_EXAMPLE_* mit se38
Mehr Beispile unter BCS_TEST* mit se38
DATA: SEND_REQUEST TYPE REF TO CL_BCS.
DATA: SUBJECT TYPE SO_OBJ_DES.
DATA: ATT_TYPE TYPE SOODK-OBJTP.
DATA: IT_TEXT TYPE BCSY_TEXT.
DATA: WA_TEXT LIKE SOLI.
DATA: IT_BIN TYPE SOLIX_TAB.
DATA: WA_BIN TYPE SOLIX.
DATA: DOCUMENT TYPE REF TO CL_DOCUMENT_BCS.
DATA: SENDER TYPE REF TO CL_SAPUSER_BCS.
DATA: RECIPIENT TYPE REF TO IF_RECIPIENT_BCS.
DATA: BCS_EXCEPTION TYPE REF TO CX_BCS.
DATA: SENT_TO_ALL TYPE OS_BOOLEAN.
Bytes der Datei
DATA: IT_LENGHT TYPE SO_OBJ_LEN.
DATA: N10(10) TYPE N.
data: it_recipients type standard table of ad_smtpadr.
data: w_recipients type ad_smtpadr.
START-OF-SELECTION.
PERFORM MAIN.
PERFORM RSCONN01_EXECUTE.
END-OF-SELECTION.
FORM MAIN.
TRY.
Dokument erstellen (mit Anhang)
SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
PERFORM HEAD_CONT.
PERFORM RAW_ATT.
Dokument (mit Anhang) setzen
CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
Absender setzen
SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ).
CALL METHOD SEND_REQUEST->SET_SENDER
EXPORTING
I_SENDER = SENDER.
Empfänger setzen
LOOP AT it_recipients into w_recipients.
RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(w_recipients).
CALL METHOD SEND_REQUEST->ADD_RECIPIENT
EXPORTING
I_RECIPIENT = RECIPIENT
I_EXPRESS = 'X'.
ENDLOOP.
RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS('email@address' ).
CALL METHOD SEND_REQUEST->ADD_RECIPIENT
EXPORTING
I_RECIPIENT = RECIPIENT
I_EXPRESS = 'X'.
Dokument senden
CALL METHOD SEND_REQUEST->SEND(
EXPORTING
I_WITH_ERROR_SCREEN = 'X'
RECEIVING
RESULT = SENT_TO_ALL ).
COMMIT WORK.
Sende-Error abfangen
CATCH CX_BCS INTO BCS_EXCEPTION.
WRITE: 'Fehler aufgetreten.'(001).
WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
EXIT.
ENDTRY.
ENDFORM. "main
FORM HEAD_CONT.
CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
ATT_TYPE = 'RAW'.
SUBJECT = 'Betreffzeile'.
WA_TEXT = 'First Line'. APPEND WA_TEXT TO IT_TEXT.
WA_TEXT = 'Second Line'. APPEND WA_TEXT TO IT_TEXT.
DESCRIBE TABLE IT_TEXT LINES N10.
N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
IT_LENGHT = N10.
TRY.
DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
I_TYPE = ATT_TYPE
I_TEXT = IT_TEXT
I_LENGTH = IT_LENGHT
I_SUBJECT = SUBJECT ).
Error abfangen
CATCH CX_BCS INTO BCS_EXCEPTION.
WRITE: 'Fehler aufgetreten.'(001).
WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
EXIT.
ENDTRY.
ENDFORM. "HEAD_CONT
*& Form RAW_ATT
text
FORM RAW_ATT.
CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
ATT_TYPE = 'RAW'.
SUBJECT = 'Text Anhang'.
WA_TEXT = 'First Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
WA_TEXT = 'Second Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
Lenght of Att_Text
DESCRIBE TABLE IT_TEXT LINES N10.
N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
IT_LENGHT = N10.
TRY.
CALL METHOD DOCUMENT->ADD_ATTACHMENT
EXPORTING
I_ATTACHMENT_TYPE = ATT_TYPE
I_ATT_CONTENT_TEXT = IT_TEXT
I_ATTACHMENT_SIZE = IT_LENGHT
I_ATTACHMENT_SUBJECT = SUBJECT.
Error abfangen
CATCH CX_BCS INTO BCS_EXCEPTION.
WRITE: 'Fehler aufgetreten.'(001).
WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
EXIT.
ENDTRY.
ENDFORM. "ATT_RAW
where the internal table "it_recipients" contains all the e-mail addresses.
Maybe you are looking for
-
Regarding BACK button in ALV OO ABAP
Hi , I have created two screens with containers, first screen displays records in ALV grid and when user selects one or more records and clicks on release button (which i have created ), it should update the database field and displays the status rep
-
SSRS 2012 Blank Screen Report Manager
Installed SQL Server 2012 and configured Reporting through configuration manager but whenever i use the http://<servername>/Reports it gives me blank screen. Things i tried >Opening browser with Admin privileges > Trusted sites inclusion >Changing po
-
OC4J configuration assistant failure at infrastructure installation
Hi all, We want to upgrade our client server application(forms 6i and 9iDB) to Application server(3 tire). I am trying to install Oracle 9iAS Release 2, Release 9.0.2.0.1 on Win 2000 server with service pack 2. OC4J configuration assistant is failing
-
SharePoint DataSource selection
In our development farm, after a content database migration, when I click on the '...' ellipsis button to browse for a Shared Data Source I get a rubbish error pop up and when I use the correlation ID to find the error in the ULS log, I find this loa
-
Standard adapter modules in sap xi
Hi, Can any one provide me the standard adpter modules in XI and the procedure to use them in the communication channel. Thanks, Rajeev.