How to trigger a mail .
Hi experts how i can trigger mail based submit button . Is there is any fm for genrating mail.
TRY:
SO_NEW_DOCUMENT_ATT_SEND_API1
SO_NEW_DOCUMENT_SEND_API1
Refer this thread:
https://forums.sdn.sap.com/click.jspa?searchID=12098842&messageID=3696623
Edited by: Aparna Shekhar on May 22, 2008 2:50 PM
Similar Messages
-
How to trigger a mail once BG job finished.
Hi,
Could anyone please let me know how to trigger a mail once Background job finished. I let you give one scenario where exactly I require this concept. Say, I execute t.code MB52 with particular variants in background to find stuck qty(s) of material(s) in given site(s).Now I want that system will trigger a mail to concern team once job finished.
Thanks,
AKYou can try using workflow transaction SBWP.
you need to create a distibution list in the above transaction and add the requested mail ids to it.
then when you create a jon using transaction SM37 you have the option SPOOL LIST RECIPIENT where you can add the created distibution list
so when ever the job has run sucessfully then a mail is sent to all the mail id's in the list.
hope this helps.
cheers
sundeep -
How to trigger a mail through ALERT CONFIGURATION??
Hi Folks,
I want to know how to trigger a mail through Alert Configuration?
I've read Help.SAP.com, but i am not clear where exactly the sender Email address to be given for sending a mail??
Pls reply..
Thanks in advance..
cheers
ram.Hi,
You need to maintain the email address in SU01 for the particular user Id. Also you need to configure transaction SCOT for this.
Regards,
Jai Shankar -
How to trigger a mail when a job gets cancelled
Hi experts,
I have a requirement to trigger a mail to the user when a job fails or gets cancelled.I need to add this part in the program for which the job is running.
Kindly help,any sample code will be very helpful.
thanks in advance,
regards,
Ashwincheck this thread out. Hope this might help you
how can i insure that job finished and good and send mail to the user ?
Regards,
Santosh -
How to trigger the mail sent notification back to the sender
Hi Gurus,
At present in our system we are sending the PO through email to the vendor using std output type NEU. This is being done using the FM CONVERT_OTF_AND_MAIL, this functionality workes fine.
along with this mail the sender or the PO owner will get a mail to his outlook or any internet email address saying 'Your message was successfully relayed ' and that will be sent by the mail id Postmaster_at the rate of_ mail.relay-company.com.
Our requirement is to send the above success mail to the PO owner SAP inbox and not to the internet address.
basically we are not able to track how this success mail is geting triggered and also how or where the email address Postmaster-_at the rate of_mail.relay-company.com.is maintained.
can any one help in this,
Thanks in advance for your inputs.
Venkatesh.Hi,
canany one give me some inputs on this.
venkatesh. -
How to trigger a mail from XI if the order is their in SAP
Hi
Sending EDIFACT file (order Info) to SAP ( IDOC).
Suppose If we are sending any previous order Info to SAP.Then we need to send mail to the client saying that order is their along with details of order ....etc.
or else if it is new order we are sending then it must be stored( normal procedure....O).
Pls advise me....
Thanks
MMVHi,
Try to use Look up concept.
Look up into SAP tables for Orders and check if an order is already there.
Design a BPM that sends mail if order is alreday there.
Thanks
--Pradeep
Reward points if helpful. -
When idoc failes for inbound sales orders then how to trigger a mail notifi
Hi All,
When idoc failes for inbound sales orders in SAP then i would like to send an email notificaiton to particular user id. Could you please let me know the settings for this requirement.
Thanks in advance..Closing thread as there are no replies
-
Hi! All
How to Trigger a Mail to a Vendor when the Stock level reached the Minimum Stock Level.
I have assigned the mail Id for a particular vendor in Vendor master. and assigned the Stock level in Material Master. what are the details need to be done to trigger a mail.
Thanks and Regards,
KvWhat the Vendor will do when the Stock level reached the Minimum Stock Level..?
You need to go for MRP, So that system will generate the Purchase Requistion Automatically when Stock level reaches the Minimum Stock Level..
and you can Convert the Purchase Requistion into Purchase Order ..and procure Material from that Vendor.. -
HOW TO TRIGGER A E-MAIL ALERT IN ICWEB
Hi,
I have different scenarios for different e-mail alert messages. Can anybody tell me how to trigger different alerts for different scenarios and where?
Thanks,
Shrik.Please,
Close one of the thread with the same question.
Regards.
Manuel -
BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
Hi All.
I have this request.
BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
We have jobs scheduled on BODS running smoothly and absolutely fine.
But to check, i am logging into the admin console and check for the jobs status.
I would like to have an email to be received from BODS after each job is finished.
It could succuessful. Or it could fail.
Whatsoever, i wish to receive an email alert as soon as a job is finished.
Can anyone advise me as to whether this could be made possible.
And if yes, how this could be done.
Thanks for your help in advance.
In BOE CMC / for webi / schedule / we find an option to send email for a job success or a job failure.
Is there any option similar to that in BODS ?
Also would like to know :
how to use the smtp_to or mail_to functions ?
how to set up the smtp server for this ?
thanks
REgards
indu
Edited by: Indumathy Narayanan on May 31, 2011 3:47 PMHi.
Since am new to this BODS. I need some help.
I already have many jobs which are running absolutely fine.
And when a job runs, and finishes, am able to see the trace saying
e.g. :
Job_abc is completed successfully.
We got the smtp service activated for our test server.
and we hae a group email id.
I have put the details of the smtp server / ip address / and said apply restarted.
The i created a simple test script as below :
print (' Before email ' );
smtp_to('abc@company_name.com', 'Job ' || job_name() ||' on ' || host_name() || ' has FAILED',
' the job has failed', 0, 0);
print('After Email ');
It does send a email to as per smtp_to whatever email is specified.
But how to differentiate between a job success
And a job which has failed.
I wish to have a mail which says on the subject :
'Job ' || job_name() ||' on ' || host_name() || ' has completed successfully'
==> IF it is a success
OR
'Job ' || job_name() ||' on ' || host_name() || ' has failed'
==> if it has failed
How to make the system identify, whether
to send a success message or a error message whatever
Could anyone advise.
thanks
indu -
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 '|'. -
Trigger a Mail when no file is placed
Hi Everyone,
How can we trigger a mail when no source file is placed for the file adapter to pick in a given time?
Regards,
RaghuHi
I m not sure wheter this will work or efficient.
Cant you use operating system command option ?
Like,,,, checking whether the particular file exists, if not create a blank file or new file with a different predefined content using Operating System Command option (using scripts or soemthing). and creating a separate file-mail scenario for this new file -
Hi All:
I am very new to use this type of issue in my application i have requirement like this there is a column in the report where if it cross the limit a mail trigger must send to the concerened person saying limit exceed
how to do this i a very new to use this issue in sending a automatic mail plesae help me how to send a mail
thanks
sudhirI have created your access-list rule without effect ... I try to answer to your questions (sorry, I an a novice in cisco management)
1) How and where is the acl applied ?
I don't know !!! In fact, I think that I don't really know what the acl is !!! Is it the same think that the security policy ?
2) Will you need DNS ?
Yes. But DNS isn't a problem because I have created rule to check dns in my LAN and the DNS requests are OK (for example with a nslookup on my server)
3) Check the hit count
What is the hit count ?
Sorry for my gaps !!!
Thanks for your help -
How to send e-mail notification automatically when a record is inserted?
Dear All,
Could anyone kindly tell me how to send e-mail notification automatically when a record is inserted through a form in Oracle Portal Release 2?
Regards,
Ridwan.Hi,
If you are writing a form on a table then you can call the mail API from a database trigger on the table. If it is a form on a procedure, you can make the email call from the procedure. To know more about sending mails from plsql go to
http://www.quest-pipelines.com/newsletter-v2/smtp.htm
Thanks,
Sharmila -
How to trigger a process task on IT Resource process form
Hi,
I want to know how to trigger a process task on IT resource process form using OIM API.For Example:- If a task ilike an e-mail is to be sent on the departure date of a user.So,how can it be done using API?
Thanks.This would typically be done through a scheduled task. Write your code to query for the departure date. If someone meets your criteria for an action to occur, you can either use the addProcessTaskInstance which has an adapter attached to it to send the email, or in your code, send the email.
The details that need to be considered though is where the departure date is stored. Is it on a process form, or is it on the user's OIM profile. Do you want to disable the user or revoke the object instance at this departure date? You could use the notification tab of these existing tasks if so.
-Kevin
Maybe you are looking for
-
Background job- getting printed automatically
In my BDC Program i have submitted Session for Background Processing using Submit RSBDCSUB.......... my code is also given below..The problem is after the user executes the program, background job is automatically going to his Local printer and gett
-
Error while granting Java permission to Oracle user (schema)
Hi, I am trying to grant java permission as sys to an Oracle schema 'RCA' as follows but am getting the error ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException: policy table update java.io.FilePermission, <<ALL F
-
10.3.9 will not start
I have 2 hard drives, and each one has 10.3.9. I have been using the larger drive to start up and store the bulk of my files for about a year (the System on the smaller drive is what I am running from right now). Today when I tuned it on, it got stuc
-
Blue screen - X300 + Port Replicator
Hello, I have a Lenovo X300 and a Lenovo Enhanced Port Replicator (K33415) that is giving me a headache. The port replicator works just fine until I either change the display options (mirror, extend, or off), unplug the port replicator, restart or s
-
Hi all, I have the following problem. When I try to execute a jsp, the server responds: Error: 404 SC_NOT_FOUND Extension of file not found, while displaying static content This problem doesn't ocurred with all jsp's, it seems that only ocurrs with t