How to send a mail while saving va02
Hi experts,
i have to send a mail while saving the VA02.
The mail id s are maintained in Custom table based on the plant.
Regards
Ramakrishna L
Hi,
We had set a output type in NACE. and that output type we have in the VA02 transaction also.
But While saving the transaction it is not going through the program mentioned in the NACE for that output type.
But mail is sent to the SAP Inbox or official id .
how that mail is gone i am not understanding.
How can we do to go through the program mentioned in NACE while saving the VA02.
The mail body coming with text " sales order is blocked" sopme thing like this.
This same mail i have to sent to the mail id maintained in Custom table plant wise.
Regards
Ramakrishna L
Similar Messages
-
HOW TO Send mail while saving VA02
How can i send mail while saving VA02.
The mail address i have to pick from custom table based on plant.
Just for the trial we used : output type :KRML
Application : V1
Transaction medium :7.
and the program RSNASTSO routine SAPOFFICE_AUFRUF_VX is attached in the nace.
The same output type is attached in va02.If we use this output type with this medium , it is asking us mail partner
address also in the VA02.
but we have to get the mail partner from custom table.
And with this output type , the program attched in the NACE (RSNASTSO) IS NOT GETTING triggered.
But the mail is being sent to the mail partner which i mentioned in the VA02 Communication method.
How can i solve this.
Finally my requirement is i have to send a mail to exter id which is maintained in the custom table while saving VA02.
Regards
Ramakrishna LHi,
We had set a output type in NACE. and that output type we have in the VA02 transaction also.
But While saving the transaction it is not going through the program mentioned in the NACE for that output type.
But mail is sent to the SAP Inbox or official id .
how that mail is gone i am not understanding.
How can we do to go through the program mentioned in NACE while saving the VA02.
The mail body coming with text " sales order is blocked" sopme thing like this.
This same mail i have to sent to the mail id maintained in Custom table plant wise.
Regards
Ramakrishna L -
Regarding mail sending while saving VA02
Dear Experts,
I have requirement mail to be sent while saving VA02 .
Mail ids are maintained plant wise in custom table.I have to send the mail to the mail id maintained in custom table while saving the VA02.
Here in VA02 we have added output type which is related to mail which triggers the program RSNASTS0.
But while saving this program is not getting triggered.But mail is coming to the SAP INBOX.
Why this program is not triggered and how can i do the abouve requirement.
Regards
Ramakrishna LHi Rama,
First of all, could you please tell me whether the NAST program that you wrote is sending the mail to SAP Inbox. If that program is sending the mail to SAP indox, then to send the mail outside SAP, like the users official mail id, you need to activate auto forwarding feature. This can be done using Tcode "SO36". You can activate this feature and try to test it out.
Please let me know if this will server your purpose.
Regards
Maneesh Chandran
Edited by: Maneesh Chandran on Aug 9, 2010 8:35 PM -
How to send a Mail purchase order automaticaly from ME22N
How to send a Mail purchase order automaticaly from ME22N
Hi,
First create an entry via NACE with medium = 5 ( External send ) with all other details same as normal print option. Now ensure that vendor master of the po has got the external e-mail id of the vendor. Now go to ME22n in mesages create a message with medium = 5 ( External Send ). Go to communication method, key in Communication strategy.Go to Further date & against Despatch time pick up option 4 viz. Send immeidately while saving an application. Now once you press the save button it will be sent to the address maintained in the vendor master of the vendor of the PO. Please note you require some basic settings from BASIS side as well.
I hope this helps,
You may also refer to the SAP note 191470.
Regards
Raju Chitale -
How to send a mail to a person from after completeing bdc .
Hi Xperts,
Please send me a options how to send a mail to a person after completing a bdc or from any report program.
mailed can be a sapuser or other service provider(ex:yahoo,gmail.any thing)
Please Any one i want it now .
Thank You.FUNCTION RS_SEND_MAIL_FOR_SPOO* Email ITAB structure
DATA: BEGIN OF EMAIL_ITAB OCCURS 10.
INCLUDE STRUCTURE SOLI.
DATA: END OF EMAIL_ITAB.
DATA: T_EMAIL LIKE SOOS1-RECEXTNAM. "EMail distribution list
CONSTANTS: C_EMAIL_DISTRIBUTION LIKE SOOS1-RECEXTNAM VALUE
[email protected],[email protected].
Initialization
REFRESH EMAIL_ITAB.
Populate data
EMAIL_ITAB-LINE = Email body text 1.
APPEND EMAIL_ITAB.
EMAIL_ITAB-LINE = Email body text 2.
APPEND EMAIL_ITAB.
T_EMAIL = C_EMAIL_DISTRIBUTION.
--- EMAIL FUNCTION ---------------------------------------------------
REQUIRMENTS:
1) The user running the program needs a valid email address in their
address portion of tx SU01 under external comms -> SMTP -> internet
address.
2) A job called SAP_EMAIL is running with the following parameters:
Program: RSCONN01 Variant: INT User: XXX
This program moves mail from the outbox to the mail server using
RFC destination: SAP_INTERNET_GATEWAY_SERVER
INTERFACE:
1) APPLICATION: Anything
2) EMAILTITLE: EMail subject
3) RECEXTNAM: EMail distribution lists separated by commas
4) TEXTTAB: Internal table for lines of the email message
EXCEPTIONS:
Send OK = 0 otherwise there was a problem with the send.
CALL FUNCTION 'Z_SEND_EMAIL_ITAB'
EXPORTING
APPLICATION = 'EMAIL'
EMAILTITLE = 'Email Subject'
RECEXTNAM = T_EMAIL
TABLES
TEXTTAB = EMAIL_ITAB
EXCEPTIONS
OTHERS = 1.
Function Z_SEND_EMAIL_ITAB
""Local interface:
*" IMPORTING
*" VALUE(APPLICATION) LIKE SOOD1-OBJNAM
*" VALUE(EMAILTITLE) LIKE SOOD1-OBJDES
*" VALUE(RECEXTNAM) LIKE SOOS1-RECEXTNAM
*" TABLES
*" TEXTTAB STRUCTURE SOLI
*- local data declaration
DATA: OHD LIKE SOOD1,
OID LIKE SOODK,
TO_ALL LIKE SONV-FLAG,
OKEY LIKE SWOTOBJID-OBJKEY.
DATA: BEGIN OF RECEIVERS OCCURS 0.
INCLUDE STRUCTURE SOOS1.
DATA: END OF RECEIVERS.
*- fill odh
CLEAR OHD.
OHD-OBJLA = SY-LANGU.
OHD-OBJNAM = APPLICATION.
OHD-OBJDES = EMAILTITLE.
OHD-OBJPRI = 3.
OHD-OBJSNS = 'F'.
OHD-OWNNAM = SY-UNAME.
*- send Email
CONDENSE RECEXTNAM NO-GAPS.
CHECK RECEXTNAM <> SPACE AND RECEXTNAM CS '@'.
*- for every individual recipient send an Email
(see OSS message 0120050409/0000362105/1999)
WHILE RECEXTNAM CS ','.
PERFORM INIT_REC TABLES RECEIVERS.
READ TABLE RECEIVERS INDEX 1.
RECEIVERS-RECEXTNAM = RECEXTNAM+0(SY-FDPOS).
ADD 1 TO SY-FDPOS.
SHIFT RECEXTNAM LEFT BY SY-FDPOS PLACES.
MODIFY RECEIVERS INDEX 1.
PERFORM SO_OBJECT_SEND_REC
TABLES TEXTTAB RECEIVERS
USING OHD.
ENDWHILE.
*- check last recipient in recipient list
IF RECEXTNAM <> SPACE.
PERFORM INIT_REC TABLES RECEIVERS.
READ TABLE RECEIVERS INDEX 1.
RECEIVERS-RECEXTNAM = RECEXTNAM.
MODIFY RECEIVERS INDEX 1.
PERFORM SO_OBJECT_SEND_REC
TABLES TEXTTAB RECEIVERS
USING OHD.
ENDIF.
ENDFUNCTION.
FORM SO_OBJECT_SEND_REC *
FORM SO_OBJECT_SEND_REC
TABLES OBJCONT STRUCTURE SOLI
RECEIVERS STRUCTURE SOOS1
USING OBJECT_HD STRUCTURE SOOD1.
DATA: OID LIKE SOODK,
TO_ALL LIKE SONV-FLAG,
OKEY LIKE SWOTOBJID-OBJKEY.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
EXTERN_ADDRESS = 'X'
OBJECT_HD_CHANGE = OBJECT_HD
OBJECT_TYPE = 'RAW'
OUTBOX_FLAG = 'X'
SENDER = SY-UNAME
IMPORTING
OBJECT_ID_NEW = OID
SENT_TO_ALL = TO_ALL
OFFICE_OBJECT_KEY = OKEY
TABLES
OBJCONT = OBJCONT
RECEIVERS = RECEIVERS
EXCEPTIONS
ACTIVE_USER_NOT_EXIST = 1
COMMUNICATION_FAILURE = 2
COMPONENT_NOT_AVAILABLE = 3
FOLDER_NOT_EXIST = 4
FOLDER_NO_AUTHORIZATION = 5
FORWARDER_NOT_EXIST = 6
NOTE_NOT_EXIST = 7
OBJECT_NOT_EXIST = 8
OBJECT_NOT_SENT = 9
OBJECT_NO_AUTHORIZATION = 10
OBJECT_TYPE_NOT_EXIST = 11
OPERATION_NO_AUTHORIZATION = 12
OWNER_NOT_EXIST = 13
PARAMETER_ERROR = 14
SUBSTITUTE_NOT_ACTIVE = 15
SUBSTITUTE_NOT_DEFINED = 16
SYSTEM_FAILURE = 17
TOO_MUCH_RECEIVERS = 18
USER_NOT_EXIST = 19
X_ERROR = 20
OTHERS = 21.
IF SY-SUBRC <> 0.
RAISE OTHERS.
ENDIF.
ENDFORM.
FORM INIT_REC *
FORM INIT_REC TABLES RECEIVERS STRUCTURE SOOS1.
CLEAR RECEIVERS.
REFRESH RECEIVERS.
MOVE SY-DATUM TO RECEIVERS-RCDAT .
MOVE SY-UZEIT TO RECEIVERS-RCTIM.
MOVE '1' TO RECEIVERS-SNDPRI.
MOVE 'X' TO RECEIVERS-SNDEX.
MOVE 'U-' TO RECEIVERS-RECNAM.
MOVE 'U' TO RECEIVERS-RECESC.
MOVE 'INT' TO RECEIVERS-SNDART.
MOVE '5' TO RECEIVERS-SORTCLASS.
APPEND RECEIVERS.
ENDFORM.
2. -
How can I retain hyperlinks while saving a webpage as PDF via Print?
How can I retain hyperlinks while saving a webpage as PDF via Print?
This is the title of an apple forum question, and it is a bug in both Safari 5.1.3 and under, and I find it to also occur in Firefox browser (at least 9.* 10.*, 11.0), running on Lion OS (10.7.2, 10.7.3). See:
https://discussions.apple.com/thread/3212301?start=0&tstart=0
Under the newer Mac OS mentioned, and Firefox 10.2, 11.0, 9.*, if I select:
File -> Print -> PDF -> Open PDF in Preview"
(and view / save the PDF in Preview, you will see none of the links in the original web page are active
or using
File -> Print -> PDF -> Save as PDF...
same problem. Try this using any Wikipedia page, for example.
When this problem was posed in Apple forums, by a user of the Safari browser, it was found to be a bug (since Aug 2011) fixed in a Safari browser build 5.1.4 circa Jan 2012. I tried the newer Safari browser and sure enough the problem went away (except that links embedded in the PDF no longer appeared as blue text - ARGH - but "hover over" with the cursor showed the link and clicking the link in Preview viewer activated the link in a browser window).
So I post this to the Mozilla community, please fix this 'cause I don't want to have to switch over to Safari browser every time I want to archive a PDF with active links!!!!
P.S. I did a spot-check and with the newer add-on Enjoy Reading 1.0.1 and FF11.0. When the Enjoy reading formatted version appears in the browser window, all URLs/links are preserved and highlighted in blue, but when I print that browser window as PDF, the links are dead (don't work) even though they appear in blue in the PDF.
So, what's going on, can the Safari fix be researched and applied to FF?
Also, on some forums, people are responding, Well, try installing Acrobat reader. Well, I don't want to, Preview reader has worked fine for me for years.Thanks jscher2000.
RE: -- '''Generally speaking, PDF converters that work by intercepting a print job do not have access to the URLs behind links in the page.''' --
I cannot say I agree. I could email you a PDF clipping or two (generated from Safari on Mac OS, in its native capability with no add-ons) that shows you otherwise. When I used PC platforms I did have to install PDF converters (tried both free and expensive ones) that did what I describe.
I cannot try the add-on you mention, '''Print Pages to Pdf.''' in Firefox. It shows in my browser and Mac OS platform "Not available for your platform." So I am guessing it was written for the PC version of Firefox.
The Mac OS has had a native PDF-creation functionality for as many years as I have been using it; I used PC prior to that, Win3.1 through XP and NT. And on my PC, I bought (and at work, my employer bought $$$, I had to justify three levels up to management the ability to create PDFs on my work PC) some Adobe functionality to CREATE pdf's (readin's free and easy, makin' em's costly on the PC).
I've gone and dug through some of my (Mac) doc and clipping archives, and I find that stuff I created after about Dec 2008 or so seems to eliminate all link functionality. When viewed in the Apple native "Preview" application (sort of Apple's equivalent to Adobe Acrobat reader, ships with the OS): link tags are highlighted/tinted, clicking a link opens a (default) browser and takes you there; hover-over the tag text shows the actual link. (Of course, not all old links are still VALID or point to the desired source.)
I could, in Safari or FF browser window and with no add-ons or Adobe paid products whatsoever, use the native OS method to create PDF's from any application (word processor, spreadsheet, browser, etc) via the menu File -> Print -> Save as PDF menu and create a PDF that had active hyperlinks. In Apple OS Lion 10.7.3, I still can't when it uses this broken WebKit interface, links are "dead" as a doornail until a fix is distributed in WebKit for a future Lion release. It seems this functionality died at least as far back as Leopard OS 10.6.8, but don't quote me on that. Also, my version of Pages 2009 version 4.1(923) (sorta like Word) STILL creates a PDF document that preserves (1) text hyper-links within the document, and (2) web links (in the PDF) that open the browser. I just made a test document.
When all you can see in the PDF is the tag text, there is nothing to copy-paste to follow any link. Also, hypertext links are often used by authors to create links to other points in a document: now even *that* is broken in the PDF version of the documents I retrieve from the web and print from FireFox (Broken in Safari 5.1.3 and earlier but fixed in 5.1.4).
Try this on the PC, in your browser and print a news clipping as PDF, do the links in the PDF work? What products do this, and what don't? I would bet the machine with a full Adobe suite this will work flawlessly. (Why should a PC user have to pay hundreds of $ to create this functionality in what I thought was an open standard (PDF)? But that's talkin' religion, let's not start that.)
Some folks might say,
go online and find the original source doc in your browser. Or,
go and add those links manually using the Preview edit add-link capability (hunh? no thanks) , or
save each item worth saving as an HTML archive instead of a PDF (argh, creating a whole directory in the process, I might add, including ads). Or,
who needs PDFs, everything is online.
Or, buy some Adobe product.
I think they miss my point. This is a real strange dumbing-down of archival PDF documents, or at least a destruction of the ability to use PDF as an archive that retains its links and references.
C.F. the guy who has archives of scientific papers, and the old material all cross-references nicely but after date X there are no working links. -
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 in pdf format file in sbwp??
how to send a mail in pdf format file in sbwp?? and how to read the content of the mail?
Refer the following link for Sample Program:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm -
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 a mail with HTML body from Oracle
Hi Team,
Can somebody guide me how to send a mail with HTML body from oracle.
Here is the piece of code i am trying to send a mail.
procedure SEND_MAIL is
cursor c_1 is select * from table_name;
l_mail_id varchar2(40);
-- ls_mailhost VARCHAR2(64) := Mailhost;
ls_from VARCHAR2(64) := ‘[email protected]’
ls_subject VARCHAR2(200);
ls_to VARCHAR2(64);
l_mail_conn UTL_SMTP.connection;
ls_left_menu_name VARCHAR2(64);
ll_emp_num number(8);
begin
for i in c_1 loop
begin
l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
UTL_SMTP.HELO(l_mail_conn, 'IP');
UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
UTL_SMTP.RCPT(L_mail_conn, LS_TO);
UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
'To: ' ||ls_to || utl_tcp.crlf ||
'Subject: ' ||ls_subject|| utl_tcp.crlf);
UTL_SMTP.QUIT(l_mail_conn);
exception
when no_data_found then
null;
when others then
RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
end;
end loop;
end;
ThnxHi Nicolas!
Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
Hope this helps!
Regards
Geir -
How to send HTML mail with images multipart/related message
Hi,
Could any body tell me how to send HTML mail with images in "multipart/related" message,if any body can give the code ,it would be helpful.
ThanksHi,
Could any body tell me how to send HTML mail with
ith images in "multipart/related" message,if any body
can give the code ,it would be helpful.
ThanksHi!
Refer to
http://developer.java.sun.com/developer/onlineTraining/JavaMail/index.html
I've found it very helpful.
Look at the last part for a code showing how to send HTML mail!
Regards -
I developed a system where users can login and check for updated information and documents. But the changes are made once or twice in a year. I want to send email after changing the documents. I stored email addresses in the DB. Now the question is how to send e-mails to concerned users without using external software (Outlook, etc.). [Considering same subject and message for all e-mails.]
Go to Java Mail forum:
http://forum.java.sun.com/forum.jsp?forum=43 -
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 whenever employee is Hired
Dear Experts,
How to send a mail to concern mangaer whenever a nes PERNR ( Employee ) is hired?
Regards,
sudherHi,
I was just going to suggest use dynamic actions.
Alternatievely you can abuse a custom function module on SWEHR3 instead of determining which event to send it could also just send an email.
Kind regards, Rob Dielemans -
How to send a mail through web dynpro application
Hi
How to send a mail through web dynpro application?
ThanksHi ,
Please post some more details about your query .
One way is to can use LinkToUrl UI element and in the reference property of the UI element , give it as mailto:mail addess
Thanks.
aditya.
Maybe you are looking for
-
Problem working with LAUNCH_BROWSER apdu
Hi there, I am currently developing a STK based application from which i would like do a LAUNCH_BROWSER. I managed to get the browser open from the STK menu, but the problem is that the browser open behind the STK menu. So as a user they will have to
-
CS5 Missing text descriptions using insertion pointer
Only when using CS5. When I move the inserton pointer (hand with finger extended) to any tool or icon the yellow rectangular text box appears but it is either empty or contains the garbled first portion of the tool/icon name. When text does appear it
-
BEx authorization issue with colon value
Hi All, I have created few reports in 3.5 version on a cube. Two reports are having authorization object company and remaining don't have authorization object. If i do not give value colon( for company, authorization is failing for those reports do n
-
I've been running CS5.5 on a yearly subscription for a couple of weeks now on tower and laptop without any difficulties. But this morning I am unable to start any of the applications as the Application Manager says I'm not connected to the internet (
-
Hi, My company would like to use the budget process in SAP to keep track of actual vs budget / Panning. Can some one provide me the full configuration setup for the budget / planning process ? Like creating budget version or plan version, entering of