How to send the Mail of shop papers attached to Service / PM order
I would like to send the E-Mail of shop ppers which I am printing from Service order / Plant Maintenance order. How to do it?
Hi Pete,
Thanks for your valuable input. I have read the note, but it gives solution for notification. Is there any other note for orders (Service order or Plant Maintenance Order). .
I would like to send the mail from orders (Service order or Plant Maintenance Order).
Thank you
Similar Messages
-
How to send the mail to remote host
I'm using sendmail as my default SMTP service, but when I was sending the mail to remote host, I got error from /var/log/syslog:
Feb 22 15:44:24 hostname sendmail[897]: [ID 801593 mail.info] g1M7fW800840: to=<[email protected]>, ctladdr=<user@hostname> (0/1), delay=00:02:18, xdelay=00:00:00, mailer=esmtp, pri=300344, relay=relay.us.mailserver.net. [200.100.100.1], dsn=4.0.0, stat=Deferred: Cannot assign requested address
How can I solve this problem?Hi,
please enter the tcode SBWP click on new message then enter the subject and description.
enter email id and select type as internet address or external address then click on send button.
Regards,
Arti -
How to send the error file as a attachment
Hi All,
Is it possible to send a mail by attaching the error file.
I am writing the code in the events,if import failed then i need to send the mail with import failed error file as an attachment.
Thanks.In your mail code, include something like the following prior to the .Send command. strAttach is the path to the Attachment:
If Not strAttach="" Then' Attach file(s) to message
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(strAttach) Then .AddAttachment strAttach
Set fso = Nothing
End If -
How To send the text document as a attachment using a 'So_object_send'
Hi,
I want to send a mail to user in sap office.
I had used a function module 'SO_OBJECT_SEND'.
Also, I need to send all the attachments (like files .XLS,.TXT etc) in the mail as a attachment.
Please tell me how to pass the attachment to the Function module 'So_object_send'.
Thanks in advance
Regards,
DarshanaYou should use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail with attachments.
Below is the code for your reference :
Doc data
WL_DOC_DATA-OBJ_NAME = TEXT-031. "Survey Data
WL_DOC_DATA-OBJ_DESCR = TEXT-031. "Survey Data
WL_DOC_DATA-OBJ_LANGU = C_LANG_EN. "E
Receiver's details
WL_RECEIVERS-RECEIVER = ABCD AT XYZ DOT COM."l_survey_recipient_email.
WL_RECEIVERS-REC_TYPE = C_REC_TYPE. "U
WL_RECEIVERS-COM_TYPE = C_COMM_TYP. "INT
WL_RECEIVERS-NOTIF_DEL = C_CHK. "X
WL_RECEIVERS-NOTIF_NDEL = C_CHK. "X
APPEND WL_RECEIVERS TO TL_RECEIVERS.
Mail subject
WL_HEADER-LINE = TEXT-036. "Mail
APPEND WL_HEADER TO TL_HEADER.
LOOP AT TL_EMAIL_TAB2 INTO WL_HEADER2.
CONCATENATE WL_HEADER2-MESSAGE C_TAB INTO L_STRING.
CONCATENATE C_RET L_STRING INTO WL_OBJTXT-LINE SEPARATED BY SPACE.
APPEND WL_OBJTXT TO TL_OBJTXT.
ENDLOOP. "LOOP AT tl_email_ta..
DESCRIBE TABLE TL_OBJTXT LINES L_LINES.
L_TMP = L_LINES * 255.
MOVE L_TMP TO L_DOC_SIZE.
CONDENSE L_DOC_SIZE.
WL_PACK-HEAD_START = 1.
WL_PACK-HEAD_NUM = 0.
WL_PACK-BODY_START = 1.
WL_PACK-BODY_NUM = L_LINES.
WL_PACK-DOC_TYPE = C_DOC_TYP. "RAW
WL_PACK-OBJ_LANGU = C_LANG_EN. "E
WL_PACK-DOC_SIZE = L_DOC_SIZE.
APPEND WL_PACK TO TL_PACK.
Call function module to send the email to the survey recipient
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WL_DOC_DATA
PUT_IN_OUTBOX = C_CHK "X (Check)
COMMIT_WORK = C_CHK "X (Check)
TABLES
PACKING_LIST = TL_PACK
OBJECT_HEADER = TL_HEADER
CONTENTS_TXT = TL_OBJTXT
RECEIVERS = TL_RECEIVERS
IF SY-SUBRC = 0.
SUBMIT RSCONN01 WITH MODE = 'INT'
WITH OUTPUT = 'X'
AND RETURN.
ENDIF.
Regards,
NaPPy -
How to send the mail with multiple file attachments ?
Sending mails with multiple files as attachments.
You need to start from the app, assuming that it has an email function, that contains the files that you want to send as attachments. The Photos app allows you to send up to 5 photos on the same email, but if you want to send multiple file types then you need an app that supports all those file types. I use the GoodReader app which supports quite a few document/file types (e.g. PDF, Excel, Word, pictures), and from that I can select multiple files (including different types) and attach them to the same email.
-
How to send a mail to the user when a job gets canceled?
Hi experts,
I need to send a mail when a job gets canceled to the user.I know the FM for sending mail and i can find if a job is canceled from tbtco,but i want to know how to send the mail from the same program ,once it got canceled ?
thanks in advance,
helpful answers will be awarded with points
regards,
ashwinHi Ashwin
Use the below peace of code:
REPORT ZBCJOBMONITOR .
TABLES: SOMLREC90,
TBTCO.
DATA: MAILDATA LIKE SODOCCHGI1.
DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
DATA: I_TBTCO LIKE TBTCO OCCURS 0 WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
SELECT-OPTIONS: S_JOB FOR TBTCO-JOBNAME.
SELECT-OPTIONS: S_JOBC FOR TBTCO-JOBClass.
SELECT-OPTIONS: S_REC FOR SOMLREC90-RECEIVER.
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
CLEAR: MAILDATA, MAILTXT, MAILREC, I_TBTCO.
REFRESH: MAILTXT, MAILREC, I_TBTCO.
PERFORM GET_ABENDED_JOBS.
PERFORM BUILD_RECEIVERS.
LOOP AT I_TBTCO.
PERFORM BUILD_TEXT_MESSAGE.
PERFORM SEND_MAIL_NODIALOG..
ENDLOOP.
Form BUILD_TEXT_MESSAGE
FORM GET_ABENDED_JOBS.
SELECT * FROM TBTCO
INTO CORRESPONDING FIELDS OF TABLE I_TBTCO
WHERE JOBNAME IN S_JOB
AND STATUS = 'A'
AND JOBCLASS IN S_JOBC
AND SDLSTRTDT = SY-DATUM.
ENDFORM.
Form BUILD_TEXT_MESSAGE
FORM BUILD_TEXT_MESSAGE.
DATA: DATE(10) TYPE C.
DATA: TIME(10) TYPE C.
MAILDATA-OBJ_NAME = 'MONITOR'.
MAILDATA-OBJ_DESCR = 'Batch Job Monitor'.
MAILDATA-OBJ_LANGU = SY-LANGU.
CONCATENATE 'Job Name:' I_TBTCO-JOBNAME
INTO MAILTXT-LINE SEPARATED BY SPACE.
APPEND MAILTXT.
PERFORM FORMAT_DATE USING I_TBTCO-SDLSTRTDT
DATE.
CONCATENATE I_TBTCO-SDLSTRTTM+0(2) ':'
I_TBTCO-SDLSTRTTM+2(2) ':'
I_TBTCO-SDLSTRTTM+4(2)
INTO TIME.
CONCATENATE 'Start Date/Time:' DATE TIME
INTO MAILTXT-LINE SEPARATED BY SPACE.
APPEND MAILTXT.
CONCATENATE 'Job Class:' I_TBTCO-JOBCLASS
INTO MAILTXT-LINE SEPARATED BY SPACE.
APPEND MAILTXT.
MAILTXT-LINE = 'Job has terminated abnormally'.
APPEND MAILTXT.
ENDFORM.
Form BUILD_RECEIVERS
FORM BUILD_RECEIVERS.
LOOP AT S_REC.
CLEAR MAILREC.
MAILREC-RECEIVER = S_REC-LOW.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
ENDLOOP.
ENDFORM.
Form SEND_MAIL_NODIALOG
FORM SEND_MAIL_NODIALOG.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
DOCUMENT_TYPE = 'RAW'
PUT_IN_OUTBOX = 'X'
TABLES
OBJECT_HEADER = MAILTXT
OBJECT_CONTENT = MAILTXT
RECEIVERS = MAILREC
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.
Form FORMAT_DATE
FORM FORMAT_DATE USING IN
OUT.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
DATE_INTERNAL = IN
IMPORTING
DATE_EXTERNAL = OUT
EXCEPTIONS
DATE_INTERNAL_IS_INVALID = 1
OTHERS = 2.
ENDFORM.
Regards,
Sree -
How to send a mail in workflow keeping 1 receiver in CC and the other in TO
Hi,
Can anybody tell me how to send a mail in workflow keeping 1 receiver in CC and the other in TO.
I need to send a mail to an employee keeping his/her manager in CC through workflow.
Regards,
LavanyaHi Lavanya,
I dont think its possible using Send mail step type.
But it can be done by using the FM SO_NEW_DOCUMENT_SEND_API1. Just create a method and Call this FM accordingly.
Thanks,
Viji. -
How to send a mail by ckicking the button using java
hi,
how to send a mail by clicking the button (like payroll silp in that contain one button if we click that it autometically go through the mail as a attachment) pls frd to me my gmail is [email protected]Hi,
It seems we are doing the homework for you; to make you start with something; look at the sample code below and try to understand it first then put the right values
to send an email with an attachement.
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.util.Date;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JTextField;
public class Main {
* @param args
public static void main(String[] args) {
// Create the frame
String title = "Frame Title";
JFrame frame = new JFrame(title);
// Create a component to add to the frame
JComponent comp = new JTextField();
Action action = new AbstractAction("Button Label") {
// This method is called when the button is pressed
public void actionPerformed(ActionEvent evt) {
System.out.println("sending email with attachment");
sendEmail();
// Create the button
JButton button = new JButton(action);
// Add the component to the frame's content pane;
// by default, the content pane has a border layout
frame.getContentPane().add(comp, BorderLayout.SOUTH);
frame.getContentPane().add(button, BorderLayout.NORTH);
// Show the frame
int width = 300;
int height = 300;
frame.setSize(width, height);
frame.setVisible(true);
protected static void sendEmail() {
String from = "me@localhost";
String to = "me@localhost";
String subject = "Important Message";
String bodyText = "This is a important message with attachment";
String filename = "c:\\tmp\\message.pdf";
Properties properties = new Properties();
properties.put("mail.stmp.host", "localhost");
properties.put("mail.smtp.port", "25");
Session session = Session.getDefaultInstance(properties, null);
try {
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.setRecipient(Message.RecipientType.TO, new InternetAddress(
to));
message.setSubject(subject);
message.setSentDate(new Date());
// Set the email message text.
MimeBodyPart messagePart = new MimeBodyPart();
messagePart.setText(bodyText);
// Set the email attachment file
MimeBodyPart attachmentPart = new MimeBodyPart();
FileDataSource fileDataSource = new FileDataSource(filename) {
@Override
public String getContentType() {
return "application/octet-stream";
attachmentPart.setDataHandler(new DataHandler(fileDataSource));
attachmentPart.setFileName(filename);
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messagePart);
multipart.addBodyPart(attachmentPart);
message.setContent(multipart);
Transport.send(message);
} catch (MessagingException e) {
e.printStackTrace();
}The sample above is not ideal so you need to go through it and start to ask me some questions if you have
Let me know if you miss something
Regards,
Alan Mehio
London,UK -
How to send the two PDF attachments into one mail
Hi Team,
I need one requirement...I have two forms ,one is cover sheet and another one is form data. These two forms are converted into two PDF documents and sent to vendor as mail attachments...
Please suggest me, how to send the two attachments through one mail .....
Thanks & Regards,
Samantula.Please SEARCH in SCN before posting. There are lots of threads related to send mail with multiple attachments.
-
How to send the Adobe page as mail attachement from webdynpro...
Hi Experts,
How to send the Adobe page as external mail attachment from webdynpro automatically (for example: If I input the data for sales order in a view and created the sales order, if the sales order is created then have to place the created sales order number and the some details in a adobe form and should send as external mail and have to specifying the body as "Sales order created and details can be found in the attached adobe form" from webdynpro).
Do the needful.
Thanks & regards,
Ravi.Hi ravi,
See the WDA forum for the how to attach a file in webdynpro component for the attachments. -
How to capture the screen for sending the mail
dear sir,
How to capture the screen for sending the mail .. Is there any funtion module or anyother way ? .. How to do this .. Please tell me..
Regards,
Kumardear sir,
s thats my problem ?
Regards,
kumar -
How do i specify the port form where i want to send the mails
i have smtp server which by default has proxy at port 25.So i want to send the mails through some other port.So how can i specify the exact port in the bean(i am using a bean to send email) so that all the mails through that port.my machine is having public ip.so what i do is Properties prop = new Properties();
prop.put("mail.smtp.host",hostname);but how do i specify the port name coz this sends the mail at port 25 by default.prop.put("mail.smtp.port",portnumber)
-
When MAIL adapter failed to send the mail to recever, how does it handle XI
Hi Experts,
I used dynamic mail adapter, how do we track whether the mail has been successfully received by receiver, if it is failed to send the mail by mail adapter how do we handle in XI. Please help me out.
thanks
sivaSiva:
There is one option in Mail Adapter (Receiver) "Send Delivery Status Notification". I think, it will help you to get the status. When you fill the above option, you are required to fill a recipient email id to whom, the status of the email will be emailed. From there, you can get the status. Please dig little more into this.
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm -
How to send external mails to the user
Dears,
How to send external mails to the user who creates the sales document (Quotation)
Can you please suggest what modification required in the FM
Thanks,
pinkyYou can have a partner function like 'Created by' and use an exit to populate the User ID to this partner function(dont have the system right now but i think this can be done with standard partner detr. procedure also)
Then, create an Output type for that Partner function with transmission medium as 'External Send'. You can use the standard SAP program to trigger the email. To send the actual email after the output is trigerred, the link connection has to be set up be BASIS but if you want to check, then goto SOST and see if the email got trigerred or not. -
how can i get my password and security questions back? everytime i write my mail in iForgot it doesnt send the mail to my account, why? someone hacked me but i dont know how.
example;
my apple mail: [email protected]
and i write down the account in iForgot [email protected] but i never recieve the mail asking for the new password, why? someone hacked me and change that and the security questions, what can i do?Alternatives for Help Resetting Security Questions and Rescue Mail
1. Apple ID- All about Apple ID security questions.
2. Rescue email address and how to reset Apple ID security questions
3. Apple ID- Contacting Apple for help with Apple ID account security.
4. Fill out and submit this form. Select the topic, Account Security.
5. Call Apple Customer Service: Contacting Apple for support in your
country and ask to speak to Account Security.
How to Manage your Apple ID: Manage My Apple ID
Maybe you are looking for
-
How to get context information?
suppose i have created master detail.if i put mouse on any attribute of master ,related detail should be shown as context message.
-
SUIM - Track Role Changes Please Help
Dear Friends, I want to know is there anyway or any report that track the changes done to a role for last 3 months - addition/deletion of tcode and Auth. Object Values Changes and when it was changed. I used SUIM (All Change Documents (Technical View
-
Oracle 9.2.0.8 on Solaris 10 with OHS from 10g companion CD used to run Apex 3.x I would like to use NTLM authentication and had trouble compiling mod_ntlm.so so I thought a Perl solution should work just as well using http://search.cpan.org/~speeves
-
IPod Touch picasa VIRUS!!!
Warning I've just been hit! At first my ipod would not open albums and said it needed to syc with itunes. Then when I tried to syc it tried to load pictures without my permission and then it reloaded a bunch of albums and mismatched all the album art
-
Heya guys im a new user. I have a couple of problems, but i'd like to deal with them one at a time. When I go to the File Manager, I am not able to view files that I have created? For example, I used Ovi to import some pictures to the n900 but I coul