How to configure alert to send a mail
Hi,
I want to trigger an email when ever a particulare alert rule is ok. I have to send the internet mail. Can anybody help me in this regard. Thanks in advance.
Thanks,
Mallikarjun.M
Hi,
If you have already configured the alert rules then you
just need to configure SAP connect and maintain the e-mail address for all the users attached to your alert category. You can go to transaction SU01 and maintain e-mail address for the each user attached to the alert category and the e-mails will automatically be sent if SAP connect is configured.
Refere the link below for SAP connect configuration..
http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
Regards
Anand
Similar Messages
-
How to configure alerts for sender AS2 reports channel?
Hi,
We have configured sender AS2 reports channel to receive MDN back from our partner. Scenario is working fine and we are receiving MDN. How does "Enable alerts" option under Alerts Settings in Sender AS2 Reports channel work?
I see following options, but dont know how to trigger an alert when we dont receive successful MDN back:
Negative transmissionreport alert
Negative delivery report alert
Negative receipt report alert
Has anyone trigger any kind of alrert and route them to an email for negative mdn?
Regards,
Riya PatilHi Riya,
I tried to use 'Enable alerts' option,but it didn't work.
Please let me know if you get a success in this.
Thanks.
Regards,
Shweta -
How to configure alert when sender CChannel failes
Hi PI Gurus,
Is there is any way to get an alert when a sender channel fails (reason connection time out etc.).
We have configured alerts for other scenarios when mapping is failing. How to handle the other situation.
Regards,
Krishna ChauhanHi,
Please check below urls.
http://wiki.sdn.sap.com/wiki/display/XI/Alert%2bConfiguration%2bin%2bXI?bc=true
ALRTCATDEF table SALRTCATUS
http://help.sap.com/saphelp_nw04/Helpdata/EN/8a/3e2d4105f8d92be10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/96/f1033c128f4a7de10000000a114084/frameset.htm
Thanks
Ravi -
How to Configure alert for process failures
Hi Friends.
How to Configure alert for process failures due to any reasons like mapping, runtime exceptions .
I am devloping one scenario which is file to flatfile. In this scenario I am also using mail adapter for sending mail daily to admin that tells about record size and no of records parallely. I am not using BPM in this scenario.
I am having very little experience in XI.
Please answer this with clear steps so that I can do it.hi,
check the links below for all the details and help on configuring alerts
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9418d690-0201-0010-85bb-e9b2c1af895b - How to setup alerts for monitoring in XI 3.0
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/003de490-0201-0010-68a4-bf7a1e1fd3a5 - Monitoring in XI 3.0
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step - XI: Alerts configuration - Step by step
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide - XI: Alerts - Troubleshooting guide
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
/people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi -
How to configure N9 for push e-mail?
Does anybody know how to configure N9 for push e-mail? It should be possible because push email is part of Nokia's N9 official specs but I'm unable to find any reference in the manual or online.
I know that I am late to the party but just got my N9. The push email works fine for my Exchange & my Gmail but for my mail.com account (which I believe is really AOL) it only syncs when I manually tell it to. I have it set to "always up to date" ... does anyone have any ideas?
Thanks!
Update: just fixed it myself but in case it helps anyone I turned on the Push Notifications & that did the trick. Which is kind of odd bc I notifications from my Gmail & MS Exchange automatically did it but I guess that feature has to be turned on for this email.
Wish all the features on the N9 had the "I" icon which you could press for more info as I thought that option would just let you know when your email was syncing (like the little arrow on the top right). Oh well - now if I can just get my contacts/calendar off of my PC's OutLook & onto my N9 ...................
Cheers! -
How to configure JDBC Adapter(Sender & Receiver)
How to configure JDBC Adapter(Sender & Receiver)
Rgds
RuchithaHi ruchitha thakur ,
These r the following web-sites which give u detailed information about configuring of JDBC Adapter(Sender & Receiver)
JDBC is a technical Adapter provided by SAP.
Configuring the Sender JDBC Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
Configuring the Receiver JDBC Adapter
http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d36d51d-0b01-0010-b3aa-9cb313b63cf4
SAP XI Utilize SAP Adapters to connect to heterogenous systems
https://wwwn.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3fc4bd90-0201-0010-68bd-ab931b06f9c2
cheers!
gyanaraj
***Pls reward points if u find this useful -
How to configure alerts in SAP R/3 System.
Hi,
We have R/3 system installed in our system.Now i want configure alerts to display for users.How can i configure alerts in that R/3 System.Send me the realted information and links.
Regards,
Kiran.Hi Bhogi,
The Alerts in SAP XI can be raised for error happening in:
1. Adapter Engine
2. Integration Engine.
1. These Alerts are system generated in case anything happens in either of the component.
For this you need to:
1. Create ALert Category in the Trnasaction ALRTCATDEF
2. Create Alert rules in Runtime Workbench--> ALert Configuration and associating these rules to Alert category.
If you want you can do it without a BPM
and throw an exception in case any of the values is missing:
have a look at this weblog on how to throw exceptions
in a nice way:
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
Also just go through Raising Exceptions in SAP XI Mapping and see if it helps you solve the problem.
Also go through these links:
Forwarding Alerts to Alert Management (ALM)
Alert Management
XI: Alerts - Step by step
XI: Alerts - Troubleshooting guide
http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f2243d711d1893e0000e8323c4f/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/68/253239bd1fa74ee10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/f2bbc8142c11d3b93a0000e8353423/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/5d/2166e6a91d11d188de0000e8216438/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/05/bb223905b61b0ae10000000a11402f/content.htm
For a Simple case with BPM refer:
http://help.sap.com/saphelp_nw2004s/helpdata/en/33/4a773f12f14a18e10000000a114084/frameset.htm
To send an EMAIL, assign an EMAIL ID to the corresponding user in the transaction SU01 and then set up SCOT and you can send emails when the ALERT is triggered..
Once you have configure Alerts, you will get the Alerts into ALERT INBOX in RWB of the user. To also get the email, the following needs to be done,
1. In SU01 -- Assign the Email ID for the Recipient of the ALERT.
2. In , RWB>ALERT INBOX> PERSONALIZATION--> Time Independent Delivery and Email are selected.
3. Finally, SCOT needs to be set up to send Emails. Check this for the same. You can ask your BASIS team to do this step.
http://help.sap.com/saphelp_nw04/helpdata/en/23/1edf098ea211d2b47300609419ed29/frameset.htm
Also, In ALRTCATDEF, go to SETTINGS--> CONFIGURATION. By default, the option selected is INTERNAL PROCESSING. Select the option SMTP FORWARDING AS XML and give the email id. This will enable you to send an email alert whenever an error occurs in XI.
I hope it helps.....
Reward points if this helps
Regards
Vani. -
Hi,
All
we are doing IDOC To JDBC Scenario in our scenarion there is no NULL Check, using Value mapping we validating the data. here no concept of BPM. if any Error
occured in Value mapping we have to raise an elert to SAP system.if any system Error in we have to raise an alert to XI admin as well as SAP system.
how can we is there any documents
thnx in advance
regards
m.kumarHi,
The Alerts in SAP XI can be raised for error happening in:
1. Adapter Engine
2. Integration Engine.
1. These Alerts are system generated in case anything happens in either of the component.
For this you need to:
1. Create ALert Category in the Trnasaction ALRTCATDEF
2. Create Alert rules in Runtime Workbench--> ALert Configuration and associating these rules to Alert category.
If you want you can do it without a BPM
and throw an exception in case any of the values is missing:
have a look at this weblog on how to throw exceptions
in a nice way:
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
Also just go through <a href="/people/sap.user72/blog/2005/02/23/raising-exceptions-in-sap-xi-mapping Exceptions in SAP XI Mapping</a> and see if it helps you solve the problem.
Also go through these links:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/3f/567ddea69d3d4c93a6aedabd08899e/frameset.htm">Forwarding Alerts to Alert Management (ALM)</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/3f/81023cfa699508e10000000a11402f/frameset.htm">Alert Management</a>
<a href="/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step: Alerts - Step by step</a>
<a href="/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide: Alerts - Troubleshooting guide</a>
http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f2243d711d1893e0000e8323c4f/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/68/253239bd1fa74ee10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/f2bbc8142c11d3b93a0000e8353423/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/5d/2166e6a91d11d188de0000e8216438/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/05/bb223905b61b0ae10000000a11402f/content.htm
For a Simple case with BPM refer:
http://help.sap.com/saphelp_nw2004s/helpdata/en/33/4a773f12f14a18e10000000a114084/frameset.htm
To send an EMAIL, assign an EMAIL ID to the corresponding user in the transaction SU01 and then set up SCOT and you can send emails when the ALERT is triggered..
Once you have configure Alerts, you will get the Alerts into ALERT INBOX in RWB of the user. To also get the email, the following needs to be done,
1. In SU01 -- Assign the Email ID for the Recipient of the ALERT.
2. In , RWB>ALERT INBOX> PERSONALIZATION--> Time Independent Delivery and Email are selected.
3. Finally, SCOT needs to be set up to send Emails. Check this for the same. You can ask your BASIS team to do this step.
http://help.sap.com/saphelp_nw04/helpdata/en/23/1edf098ea211d2b47300609419ed29/frameset.htm
Also, In ALRTCATDEF, go to SETTINGS--> CONFIGURATION. By default, the option selected is INTERNAL PROCESSING. Select the option SMTP FORWARDING AS XML and give the email id. This will enable you to send an email alert whenever an error occurs in XI.
I hope it helps.....
Regards,
Abhy
Message was edited by: Abhy Thomas -
How to configure alerts for error in Subscriber in transactional replication in SQL server
Hi All,
I am getting the below error in the subscriber which i know how to resolve but i want an alert to be raised whenever there is an error in the Subscriber.I tried using the configure alerts in the warning tab in the Sqlmonitor.exe but it didn't worked.Can
anybody help me out please.
Command attempted:
if @@trancount > 0 rollback tran
(Transaction sequence number: 0x00000000000000000A9200000000, Command ID: 1)
Error messages:
Invalid date format (Source: MSSQLServer, Error number: 20025)
Get help: http://help/20025
Invalid date format (Source: MSSQLServer, Error number: 22007)
Get help: http://help/22007
Thanks,Can add with operator in sql server agent
SSMS -> Connect to the subscriber -> SQL Server Agent -> Alerts -> Double Click "Replication: agent failure" -> Response -> Add your operator with the alert type(s) you wish. (I recommend security groups instead of individuals).
Refer below thread
http://dba.stackexchange.com/questions/11971/how-do-i-set-up-an-alert-that-tells-me-when-a-replication-of-data-failed
Please click the Mark as answer button and vote as helpful if this reply solves your problem -
How to configure Alerts with out CCMS
Hi All,
Is there any chance to configure Alert management
or just alert if u get any error in adapter Monitor or message moni. please advice me. i want to get alert mail when there is an error in adapter moni or message moni.
Thanks in Advance.
SriramHi,
Yes u can raise an alert:
For raising an alert you need to first configure the alert please follow the below weblog written by Michal Krawczyk
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
Configuration steps are: go to transaction ALRTCATDEF
1) Define Alert Category
2) Create container elements which are used for holding an error messages.
3) Recipient Determination.
Alert can be triggered in different ways.
1) Triggering by Calling a Function Module Directly.
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
2) Triggering by Calling a Function Module in the Workplace Plug-In.
3) Triggering with an Event Linkage.
4) Triggering with the Post Processing Framework (PPF) or Message Control (MC)
5) Triggering from a Workflow.
6) Triggering from CCMS with autoreaction.
7) Triggering from BPM.
/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
/people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi
8) Triggering alert by configuring a rule from RWB.
http://help.sap.com/saphelp_nw2004s/helpdata/en/56/d5b54020c6792ae10000000a155106/content.htm
THis will raise adapter and integration engine related errors.
Hope this will help you.
Thnx
Chirag -
How to raise Alerts for Sender File Channel
Hi All,
For Sender File Channels , we can find out the status of the adapter through RWB as to whether it is Content Conversion related exception or Folder path not found exception & etc .
I wanted to know as to whether there is any way where can rasie alerts for Sender File Channels (similar to what we do for Reciever File Channels) as well.
Regards
Vinay P.I found it myself .
In Alert Configuration while we are adding alerts for a particular aler category , the following parameters needs to be checked .
Connected to Message : Not Relevant
Sender Service/Party/Interface/Namespace needs to be mentioned.
Adapter Type should be selected as File -
Configure system to send e-mail
Hello,
I am trying to send an email of purchase order message and ME142 error occurs. Someone knows what steps ( transacions ) have I to configure to send e-mails? I know SCOT transaction, but is there another transaction in where I have to do something?
Thank you.I can´t see any error in SCOT because when I try to send and e-mail (for example with a message in ME9F transaction) ME142 "Error in OPEN_FORM .. " error occurs, or error V1104 "Output could not be issued" in VA02 transaction.
Can you help me? -
How Sapscript form can be send by mail
Hello all,
I want to send a Sapscript form by mail.
I think it should first be converted to PDF form and than need to be send by mail.
I have created a z form which is a copy of standard for medruck and also have changed the standard program SAPFM06P. So I need to add functionality in z program so that i can send the sapscript form by mail.
Can any body let me know the complete process how can i do it?
ThanksHi,
Just follow the below code . I am giving the code which starts from OPEN_FORM. After that one submit program is there u can see the code.
*& Form display_layout
text
--> p1 text
<-- p2 text
FORM display_layout.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
device = 'PRINTER'
DIALOG = 'X'
form = 'YFIL_DUNN_01'
LANGUAGE = SY-LANGU
options = itcpo
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
spool_error = 10
OTHERS = 11
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT i_tab INTO wa_tab.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = '531'
FUNCTION = 'SET'
TYPE = 'BODY'
window = 'MAIN'
IMPORTING
pending_lines = wa_tab.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
result = itcpp
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
OTHERS = 5.
IF sy-subrc = 0.
IF ( itcpp-userexit IS INITIAL AND
NOT itcpp-tdspoolid IS INITIAL ).
p_spool = itcpp-tdspoolid.
SUBMIT yfir_mailsend_pdf_attachment WITH p_spool = p_spool
WITH p_kunnr = p_kunnr.
ENDIF.
ENDIF.
ENDFORM. " display_layout
*& Form modify_duedate
text
--> p1 text
<-- p2 text
FORM modify_duedate.
SELECT SINGLE mat_rec_no
mat_rec_date FROM yfi_matno
INTO (v_mat_rec_no, v_mat_rec_date)
WHERE vbeln = wa_tab-vbeln.
CHECK sy-subrc EQ 0.
SELECT SINGLE zterm
FROM vbrk INTO v_zterm
WHERE vbeln EQ wa_tab-vbeln.
CHECK sy-subrc EQ 0.
SELECT SINGLE zdays
FROM yfi_payment INTO v_zdays
WHERE zterm EQ v_zterm.
IF sy-subrc EQ 0.
wa_tab-zfbdt_due = ( v_mat_rec_date + v_zdays ).
wa_tab-due_days = ( sy-datum - wa_tab-zfbdt_due ).
IF wa_tab-due_days LE 0.
wa_tab-due_days = 'N/A'.
ENDIF.
IF ( wa_tab-umskz = 'A' AND wa_tab-shkzg = 'H' ).
wa_tab-zfbdt = ' '.
wa_tab-zfbdt_due = ''.
wa_tab-due_days = ''.
ENDIF.
MODIFY i_tab FROM wa_tab INDEX sy-tabix.
CLEAR: v_mat_rec_no, v_mat_rec_date, v_zterm, v_zdays.
ENDIF.
ENDFORM. " modify_duedate
SUBMIT PROGRAM :
REPORT yfir_mailsend_pdf_attachment MESSAGE-ID yf.
*& Program Name : *
& Author :
*& Creation Date : *
*& Program Type : *
*& SAP Release : *
*& Description : *
*& Transport No : *
*& Transaction : *
*& Send document with OTF/ALI attachment from spool to externalreci-
*& pient. OTF/ALI document is converted to PDF/HTML format duringthe
*& SAPconnect send process.
*& This report serves as example documentation for the function
*& modules SO_NEW_DOCUMENT_ATT_SEND_API1 and SO_DOCUMENT_SEND_API1.
*& Following this example you should be able to develop your own
*& report to send documents with all kinds of attachments.
Creation of the entry for the compressed document
*& TABLES:
TABLES : kna1,
adr6.
*& INTERNAL TABLES:
***********PDF Declaration*******
DATA: BEGIN OF i_spool OCCURS 0,
rqident LIKE tsp01-rqident,
rqo1name LIKE tsp01-rqo1name,
rqclient LIKE tsp01-rqclient,
END OF i_spool.
*& VARIABLES :
DATA: client LIKE tst01-dclient,
name LIKE tst01-dname,
objtype LIKE rststype-type,
type LIKE rststype-type.
DATA: spoolno LIKE tsp01-rqident,
download TYPE c VALUE 'X', "AS CHECKBOX DEFAULT 'X',
p_file LIKE rlgrap-filename
VALUE 'C:\Invoice.pdf', "#EC NOTEXT
otf LIKE itcoo OCCURS 100 WITH HEADER LINE,
cancel,
pdf LIKE tline OCCURS 100 WITH HEADER LINE,
doctab LIKE docs OCCURS 1 WITH HEADER LINE,
numbytes TYPE i,
arc_idx LIKE toa_dara,
pdfspoolid LIKE tsp01-rqident,
jobname LIKE tbtcjob-jobname,
jobcount LIKE tbtcjob-jobcount,
is_otf.
Data Declaration
DATA: docdata LIKE sodocchgi1,
objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objhex LIKE solix OCCURS 10 WITH HEADER LINE,
reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
*objpack-head_start = 1.
*objbin = ' | '. APPEND objbin.
*DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
DATA: tab_lines TYPE i,
doc_size TYPE i,
att_type LIKE soodk-objtp.
objpack-head_start = 1.
*& PARAMETERS:
PARAMETERS : p_spool LIKE tsp01-rqident NO-DISPLAY,
p_kunnr LIKE kna1-kunnr NO-DISPLAY.
*& M A I N P R O C E S S
*& START OF SELECTION.
START-OF-SELECTION.
SELECT SINGLE
adr6~addrnumber
adr6~smtp_addr
FROM adr6
INNER JOIN kna1
ON kna1~adrnr = adr6~addrnumber
INTO CORRESPONDING FIELDS OF adr6
WHERE kna1~kunnr = p_kunnr.
IF sy-subrc = 0.
Create receiver list
reclist-receiver = adr6-smtp_addr. "<-- customer address
reclist-rec_type = 'U'.
APPEND reclist.
ENDIF.
***Convert Spool request to PDF
PERFORM pdf_convert.
docdata-obj_name = 'MAIL_AEIW'.
docdata-obj_descr = 'Dunning'.
Main Text
objtxt = 'Hi,'.
APPEND objtxt.
objtxt = 'Dunning'.
APPEND objtxt.
objtxt = 'Regards'.
APPEND objtxt.
Write Packing List (Main)
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
Create Message Attachment
Write Packing List (Attachment)
att_type = 'PDF'.
DESCRIBE TABLE objbin LINES tab_lines.
READ TABLE objbin INDEX tab_lines.
*objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
objpack-doc_size = tab_lines * 255.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = att_type.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = 'Attached Document'.
APPEND objpack.
*check for not maintaining customer address
IF reclist IS INITIAL.
MESSAGE e000 WITH 'Please Maintain Customer e-Mail ID'.
LEAVE LIST-PROCESSING.
ELSE.
Send Message
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X' "used from rel.6.10
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
CONTENTS_HEX = objhex
OBJECT_PARA =
OBJECT_PARB =
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
IF sy-subrc <> 0.
MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
WITH docdata-obj_name.
ELSE.
WRITE 'Mail sent successfully'.
ENDIF.
ENDIF.
WRITE: / 'End of Program'.
*& Form pdf_convert
text
--> p1 text
<-- p2 text
FORM pdf_convert.
DATA: date1 LIKE sy-datum,
time1 LIKE sy-uzeit,
period1 LIKE tsp01-rqcretime.
date1 = sy-datum.
time1 = sy-uzeit.
date1 = date1 - 1.
CONCATENATE date1 time1 INTO period1.
SELECT rqident
rqo1name
rqclient FROM tsp01 INTO TABLE i_spool
WHERE rqowner = sy-uname AND
rqclient = sy-mandt AND
rqident = p_spool.
IF sy-subrc <> 0.
WRITE: / 'No Spool Request created today'(003)
COLOR COL_NEGATIVE.
EXIT.
ENDIF.
SORT i_spool DESCENDING BY rqident.
READ TABLE i_spool INDEX 1.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = i_spool-rqclient
name = i_spool-rqo1name
part = 1
IMPORTING
CHARCO =
CREATER =
CREDATE =
DELDATE =
MAX_CREDATE =
MAX_DELDATE =
NON_UNIQ =
NOOF_PARTS =
RECTYP =
SIZE =
STOTYP =
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = i_spool-rqident
no_dialog = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
pdf_bytecount = numbytes
pdf_spoolid = pdfspoolid
OTF_PAGECOUNT =
btc_jobname = jobname
btc_jobcount = jobcount
TABLES
pdf = pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11.
CASE sy-subrc.
WHEN 0.
WHEN 1.
WRITE: / 'Error On Spool Job'(002)
COLOR COL_NEGATIVE.
EXIT.
WHEN 2.
WRITE: / 'No Permission'(003)
COLOR COL_NEGATIVE.
EXIT.
WHEN 3.
WRITE: / 'Conversion Not Possible'(004)
COLOR COL_NEGATIVE.
EXIT.
WHEN OTHERS.
WRITE: / 'Incorrect Destination Device'(005)
COLOR COL_NEGATIVE.
EXIT.
ENDCASE.
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
line_width_src = 134
line_width_dst = 255
TABLES
content_in = pdf
content_out = objbin
EXCEPTIONS
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
OTHERS = 4.
ENDFORM. " pdf_convert -
How to set up delayed sending with Mail ?
Since I am not allways internet connected, I would like in Mail to send my mail only when I am connected, or to decide by myself when to send mails.
How to set up this fonction ?
Or how to do with Mail when I am not permanently conncetd to internet ?
Than YouIf you are not connected to the internet when selecting Send for a message, you will receive the following error message.
Error
This message could not be delivered and will remain in your Outbox until it can be delivered.
The server "the account's SMTP server here" cannot be contacted on port 25 (or whatever Server Port is used by the account's SMTP server).
When connected to the internet and launching Mail, all messages that remain in the Outbox mailbox will be sent automatically.
No other setting is required but if you select Send for a message when not connected to the internet, you cannot prevent any messages from being sent that remain in the Outbox when connected to the internet and launching Mail.
If you want to decide when to send messages that were composed when not connected to the internet, save the messages as a Draft. Open the saved Draft message and select Send. -
How to stop letting people send me mails?
Hello,
I'm receiving a lot of mails from diffferent companies for sales.... How is it possible to stop receiving mails from them?Your email provider usually has some sort of spam filter. Make sure you are using it correctly to avoid getting promotion emails.
Maybe you are looking for
-
TS3581 how to connect iPhone 5 to bmw
I hawe bmw x5 and with nev iphone 5 I cant conect to stereo system.
-
Exporting to quicktime & error
2 questions: I have a 95-minute FCP project, which I broke into two parts, and the first 50-min part still tops out at over 11 GB when I export Quicktime movie. I do want the best possible resolution for my purposes. Do I need to break it down to 20-
-
If a purchase requisition already exists for an item then system should give warning message
Hi Experts, Is there any standard configuration for showing the user a warning message if while creating a purchase requisition for an item for which one purchase requisition already exits ?? kindly help, Regards, Vishal
-
JMS to IDOC scenario...
Hi, I am doing an JMS to IDOC scenario... where will i mention saying there is a logical system in R3(Partner profile).The IDoc should reach that Logical system only.I have a doubt on this....Because we are disabling the IDOC EDIDC segemnt in Recever
-
How to modifie multiple covers artworks?
Hi, I would like to ask is there a way to modifie all the songs's cover artwork at the same time. Because as we know, we can only modifie ONE artwork per single song in an album each time even all the songs are in the same album, every songs is "wear