Trigger WF for a Mail
Helo Everybody,
Can someone tell me how to trigger WF when a mail is recieved in the inbox(SBWP).
Can you tell me the tables where the messages are saved
Thanks,
Sneha Singh.
Thank you for the help.
Similar Messages
-
Any STD PGM To Trigger SapScript to E-Mail
Hi All, Is There Any STD Pgm is There to Trigger Sapscript to E-Mail,
Letme Know .
Thanks in Advance.Hi,
Have a look at this SAP has provided a great way to send your PDFs to Email.
http://help.sap.com/saphelp_nw04s/helpdata/en/ae/16193ce8fac413e10000000a114084/content.htm
<b>or</b>
No standard programs but you can use the function modules available and trigger them.
<b>SO_NEW_DOCUMENT_ATT_SEND_API1</b>
Also try this code... The code is quite big.
1. Include with the name : ZAMI_INCLFOR_MAIL
2. Report with the name : ZAM_TEMP147 (any name will do)
3. Activate both and execute (2)
4. After providing filename, email adress
5. Code for Include :
Data
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.
DATA: tab_lines TYPE i,
doc_size TYPE i,
att_type LIKE soodk-objtp.
DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
FORM
FORM ml_customize USING objname objdesc.
Clear Variables
CLEAR docdata.
REFRESH objpack.
CLEAR objpack.
REFRESH objhead.
REFRESH objtxt.
CLEAR objtxt.
REFRESH objbin.
CLEAR objbin.
REFRESH objhex.
CLEAR objhex.
REFRESH reclist.
CLEAR reclist.
REFRESH listobject.
CLEAR listobject.
CLEAR tab_lines.
CLEAR doc_size.
CLEAR att_type.
Set Variables
docdata-obj_name = objname.
docdata-obj_descr = objdesc.
ENDFORM. "ml_customize
FORM
FORM ml_addrecp USING preceiver prec_type.
CLEAR reclist.
reclist-receiver = preceiver.
reclist-rec_type = prec_type.
APPEND reclist.
ENDFORM. "ml_customize
FORM
FORM ml_addtxt USING ptxt.
CLEAR objtxt.
objtxt = ptxt.
APPEND objtxt.
ENDFORM. "ml_customize
FORM
FORM ml_prepare USING bypassmemory whatatt_type whatname.
IF bypassmemory = ''.
Fetch List From Memory
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'LIST_FROM_MEMORY'.
ENDIF.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
COMPRESSED_SIZE =
TABLES
in = listobject
out = objbin
EXCEPTIONS
OTHERS = 1
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'TABLE_COMPRESS'.
ENDIF.
ENDIF.
Header Data
Already Done Thru FM
Main Text
Already Done Thru FM
Packing Info For Text Data
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 = 'TXT'.
APPEND objpack.
Packing Info Attachment
att_type = whatatt_type..
DESCRIBE TABLE objbin LINES tab_lines.
READ TABLE objbin INDEX tab_lines.
objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = att_type.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = whatname.
APPEND objpack.
Receiver List
Already done thru fm
ENDFORM. "ml_prepare
FORM
FORM ml_dosend.
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.
ENDIF.
ENDFORM. "ml_customize
FORM
FORM ml_spooltopdf USING whatspoolid.
DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
Call Function
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = whatspoolid
TABLES
pdf = pdf
EXCEPTIONS
err_no_otf_spooljob = 1
OTHERS = 12.
Convert
PERFORM doconv TABLES pdf objbin.
ENDFORM. "ml_spooltopdf
FORM
FORM doconv TABLES
mypdf STRUCTURE tline
outbin STRUCTURE solisti1.
Data
DATA : pos TYPE i.
DATA : len TYPE i.
Loop And Put Data
LOOP AT mypdf.
pos = 255 - len.
IF pos > 134. "length of pdf_table
pos = 134.
ENDIF.
outbin+len = mypdf(pos).
len = len + pos.
IF len = 255. "length of out (contents_bin)
APPEND outbin.
CLEAR: outbin, len.
IF pos < 134.
outbin = mypdf+pos.
len = 134 - pos.
ENDIF.
ENDIF.
ENDLOOP.
IF len > 0.
APPEND outbin.
ENDIF.
ENDFORM. "doconv
FORM
FORM ml_saveforbp USING jobname jobcount.
Data
data : yhead like yhrt_bp_head.
DATA : ydocdata LIKE yhrt_bp_docdata,
yobjtxt LIKE yhrt_bp_objtxt OCCURS 0 WITH HEADER LINE,
yreclist LIKE yhrt_bp_reclist OCCURS 0 WITH HEADER LINE.
DATA : seqnr TYPE i.
Head
yhead-jobname = jobname.
yhead-jobcount = jobcount..
MODIFY yhrt_bp_head FROM yhead.
Doc Data
ydocdata-jobname = jobname.
ydocdata-jobcount = jobcount.
MOVE-CORRESPONDING docdata TO ydocdata.
MODIFY yhrt_bp_docdata FROM ydocdata.
Objtxt
seqnr = 0.
LOOP AT objtxt.
seqnr = seqnr + 1.
yobjtxt-jobname = jobname.
yobjtxt-jobcount = jobcount.
yobjtxt-seqnr = seqnr.
MOVE-CORRESPONDING objtxt TO yobjtxt.
MODIFY yhrt_bp_objtxt FROM yobjtxt.
ENDLOOP.
RecList
seqnr = 0.
LOOP AT reclist.
seqnr = seqnr + 1.
yreclist-jobname = jobname.
yreclist-jobcount = jobcount.
yreclist-seqnr = seqnr.
MOVE-CORRESPONDING reclist TO yreclist.
MODIFY yhrt_bp_reclist FROM yreclist.
ENDLOOP.
ENDFORM. "ml_saveforbp
FORM
FORM ml_fetchfrombp USING jobname jobcount.
CLEAR docdata.
REFRESH objtxt.
REFRESH reclist.
SELECT SINGLE * FROM yhrt_bp_docdata
INTO corresponding fields of docdata
WHERE jobname = jobname
AND jobcount = jobcount.
SELECT * FROM yhrt_bp_objtxt
INTO corresponding fields of TABLE objtxt
WHERE jobname = jobname
AND jobcount = jobcount
ORDER BY seqnr.
SELECT * FROM yhrt_bp_reclist
INTO corresponding fields of TABLE reclist
WHERE jobname = jobname
AND jobcount = jobcount
ORDER BY seqnr.
ENDFORM. "ml_fetchfrombp
CODE FOR PROGRAM
5.
REPORT zam_temp147 .
INCLUDE zami_inclfor_mail.
DATA
DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
DATA : file_name TYPE string.
data : path like PCFILE-PATH.
data : extension(5) type c.
data : name(100) type c.
SELECTION SCREEN
PARAMETERS : receiver TYPE somlreci1-receiver lower case.
PARAMETERS : p_file LIKE rlgrap-filename
OBLIGATORY.
AT SELECTION SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CLEAR p_file.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = p_file.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM ml_customize USING 'Tst' 'Testing'.
PERFORM ml_addrecp USING receiver 'U'.
PERFORM upl.
PERFORM doconv TABLES itab objbin.
PERFORM ml_prepare USING 'X' extension name.
PERFORM ml_dosend.
SUBMIT rsconn01
WITH mode EQ 'INT'
AND RETURN.
FORM
FORM upl.
file_name = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_name
filetype = 'BIN'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
path = file_name.
CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
EXPORTING
complete_filename = path
CHECK_DOS_FORMAT =
IMPORTING
DRIVE =
EXTENSION = extension
NAME = name
NAME_WITH_EXT =
PATH =
EXCEPTIONS
INVALID_DRIVE = 1
INVALID_EXTENSION = 2
INVALID_NAME = 3
INVALID_PATH = 4
OTHERS = 5
ENDFORM.
Feel free to revert back.
--Ragu -
User exit for sending mail to customers
Hi all
I have a requirement where i need to trigger a mail to customer when the shipments are planned for the sales order.
I got a suggestion asking me to use user exits for this. I would like to know is there any user-exit for this. I came to know a user-exit exists to trigger mail when a purchase oreder is released. Is there any user-exit for triggering mail to customers once the shipmetns are planned for a sales oreder.check all exists with VA01
Transaction Code - VA01 Create Sales Order
Exit Name Description
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
No of Exits: 15
Reward points if useful......... -
Hi,
How can I trigger email whenver a short dump occurs in the system?
Thanks,
CDDear cd,
You can use RZ20, go to abap short dump MTE "R3AbapShortdumps".
check for automatic reaction method.. assign "CCMS_ON_ALERT_EMAIL" method to it.
also don't forget to maintain "SCOT" transaction for sending mail.
For detail steps check in help.sap.com
Regards,
Akhilesh -
Hello ALL!
Somebody know how can I send MEDRUK for e-mail?
Best regards.
LucianoHi,
In order to send PO, your Basis team must configure the system first so that external email can be send out from SAP. If it is not configured, no settings you do on MM will work.
1. You must maintain email address in vendor master data.
2. The same applies to your user master data. For the output type for default values, a communication strategy needs
to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the
Customizing via the following path:
(SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy).
As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
3. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
4. In the condition records for the output type (for example, Transaction MN04), use medium '5' (External send).
5. You can use Transaction SCOT to trigger the output manually. The prerequisite for a correct sending is that the node is set correctly. This is not described here, but it must have already been carried out.
6. To be able to display, for example, the e-mail in Outlook, enter PDF as the format in the node.
Regards
Sudheer -
Thunderbird fails to send email when "Scan email for junk mail" option is checked in Server Admin
I have 2 clients that need to send mail through my server, one Mac and one Windows. The Mac uses apple mail and the Windows machine uses Thunderbird.
Apple Mail will send fine, it is set up for "Use Default ports 25, 465, 587" and "Use SSL" and "Authentication: MD5 Challenge-response".
Thunderbird refuses to send and I don't even see any errors showing up in the Console on the OS X server under smtpd entries.
If I uncheck the "Scan email for junk mail" option on the server, then Thunderbird will send fine.
Thunderbird is set up as: "smtp port 587 (default)" "connection security: STARTTLS" "Authentication method: Encrypted Password"
May or may not be relevant: I use virtual domains as well as aliases.
Server: Mac OS X Server version 10.5.8Solved it, looks like maybe the smtpd settings for sasl authentication may not have been correct. I followed everything in http://osx.topicdesk.com/content/view/38/41/ the "Frontline Spam Defense for OS X server" guide and now can send mail just fine from Thunderbird Winodws and from Apple Mail.
-
Mail constantly checks for new mail; downloads same emails repeatedly HELP!
For the last three days (since 19th), Mail has been downloading the same emails over and over again. I first noticed a problem when about 20 spam emails that usually route to my Junk folder appeared in my Inbox. I thought I had just moved it incorrectly and deleted them, then they appeared again later.
The mail jogger cycle (next to Inbox) keeps turning and turning like it can't stop checking for new mail. How do I get it to stop?? The emails are multiplying like gremlins in my Inbox and driving me nuts!
Also, it only downloads new emails when I first open the app. I have to force-quit out of Mail, then reopen, and I will get a couple of new emails, and then ALL THE EMAILS FOR THE LAST THREE DAYS AGAIN.
Mail was working fine for me until three days ago. The only thing I've changed recently is a Software Update on the 15th for QuickTime and iTunes.
Please help! I tried to Repair Permissions and it didn't do anything. I also tried removing all messages from the server and that did nothing either.
Mail Version 2.1
THANK YOU ANYONE WHO CAN HELP ME!!
iMac G5 Mac OS X (10.4.7) 2.1 GHz, 512 MB MemoryUPDATE: I think I got it to stop checking mail. I have Yahoo mail and I checked my email through online Yahoo. I was able to delete a bunch of emails and it suddenly stopped checking for email in the Mail app.
HOWEVER, it will NOT remove some of my junk emails. I was able to delete over 100+ of them. But one specific message (which I now have 8 copies of) will not go away. It is one of those 'Delivery Status Notification' emails. Is this a virus??
I've tried Erasing Deleted Messages and Erasing Junk Mail. Neither helps. These emails won't go away.
Help please! I would be very grateful. -
I use a gmail account for my mail. When I send an email I sometimes get multiple duplicates (up to 10-12) of the same sent message saved in my sent file. help
Did you check your user name and password in Settings>Mail,Contacts,Calendars...tap your email account, tap SMTP, then tap the primary server name. Make sure the settings there are correct.
-
When opening my Outlook 2010 with new added e-mail account with Exchange Server supplied by my employer, I have to click manually on my standard e-mail account for checking mail. Do I have to upgrade my Microsoft Office 2010 or how can I make my Outlook
2010 check all my four e-mail accounts without manually click on my accounts?
Sincerely
Ketil HothorpHello Ketil,
Good Day...
Seems to be the Issue is Syncing emails, now I would recommend you to Remove and Add the Account and try and check if the emails are getting synced automatically.
Hope this is with Single User. If it is with Multiple Users then we need to check the permissions assigned.
Regards,
Praveen -
Is it possible to keep an email account on the iPhone but stop if from checking for new mail?
I have an email account that has been deleted from the provider (Gmail), but I want to keep the old mails on my phone, while stopping it from checking for new mail. Is this possible?
If I disable the account to stop if from checking for new mail (and producing a bunch of annoying pop-ups every time the mail app is opened), the account becomes invisible and the old mails disappear. I want to keep them visible to I can read and refer to them, but want to stop the phone from trying to download new ones or check the account.
Any help appreciated.Thanks for the thought. In this case, that doesn't really help much, as it requires a bunch of button pushing just to check emails. Plus, if I'm not mistaken, in addition to switching modes every time I check email, it also prevents the other accounts from downloading the most recent mails as well. Since it's possible to keep an account on a Mac computer, but take it offline, it's very disappointing if there isn't a way to do the equivalent on an iPhone so that it passively holds the mails but doesn't send constant pop-ups every time the app is accessed.
-
can i restrict apple mail client from downloading all emails...and allow it to pick a start date for gmail mail to sync? i am flooded with old emails, thousands on them ...eating hard drive space of my macbook pro and un necessary overhead
The genius bar technicians can check your MBP for possible hardware problems and specific software issues that you may have. The diagnosis will be free. Any extensive repairs will not be free.
If you have minor software problems, you essentially will have to deal with them yourself. Examine these two comprehensive documents for possible problem definition and solutions. If you encounter problems that you are unable to cope with, start a new discussion and there will be persons willing to assist you in solving them.
https://discussions.apple.com/docs/DOC-3521
https://discussions.apple.com/docs/DOC-3353
Ciao. -
Creation of a new Keychain Entry (Internet password) for Apple Mail
I am working on a Mail Assistant to set up a new Mail Account for Apple Mail.
My problem concerns the creation of the Keychain Entry for the POP Account with which Apple Mail is set up (by my custom Mail Assistant).
I am able to create a Keychain Entry with all relevant User Data, the Keychain Entry also appears to be valid (I ran the Keychain First Aid Tool to check it), but when I start the Apple Mail App, it does not recognise the created Keychain entry, but is asking me to enter the Password for the POP Account which I set up successfully.
Any help is appreciated for giving me a hint of how Apple Mail recognises or links respectively to its adherent Keychain Entry.
Thanks in advance
ThomasCouple of things to try Theo...
Safe Boot, (holding Shift key down at bootup), & use Disk Utility from there to Repair Permissions, reboot once more.
Open Keychain Access in Utilities, use Keychain First Aid under the Window Menu item, then either check the Password under that item, change it, or delete it and start over.
Resetting your keychain in Mac OS X...
If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
http://support.apple.com/kb/TS1544 -
What are the settings for yahoo mail?
Have problems receiving and sending mail.
What are the correct settings for yahoo mail?It used to be that the free yahoo account did not give you IMAP access, only POP3 or webmail. However this may since have changed in view of the fact Google Gmail has offered free IMAP access for years.
I found the following article which may answer your questions.
http://help.yahoo.com/kb/index?page=content&y=PROD_MAIL_MOBILE&locale=en_US&id=S LN3361&pir=AHBwS9dibUmrlB_KW6ZMhyaJeg.v4XZovbSYR.M5730pZVRvNgWxE.nZDLlazK4PlEeKf vsVKVTw3InF2BTBJ4_jWs0HtZO42gwyuFUU8WJY0WG4i5gFYtc96_iqfP1IpmWVOKGJN1a93bBUrlLyj SmkLEUA2t0nB6SgfOxv_lmafiJEBsv6VYVANICO9Lw5cTIGlODAaOSkRPaeaqXcZ1wjv3h3HNQtwC7gk 47flgw9a2x8AksnnZfvOZjd.JMBWL8D6j_2H89MNwSxG1r5ncOU1vrnG5NrdKeOhz2e8wHFAkHKykqlK moJF9UAOiUxj0I8ODl7AN1MiuAIB8X9gBos3CLh3r0CkOzObX7DMNR9iw8As1hEW1Yg3gO9IB7DG4zr. KXl0b2TQGOFffS2cP4k3t3KE.LKFeKhmcmfKiiJP_C2ajQKvQDEVOHrsRQ.z6zwTIG4 -
How to trigger workflow for already created purchase order ?
HELLO EXPERTS
let me clear my scenario first . i have 1 purchase order whose workflow is not triggered . means it is showing me message no workflow that have already worked for this object.i have created 1 more purchase order taking reference of this purchase order means both are same same message for this po also. it was happening because event linkage for the business object bus2012 is not activated but now it is enabled and i have created third purchase order with reference to above po means this third po is also same as above 2 no change other than po number but for this workdflow is getting triggered . now i want to trigger workflow for orignal first po but for my first po it is showing me same message that no workflow that have already worked for this object. what i have to do to trigger workflow for this po. i have performed this steps in test system. i have workflow numberHello !
You can trigger the workflow from SWUE.Enter bus2012 and created for object type and event respectively.
Click object key button where enter the purchase order number which have been already created.
But, why do you want to trigger the workflow again for already created purchase order ?
Regards,
S.Suresh -
How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?
You can't change it, and I suspect few email providers would allow a file that big. Consider uploading it to a service like Dropbox, then email the link allowing the recipient to download it.
Maybe you are looking for
-
Please Help! Problem with 'whistle' when using Audition and Premeire Pro 1.5 with Audigy
I hope someone can help with this problem. The start of these messages is at the bottom. Any suggestions would be most welcome...Bill Allen Hi David (00)... Thanks for your reply. I just wanted to let you know that I am going to post all of this corr
-
Hi, We have a server where powershell gives an error. The shortcut or the context menu for start button (replaced cmd in context menu) gives an error saying "this file does not have a program associated with it for performing this action". In some ev
-
Guidance for getting material master data from database table
Hi, I need guidance to fetch following Material master data from the system data base.Please guide me for the same. BASIC DATA1 BASIC DATA2 MRP1,2,3,4 WORK SCHEDULING QUALITY MANAGEMENT ACCOUNTING1 ACCOUNTING2 COSTING1,2 PURCHASING PURCHASE ORDER TEX
-
Keep getting fatal error message when i try to load itunes
everytime i try and load the itunes program onto my computer i keep getting the message: could not gain access to HKEYLOCALMACHINE\Software\Classes\.cdda\OpenWithProgides key, please make sure you have access to this key and then try again.. now try
-
Hi everyone, I'm struggling with a problem here. I cannot compile my app when I name a NSFetchedResultsController "fetchedResultController" and I override the setter selector. How do you explain that? Is it a bug? I'm using xCode Version 5.0.2 (5A300