How to send the email without using SOST
Hiiiiii Every1,
What i m usiing is SO_NEW_DOCUMENT_SEND_API1 FM to send the email to internet add. as well as SAP User.
The Problem is that i have to go to SOST to send the Pending mails. and send the jobs manually.
Then it works all right.
What i want that i don't wnat to send this jobs/ emails mannually by going to SOST..
Is it possible to do it without using SOST.
hi
i am not sure but give this code a try
REPORT YEMAIL.
TABLES: USR02.
DATA: C(15).
DATA: SENT LIKE SONV-FLAG.
DATA: EMAIL_ID LIKE SOFOLENTI1-OBJECT_ID.
DATA: BEGIN OF EMAIL_DATA.
INCLUDE STRUCTURE SODOCCHGI1.
DATA: END OF EMAIL_DATA.
DATA: BEGIN OF EMAIL_SEND OCCURS 10.
INCLUDE STRUCTURE SOMLRECI1.
DATA: END OF EMAIL_SEND.
DATA: BEGIN OF EMAIL_TEXT OCCURS 10.
INCLUDE STRUCTURE SOLISTI1.
DATA: END OF EMAIL_TEXT.
PARAMETERS: ALL__CLI RADIOBUTTON GROUP RADI.
PARAMETERS: THIS_CLI RADIOBUTTON GROUP RADI.
PARAMETERS: SELECT__ RADIOBUTTON GROUP RADI.
SELECT-OPTIONS SEND_TO FOR C NO INTERVALS.
SELECTION-SCREEN SKIP.
PARAMETERS: SUBJECT(30).
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT /1(20) TEXT-999.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: L1(84).
SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: L2(84).
SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: L3(84).
SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: L4(84).
SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: L5(84).
SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: L6(84).
SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: L7(84).
SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: L8(84).
SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: L9(84).
SELECTION-SCREEN END OF LINE.
EMAIL_TEXT-LINE = L1.
APPEND EMAIL_TEXT.
EMAIL_TEXT-LINE = L2.
APPEND EMAIL_TEXT.
EMAIL_TEXT-LINE = L3.
APPEND EMAIL_TEXT.
EMAIL_TEXT-LINE = L4.
APPEND EMAIL_TEXT.
EMAIL_TEXT-LINE = L5.
APPEND EMAIL_TEXT.
EMAIL_TEXT-LINE = L6.
APPEND EMAIL_TEXT.
EMAIL_TEXT-LINE = L7.
APPEND EMAIL_TEXT.
EMAIL_TEXT-LINE = L8.
APPEND EMAIL_TEXT.
EMAIL_TEXT-LINE = L9.
APPEND EMAIL_TEXT.
EMAIL_DATA-OBJ_NAME = 'MESSAGE'.
EMAIL_DATA-OBJ_DESCR = SUBJECT.
EMAIL_DATA-OBJ_LANGU = 'E'.
EMAIL_DATA-SENSITIVTY = 'P'.
EMAIL_DATA-OBJ_PRIO = '1'.
EMAIL_DATA-NO_CHANGE = 'X'.
EMAIL_DATA-PRIORITY = '1'.
BREAK-POINT.
IF SELECT__ = 'X'.
LOOP AT SEND_TO.
EMAIL_SEND-RECEIVER = SEND_TO-LOW.
EMAIL_SEND-REC_TYPE = 'U'.
EMAIL_SEND-EXPRESS = 'X'.
APPEND EMAIL_SEND.
ENDLOOP.
ELSEIF THIS_CLI = 'X'.
SELECT * FROM USR02.
IF USR02-USTYP = 'A' AND USR02-BNAME NE 'SAP*'
AND USR02-BNAME NE 'DDIC'.
EMAIL_SEND-RECEIVER = USR02-BNAME.
EMAIL_SEND-REC_TYPE = 'U'.
EMAIL_SEND-EXPRESS = 'X'.
APPEND EMAIL_SEND.
ENDIF.
ENDSELECT.
ELSEIF ALL__CLI = 'X'.
SELECT * FROM USR02 CLIENT SPECIFIED.
IF USR02-USTYP = 'A' AND USR02-BNAME NE 'SAP*'
AND USR02-BNAME NE 'DDIC'.
EMAIL_SEND-RECEIVER = USR02-BNAME.
EMAIL_SEND-REC_TYPE = 'U'.
EMAIL_SEND-EXPRESS = 'X'.
APPEND EMAIL_SEND.
ENDIF.
ENDSELECT.
ENDIF.
BREAK-POINT.
EXIT.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = EMAIL_DATA
DOCUMENT_TYPE = 'RAW'
PUT_IN_OUTBOX = 'X'
IMPORTING
SENT_TO_ALL = SENT
NEW_OBJECT_ID = EMAIL_ID
TABLES
OBJECT_CONTENT = EMAIL_TEXT
RECEIVERS = EMAIL_SEND
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.
regs
Arun
Similar Messages
-
How to send the email without using server side (Php, java)
How to send the (Run time image or file) Email & Attachment in Flex web application. without using php, java.
Well, at some point your email needs to be handed over to an SMTP server. It's a fair amount of work, but if you want to just send an email you could open a socket to a mail server's SMTP port and follow the SMTP protocols to send your email.
ActionScript sockets: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7cf7.html
SMTP protocol: http://tools.ietf.org/html/rfc821
-- Tom -
How to send the email to different email addresses from Workflow
Hello,
i an not getting that how to send the email from Workflow in SAP.
plz give the steps to do that.
i have done lots of time but system is not sending the email to different email address.Hi,
lot of configuration is invloved in sending
mail to external email id. check BASIS to
configure for external mails ans also check
debug FM and see which conditions exceptions
(Document not sendis raised)
also check below code
CLEAR: DOC_CHNG, OBJTXT, OBJBIN, OBJPACK, OBJHEAD, RECLIST,
RECIPIENT_INT, DOC_SIZE,TAB_LINES.
REFRESH: OBJTXT, OBJBIN, OBJPACK, OBJHEAD, RECLIST.
OBJBIN[] = CONTENT_OUT[].
Populate e-mail title
DOC_CHNG-OBJ_NAME = 'MAIL'.
CONCATENATE 'EETS for Contract #'(245)
OIA01_TAB-EXGNUM
INTO DOC_CHNG-OBJ_DESCR SEPARATED BY SPACE.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
It is a text document
CLEAR OBJPACK-TRANSF_BIN.
The document needs no header (head_num = 0)
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
but it has a body
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
of type RAW
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Create the attachment (the list itself)
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
It is binary document
OBJPACK-TRANSF_BIN = 'X'.
we need no header
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
but a body
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
of type PDF
OBJPACK-DOC_TYPE = 'PDF'.
OBJPACK-OBJ_NAME = 'Attachment'(239).
CONCATENATE 'EETS_' OIA01_TAB-EXGNUM '_'
IT_ZMMTACCUID-ACCTUSRID
'_' SY-DATUM '_' SY-UZEIT '.PDF'
INTO OBJPACK-OBJ_DESCR.
READ TABLE OBJBIN INDEX TAB_LINES.
DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJBIN ).
OBJPACK-DOC_SIZE = DOC_SIZE.
APPEND OBJPACK.
Get e-mail address
CLEAR IT_ADDRESS.
READ TABLE IT_ADDRESS WITH KEY ACCTID = IT_ZMMTACCUID-ACCTUSRID
BINARY SEARCH.
IF SY-SUBRC = 0.
RECIPIENT_INT-ADDRESS = IT_ADDRESS-SMTP_ADR.
ENDIF.
*Send email to external mail address
RECLIST-RECEIVER = RECIPIENT_INT.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
CLEAR RECLIST.
*Send email to SAP Office mail address
RECLIST-RECEIVER = IT_ZMMTACCUID-ACCTUSRID.
RECLIST-REC_TYPE = 'B'.
APPEND RECLIST.
CLEAR RECLIST.
SEND THE DOCUMENT BY CALLING THE SAPOFFICE API1 MODULE
FOR SENDING DOCUMENTS WITH ATTACHMENTS
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = doc_chng
put_in_outbox = 'X'
importing
sent_to_all = sent_to_all
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.
also check
https:/Re: mail sending problem
Regards
amole -
hi, im suffering on how to send an email to reset the security question
this is because i have been already log in to the page and in the password & security there but there have no any link such as "send an rescue email to xxx mail" for me to click. so what i need to do?urgentYou need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(105183) -
Hi,
Native alert on a document library can setup to email to the predefined user when any changes on the document.
However, I would like to setup a document library and alert me when
[email protected] [email protected]
[email protected] hasn't yet put a document to the library by 2014-07-01 (e.g today is 2014-06-26). The reminder email will send to
[email protected] [email protected] on 2 days before the dead line (ie. 2014-06-29) because
[email protected] and [email protected] hasn't put their file to the library on or after 2014-06-29..
ThanksHi,
http://stackoverflow.com/questions/17571562/creating-email-alert-workflow-for-sharepoint-file-libraries
http://stackoverflow.com/questions/18868479/how-to-send-automatic-email-notification-to-user-two-days-before-expiry-date
http://social.msdn.microsoft.com/Forums/en-US/acb12dd2-d6a5-4b7e-b233-037558bfa2e5/start-workflow-x-days-before-expiry-date?forum=sharepointcustomizationlegacy
Please remember to click 'Mark as Answer' on the answer if it helps you -
Hi Experts,
I want to send the email from the order_status badi, I have the email address handy.What is the FM to use to send the email.
Is there any other way to send the emails form CRM 2007, please let me know.
Thanks in Advance for your help,
PravePrave,
This really isn't a CRM 2007 question, because sending e-mails from CRM works generally the same through the background between the releases.
You should look at scheduled action configuration and you might find a solution based on your problem. I would recommend looking at the standard help or searching the CRM General and Framework forum on this issue.
Take care,
Stephen -
How to list the datasources without use a tnsnames.ora file?
Hi,
I want to use the OracleDataSourceEnumerator class of ODP.Net to list the datasources on which the user can connect.
It's work with a tnsnames.ora on the local station, so good.
But I want use the easy connect naming methode so i have edited the sqlnet.ora file with this:
NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
then i have deleted the content of the tnsnames.ora
so my code don't work : none datasource is returned by the OracleDataSourceEnumerator
So my question : is it a way to list the datasources without use a tnsnames.ora file?
Edited by: user13499556 on 17 déc. 2010 08:21You can check
DataConnectionFile.EnumerateDependants method
This post is my own opinion and does not necessarily reflect the opinion or view of Slalom. -
How to send an email without attaching the form or the form data?
I'm creating a form that will have an email button to send an allert that the form was filled out. So far I got it to work based on another example on this forum, but it is attaching the file to the email. I don't want that, all I need is to send an email with a predefined Subject line. Here is the test form I'm trying to tweek:
http://dl.dropbox.com/u/5098048/Forum.pdf
Thanks a lot!Hi,
you can find documentation for Designer under this website
http://help.adobe.com/en_US/livecycle/10.0/documentation.html#task=4,5&module=2
In Designer you can use the JavaScript API of Acrobat.
So the Devnet for Acrobat is also a good source.
http://www.adobe.com/devnet/acrobat.html
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf -
How to send an email without any attachment with a simple message???
Hello ALL,
I have a requirement of sending an email on click of a button. I have navigated through the class CL_BCS,
but I am anable to understand certain things. First is : WHAT IS THE USE OF CREATE_PERSISTENT ???
Second: which method would send an email?
How do I add the sender's email id and receipent's email id?TRY.
create persistent send request
lp_send_request = cl_bcs=>create_persistent( ).
Get the text
IF iv_stxt IS NOT INITIAL.
CALL METHOD zfi_flexgl_common=>read_text
EXPORTING
iv_stxt = iv_stxt
IMPORTING
et_tline = lt_tline
ev_failed = ev_failed.
LOOP AT lt_tline INTO ls_tline.
APPEND ls_tline-tdline TO lt_text.
ENDLOOP.
ENDIF.
create and set document
create document from internal table with text
lp_document = cl_document_bcs=>create_document(
i_type = iv_format_type "'XLS' "HTM'
i_text = lt_text
i_subject = iv_msg_subj ).
IF it_attach IS NOT INITIAL.
Add attachment
DATA: l_size TYPE sood-objlen, " Size of Attachment
l_lines TYPE i. " Lines count
l_lines = LINES( it_attach ).
l_size = l_lines * 255.
CALL METHOD lp_document->add_attachment
EXPORTING
i_attachment_type = 'RAW'
i_attachment_subject = 'My attachment'
i_attachment_size = l_size
i_att_content_text = it_attach.
ENDIF.
add document to send request
CALL METHOD lp_send_request->set_document( lp_document ).
Sender addess
*l_sender = cl_sapuser_bcs=>create( sy-uname ).
*call method l_send_request->set_sender
exporting
i_sender = l_sender.
LOOP AT it_rec INTO ls_rec.
lv_receiver = iv_rec.
TRY.
CALL METHOD cl_cam_address_bcs=>create_internet_address
EXPORTING
i_address_string = lv_receiver
RECEIVING
result = lp_recipient.
CATCH cx_address_bcs .
ENDTRY.
CALL METHOD lp_send_request->add_recipient
EXPORTING
i_recipient = lp_recipient
i_blind_copy = abap_true
i_express = abap_true.
ENDLOOP.
IF sy-subrc <> 0.
ev_failed = abap_true.
EXIT.
ENDIF.
---------- send document ---------------------------------------
CALL METHOD lp_send_request->send(
RECEIVING
result = lv_flag ).
CATCH cx_send_req_bcs.
ev_failed = abap_true.
CATCH cx_document_bcs.
ev_failed = abap_true.
ENDTRY. -
Urgent Help. How to send the email in HTML format in Version 4.6c
Hi,
Please help me how to send a mail in HTML format with logo and specified format. Is it possible to send the SAPscript or Smartform in HTML format to external mail address. The logo and the format is very important in this e-mail.
quick response will help me better.
Regards,
NaiduHere is a sample program which emails HTML in the body. Of course you can put an HTML tag in there that would point to the logo on some server(internet). Notice we are just putting the HTML code in the MAILTXT table, This is how we do it at my company.
report zrich_0002.
data: maildata like sodocchgi1.
data: mailtxt like solisti1 occurs 10 with header line.
data: mailrec like somlrec90 occurs 0 with header line.
start-of-selection.
clear: maildata, mailtxt, mailrec.
refresh: mailtxt, mailrec.
perform build_text_message.
perform build_receivers.
perform send_mail_nodialog..
* Form BUILD_TEXT_MESSAGE
form build_text_message.
maildata-obj_name = 'TEST'.
maildata-obj_descr = 'Test Subject'.
mailtxt = '<html>'.
append mailtxt.
mailtxt = '<head>'.
append mailtxt.
mailtxt = '<title>Untitled Document</title>'.
append mailtxt.
mailtxt = '<meta http-equiv="Content-Type" content="text/html;'.
append mailtxt.
mailtxt = 'charset=iso-8859-1">'.
append mailtxt.
mailtxt = '</head>'.
append mailtxt.
mailtxt = '<body>'.
append mailtxt.
mailtxt = '<div align="center"><em><font' .
append mailtxt.
mailtxt = 'color="#0000FF" size="+7" face="Arial,'.
append mailtxt.
mailtxt = 'Helvetica, sans-serif">THIS'.
append mailtxt.
mailtxt = ' IS A TEST </font></em><font' .
append mailtxt.
mailtxt = 'color="#0000FF" size="+7" face="Arial,'.
append mailtxt.
mailtxt = 'Helvetica, sans-serif"></font>'.
append mailtxt.
mailtxt = '</div>'.
append mailtxt.
mailtxt = '</body>'.
append mailtxt.
mailtxt = '</html>'.
append mailtxt.
endform.
* Form BUILD_RECEIVERS
form build_receivers.
* mailrec-receiver = '[email protected]'.
mailrec-rec_type = 'U'.
append mailrec.
endform.
* Form SEND_MAIL_NODIALOG
form send_mail_nodialog.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = maildata
document_type = 'HTM'
put_in_outbox = 'X'
tables
object_header = mailtxt
object_content = mailtxt
receivers = mailrec
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 SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform.
Regards,
Rich Heilman -
How to send an email without authentication
when I use javamail to send an email ,give authentication information seems
a must ,but I need to send it without authentication.Any method that can
implement it?you can set null for authenticator object.......
look code below, it works......
Properties prop = new Properties()
Session ses = Session.getDefaultInstance(prop,null); -
How to send the folder url using SharePoint Designer WF??
Hi,
i am trying to send the folder url as a email link using SharePoint designer workflow. i already created the WF which is sending the item url attaching with email. is there anyway i can add folder url too, so that once user will click they can see all the
files in that folder?
ThanksI think you've got a quote in the wrong place, but you're close.
Do a 'set workflow variable', and create a new one called whatever - this one was called link
Add that variable to your email:
Of course you can set your text to whatever you want. I use this technique to do formatting in email - you can create a pretty complex bit of html in a string variable and insert it into email - Outlook/Exchange will interpret.
And actually, I think there's another variable, maybe in the workflow context section, that would have your site address, so you wouldn't have to hardcode your https://xxxx.com .
Robin -
Portege R100: Solution how to restore the unit without using a CD-ROM drive
I have just re-stored my Toshiba R100 after nearly 3 years of owning it without a single format due to the complexities of getting a working bootable CD-ROM drive.
This won't help those of you who have a non booting laptop but if yours is booting I used the following method to re-store my laptop with zero problems.
1. Put the restore CDs into another computer and extract the Ghost image files "01131000.GHO" and "01131000.CRC" from disk 1 and "01131001.GHS" from disk 2.
2. If your laptop has a second partition then transfer these files to a directory on your non windows partition. If not you will have to use partition magic to create one.
3. Create a Norton Ghost boot disk from a retail version of Norton ghost and a Windows 98 Boot disk.
4. Boot the Laptop from the Windows 98 Floppy disk, then swap disks and run Ghost.
5. Select Local>Local Disk>From Image
And select the 01131000.GHO file.
6. Select the only image offered to you, then select the R100?s drive, and finally select the main boot partition.
7. Hit go!
8. Re-boot and follow the windows configuration and you're done.Hi George.
Thanks for your useful description.
I'm sure it will help other users here in our community. -
How to upload the file without using java components?
Hello,
I need to upload the file using JSP, but I don't want to use java componets(such as
jspsmart).
Who can tell me how to realize it? This issue is very important to me,
thanks all in advance!make you're own servlet using the multipartrequest from o'reilly.
easy and simple, no jspsmart, only 1 jar file and some descent programming.
I use it like that... -
The phone is showing restriction passcode on, but i have not set it and even after 15 attempts i could not get what this passcode is. I want to reset my phone as i have forget the Apple ID password and unable to reset again. please help
Are you saying that not only do you not know the restrictions passcode, you also don't know the Apple ID/Password that was originally used to activate this phone?
If so, you won't be able to do anything with that phone but look at it, & Apple can't/won't help you with this.
Maybe you are looking for
-
Print Excise invoice in Series grp 111 using J1IP for Billing document 1234
Dear Gurus, I have an issue in which I create Sales Document>>Delivery Document and after that if I save my Billing Document a message pops up like: Print Excise invoice in Series grp 111 using J1IP for Billing document 12345 And Excise Invoice gets
-
Live-preview of .dwt template does not work
Hi, I set up a html page in DW and converted it to a template using insert > template > convert (make) to template (I use the german version of DW, dont know whether this is the right translation). Now my file has an .dwt ending. After having inserte
-
Does anyone know if Muse plans to introduse password protected pages for client previews, Thanks
-
Why are my third party keyboards not showing up?
I have an iPhone 5S running iOS 8.0.2 . So recently, my third party keyboards on iOS 8 have not been working. When i select to use the third party keyboard (e.g. SwiftKey, Swype, TouchPal) the keyboard window does not slide up, or in the case of the
-
I have videos on my computer and it says they are in a divx compression format with mp3 audio. I want to put them on my iPod, but iTunes won't recognise them. Do you know what types of video files can be recognised by iTunes and iPod and is there any