Send mail from follow up actions for tasks in service notifications!
Dear All,
I want to send mail to the user from a follow up action in the task assigned to a service notification.
In customizing which function module I should select for follow up actions for tasks?
Thanks and Regards,
Satyajit P
Hi,
You can use function module QM06_FM_TASK_SEND_PAPER or QM06_FM_TASK_SEND_PAPER_ATTACH.The document is sent only after the associated notification is saved.You need to enter the function module "QM06_SEND_REPLY_STEP2" in Customizing of the action box as "FM when saving".
Similar Messages
-
Send mail as follow-up action in reporting agent
I need to send a mail with the exceptions flaoting from a query. I tried to use the follow-up action of 'send mail' in the reporting agent. that didnt work because in our SAP we're not using the exchange connector and mails cannot be sent in the regular way.
I have an external command of sending mail.
Does anyone has a way of solving this problem, meaning, using my external command of sending mail in order to send the mail with the exceptions (this command works just fine in process chains, for example, for notification of process progress)
Thank You,
Yoav.Hello Nili,
I think you can edit content and Subject etc.
http://help.sap.com/saphelp_nw2004s/helpdata/en/21/35783b82ee5d31e10000000a114084/content.htm
Hope this helps.
San. -
I have x6 gmail accounts set up on my Thunderbird pop mail. When ever I try and send ANY email from 2 of these accounts ([email protected] & [email protected]) a window pops up and says the following:
Enter your password for [email protected] on smtp.googlemail.com
I haven't had that email address for a couple years, and I've tried every password I've ever used with no luck.
I eventually have to hit cancel, the a new error box pops up that says the following:
Sending of message failed.
An error occurred sending mail: Could not get password for smtp.googlemail.com. The message was not sent.
PLEASE PLEASE help, I need these two address to work. Every other address (x4) through Thunerbird works.
Thank you for your time and support.Are you trying to send an email from "[email protected]" this address??
Check your Thunderbird Account Settings and SMTP
*https://support.mozilla.org/en-US/kb/manual-account-configuration
*http://kb.mozillazine.org/Multiple_SMTP_servers_%28Thunderbird%29 -
"This message cannot be sent at this time." I have been getting this pop-up for 3 days when trying to send out mail. I don't know what to do! I cannot send mail from this account on any ISP. Please help!
lots of people seem to be havgin a problem sending email from iCloud webmail.
does your email address have uppercase characters in it?
if so, try creating an alias in lowercase (go to preferences in iCloud webmail and select 'accounts') and see if email sends okay from that -
Cannot send mail from mac mail or Entourage
Hi guys,
Wondered if anyone out there can shed some light on this little problem.
I use Entourage for my emails & all was working fine until yesterday. I can receive mail from all and sundry but I can't send anything. I subscribe to ntlworld internet service and if log onto my email through their webmail, then it's fine. I've tried sending mail from mac mail and I get the same problem. I've been onto microsoft support & gone through all the troubleshooting with Entourage. The Entourage techy suggested it was my internet provider blocking my emails as they think I'm a spammer?? I phoned ntl & they insist it's nothing to do with them as I can send/receive from the website. (If I send an email with the address @ntlworld it's fine, but any other address i.e. all my clients/mates etc just stays in my outbox.
Nothing on any of my settings has changed so I'm at a loss what to do next.
Any suggestions greatly appreciated.
Thanks, Melit may be that your server (internet provider) has just started blocking outgoing mails not authenticated by them.
Go to your account set up...
and fill in the following details.
SMTP SERVER: smtp.mac.com
then click on advanced sending otions...
click on override default SMTP port... type 587
click on SMTP servber requires authentication...
use same setting as receiving mail server.
try this... -
Since I started using my new iPad, I cannot send mail from my iPhone even though I've compared the settings on both and they are exactly the same. I can receive mail.
Hello Ann,
Thank you for contacting Apple Support Communities.
You can use the following to troubleshoot email on your iPhone:
iOS: Troubleshooting Mail
http://support.apple.com/kb/TS3899
Regards,
Jeff D. -
Error while sending mail from SAP
Hello All,
Recently we are facing an error while sending mail from SAP. When we try to compose a message ,it is moving to a dump error RAISE_EXCEPTION.
The details from ST22,
Short text
Exception condition "FOLDER_NOT_EXIST" raised.
Error analysis
A RAISE statement in the program "SA
condition "FOLDER_NOT_EXIST".
Since the exception was not intercep
program, processing was terminated.
Kindly suggest..
Thank You,
Regards,
HasanHello Priyanka,
Actually, I performed the following two steps in order to solve the issue:
- In transaction SICF, the node for SAPConnect must be active. In our system, this node was in inactive state. Hence I activated it.
- Then In transaction SCOT-> Settings menu--> default domain should be 'xyz.com' if the email addresses in your company are maintained with a suffix xyz.com.
But for me the problem didnt get solved here..
The problem that i am facing now is that if in my user profile, I have the email address maintained, then i get an error saying 'Sender address rejected'. However, if i goto transaction SU01 and clear the email id, the mail is successfully sent to outer world.
You can try the above mentioned two steps using SICF and SCOT. If the problem does not get solved then try clearing the mail id in ur user profile.
Hope this helps. If you find an answer to the problem of the mail id getting cleared, then please let me know..
Regards,
Himanshu -
Problem sending mail from desktop
Hi
I am currently not able to send mail from my desktop. Works fine via web though. The message I get after a period of Mail trying to send message is the following
"The connection to the server 'smtp.mac.com' on port 25 timed out"
If I then run Connection Doctor, the further information I receive is
"Could not connect to this SMTP server. Check your network connection and and that you entered the correct information in the Account preferences".
Any help most welcome.
ThanksJ - Let me describe the issue I had before describing my work-around:
I started getting the message "Could not connect to this SMTP server" only after the upgrade from Tiger to Leopard, and then only when I was trying to send attachments larger than about 50KB. I'm in a rural area, and only have dial-up. I was able to send text messages, and could receive emails with text and attachments, regardless of size.
I believe that it is a Leopard issue in my case. Perhaps not in yours. Certainly you'll want to verify that something hasn't changed in your outgoing SMTP server settings....maybe contact your ISP to verify that they haven't made any changes.
However, if your problem does seem similar to mine, and if you're about to pull your hair out, like I was, you may wish to try what I've done to address this problem:
I have found two work-arounds...both are cumbersome, and I don't believe either is acceptable, but they do work for me. 1) Send mail from your ISP's webmail facility (or gmail, for example) or, 2) I have made a new partition on my disk on which I (re)installed Tiger. (I didn't have the "Could not connect..." issue with Tiger) I can drag attachments or other info into the Tiger partition from my Leopard disk, then restart in the Tiger disk. From Tiger, I can compose and send email from Tiger's Mail app. Good luck! Bill
(I have posted this in other replies also). -
Problem sending mail from iPhone
Hello
I have a problem sending mails from a Horde account in iPhone 5S. I guess the problem is about configuring the outgoing mail server, but I tried several things and nothing seams to work. The message I get is :
"Can't send mail. No password provided for account x
Please go to Mail account settings and enter a password"
Here goes the detailed configuration of the SMTP:
SMTP server: mail.account.pt
User name and Password: xxxxxx
SSL: OFF
Authentication: Password
Server port:587
What am I doing wrong?
Thank you for your help!
Best regards,
PedroAfter talking with my e-mail service provider I understood some more configurations, which might help you to help me:
SMTP Settings:
Authentication method: encrypted password
Connection Security: STARTTLS
How can I copy these settings into my iPhone 5S? In Authetication there's only the following options:
Password, MD5 challenge-response, HTTP MD5 Digest and NTLM...
Thank you!
Best regards,
Pedro Santos -
Error in sending mail from SAP to microsoft outlook
Hi all.
Greetings.
I have a requirement to send mail from SAP to Outlook.
SMTP is configured here....i have checked the steps.
I am using FM "SO_NEW_DOCUMENT_SEND_API1" to send the mail text.
when i check the SOST Tcode i got message "Wait for communications service".
after evry 10 minutes the sap connect all process runs..as it is configured in SCOT transaction, but even after 30 minutes the mail is not sent.
I don't know how should i check the error message?
tell me the checking stepls plz?...how should i step through in checking this?
what are the prerequsites for sending mails from SAP to Microsoft outlook?
regards
Prashant Tiwari
Edited by: prashant tiwari on Feb 6, 2009 10:26 AMHi prashant,
Pls refer to the link below:
Re: Inbound Email- SAP Connect
or
check your userid .
If not correct no mail will go from u r id.
Try it with another user id.
or try using the following function module
'SO_NEW_DOCUMENT_ATT_SEND_API1'
I Hope this helps you with the issue.
Thanks
Ravi Aswani -
Hi All,
Some Users on randomly basis are unable to send e-mails from 2003 exchange to 2007 Exchange users Internally.
They are sending mails from outlook and users from 2007 dont have any issues.
But sometime mails from 2003 to 2007 goes without any issue.
The NDR reported is as below.
From: System Administrator
Sent: 22 February 2014 15:59
To: XYZ
Subject: Undeliverable: Regarding Test Message
Your message did not reach some or all of the intended recipients.
Subject: Regarding Test Message
Sent: 22/02/2014 15:59
The following recipient(s) could not be reached:
XXX,XYZ on 22/02/2014 15:59
The message contains a content type that is not supported
<HubServer.Domain.UK #5.6.0 smtp;554 5.6.0 STOREDRV.Deliver.Exception:PropertyValidationException; Failed to process message due to a permanent exception>Hi,
According to the NDR, I found this point "The message contains a content type that is not supported".
Please verify whether the un-delivered messages contain some Sensitive
Information, signatures or attachments that cannot pass the Exchange 2007 Edge server. Please also check the content type of the un-delivered messages.
Found a useful KB for your reference:
Frequently asked questions about MIME and content conversion in Exchange 2000 Server and in Exchange Server 2003
http://support.microsoft.com/kb/836555/en-us
Hope it is helpful
Thanks
Mavis
Mavis Huang
TechNet Community Support -
Sending mail from using utl_smtp error......
Hi
When i try to send mail like as follows
DECLARE
v_connection UTL_SMTP.CONNECTION;
BEGIN
v_connection := UTL_SMTP.OPEN_CONNECTION('xxx.xxx.xxx.xxx',25);
UTL_SMTP.HELO(v_connection,'xxx.xxx.xxx.xxx');
UTL_SMTP.MAIL(v_connection,'[email protected]');
UTL_SMTP.RCPT(v_connection,'[email protected]');
UTL_SMTP.DATA(v_connection,'Sent From PL/SQL');
UTL_SMTP.QUIT(v_connection);
END;
I get the following error..
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 138
ORA-06512: at line 4
if i send mail from outlook it goes...the configuration is like this
in mail properties general tab
email address : [email protected]
and i have to tick mark the "include this account when receiving mail or synchro" option
in servers tab
POP3 : xxx.xxx.xxx.xxx
smtp : xxx.xxx.xxx.xxx
and i have to tick the "My server requires authentication" option
and have to give the setting for that also
ie. log on using account : [email protected]
password: xxxxxx
How to Correct it ?
Krisi am on the same platform and in same account..... and PL/SQL UTL_SMTP gets a connection plus SMTP error, while telnet cannot even get a connection. A very weird one. Not sure what the problem can be.
Worse case, forget telnet and do all your troubleshooting using UTL_SMTP.. with liberal usage of DBMS_OUTPUT. :-)
regd. the connection from my xp client it is
connecting to the telnet server on server, but when i
tri to connect to the ISP's smtp address it throws
the errorNot that strange. You're likely going through a proxy of sorts of to reach the ISP mail server. Besides, to send mail you should be able to use your company's SMTP server as it should route Internet e-mail out to the net automatically.
In fact, many SMTP servers will not allow you to relay via them. E.g. if you connect from domain 1 to SMTP server on domain 2, and you submit an e-mail to be delivered to domain 3, the domain 2 server will tell you to take a hike. It will only accept mail that is destined for its own domain or originating from its own domain.
Reason for this is spam. Open relays are one of the prime reasons for having billions of spam mails being transmitted.
The correct method will be for you on domain 1 to connect to domain 1's SMTP server and submit an e-mail to be delivered to domain 3. That will be accepted and delivered. Using domain 2 as an intermediate agent to act as a relay, is/should not be accepted by all SMTP servers. (your SMTP server should get blacklisted/blackholed if it has an open relay) -
Problem in sending mail from database with attachment
Hi All,
I amd using forms10g,oracle10g
I am facing a error while running a procedure to send mail from db
procedure is:
declare
ErrorMessage VARCHAR2(4000);
ErrorStatus NUMBER;
-- enable SQL*PLUS output;
--SET SERVEROUTPUT ON
-- redirect java output into SQL*PLUS buffer;
--exec dbms_java.set_output(5000);
BEGIN
ErrorStatus := SendMailJPkg.SendMail(
SMTPServerName => '192.168.4.2',
Sender => '[email protected]',
Recipient => '[email protected]',
CcRecipient => '',
BccRecipient => '',
Subject => 'hth106: Test JavaMail',
Body => 'This is the body: Hello, this is a test that spans 2 lines',
AuthReqdYNNum => 1,
UserID => 'jagan',
Password => 'songbirds',
ErrorMessage => ErrorMessage,
Attachments => SendMailJPkg.ATTACHMENTS_LIST('C:\oramail\MHTHSO_GEN45.html')
END;
while running this procedure i am receiving following error
"ORA-29532: Java call terminated by uncaught Java exception:
java.lang.IncompatibleClassChangeError"
but the same procedure sending mail from all other user in the same database
I am very myuch confused.i have given the all rights
below mentioned rights are given .it is working in all other user on the same db except this user "hth106". And all the othere things are compared between working user and this hth106 user every things are same.But i am receiving error when i sending mail with attachment if the mail is sending without attachement it is working fine
below rights are given to this user
1.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read');
2.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','write');
3.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','connect');
4.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','resolve');
5.exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','read');
exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','write');
6.call dbms_java.grant_permission('HTH106','java.net.SocketPermission','HTHDS01','resolve');
7.call dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read,write');
7.call dbms_java.grant_permission('HTH106', 'java.io.FilePermission','C:\oramail\*','read');
please advise me to proceed further
Thanks in advance
Thanks ,
AntonyWith respects to the following:
The bit you'll have most diffulty with is the attachment, because you can't be sure that
the directory path specified is one that the database can read from. You can probably
resolve this by using some java to move the file to a directory which utl_file can see.Another alternative is to specify a location on then database server where all file attachments MUST be copied to and the define and Oracle DIRECTORY (CREATE OR REPLACE DIRECTORY [dir_name] AS '/dir/name/on/files/system';) that references this location. When you attach a file to an email, then you only have to refer to the DIRECTORY for the file location.
Just my 2 cents on the topic. :-)
Craig... -
Sending mail from one Sap system to another
Hi all,
plz explain me how can i send mail from one SAP system to other SAP system.
Thanks in advance
VenkatHai Venkat
Go through the following Code
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
DATA L_NUM(3).
Creation of the document to be sent
File Name
DOC_CHNG-OBJ_NAME = 'SENDFILE'.
Mail Subject
DOC_CHNG-OBJ_DESCR = 'Delivered Mail'.
Mail Contents
OBJTXT = 'Object text'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creation of the entry for the compressed document
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.
Creation of the document attachment
LOOP AT ITAB_DATA.
CONCATENATE ITAB_DATA-PRODUCTOR
ITAB_DATA-VBELN
ITAB_DATA-POSNR
ITAB_DATA-MATNR INTO OBJBIN.
APPEND OBJBIN.
ENDLOOP.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'ORDERS'.
APPEND OBJHEAD.
Creation of the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'TXT'.
OBJPACK-OBJ_NAME = 'WEBSITE'.
OBJPACK-OBJ_DESCR = 'ORDERS.TXT'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
Completing the recipient list
target recipent
clear RECLIST.
RECLIST-RECEIVER = '[email protected]'.
RECLIST-EXPRESS = 'X'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
copy recipents
clear RECLIST.
RECLIST-RECEIVER = '[email protected]'.
RECLIST-EXPRESS = 'X'.
RECLIST-REC_TYPE = 'U'.
RECLIST-COPY = 'X'.
APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
Thanks & regards
Sreenivasulu P -
Garbage in mail body when sending mail from abap code
Hi abapers,
i am sending mail from my program and when the data reaches in mailbox it is as follows.
佐呓义⁇䅄䕔䌉乏啓䕍⁒低䌉乏啓䕍⁒䅎䕍䤉⁃䥔䭃⁔低म䍉吠䍉䕋⁔䕄䍓䤉⁃䥔䭃呅匠䅔啔॓
which is not proper.
I'm attaching the following part of code which i have used.Please let me know if i've made any mistake over here.
DOCDATA-OBJ_LANGU = SY-LANGU.
DOCDATA-OBJ_NAME = 'Mail_Excel_File'.
DOCDATA-OBJ_DESCR = 'Closed Customer Complaints'.
DOCDATA-SENSITIVTY = 'F'.
OBJTXT =
'Attached compensation request is pending for your approval as on '.
APPEND OBJTXT. CLEAR OBJTXT.
OBJTXT =
'today. Please find the attached Field Investigation Report.'.
APPEND OBJTXT. CLEAR OBJTXT.
OBJTXT =
'This is auto generated mail.Please do not reply to this mail.'.
APPEND OBJTXT. CLEAR 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-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
DESCRIBE TABLE I_CONTENTS_HEX LINES TAB_LINES.
* OBJPACK-DOC_SIZE = TAB_LINES * 255 + STRLEN( OBJTXT ).
OBJPACK-DOC_SIZE = TAB_LINES * 255 .
OBJPACK-TRANSF_BIN = 'X'.
* OBJPACK-TRANSF_BIN = SPACE.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'XLS'.
* DOCDATA-OBJ_NAME = 'Excel_File_Attachment1'.
* OBJPACK-OBJ_DESCR = FILE_NAME.
OBJPACK-OBJ_DESCR = P_FILE.
APPEND OBJPACK.
RECLIST-RECEIVER = RECIEVER.
RECLIST-REC_TYPE = 'U'.
RECLIST-EXPRESS = 'X'.
APPEND RECLIST.
* FM called for sending the mail to the intended recipients
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOCDATA
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = OBJPACK
CONTENTS_HEX = I_CONTENTS_HEX
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.
what will be the problem..
please help out.
Regards,
Navin
Edited by: navin.c on Jul 10, 2009 8:08 AMHi Krishna,
I have attachment properly coming the problem is body of mail its is coming in some unknown language
佐呓义⁇䅄䕔䌉乏啓䕍⁒低䌉乏啓䕍⁒䅎䕍䤉⁃䥔䭃⁔低म䍉吠䍉䕋⁔䕄䍓䤉⁃䥔䭃呅匠䅔啔॓剐䑏䌠䵏⁐低म剐䌠䵏⁐呓呁单䌉䵏⹐删充低म䅌呓䌠䅈䝎䑅䄠॔剐䑏䍕⁔䕄䅔䱉॓䡓䑁⁅䅎䕍匉䅈䕄䌠䑏ॅ䅂䕓丠䵁ॅ䅂䕓䌠䑏ॅ䅂䍔⁈啎䉍剅䴉乁䙕䝃䐠呁ॅ䅓偍䕌䄠䅖䱉䉁䱉呉ख़䉏䕓噒
what may be the problem?
I have used the same logic . im attaching my part of code for your reference .
DOCDATA-OBJ_LANGU = SY-LANGU.
DOCDATA-OBJ_NAME = 'Mail_Excel_File'.
DOCDATA-OBJ_DESCR = 'Closed Customer Complaints'. "nsc070709+
DOCDATA-SENSITIVTY = 'F'.
* Describe the body of the message
*********new additon of mail content
* CONCATENATE 'Dear' L_FIRSTNAME ','
* INTO OBJTXT SEPARATED BY SPACE.
* APPEND OBJTXT. CLEAR OBJTXT.
OBJTXT =
'Attached compensation request is pending for your approval as on '.
APPEND OBJTXT. CLEAR OBJTXT.
OBJTXT =
'today. Please find the attached Field Investigation Report.'.
APPEND OBJTXT. CLEAR OBJTXT.
OBJTXT =
'This is auto generated mail.Please do not reply to this mail.'.
APPEND OBJTXT. CLEAR OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOCDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
* OBJTXT = 'Attached is the FIR PENDING CASES'.
* APPEND OBJTXT.
* DESCRIBE TABLE OBJTXT LINES TAB_LINES.
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
DESCRIBE TABLE I_CONTENTS_HEX LINES TAB_LINES.
* OBJPACK-DOC_SIZE = TAB_LINES * 255 + STRLEN( OBJTXT ).
OBJPACK-DOC_SIZE = TAB_LINES * 255 .
OBJPACK-TRANSF_BIN = 'X'.
* OBJPACK-TRANSF_BIN = SPACE.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'XLS'.
* DOCDATA-OBJ_NAME = 'Excel_File_Attachment1'.
* OBJPACK-OBJ_DESCR = FILE_NAME.
OBJPACK-OBJ_DESCR = P_FILE.
APPEND OBJPACK.
RECLIST-RECEIVER = RECIEVER.
RECLIST-REC_TYPE = 'U'.
RECLIST-EXPRESS = 'X'.
APPEND RECLIST.
* FM called for sending the mail to the intended recipients
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOCDATA
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = OBJPACK
CONTENTS_HEX = I_CONTENTS_HEX
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.
Can anybody help me out on this issue.
Its somewhat on priority.
Edited by: navin.c on Jul 10, 2009 12:58 PM
Maybe you are looking for
-
Creating and Using View Objects on JDev 10g against SQL Server 2005
I'm currently working on this project on Jdeveloper against a SQL Server 2005 DB (I couldn't talk this people to migrate to Oracle... :-( ), and it's the first time I work with JDev against a database other than 10g. I had no problem making the conne
-
In a pages doc., I'd like to insert text to form a circle. Any ideas? thx.
-
Trim on a clob returns ORA-22926 if the clob is the result of getClobVal()
I tried to trim whitespace from a CLOB, and got an ORA-22926 exception, which is strange since I did not supply a trim length. I eventually noticed that it only occurs when the CLOB is the result of the getClobVal method. The following code triggers
-
Want to change the SQL Server Agent Job History Text Files Location
We have SQL Server 2014 installed on a couple servers, but they were not consistent on directory paths during the installs. I am trying to get the servers to all match. On one server, SQL Server the Agent Log and Job History files were being written
-
Profile for Nikon AFS 17-35 f/2.8?
Is there a profile available for Nikon AFS 17-35 f/2.8? I cannot find it.