Help required in sending automated mails to hr-coordinator
Dear Friends,
I have a requirement where to send the mails to HR co-ordinator via r3-program
suggestions are appreciated, Help me in this regard.
Thanks in advance.
Regards,
nallani.
Hi Nallani,
Write a <Zprogram>, use your own logic in the program to send mails.
Example: Suppose mails should be generated to the respective administrators when a employee is hired.
clue - once IT 0001 is saved you should generate a mails.
Solution: My logic is, check Personnel area & Personnel sub-area, based on this in IT 0001 - pick up respective Administrator for that employee, and run the program to send mails.
for this you need to maintain Dynamic actions for IT 0001, there you need to maintain your <Zprogram>, while change/create of IT 0001, <Zprogram> should be executed
[Insure the respective administrators maintained with their e-mail id addresses]
Hope you got an idea how to make a show for your query?
Cheers,
TG
Similar Messages
-
Need to send Automated mail when releasing the Hold
Hi Team,
I have requirement to send the mail to customers when releasing the Hold Manually in OM.
Kindly let me which event will trigger when releasing the hold manually.(Action -> Release Holds)
Thanks
Suresh.S.hi,Suresh
There may be a way for your requirement.
Achieved with form personliaze as follows(Not test):
trigger event: post-query
1.Check the holds which retrived at 2 is released or not.
If released then send mail.
2.Get current holds again.
At the first time, 1 will not perform anything because of holds has not be got yet.
Afterwards 1 will perform normally when release hold. (Action -> Release Holds)
Regards,
Leno
Edited by: Leno Sun on 2013/05/10 0:36 -
Hi All,
I need to send an automated mail using BEA Weblogic API, can you please let me know how to accomplish this task,
I will be heartly thankful to you,
waiting for your response back
naveendoes it uses weblogic API ,, is thre any other way to do the task apart from email controls ,,,, because we are using timers and email control uses event genrators.
-
Pl sql procedure required to send a mail with .xlsx attachement
Hi All,
we are facing issues with excel files which are generating more than 65000 rows.
we required plsql procedure which send a mail with .xlsx attachment.
please provide suggestions & code examples.
Thanks & Regards,
Raj891875 wrote:
Hi All,
we are facing issues with excel files which are generating more than 65000 rows.
we required plsql procedure which send a mail with .xlsx attachment.
please provide suggestions & code examples.
newer versions of Excel do not have 65K row limit! -
Configurations required for sender/ reciever mail adapter scenario...
Hi,
I have to work on few mail scenario's i.e, sender and reciever.
Please let me know what all configurations are required in XI server to make the system ready to send and recieve mail like SMTP configurations...
Thanks..Hi,
how to use mail adapter
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
XI: Dynamic name in the mail attachment - pseudo "variable substitution"
The specified item was not found.
XI: Sender mail adapter - PayloadSwapBean - Step by step
The specified item was not found.
XI: HTML e-mails from the receiver mail adapter ?
The specified item was not found.
Mail Adapter (XI) - how to implement dynamic mail address
The specified item was not found.
S/MIME Security for the MAIL-Adapter within XI
S/MIME Security for the MAIL-Adapter within XI
Configuring sender mail adapter
http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/frameset.htm
Thanks,
Madhu
Edited by: Madhu sudhan Reddy on Jul 18, 2008 7:54 AM -
Help Required on File to Mail Adapter scenario
Hi all,
Can someone give me some links or material regarding the step by step procedure to configure a file to mail adapter scenario (including the design and configuration). I have already gone through help.sap.com, but I need more clarification. So please guide me accordingly
Regards
V.KartikHi Karthik,
Also check these links on File to Mail adapter scenario:
Blogs:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/sap.user72/blog/2005/06/08/sending-attachments-in-mails
Sap File on Mail Adapter:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
Also check these similar threads:
How to implement file to mail scenario
What is the process for sending file thru email using Mail Adapter ???
Regards,
Subhasha Ranjan -
Help required for Sender Proxy/RFC and Receiver RFC approach. Urgent please
Hi All,
I have one sender R/3 system
I have two receivers R/3 systems
Business Partners data from sender R/3 system needs to be repliacted to 2 receivers R/3 systems
From sender R/3 system one Sync Abap Client Proxy or
Sync RFC will send Business Partners data to XI.
For both receivers R/3 systems there is only one RFC Currently there is no flag condition for 2 receivers as this is
Business Partner replication scenario.
Also In XI there is restriction that multiple sync receivers cannot be there.
Please let me know how to make this approach.
RegardsRich,
Create two O/B Interfaces - Synch. Create Proxy1 for O/B Interface1 , Proxy2 for O/B interface 2.
So while defining Receiver determinatio, you will define as following,
Receiver Determination----1
Sender : Sender_BusinessSystem
Sender Interface : O/B Interface 1 ( i.e Proxy1)
Receiver : BusinessSystem_ C
Interace Determination
Sender : Sender_BusinessSystem
Sender Interface : O/B Interface 1 ( i.e Proxy1)
Inbound Interface: RFC_Rec
Receiver Determination----2
Sender : Sender_BusinessSystem
Sender Interface : O/B Interface 2 ( i.e Proxy2)
Receiver : BusinessSystem_D
Interace Determination
Sender : Sender_BusinessSystem
Sender Interface : O/B Interface 2 ( i.e Proxy2)
Inbound Interface: RFC_Rec
Hope it helps!
raj. -
Configurations required for sender/reciever mail adapters
Hi,
I am working on a scenario, which involves mail adapter configuration.
Mail Adapter scenarios SAP Exchange Infrastructure:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
XI: HTML e-mails from the receiver mail adapter ?
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Sending XI-Content as Mail Attachement with specific Filename
Sending XI-Content as Mail Attachement with specific Filename
Triggering e-Mails to Shared folders of SAP IS-U
/people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u
I have gone through many threads but i am unable to understand what all configurations need to be done on XI and mail server like SMTP setup and stuff.
Please give me any specific links and share with me any real time problems faced while carrying out such a scenario.
Thanks,
PuneetHi check this,
Spam protection-mail
/people/alessandro.guarneri/blog/2007/03/18/basic-spam-protection-for-xi-mail-adapter
e-mails from the receiver mail adapter /people/natty.gur/blog/2007/03/18/if-it146s-all-about-semantic-make-it-formal
sender mail adapter
/people/natty.gur/blog/2007/03/18/if-it146s-all-about-semantic-make-it-formal
File to Mail
/people/varun.vijh/blog/2007/03/20/report-with-a-graph-an-approach
Dynamic mail address
/people/oliver.mayer/blog/2007/04/06/web-dynpro-java-and-adaptive-rfc-in-action
mail adaptor scenarios
/people/manfred.lutz/blog/2007/03/20/abap-trial-version-for-newbies-part-1-download-and-installation-of-the-trial-version
email reporting
/people/mark.yolton/blog/2007/04/05/teched07-were-making-a-list-and-checking-it-twice
mail attachment
/people/community.user/blog/2007/03/19/todo-ideas
/people/puru.govind/blog/2007/03/19/adding-class-inheritance-programaticallyor-dynamically
Triggering Email from folder /people/santosh.v/blog/2007/03/19/organizational-management
Thanks,
Kalenthirababu.P -
Help required regarding sending jar files using bluetooth
I want to send jar file from Nokia 7610 (S60), or any other phone for that matter, to any other phone using bluetooth. The problem is that, when I look at the options available for the jar file (which is saved in the Inbox), the send option is not visible.
I looked at the previous postings on this topic. Is it due to "Closed Content List" (CCL)??? What are the possible workarounds, other than using getResourceAsStream or some software like FExplorer???
Also, this problem is not encountered in Sony Ericsson phones. Plz help regarding the same...Hi,
You might wanna look take a look in the JSR 82 Specifications. There is a method like agent.startInquiry(); that starts a search for nearby BT devices. All you have to do is place each found device in an array of type Vector.
It would have been easier if your code or a snippet of it was available to see what the problem was.
Rambo.
PS: A client application application starts a connection on a server application. Where you put them is up to you. -
Help required in sending images to client
I have a java program that take snapshots of my screen at say 10 pics per second now i want these pics to be sent to another computer in the same order....
i tried to achieve this but i am able to send only 1 image i think the first image.......... heres my code ...
Server code..........
import java.awt.*;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
import java.net.*;
import javax.imageio.*;
import java.util.*;
import java.io.*;
public class VideoServer extends JFrame
BufferedImage img;
Robot robot;
Rectangle rect;
public static void main(String args[])
new VideoServer();
public VideoServer()
//init components
try
robot = new Robot();
rect = new Rectangle(200,200,300,300);
catch (AWTException e)
e.printStackTrace();
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(500,500);
// this.setVisible(true);
takeShots();
private void takeShots()
try
ServerSocket s=new ServerSocket(8189);
Socket incoming=s.accept();
try
OutputStream os=incoming.getOutputStream();
for (int i = 0;i<100 ; i++)
img = robot.createScreenCapture(rect);
//repaint();
ImageIO.write(img,"jpg",os);
if(img==null)
System.out.println("NULL");
try
Thread.sleep(50);
catch (InterruptedException e)
e.printStackTrace();
finally
s.close();
catch(IOException e1)
/* public void paintComponent(Graphics g)
super.paintComponents(g);
//Graphics2D g2 = (Graphics2D)g;
//g2.drawImage(img,0,0,this);
}and heres my client program
import java.util.*;
import java.io.*;
import java.net.*;
import java.awt.image.*;
import javax.imageio.*;
public class ImageClient
public static void main(String args[])
ArrayList list=new ArrayList(100);
BufferedImage tmp=new BufferedImage(400,400,BufferedImage.TYPE_INT_RGB);
try
Socket s=new Socket("127.0.0.1",8189);
try
InputStream in=s.getInputStream();
for(int i=0;i<100;i++)
tmp=ImageIO.read(in);
list.add(tmp);
finally
s.close();
catch(IOException e)
e.printStackTrace();
try
for(int i=0;i<100;i++)
tmp=(BufferedImage)list.get(i);
ImageIO.write(tmp,"jpg",new File("/home/gaurav/java programs/Formedimages/created"+i+".jpg"));
catch(Exception exp)
System.out.println("hello5");
}It's been a while, but I know you can write a series of images to a file, then later read back that series of images. Why don't you work on doing this with file i/o first (easier to debug, and you can examine the file with standard image viewers), before sprinkling sockets on it?
-
Help, how to send an e-mail from JSP
I need to know if there's any method or library that helps me to send a mail from a web page, i need to send data from a query from mysql, does anybody knows how??? PLEASE!!!!
here are the links that can help you.. you must download the jar files needed in order for you to send mail using java
http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html
http://java.sun.com/products/javamail/
http://java.sun.com/products/javamail/FAQ.html -
Hi there,
I am having a problem like alot of people have had when sending e-mail to a smtp server.
The below program is the my SMTP client.
When sending an e-mail to my own ISP's server smtp.homechoice.co.uk, with my allocated e-mail address from them, this works fine proving that I can send an e-mail to myself.
However if I enter in another e-mail address at another domain like [email protected], I get the below error:
Is this some kind of authentication issue?
javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 553 sorry, that domain isn't in my
list of allowed rcpthosts (#5.7.1)
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at MessengerFrame$3.run(MessengerFrame.java:1599)
at java.lang.Thread.run(Thread.java:534)
public class SMTPClient extends JFrame
private JButton sendButton = new JButton("Send Message");
private JLabel fromLabel = new JLabel("From: ");
private JLabel toLabel = new JLabel("To: ");
private JLabel hostLabel = new JLabel("SMTP Server: ");
private JLabel subjectLabel = new JLabel("SMTP Server: ");
private JTextField fromField = new JTextField(40);
private JTextField toField = new JTextField(40);
private JTextField hostField = new JTextField(40);
private JTextField subjectField = new JTextField(40);
private JTextArea message = new JTextArea (10, 72);
private JScrollPane jsp = new JScrollPane(message);
public SMTPClient()
super("SMTP CLient");
Container contentPane = this.getContentPane();
contentPane.setLayout(new BorderLayout());
JPanel labels = new JPanel();
labels.setLayout(new GridLayout(4,1));
labels.add(hostLabel);
JPanel fields = new JPanel();
fields.setLayout(new GridLayout(4,1));
String host = System.getProperty("mail.host", "");
hostField.setText(host);
fields.add(hostField);
labels.add(toLabel);
fields.add(toField);
String from = System.getProperty("mail.from", "");
fromField.setText(from);
labels.add(fromLabel);
fields.add(fromField);
Box north = Box.createHorizontalBox();
north.add(labels);
north.add(fields);
contentPane.add(north, BorderLayout.NORTH);
message.setFont(new Font("Monospaced", Font.PLAIN, 12));
contentPane.add(jsp, BorderLayout.CENTER);
JPanel south = new JPanel();
south.setLayout(new FlowLayout(FlowLayout.CENTER));
south.add(sendButton);
sendButton.addActionListener(new SendAction());
contentPane.add(south, BorderLayout.SOUTH);
this.pack();
//add(pane);
class SendAction implements ActionListener
public void actionPerformed(ActionEvent evt)
try
Properties props = new Properties();
props.put("mail.host", hostField.getText());
Session mailConnection = Session.getInstance(props, null );
//Store store = mailConnection.getStore(provider);
//store.connect(host, username, password);
final Message msg = new MimeMessage(mailConnection);
Address to = new InternetAddress(toField.getText());
Address from = new InternetAddress(fromField.getText());
msg.setContent(message.getText(), "text/plain");
msg.setFrom(from);
msg.setRecipient(Message.RecipientType.TO, to);
msg.setSubject(subjectField.getText());
Runnable r = new Runnable()
public void run()
try
Transport.send(msg);
catch (Exception e)
e.printStackTrace();
Thread t = new Thread(r);
t.start();
message.setText("");
catch (Exception e)
e.printStackTrace();
}Hi,
i m a new programmer in java. I just started programming. Please help me to send a mail through java
How can i get a smtp server. I have windows xp and using jdk1.4
since u have send mail at least to ur addres. U can help me .
Hope u will be a good tutor to me.
Bye
Binoy Debnath.
mail me in
[email protected]
[email protected] -
How to send a mail as .txt attachment ,As data is seperated by pipeline
Hi ,
I got a requirement to send a mail in .txt format (Using OOPS) and the data inside the mail is seperated by '|' Pls help me in this regard.
i have written a mail to send the mail in .xls it is working fine for me in .xls but i dont know how to write the same for txt where data should be seperated by '|'.
Regards
sas
Ps: i am attaching my code. and please specify where i need to modify to achieve the same. and any perfromance enhacements are also welcome.
*& Report ZGBTEST02
REPORT YSAS_MAIL2.
*Changes done by sas
*PARAMETERS: P_MAIL TYPE AD_SMTPADR OBLIGATORY, " G C by sas
*P_MAIL1 TYPE AD_SMTPADR OBLIGATORY." G by sas
tables: adr6.
SELECT-OPTIONS:p_eaddr FOR adr6-SMTP_ADDR NO INTERVALS .
*end of changes by sas
DATA: I_GLT0 TYPE STANDARD TABLE OF GLT0.
DATA: I_MARA TYPE STANDARD TABLE OF MARA. " MARA Entries
* I_MARC TYPE STANDARD TABLE OF MARC. " MARC Entries
DATA: L_TEXT TYPE CHAR255. " Text
DATA: L_LINES TYPE I,
L_SIZE TYPE SOOD-OBJLEN.
" Size of Attachment
* Mail related
DATA: I_CONTENT TYPE SOLI_TAB, " Mail content
I_ATTACH TYPE SOLI_TAB, " Attachment
I_ATTACH1 TYPE SOLIX_TAB. " Attachment
DATA: L_SEND_REQUEST TYPE REF TO CL_BCS,
" E-Mail Send Request
L_DOCUMENT TYPE REF TO CL_DOCUMENT_BCS,
" E-Mail Attachment
L_RECIPIENT TYPE REF TO IF_RECIPIENT_BCS,
" Distribution List
L_SENDER TYPE REF TO IF_SENDER_BCS,
" Address of Sender
L_UNAME TYPE SALRTDRCPT,
" Sender Name(SY-UNAME)
L_BCS_EXCEPTION TYPE REF TO CX_DOCUMENT_BCS,
" BCS Exception
L_ADDR_EXCEPTION TYPE REF TO CX_ADDRESS_BCS,
" Address Exception
L_SEND_EXCEPTION TYPE REF TO CX_SEND_REQ_BCS.
" E-Mail sending Exception
*Constants------------------------------------------------------------*
CONSTANTS: C_TAB(1) TYPE C VALUE
CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
" Tab Character
C_CR(1) TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF,
" Line Feed for End-Of_line
C_EXT TYPE SOODK-OBJTP VALUE 'XLS'. " XLS Extension
START-OF-SELECTION.
SELECT * FROM MARA INTO TABLE I_MARA UP TO 20 ROWS.
IF SYST-SUBRC EQ 0.
* SELECT * FROM MARC INTO TABLE I_MARC FOR ALL ENTRIES IN I_MARA WHERE MATNR = I_MARA-MATNR.
ENDIF.
*select * from glt0 into table i_glt0.
* Preparing body of the Mail
MOVE 'SAP Material Master Records' TO L_TEXT.
APPEND L_TEXT TO I_CONTENT.
CLEAR L_TEXT.
APPEND L_TEXT TO I_CONTENT.
MOVE 'Thanks,' TO L_TEXT.
APPEND L_TEXT TO I_CONTENT.
MOVE 'SAP MM' TO L_TEXT.
APPEND L_TEXT TO I_CONTENT.
* Creates persistent send request
TRY.
L_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
* Creating Document
L_DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
I_TYPE = 'RAW'
I_TEXT = I_CONTENT[]
I_SUBJECT = 'SAS MASTER Records' ).
* Preparing contents of attachment with Change Log
PERFORM PREPARE_ATTACHMENT.
DESCRIBE TABLE I_MARA LINES L_LINES.
* Size to multiplied by 2 for UNICODE enabled systems
L_SIZE = L_LINES * 2 * 255.
* Adding Attachment
CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
EXPORTING
I_ATTACHMENT_TYPE = C_EXT
I_ATTACHMENT_SIZE = L_SIZE
I_ATTACHMENT_SUBJECT = 'MARA Details'
* i_att_content_hex = i_attach[].
I_ATT_CONTENT_TEXT = I_ATTACH[].
* DESCRIBE TABLE I_MARC LINES L_LINES.
* Size to multiplied by 2 for UNICODE enabled systems
* L_SIZE = L_LINES * 2 * 255.
** Adding Attachment
* CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
* EXPORTING
* I_ATTACHMENT_TYPE = C_EXT
* I_ATTACHMENT_SIZE = L_SIZE
* I_ATTACHMENT_SUBJECT = 'MARC Details'
* I_ATT_CONTENT_HEX = I_ATTACH1[].
** i_att_content_text = i_attach1[].
* Add document to send request
CALL METHOD L_SEND_REQUEST->SET_DOCUMENT( L_DOCUMENT ).
DATA:LR_SENDER TYPE REF TO IF_SENDER_BCS,
LR_SEND TYPE REF TO CL_BCS.
* Preparing the sender object
* LR_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( sy-uname ).
DATA: L1_UNAME TYPE SY-UNAME.
L1_UNAME = SY-UNAME.
LR_SENDER = CL_SAPUSER_BCS=>CREATE( L1_UNAME ).
* Setting the sender
CALL METHOD L_SEND_REQUEST->SET_SENDER
EXPORTING
I_SENDER = LR_SENDER.
* E-Mail
LOOP AT P_EADDR.
TRANSLATE P_EADDR-LOW TO LOWER CASE.
L_RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( P_EADDR-LOW ).
CALL METHOD L_SEND_REQUEST->ADD_RECIPIENT
EXPORTING
I_RECIPIENT = L_RECIPIENT
I_EXPRESS = 'U'
I_COPY = ' '
I_BLIND_COPY = ' '
I_NO_FORWARD = ' '.
IF SY-subrc EQ 0.
WRITE:/'** SUCCESS: Email Sent to', p_eaddr-LOW COLOR COL_NORMAL.
ELSE.
WRITE:/'** ERROR: Failed to send Email to',p_eaddr-LOW COLOR COL_NEGATIVE .
ENDIF.
ENDLOOP.
*Trigger E-Mail immediately
L_SEND_REQUEST->SET_SEND_IMMEDIATELY( ' ' ).
CALL METHOD L_SEND_REQUEST->SEND( ).
COMMIT WORK.
CATCH CX_DOCUMENT_BCS INTO L_BCS_EXCEPTION.
CATCH CX_SEND_REQ_BCS INTO L_SEND_EXCEPTION.
CATCH CX_ADDRESS_BCS INTO L_ADDR_EXCEPTION.
ENDTRY.
*& Form PREPARE_ATTACHMENT
FORM PREPARE_ATTACHMENT .
FIELD-SYMBOLS: <LFS_TABLE>, " Internal table structure
<LFS_CON>. " Field Content
DATA: L_TEXT TYPE CHAR1024. " Text content for mail attachment
DATA: L_CON TYPE STRING. "(50) TYPE c. " Field Content in character format
DATA: L_STR TYPE STRING,
L_STR1 TYPE STRING.
DATA: LS_SOLIX TYPE SOLIX.
* Columns to be tab delimeted
LOOP AT I_MARA ASSIGNING <LFS_TABLE>.
DO.
ASSIGN COMPONENT SY-INDEX OF STRUCTURE <LFS_TABLE>
TO <LFS_CON>.
IF SY-SUBRC NE 0.
CONCATENATE C_CR L_TEXT INTO L_TEXT.
* CONCATENATE l_str c_cr l_text INTO l_str.
* ls_solix-line = l_text.
* APPEND ls_solix TO i_attach.
APPEND L_TEXT TO I_ATTACH.
EXIT.
ELSE.
CLEAR: L_CON.
MOVE <LFS_CON> TO L_CON.
CONDENSE L_CON.
IF SY-INDEX = 1.
CLEAR: L_TEXT.
MOVE L_CON TO L_TEXT.
ELSE.
CONCATENATE L_TEXT L_CON INTO L_TEXT
SEPARATED BY C_TAB.
ENDIF.
ENDIF.
ENDDO.
ENDLOOP.
** Columns to be tab delimeted
* LOOP AT I_MARC ASSIGNING <LFS_TABLE>.
* DO.
* ASSIGN COMPONENT SY-INDEX OF STRUCTURE <LFS_TABLE>
* TO <LFS_CON>.
* IF SY-SUBRC NE 0.
* CONCATENATE C_CR L_TEXT INTO L_TEXT.
** CONCATENATE l_str c_cr l_text INTO l_str1.
* LS_SOLIX-LINE = L_TEXT.
* APPEND LS_SOLIX TO I_ATTACH1.
* EXIT.
* ELSE.
* CLEAR: L_CON.
* MOVE <LFS_CON> TO L_CON.
* CONDENSE L_CON.
* IF SY-INDEX = 1.
* CLEAR: L_TEXT.
* MOVE L_CON TO L_TEXT.
* ELSE.
* CONCATENATE L_TEXT L_CON INTO L_TEXT
* SEPARATED BY C_TAB.
* ENDIF.
* ENDIF.
* ENDDO.
* ENDLOOP.
* i_attach1[] = i_attach[].
ENDFORM. " PREPARE_ATTACHMENTHi Sas,
I have copied the code and executed and it is working fine. I'm getting the text attachement in the email.
* Adding Attachment
CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
EXPORTING
I_ATTACHMENT_TYPE = 'TXT' " C_EXT My change
I_ATTACHMENT_SIZE = L_SIZE
I_ATTACHMENT_SUBJECT = 'MARA Details'
* i_att_content_hex = i_attach[].
I_ATT_CONTENT_TEXT = I_ATTACH[].
CONCATENATE i_mara-MATNR
i_mara-ERSDA
i_mara-ERNAM
i_mara-LAEDA
INTO L_TEXT
SEPARATED BY '|'. -
Sending a mail from oracle database
Hi,
I have a requirement to send a mail from oracle database.I use UTL_TCP package for this.Although my procedure is executed successfully,i dont get the mails in my inbox.Please help me to figure out a solution.
Thanks in advance....Hi, you must use UTL_SMTP package for send emails, it has more performance and features for debug. You must look the next code, this is a example for send emails.
DECLARE
c UTL_SMTP.CONNECTION;
PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2) AS
BEGIN
UTL_SMTP.WRITE_DATA(c, name || ': ' || header || UTL_TCP.CRLF);
END;
BEGIN
c := UTL_SMTP.OPEN_CONNECTION('smtp-server.acme.com');
UTL_SMTP.HELO(c, 'foo.com');
UTL_SMTP.MAIL(c, '[email protected]');
UTL_SMTP.RCPT(c, '[email protected]');
UTL_SMTP.OPEN_DATA(c);
send_header('From', '"Sender" <[email protected]>');
send_header('To', '"Recipient" <[email protected]>');
send_header('Subject', 'Hello');
UTL_SMTP.WRITE_DATA(c, UTL_TCP.CRLF || 'Hello, world!');
UTL_SMTP.CLOSE_DATA(c);
UTL_SMTP.QUIT(c);
EXCEPTION
WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
BEGIN
UTL_SMTP.QUIT(c);
EXCEPTION
WHEN UTL_SMTP.TRANSIENT_ERROR OR UTL_SMTP.PERMANENT_ERROR THEN
NULL; -- When the SMTP server is down or unavailable, we don't have
-- a connection to the server. The QUIT call will raise an
-- exception that we can ignore.
END;
raise_application_error(-20000,
'Failed to send mail due to the following error: ' || sqlerrm);
END;
Also review the next link for get more information about the UTL_SMTP packege.
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_smtp.htm#sthref15587
Regards. -
How to send a mail with PDF attachment
Hello
Good Day!
We have a requirement to send the mail with pdf attachment. Pdf file will be remain same for all mails and it will be placed at server. We are on R12.4 and below is the database information :
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Thanks a ton for your anticipated help!
Thanks
GauravThe word URGENT is considered as rude in this forum.. Nobody here is getting paid for the ansers they are giving..
Just have a look at These threads.Those will help you.
Maybe you are looking for
-
What is the factory set password for the administrator for a macbook pro 13" retina display?
what is the factory set password for the administrator for a macbook pro 13" retina display?
-
How to find the job is in which server
HI , In Process chains , are assighned to server want to know the chain is in which server , please let me know Thanks Ahmed Pasha
-
Remove descriptions from all photos
Hello I've been importing photographs into iPhoto from several different people. They have all used different methods of describing the photos (in the 'description' field). Is there a way to select all the photos (about 3,000) and remove the descript
-
Indicator Variable ( for Pro*C) support stop in Oracle10
It is said that Oracle will stop the support of treating NULL through the indicator variable in Pro*C( from Oracle 10g). How will then we'll be hanling NULL ( besides NVL or DECODE ) specially if NULL is to be distinguihed from 0 in numeric cases. Al
-
Training on Schema and PCR is required?
HI All, I am Six month old to SAP world, i have learned a lot about SAP-HR module but unable to understand clearly on working, modifying and creation of new SCHEMA and PCR. I request you all, if any one know about any institute or a individual who ca