Problem in sending mail from VF03
Hi
I am just getting a problem in sending mail to the recipient from script.
please find the below code and let me know why there is no data in otf_tab table.
DATA: otf_tab TYPE TABLE OF itcoo WITH HEADER LINE.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = i_itcpp
TABLES
otfdata = otf_tab
EXCEPTIONS
OTHERS = 1.
IF otf_tab[] IS NOT INITIAL.
TRY.
CREATE OBJECT mailer
EXPORTING
i_nast = nast.
mailer->get_mail_address( EXPORTING i_adrnr = vbdkr-adrnr ).
mailer->get_mail_address( EXPORTING i_adrnr = vbdkr-adrnr
i_vkorg = vbdkr-vkorg
i_vtweg = vbdkr-vtweg ).
zcl_sd_mail_output=>convert_otf_to_pdf( IMPORTING pdf_xstring =
gv_pdf_string
CHANGING otf_table =
otf_tab[] ).
mailer->build_and_send_email( EXPORTING pdf_xstring =
gv_pdf_string ).
CATCH zcx_sd_mail_no_mailid INTO error.
error_txt = error->get_text( ).
zcl_sd_mail_output=>protocol_update( msg_id = 'VN'
msg_nr = '902'
msg_ty = 'E'
msg_v1 = error_txt ).
retcode = 1.
CLEAR error_txt.
ENDTRY.
ENDIF.
Since my OTf_tab is initial i am unable to send mails.
Hi,
If the OTF Data table is blank then you might have missed the parameter "GETOTFDATA" at the time of calling "OPEN_FORM". Please pass field TDGETOTF = "X" in paramter "OPTIONS" when you are calling "OPEN_FORM".
You can also visit this link for more information.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556?QuickLink=index&overridelayout=true
Cheers,
Similar Messages
-
Problem while sending mail from SAP
Hi ABAP gurus,
I tried to send mail from SAP. For this we configured SMTP Services using the transaction SCOT and all are Completed.
When I send a mail using SAPOffice it is Executing successfully and main is delivered to me.
When I tried in the program using the function module 'SO_NEW_DOCUMENT_SEND_API1' mail is not delivered to me but it is placed in SAPoffice outbox.The status of the mail says "SEND PROCESS STILL RUNNING". Even when i execute SAPconnect manually mail is not transmitted.
This is the transaction history of the mail.
Trans. history
18.02.2006 13:44:31 Document sent
13:44:31 Wait for communications service
After This stage Delivery attempt is not taking place.
This is the Code
****Document DATA
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'.
***Receiver
EMAIL_SEND-RECEIVER = '[email protected]'.
EMAIL_SEND-REC_TYPE = 'U'.
EMAIL_SEND-EXPRESS = 'X'.
APPEND EMAIL_SEND.
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.
Please Help me to solve this Problem.
Regards,
Viswanath Babu.P.DHi viswanath,
1. in scot, in smtp node,
2. press the internet button
3. In ADDRESS AREA,
type
*yahoo.com
*rediffmail.com
etc,etc.
4. Only when such domains are entered,
will sap send mail.
5. It will not send any mail to other domains.
6. Or simply enter *
regards,
amit m. -
Problem with sending mail from SAP (ECC6.0)
Hi guys!!
I am facing problem in sending email from SAP to outlook.
I've checked SICF and SCOT configuration and they are same as my other server thorugh which i am able to send the mail.
I use SBWP to send the mail. after i send i do not get any error message, and when i check it in outbox, there is a yellow triangle in the status which means "send process still running" . so the sending mail is taking hours. i've set the frequesncy of my B/G job RSCONN01 to 10 minutes. i checked and this job is running successfully every 10 minutes.
Please suggest what could be the possible reason and what can i do to solve this issue.
Thanks,
Sheetal SharmaHi,
First of all ask your IT (Exhchange) guy to check port number 25 is open or not for communincation, if not open ask him to open.
you can check this yourself by doing TELNET
steps to do telnet :
logon to your application server,
go to command prompt
and type TELNET <IP address of email server> 25
If it prompts some message like this
"exhange.domain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.18 30 ready at Mon, 16 Jun 2008 16:25:41 +0300. "
then it means your port 25 is open for communication.
Regards,
Abuzar. -
Problem in sending mail from database with attachment
Hi All,
I amd using forms10g,oracle10g
I am facing a error while running a procedure to send mail from db
procedure is:
declare
ErrorMessage VARCHAR2(4000);
ErrorStatus NUMBER;
-- enable SQL*PLUS output;
--SET SERVEROUTPUT ON
-- redirect java output into SQL*PLUS buffer;
--exec dbms_java.set_output(5000);
BEGIN
ErrorStatus := SendMailJPkg.SendMail(
SMTPServerName => '192.168.4.2',
Sender => '[email protected]',
Recipient => '[email protected]',
CcRecipient => '',
BccRecipient => '',
Subject => 'hth106: Test JavaMail',
Body => 'This is the body: Hello, this is a test that spans 2 lines',
AuthReqdYNNum => 1,
UserID => 'jagan',
Password => 'songbirds',
ErrorMessage => ErrorMessage,
Attachments => SendMailJPkg.ATTACHMENTS_LIST('C:\oramail\MHTHSO_GEN45.html')
END;
while running this procedure i am receiving following error
"ORA-29532: Java call terminated by uncaught Java exception:
java.lang.IncompatibleClassChangeError"
but the same procedure sending mail from all other user in the same database
I am very myuch confused.i have given the all rights
below mentioned rights are given .it is working in all other user on the same db except this user "hth106". And all the othere things are compared between working user and this hth106 user every things are same.But i am receiving error when i sending mail with attachment if the mail is sending without attachement it is working fine
below rights are given to this user
1.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read');
2.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','write');
3.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','connect');
4.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','resolve');
5.exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','read');
exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','write');
6.call dbms_java.grant_permission('HTH106','java.net.SocketPermission','HTHDS01','resolve');
7.call dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read,write');
7.call dbms_java.grant_permission('HTH106', 'java.io.FilePermission','C:\oramail\*','read');
please advise me to proceed further
Thanks in advance
Thanks ,
AntonyWith respects to the following:
The bit you'll have most diffulty with is the attachment, because you can't be sure that
the directory path specified is one that the database can read from. You can probably
resolve this by using some java to move the file to a directory which utl_file can see.Another alternative is to specify a location on then database server where all file attachments MUST be copied to and the define and Oracle DIRECTORY (CREATE OR REPLACE DIRECTORY [dir_name] AS '/dir/name/on/files/system';) that references this location. When you attach a file to an email, then you only have to refer to the DIRECTORY for the file location.
Just my 2 cents on the topic. :-)
Craig... -
Problem in sending mails from SAP
Hi Gurus,
Let me explain the problem what I am facing.
We have configured for sending automatic mails from SAP to lotus when a PO is created. Also mail details for both sender and recipient are maintained.
But when I create/change a PO, I am getting the error message 'route is not found'
(Error code XS826).
Please throw some light on this.
-B S BWhen you did the SCOT maintenance..Add the address areas.
To do this..double click on the node for the smtp...in the supported address types group select the internet check box and click the set button...In the popup screen there is a table control for address areas..make the required entries there....
Pls check that you have also set your default domain....It is in the menu option
Settings --> Default Domain...
And also Check the mail status in SAP in transaction SOST . If its not green then it is waiting to be send .
You can start send process by running program RSCONN01 with MODE = 'INT' or trigger it from transaction SCOT .
On production environment the program RSCONN01 is schedued as job to send mails in que at ceratin intervals.
Rgds,
Naren -
Hi All,
I added the mailserver part in the rwbuilder.conf file.This is how it looks
<pluginParam name="mailServer">smtp.xxx.com</pluginParam>
The smtp server of our company is working fine.
Now when i am sending mail frm report builder i am getting the error.
Pls tell me .....
Do i have to configure any other file?
Should the smtp server be running in my local machine?WHAT IS THE SOLUTION ...FOR THIS PROBLEM?
Please someone give me some guidance..
regards,
ashokHi,
Pls give some idea ......
your reply will be greatly appreciated.
regards,
ashok -
TS3899 Problem with sending mail from iPhone
I have three mail accounts (Exchange, POP, IMAP) on my iPhone 4 with iOS 7.0.4. All works fine for receiving mails, but sending does not work from any of them. I write mail, tap send and it seems to go (with the sound) but never reach the reciever.
I have the exact same account setup on the family iPad and there sending mails works fine.
Any suggestions /solutions ?Sorry to intrude, but figured I'd ask. I'm having the same issue (emails I reply to and send via my phone disappear entirely -- no evidence on my comp either -- and I'm never sure if the intended recipient ever received them), but in trying to fix this issue, I discovered I'm actually missing the "Sent Mailbox" option entirely. It's not under Settings > Mail, Contacts, Calendars > Gmail > Account > Advanced > Mailbox Behaviors" -- only Drafts, Deleted and Archive are. Any idea where it is? How to get it back (assumign it was ever there to begin with)?
I have an iPhone 4S w/ iOS 7. -
Problem in sending mails from SAP-line breaks in lotus
Hi Gurus,
I have a very peculiar issue with external mail send from SAP to Lotus Notes.
Issue: When a PO is created in SAP a automatic mail will be sent to vendor to his
Lotus Notes from SAP. Here we are a using a subroutine where the FM
'SO_NEW_DOCUMENT_SEND_API1' and the content of the mail is stored in text symbols
and then populated to a internal table which will be passed to the above said FM.
So this is very simple case.
My problem is now, even though it looks fine in the SOST, when mail is seen in lotus,
lines of the mail contents are breaking around 79th or 80th character, eventhough it is more than
that while appending to the internal table. I don't understand this at all, why it is happening?
Ex: in SOST if we see a line looks like this.
aaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbnnnnnnnnnn
but in lotus it breaks and looks like below:
aaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbb
bbbbbbbbbbbnnnnnnnnnn
Any light can be thrown on this!!!
Reward is guaranteed for helpful answers!!!!
-B S BHow do you connect SAP to the lotus notes email database? In some installations I have seen this done using Unix Sendmail functionality and this may be causing this result?
Andrew -
Hi...Problem with sending mail from SAP
Hi all,
My problem is:
I have created a distribution list which contains Internet userids & SAP Userids.
In the code I have written the follwing code for receiver list
reclist-receiver = zwfi_yefap_paypr-list1."it contains distribution list name
reclist-rec_type = 'C'.
reclist-express = 'X'.
APPEND reclist.
I have passed this to function module SO_NEW_DOCUMENT_ATT_SEND_API1 receiver parameter.
when I run the program SAP user id's are getting mails but not internet userrids.
What couldbe the issue .
Please let me know what could be the reason.
Thanks in Advance.
RajaHello,
U need to submit the report
Start the send process
SUBMIT rsconn01
WITH mode = 'INT'
WITH output = ' '
AND RETURN.
If useful reward.
Vasanth -
Why when I send mail from Mac to PC. it's always run to junk mailbox
Hi all Mac gurus,
I'm facing problem with sending mail from my mac to my colleagues who's using outlook in PC. I don't why my e-mail just go to their junk mailbox.
Is there any way to avoid this problem?
Many thanks for all answers.The determination of whether a message is junk or not is a function of the receiving email program or their ISP. There's little you can do. The recipients will need to configure their junk mail detection to allow your email and not classify it as junk.
-
HT1393 Why my iPhone not send mails from my company account
I have problem to send mail from my company mail to others. On my iphone
Then talk to our company IT department.
-
I have a Mac mini operating on Mac OS X(10.6.8) Snow Leopard. In the last couple of weeks I have been having intermittent problems sending mail from Mac MAIL, especially if I hit the reply button. It whirls around for ever and then tells me to 'Try Later' or 'Try Again'. When I shut down my computer and open up mail again, I hear the mail whizzing off. I have just tried it now and it went in the time that it has taken me to compose this email. But sometimes the mail doesn't go at all. Could it me because I have too many messages in my inbox and sent boxes (around 1000 in each)? I read somewhere that you should delete Mail in library/pref/com.apple.mail.plst and reinstal it. But I'm frightened to do this in case I can't re-instal it as I don't know how to.
I have a Mac mini operating on Mac OS X(10.6.8) Snow Leopard. In the last couple of weeks I have been having intermittent problems sending mail from Mac MAIL, especially if I hit the reply button. It whirls around for ever and then tells me to 'Try Later' or 'Try Again'. When I shut down my computer and open up mail again, I hear the mail whizzing off. I have just tried it now and it went in the time that it has taken me to compose this email. But sometimes the mail doesn't go at all. Could it me because I have too many messages in my inbox and sent boxes (around 1000 in each)? I read somewhere that you should delete Mail in library/pref/com.apple.mail.plst and reinstal it. But I'm frightened to do this in case I can't re-instal it as I don't know how to.
-
Problem sending mail from desktop
Hi
I am currently not able to send mail from my desktop. Works fine via web though. The message I get after a period of Mail trying to send message is the following
"The connection to the server 'smtp.mac.com' on port 25 timed out"
If I then run Connection Doctor, the further information I receive is
"Could not connect to this SMTP server. Check your network connection and and that you entered the correct information in the Account preferences".
Any help most welcome.
ThanksJ - Let me describe the issue I had before describing my work-around:
I started getting the message "Could not connect to this SMTP server" only after the upgrade from Tiger to Leopard, and then only when I was trying to send attachments larger than about 50KB. I'm in a rural area, and only have dial-up. I was able to send text messages, and could receive emails with text and attachments, regardless of size.
I believe that it is a Leopard issue in my case. Perhaps not in yours. Certainly you'll want to verify that something hasn't changed in your outgoing SMTP server settings....maybe contact your ISP to verify that they haven't made any changes.
However, if your problem does seem similar to mine, and if you're about to pull your hair out, like I was, you may wish to try what I've done to address this problem:
I have found two work-arounds...both are cumbersome, and I don't believe either is acceptable, but they do work for me. 1) Send mail from your ISP's webmail facility (or gmail, for example) or, 2) I have made a new partition on my disk on which I (re)installed Tiger. (I didn't have the "Could not connect..." issue with Tiger) I can drag attachments or other info into the Tiger partition from my Leopard disk, then restart in the Tiger disk. From Tiger, I can compose and send email from Tiger's Mail app. Good luck! Bill
(I have posted this in other replies also). -
Problem sending mail from iPhone
Hello
I have a problem sending mails from a Horde account in iPhone 5S. I guess the problem is about configuring the outgoing mail server, but I tried several things and nothing seams to work. The message I get is :
"Can't send mail. No password provided for account x
Please go to Mail account settings and enter a password"
Here goes the detailed configuration of the SMTP:
SMTP server: mail.account.pt
User name and Password: xxxxxx
SSL: OFF
Authentication: Password
Server port:587
What am I doing wrong?
Thank you for your help!
Best regards,
PedroAfter talking with my e-mail service provider I understood some more configurations, which might help you to help me:
SMTP Settings:
Authentication method: encrypted password
Connection Security: STARTTLS
How can I copy these settings into my iPhone 5S? In Authetication there's only the following options:
Password, MD5 challenge-response, HTTP MD5 Digest and NTLM...
Thank you!
Best regards,
Pedro Santos -
I can't send mail from my iPad apps, I just get the error message, 'The recipient… was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.
iOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
Setting up and troubleshooting Mail
http://www.apple.com/support/ipad/assistant/mail/
Using a POP account with multiple devices
http://support.apple.com/kb/ht3228
iOS: Adding an email account
http://support.apple.com/kb/HT4810
iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
http://support.apple.com/kb/ht1694
Server does not allow relaying email error, fix
http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
Why Does My iPad Say "Cannot Connect to Server"?
http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
How to Sync Contacts with Your iPad Using iTunes
http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
http://support.apple.com/kb/ts2621
eMail Groups - You can use a third party app that many users recommend.
MailShot - https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
Group Email - https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
iPad Mail
http://www.apple.com/support/ipad/mail/
Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts Tap on the Account, then on the red button that says Remove Account.
Cheers, Tom
Maybe you are looking for
-
Error while opening Application URL
Hi I have developed an ADF application and applies FORM based security.It works fine and asking for login and only authorized users are able to access application. All well in integrated weblogic. When I deploy this application on Managed server and
-
Requires LDAP authentication on the click of a link
i want to use anonymous login and after anonymous login if the user wants to click a secure resource link he should be prompted for a login screen and after the successful authentication against LDAP he should be directed to that resource. Can you pl
-
Itunes wont start after updating on Windows
Ive updated to the most recent version of Itunes and now the program will not start. It immediately says Itunes has stopped working without even opening the program. Ive tried every single fix listed by apple on this website. Nothing has worked. I do
-
I would just like to say that the plan pricing is out of control. There are a lot of services out their and you are to high. You reward new customers with new phones and trap the dedicated customers with the offer of FREE over priced phones and 2yr c
-
Default synchronous message response - is this possible?
I have a scenario whereby a web service triggers an IDoc. The consumer of the web service just wants to see a response message that states the message was successfully received and being processed. Under such circumstances, is there a way to send a d