No attachment is included in the Mail from SOST
Hi SAPer,
Please could any of you help me out on this issue
We are on 4.6C. AP payment advice by means of BTE create an outbound email in SOST with payment advice to the correct mail addrsess and I can see the preview image of attachment within SOST.
The problem is that the auto-mail from SOST into my account does not have any attachment nor content at all.
Please advise me on what setting may cause this issue in SAP.
Thanks in advance
Kind regards
Taro
Hello Taro,
What type of attachment is that like .pdf or .xls ? and what is the size of the file ?
Refer to below notes please
785564 - Device types for SAPconnect
Note 762870 - Language-dependent selection of device type
Note 488810 - Determining the device type for a certain language
1171138 - Size restriction for outbound e-mails
837300 - Size restriction when sending documents
Regards,
Arjun
Similar Messages
-
How to attach a file to the mail
How to attach a file to the mail
I know that this can be done when going to any PDF program and push (send as email)
This also can done with multiple files or even with separate pages from that PDF file (Many programs can do that, like: PDF expert, Adobe Reader, iBooks, PDF Provider, Documents, etc)
But what if I begin to wright an email, then I wanted to attach a file (such as PDF, or word, or any file) , FOR BASIC APPLE MAIL IT IS UNAVAILABLE
You can attach Photo or Video but not PDF or other document
There are some email programs that can attach files to email such as my.mail (as you can see from the photo)
But why Apple don't provide such simple service ??? -
Having trouble with the security questions for iTunes. Tried to reset them, but the mail from Apple never comes . . .
You need to ask Apple to reset your security questions; ways of doing so include clicking here and picking a method for your country, and filling out and submitting this form.
(96290) -
How can I make MFE delete the mails from the serve...
guys,I am using mfe on my E63 with mail2web free account.I configured gmail to retrieve my hotmail mails then I configured gmail to forward my mails to my mail2web account.I did that so I dont have to have more than one mailbox on my phone and to be able to check my all accounts from one account which is mail2web via mfe.but my problim is when I delete an email via mfe from my phone its not been deleted from mail2web servers.I mean when I login on pc I see all the mails that I have been deleted.can I make the phone to also delete the mails from the server? thanx
my blog on the net(in arabic):http://bazkurd.wordpress.comWaMuHIP07 wrote:
Right-click the videos that you want to always start from the beginning in iTunes. The options tab of the video file properties contains this option control. Uncheck the box that says "Remember Play Postion."
Or hit the left side of your scroll wheel when launching it on your iPod -
I received an iPhone 6 in the mail from my previous service provider but I already changed to a different provider and got an iPhone 6 in the meantime because my iPhone 5 stopped working and I was desperate thinking I wouldn't receive the phone in the mail. Should I mail it back or sell it?
You aren't serious are you? Send it back. It is not yours, you do not own it, therefore selling it would constitute selling stolen goods. You would be committing a crime, and you would be screwing whomever you sold it to.
GB -
User not able to send the mail from other mail box on outlook 2007
In my outlook(2007), i am using my mail box to send the mail and receiving the mail every thing working fine, now what happened , i am adding one of my users mail box to my outlook profile,and trying to send the mail from that mail box,when ever
i am trying to send its give me the message called message undelivered and permission error. as i am full permission on that users mail box. but still getting that issue.
My lab info
Exchange server 2010 sp3
outlook 2007HI Paul,
In exchange, you have something called Send as permission as well. Try to give send as permission to your self from the user's mailbox.
In exchange> Reciepient config> Mailboxes> user mailbox> right click> Full Send as permssion
or,
Add-ADPermission -Identity "user1" -User "[email protected]" -ExtendedRights Send-As
After you add your self in send as permission you need to wait for some time to propagate the settings or you can forcefully reset the information store services
That should solve your issue.
UMESH DEUJA MCP,MCTS,MCSA,CCNA -
when my phone goes and gets my mail, can i get it to remove the mail from the server.
Only if it's a POP3 server. IMAP and Exchange synchronize the server and all clients.
-
User couldn't recieve the mail from SAP SYSTEM
Hi all experts,
User couldn't recieve the mail from SAP SYSTEM since the Unicode changes were pushed ,
how to fix the issue ?
Thanks & Best regards,
MichaelHi Michael,
Is the SAPConnect configured as per note [455140|https://service.sap.com/sap/support/notes/455140] ?
Since you are talking about receiving emails, do you see the emails in SOIN transaction (or report RSBCSIN)? Have you tried telnet directly to the SAPConnect plugin as described on note [607108|https://service.sap.com/sap/support/notes/607108]
What is the value of parameter is/SMTP/virt_host_<*>?
Regards,
Tiago -
I cant recive the mail from apple so i can verify my id apple
i cant recive the mail from apple so i can verify my id apple
You put the correct email address on your account ? And you've checked the spam folder on that account as well as the inbox ? If it's not in spam either then have you tried requesting the email again ?
From http://support.apple.com/kb/HT5622 :
Simply follow the link in the verification email that says "Verify Now." Sign in with your current Apple ID and password, then click Verify Address. You can also verify by signing in at My Apple ID. You'll receive an email prompting you to verify. -
HT4623 How do we save a attachment which comes with the mail and where?
IHow do we save a attachment which comes with the mail and where?
What type of file is the attachment ? You first need an app on your iPad then supports the type of file that you want to save on the iPad - unlike a 'normal' computer the iPad doesn't have a file system, and everything on it has to be associated with an app. If you have an app that supports the type of file that you want to save, then pressing and holding the attachment might (if the app supports it) give a popup with options to save ('open in') the attachment in your app.
-
Hi guys
I need to develop a program which monitors the error mails from SOST and forward the same mails to some other email.
is it possible technicaaly.
this is very urgent please let me know if there any possible solutions
Thanks in advanceHi Kittu,
The details you want to see through SOST transaction are possible with Tcode SOSV.
There is one more simple way to know the status of the the Mails along with Sender and receiver information.
SE16-> table SOST-> Field MSGTY (Status of the Mail S/ E)
SE16 --> SOOS ---> It will contain the Sender & Receiver Information as per the the Object No & Object Type.
Please let me know if you need any more information.
regards,
vikas.
plz reward if helpful.. -
To attach the files in the mail from the PC
I have a requirement where i have to attach files from the local system and mail it. i have to send the mail with a note also....displaying " Please find attached the following documents" ...
Please suggest the function module that i should use..
At present i am using FM "SO_OBJECT_SEND", but i am facing a problem with this, if i send a folder id and a the body contendt simultaneously, i get a blank attchment.
Please help me get the solution..
Regards,
AbhinavI am using the following code, and the problem is that i am getting a blank TXT as an attachment.
Please help me solve this issue, if u change the spool request no., client & put ur mail id and execute it u will find that apart from the pdf we get an un wanted attachment also..
Please suggest me the solution..
WORK TABLE AREAS
TABLES: tsp01.
INTERNAL TABLES
DATA: lt_rec_tab LIKE STANDARD TABLE OF soos1 WITH HEADER LINE,
lt_note_text LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_attachments LIKE STANDARD TABLE OF sood5 WITH HEADER LINE.
DATA: lt_objcont LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_objhead LIKE STANDARD TABLE OF soli WITH HEADER LINE.
DATA: pdf_format LIKE STANDARD TABLE OF tline WITH HEADER LINE.
TYPES: BEGIN OF y_files,
file(60) TYPE c,
END OF y_files.
DATA: lt_files TYPE STANDARD TABLE OF y_files WITH HEADER LINE.
DATA: l_objcont LIKE soli OCCURS 0 WITH HEADER LINE.
DATA: l_objhead LIKE soli OCCURS 0 WITH HEADER LINE.
STRUCTURES
DATA: folder_id LIKE soodk,
object_id LIKE soodk,
link_folder_id LIKE soodk,
g_document LIKE sood4,
g_header_data LIKE sood2,
g_folmem_data LIKE sofm2,
g_header_data LIKE sood2,
g_receive_data LIKE soos6,
g_ref_document LIKE sood4,
g_new_parent LIKE soodk,
l_folder_id LIKE sofdk,
v_email(50).
DATA: hd_dat LIKE sood1.
VARIABLES
DATA: client LIKE tst01-dclient,
name LIKE tst01-dname,
objtype LIKE rststype-type,
type LIKE rststype-type.
DATA: numbytes TYPE i,
arc_idx LIKE toa_dara,
pdfspoolid LIKE tsp01-rqident,
jobname LIKE tbtcjob-jobname,
jobcount LIKE tbtcjob-jobcount,
is_otf.
DATA: outbox_flag LIKE sonv-flag VALUE 'X',
store_flag LIKE sonv-flag,
delete_flag LIKE sonv-flag,
owner LIKE soud-usrnam,
on LIKE sonv-flag VALUE 'X',
sent_to_all LIKE sonv-flag,
g_authority LIKE sofa-usracc,
w_objdes LIKE sood4-objdes.
DATA: c_file LIKE rlgrap-filename,
n_spool(6) TYPE n.
DATA: cancel.
DATA: desired_type LIKE sood-objtp,
real_type LIKE sood-objtp,
attach_type LIKE sood-objtp,
otf LIKE sood-objtp VALUE 'OTF', " SAPscript Ausgabeformat
ali LIKE sood-objtp VALUE 'ALI'. " ABAP lists
CONSTANTS
CONSTANTS: ou_fol LIKE sofh-folrg VALUE 'O',
c_objtp LIKE g_document-objtp VALUE 'RAW',
c_file_ext LIKE g_document-file_ext VALUE 'TXT'.
*=======================================================================
*=
*=========
*z_send_email_fax2
*function z_faian_mail_fax2.
""Interface local:
*" IMPORTING
*" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
*" REFERENCE(FAX_MAIL_NUMBER) TYPE SO_NAME
*" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
*" REFERENCE(OBJECT_TYPE) TYPE SO_ESCAPE
*" TABLES
*" LT_BODY_EMAIL STRUCTURE SOLI
*" EXCEPTIONS
*" ERR_NO_ABAP_SPOOLJOB
Fist part: Verify if the spool really exists
*select single * from tsp01 where rqident = src_spoolid.
DATA src_spoolid TYPE tsp01-rqident VALUE '23242'.
DATA header_mail TYPE so_obj_des.
DATA lt_body_email TYPE STANDARD TABLE OF soli WITH HEADER LINE.
DATA l_t VALUE '1'.
header_mail = 'Subject line of mail'.
IF l_t = '1' .
RAISE err_no_abap_spooljob. "doesn't exist
*ELSE.
client = '200'."tsp01-rqclient.
name = 'SPOOL0000023242'."tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
desired_type = otf.
ELSE.
desired_type = ali.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = src_spoolid
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
owner = sy-uname
region = ou_fol
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 5.
fill out informations about the header of the email
CLEAR: g_document.
g_document-foltp = l_folder_id-foltp.
g_document-folyr = l_folder_id-folyr.
g_document-folno = l_folder_id-folno.
g_document-objtp = c_objtp.
g_document-objdes = header_mail.
g_document-file_ext = c_file_ext.
g_header_data-objdes = header_mail.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
method = 'SAVE'
office_user = sy-uname
IMPORTING
authority = g_authority
TABLES
objcont = lt_body_email
attachments = lt_attachments
CHANGING
document = g_document
header_data = g_header_data
EXCEPTIONS
OTHERS = 1.
folder_id-objtp = l_folder_id-foltp.
folder_id-objyr = l_folder_id-folyr.
folder_id-objno = l_folder_id-folno.
object_id-objtp = c_objtp.
object_id-objyr = g_document-objyr.
object_id-objno = g_document-objno.
link_folder_id-objtp = l_folder_id-foltp.
link_folder_id-objyr = l_folder_id-folyr.
link_folder_id-objno = l_folder_id-folno.
REFRESH lt_rec_tab.
CLEAR lt_rec_tab.
lt_rec_tab-sel = 'X'.
lt_rec_tab-recesc = object_type. "This field for FAX/MAIL
lt_rec_tab-recnam = 'U-'.
lt_rec_tab-deliver = 'X'.
lt_rec_tab-not_deli = 'X'.
lt_rec_tab-read = 'X'.
lt_rec_tab-mailstatus = 'E'.
lt_rec_tab-adr_name = fax_mail_number.
lt_rec_tab-sortfield = fax_mail_number.
lt_rec_tab-recextnam = fax_mail_number.
lt_rec_tab-sortclass = '5'.
APPEND lt_rec_tab.
lt_rec_tab-recextnam = ."Email id .
lt_rec_tab-recesc = 'U'. "object_type.
lt_rec_tab-sndart = 'INT'.
lt_rec_tab-sndpri = 1.
APPEND lt_rec_tab.
c_file = 'C:\Documents and Settings\abgupta\Desktop\Abhinav\zpk.txt'.
lt_files-file = c_file.
APPEND lt_files.
begin of insertion by faianf01
hd_dat-objdes = header_mail.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
EXPORTING
object_id = object_id
attach_type = attach_type
object_hd_change = hd_dat
owner = sy-uname
TABLES
objcont = l_objcont
objhead = l_objhead
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
object_type_not_exist = 17
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
x_error = 1000.
IF sy-subrc > 0.
ENDIF.
end of insertion by faianf01
lt_note_text-line = 'test prgram for email'.
APPEND lt_note_text.
send email from SAPOFFICE
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = folder_id
object_id = object_id
outbox_flag = outbox_flag
link_folder_id = link_folder_id
owner = sy-uname
check_send_authority = 'X'
TABLES
receivers = lt_rec_tab
note_text = lt_note_text
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
component_not_available = 1
folder_no_authorization = 5
folder_not_exist = 6
forwarder_not_exist = 8
object_no_authorization = 13
object_not_exist = 14
object_not_sent = 15
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
too_much_receivers = 73
user_not_exist = 35.
ENDIF.
COMMIT WORK AND WAIT. -
Error in reading the mails from POP3 server
Hi,
I am reading mails from the POP3 server using UTL_TCP package. I am able to retrieve .txt & .doc attachments successfully.
I am facing an error when I try to retrieve an attachment with a very long name (irrespective of the file type). Also, I am unable to retrieve .docx, .xls, .xlsx file types. I noticed similarity in the reasons for the error I am getting. I realized that if I try to retrieve an attachment with a very long file name or any of the above mentioned file formats (.docx, .xls, etc.), the "name" attribute of the attachment goes to the next line and hence I am going wrong somewhere in parsing that line.(The complete line comprises of : Content-Type: application/vnd.openxmlformatsofficedocument.wordprocessingml.document; name="test_attachment.docx")
I realized this pattern by doing executing Telnet commands to retrieve emails from POP3 server.
I am trying to parse the line I am talking about in the following manner:
IF line LIKE 'Content-Type: %;'
THEN
IF line LIKE 'Content-Type: %; name=%'
THEN
PIPE ROW (line);
ELSE
-- This should only print the "Content-Type". But I get an error (pasted below) at this point
PIPE ROW (line);
-- To read the "name" attribute which comes on the next line. But this line never gets executed since I get an error in the previous statement
BYTES := UTL_TCP.available (socket);
BYTES := UTL_TCP.read_line (socket, line);
PIPE ROW (line);
END IF;
The error I get is :
ERROR:
ORA-29261: bad argument
ORA-06512: at "SYS.UTL_ENCODE", line 29
ORA-06512: at "SYS.UTL_ENCODE", line 251
ORA-06512: at "SCOTT.POP3", line 117
Message was edited by:
Monk
Message was edited by:
MonkHi,
Try to manually download the file from application server using standard transactions, and than check how many records are you able to download from app. server.
I guess there might be something wrong with the format of 583rd record, which makes sap assume that the file has come to an end.
Hope this will help you.
Regards,
Vinit... -
How to attach PDF file along with mail from SAP to external
Hi Experts,
Whenever I am creating PO I should get that creation information ( PO is created & PO no is XXX .) in the form of PDF file & I have to send this PDF file through mail to external. I have to do all this in one development How can I proceed Help me..
ThanksCheck this Code>>>>>>>>>>>
FORM MAIL_OBJECT *
Compiled: Thomas, Satyam Computers Services Ltd.
This routine receives OTF data. OTF data is converted to PDF
format and send to the Partner's email address
FORM mail_object TABLES otf_data STRUCTURE itcoo .
DATA: pdf_size TYPE i, " PDF Size
pdf_itab_size TYPE i, " Attachment size
mailtxt_size TYPE i, " Text in mail size
l_vbeln LIKE vbdka-vbeln. " Order Doc
DATA:
it_mailtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE, " Mail Text
it_pdf TYPE TABLE OF tline WITH HEADER LINE, " OTF output
it_mailpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE, " Dist details
it_mailhead LIKE solisti1 OCCURS 1 WITH HEADER LINE," Header data
it_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE, " Rec List
it_pdfdata LIKE solix OCCURS 0 WITH HEADER LINE. " Attachment data
DATA: it_doc_att LIKE sodocchgi1. " Attri of new doc
DATA: BEGIN OF it_pdfout OCCURS 0, " PDF in 255 length
tline TYPE char255,
END OF it_pdfout.
Sales doc and Customer
DATA: BEGIN OF i_vbeln OCCURS 0,
vbeln LIKE vbpa-vbeln, " Sales Document
adrnr LIKE vbpa-adrnr, " Customer
END OF i_vbeln.
Sender Address no and SMTP address
DATA: BEGIN OF i_addrs OCCURS 0,
addrnumber LIKE adr6-smtp_addr,
smtp_addr LIKE adr6-smtp_addr,
END OF i_addrs.
Convert OTF to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = pdf_size
TABLES
otf = otf_data
lines = it_pdf.
Make each line 255 characters
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
TABLES
content_in = it_pdf
content_out = it_pdfout.
Create the PDF File
CLEAR it_pdfdata.
REFRESH it_pdfdata.
it_pdfdata[] = it_pdfout[].
LOOP AT it_pdfout.
MOVE it_pdfout-tline TO it_pdfdata-line.
APPEND it_pdfdata.
CLEAR it_pdfdata.
ENDLOOP.
DESCRIBE TABLE it_pdfdata LINES pdf_itab_size.
Text in the mail.
it_mailtxt-line = 'ORDER ACKNOWLEDGEMENT'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail-Thomas, Line Number--1'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail-Thomas, Line Number--2' &
' This is a test mail-Thomas, Line Number--2'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail-Thomas, Line Number--3' &
' This is a test mail-Thomas, Line Number--3' &
' This is a test mail-Thomas, Line Number--3'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail, Line Number--4' &
' This is a test mail, Line Number--4' &
' This is a test mail, Line Number--4' &
' This is a test mail, Line Number--4'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail, Line Number--5' &
' This is a test mail, Line Number--5' &
' This is a test mail, Line Number--5' &
' This is a test mail, Line Number--5' &
' This is a test mail, Line Number--5'.
APPEND it_mailtxt.
DESCRIBE TABLE it_mailtxt LINES mailtxt_size.
Document Number for Output
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = vbdka-vbeln
IMPORTING
output = l_vbeln.
Attributes of new doc
CONCATENATE 'Order' space 'Acknowledgement' space l_vbeln
INTO it_doc_att-obj_descr SEPARATED BY space.
it_doc_att-sensitivty = 'F'.
it_doc_att-doc_size = mailtxt_size * 255.
Create Pack to text in mail body.
CLEAR it_mailpack-transf_bin.
it_mailpack-head_start = 1.
it_mailpack-head_num = 0.
it_mailpack-body_start = 1.
it_mailpack-body_num = mailtxt_size.
it_mailpack-doc_type = 'RAW'.
APPEND it_mailpack.
Create Pack to PDF Attach.
it_mailpack-transf_bin = 'X'.
it_mailpack-head_start = 1.
it_mailpack-head_num = 1.
it_mailpack-body_start = 1.
it_mailpack-body_num = pdf_itab_size.
it_mailpack-doc_type = 'PDF'.
CONCATENATE l_vbeln '.pdf' INTO it_mailpack-obj_name.
CONCATENATE 'Order Ack' space l_vbeln INTO it_mailpack-obj_descr.
it_mailpack-doc_size = pdf_itab_size * 255.
APPEND it_mailpack.
*Get email addresses based on Sales document.
SELECT vbeln adrnr INTO TABLE i_vbeln
FROM vbpa
WHERE vbeln = vbdka-vbeln AND
parvw = nast-parvw.
IF NOT i_vbeln[] IS INITIAL.
SELECT addrnumber smtp_addr INTO TABLE i_addrs
FROM adr6 FOR ALL ENTRIES IN i_vbeln
WHERE addrnumber = i_vbeln-adrnr AND
smtp_addr NE space.
ENDIF.
IF i_addrs[] IS NOT INITIAL.
LOOP AT i_addrs.
it_reclist-receiver = i_addrs-smtp_addr.
it_reclist-express = 'X'.
it_reclist-rec_type = 'U'.
it_reclist-notif_del = 'X'. " request delivery notification
it_reclist-notif_ndel = 'X'. " request not delivered notification
APPEND it_reclist.
CLEAR: i_addrs.
ENDLOOP.
ENDIF.
Call FM to send email
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = it_doc_att
put_in_outbox = 'X'
TABLES
packing_list = it_mailpack
object_header = it_mailhead
contents_txt = it_mailtxt
contents_hex = it_pdfdata
receivers = it_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorizationfiltered= 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. " MAIL_OBJECT
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-Mohan.
*Reward if helpful** -
Problem while sending the mail from sap
Hi experts,
I am facing some problem while sending mail from sap to external mail.
this is th code i am using but it is not working. plz check and tell me.
REPORT ZMAIL_DEMO.
data: maildata type sodocchgi1.
data: mailtxt type table of solisti1 with header line.
data: mailrec type table of somlrec90 with header line.
start-of-selection.
break-point.
clear: maildata, mailtxt, mailrec.
refresh: mailtxt, mailrec.
maildata-obj_name = 'TEST'.
maildata-obj_descr = 'Test'.
maildata-obj_langu = sy-langu.
mailtxt-line = 'This is a test'.
append mailtxt.
mailrec-receiver = 'SOME MAIL ID'.
mailrec-rec_type = 'U'.
append mailrec.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = maildata
document_type = 'RAW'
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. "( did not receive any mail) *
write : 'mail sent'.
endif.Hi,
Please check with the following code.
TABLES: KNA1.
data for send function
DATA DOC_DATA LIKE SODOCCHGI1.
DATA OBJECT_ID LIKE SOODK.
DATA OBJCONT LIKE SOLI OCCURS 10 WITH HEADER LINE.
DATA RECEIVER LIKE SOMLRECI1 OCCURS 1 WITH HEADER LINE.
SELECT * FROM KNA1 WHERE ANRED LIKE 'C%'.
WRITE:/ KNA1-KUNNR, KNA1-ANRED.
send data internal table
CONCATENATE KNA1-KUNNR KNA1-ANRED
INTO OBJCONT-LINE SEPARATED BY SPACE.
APPEND OBJCONT.
ENDSELECT.
insert receiver (sap name)
REFRESH RECEIVER.
CLEAR RECEIVER.
MOVE: 'any_email'_ TO RECEIVER-RECEIVER, " SY-UNAME
'X' TO RECEIVER-EXPRESS,
'U' TO RECEIVER-REC_TYPE.
APPEND RECEIVER.
insert mail description
WRITE 'Sending a mail through abap'
TO DOC_DATA-OBJ_DESCR.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_DATA
IMPORTING
NEW_OBJECT_ID = OBJECT_ID
TABLES
OBJECT_CONTENT = OBJCONT
RECEIVERS = RECEIVER
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.
Maybe you are looking for
-
LaserJet Pro 300 color MFP automatic document feeder - page stops feeding with 1" to go
Scan page won't finish feeding when using the automatic document feeder. Leaves approximately the last 1 to 2 inches of paper in the scanner. The Scan ADF Paper Jam error message pops up. Seems like the page hangs/gets stuck once the page passes t
-
I am developing an application on a PC, and while I was away one day, someone needed to move the PC. When they did that, I was in the midst of development, so some VIs were not saved. After I got the PC back, I noticed that I lost a lot of work on
-
Sending only a specific set of employees through idocs
Hi, I' am using idocs to send data between two SAP systems. http://help.sap.com/saphelp_erp2005/helpdata/en/6c/b9b77f806311d2b45a006094b9c9b4/frameset.htm The steps I followed can found from the above link. In this scenario, I want to send the detail
-
Project File Help! (Should be easy)
Im not well aware with Illustrator but I believe the community here should be able to help. I need help breaking off the part circled in green to match the original file. I used the ellipse tool along with some pathfinders to get to where Im at,now I
-
Is there any way to recover a corrupt Captivate 2 file? Could renaming the file via file manager have caused the corruption? Luckily the file was a test demo so it is not a huge loss, but I would like to avoid this in the future if possible. Thanks!