How to configure SCOT/RFC destination to send email to external addresses

Hi,
I have an ABAP program which sends out an email to email addresses such as [email protected], i configured SCOT and entered our company exchange server address in the SMTP node, and it works just fine. Problem is the program also needs to send emails to internet mail id's such as [email protected] or [email protected], and here it doesnt work, the email request shows up in SOST as failed saying that the address is unrecognized, we are able to send receive emails from internet id's as well using our email client (outlook), i just have no idea how to get the same to work from my ABAP program, i guess i am missing some BASIS configuration, can anybody help please?

Please see the following example. Make sure you are setting the recipient type correctly.
report zrich_0003 .
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.
  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 = '[email protected]'.
<b>  mailrec-rec_type  = 'U'.</b>
  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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.
Regards,
Rich Heilman

Similar Messages

  • How to configure SCOT to handle multi language emails in SAP 4.6C

    Hello,
    I have an SAP 4.6C MDMP system with several languages installed such as Japanese, Korean, Chinese (Traditional and Simplified).
    I have been asked to configure SCOT so that users are able to send out emails via SBWP in their own language. Ie Chinese users sending out emails in Chinese (simplified), Taiwanese users send out mails in Chinese (traditional) and Japanese users sending out mails in Japanese.
    I have configured SCOT as per SAP note 311633, by implementing 4 different INT nodes for English, Chinese Traditional, Chinese Simplified and Japanese; implemented this note and created the report RSCONCDG.
    The problem is that I do not know how to configure the nodes so that each email goes to the correct SCOT node. ie Japanese to the Japanese node, Chinese traditional to the Chinese traditional node and so on.
    How do I configure each node for this?
    Thank you.

    Hi Siddesh, thank you for your detailed explanation and sorry for the late reply as I was very busy with some oher work till today.
    I have configured 4 sender groups in SCOT - one for each language I want to send out the email in (english, chinese simplified, chinese traditional and japanese)
    After, I configured the CDG parameters in 3 users so each is configured for the sender group for chinese simpliified, chinese traditional and japanese respectively.
    I set up the routing using RSCONCDG and tested the routing for each user via SCOT routing test and the routing worked correctly.
    Finally I did the actual test: log in as each user in the respective language in the SAP system, SBWP, copied a few lines in the same language and sent it out.
    Using the default code page: ISO-8859-1, all the chinese and language texts in the email came out gibberish.
    Using the code page: ISO-2022-JP, all the non-english text will be emailed out in japanese, whether the email was originally in chinese or japanese.
    I do not know how else to proceed from here. Any advice?

  • How to configure the RFC destination of ERP-CRM connection when moving to Q

    Hi Experts,
    I set up a ERP sales order and quotation in CRM but under configuration
    Customer Relationship Management -->Transactions -->Settings for Sales Transactions -->Define Profile for ERP Sales Transactions
    you can only configure one which is i already did in development now we are moving to Quality then next to Prod.
    Do you mean we will change this everytime we move to different environment thanks in advanced
    Br,
    Etrafanob

    Hi Etrafanob,
    Yes, in each system you will have to change the RFC destination for this as the destination set in your development system will normally be transported through to QA and production. To make the change you will need to contact your basis team and request the system client to be open for configuration changes in transaction SCC4.
    I hope this helps.
    Regards,
    David.

  • Configure Exchange to send emails to external addresses

    I am working on a demo and I installed Exchange 2010 on the development environment for using in the Demo. Now I need to send e-mails outside of the development environment - to the actual corporate email addresses and I have been given a mail relay "smtp.corp.XXX.com".
    How do I configure Exchange to use that mail relay and (1) send e-mails from the dev Exchange and (2) receive emails using the mail relay? Can someone please help?
    I do not have any knowledge/experience about Exchange. I was just  given Exchange setup files and I installed it using the default configuration. So it would be helpful if you could point to some step-by-step articles.
    Thanks a lot!
    John

    Hi John,
    We can following these steps to create a relay connector in Hub Transport server:
    1.Open Exchange Management Console.
    2.Expand Server Configuration > Hub Transport.
    3. Select the desired Hub Transport.
    4.Click on New Receive Connector item located on the Toolbox Actions.
    5. On the Introduction page, Name our connector (Relay) and select Custom, then click Next.
    6. On the Local Network settings page, remove the existing
    All Available IPv4 entry. Add a dedicated IP address for this connector, set the Port to 25 and specific the FQDN: smtp.corp.XXX.com.
    7. In Remote Network settings page, remove the default IP range and click Add button to
    type the IP address or IP address range for the remote messaging server or servers that are allowed to relay mail on this server.
    8. Click OK to add it and then Next to continue.
    9. Click New button to complete the wizard.
    10. In the work pane, select the Receive connector that you created.
    11. Under the name of the Receive connector in the action pane, click Properties to open the Properties page.
    12. Click the Permission Groups tab. Select Anonymous users.
    13. Click OK to save your changes and exit the Properties page.
    14. Run the following command to grant relay permission to anonymous connections on the new Receive connector:
    Get-ReceiveConnector "Relay" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"
    Here is an article about it:
    http://technet.microsoft.com/en-us/library/bb232021(v=exchg.141).aspx
    Regards,
    Winnie Liang
    TechNet Community Support

  • How to create a RFC destination for extracting data to HANA

    Hello All,
    Could someone help me in providing a document or note on how to create a RFC destination for extracting data from SAP data source to HANA using SAP LT replication server ?
    I am able to create a data base connection while transforming data from non SAP data source,but wasnt able to transform data which is from SAP abap tables .

    Hi Venkatesh,
    In SM59 t.code we create RFC destinations.
    Go thru the video link for creating RFC destinations step by step
    How to setup a trusted RFC connection between SAP systems: a step-by-step guide - YouTube

  • How to configure IPS 4240 - K9 to send log file to syslog server

    I am looking for the commands in how to configure IPS 4240-k9 to send log file to SYSLOG server. If anybody has or came across similer issue please advice.
    Thanks in advanced.

    Ali -
    I am sorry to tell you, but the Cisco IPS Sensors do not send Syslog messages. Your only options for sending signature event information are:
    SDEE (an TLS Encrypted XML formatted message) the sensor is the SDEE Host and your event receiver (MARS, IME, Intelitactics, etc) is the client.
    SNMP Traps - You need to set the "Action" on each signature you want the sensor to send a trap.
    - Bob

  • How to configure canon ir 2250 to send scans to emails via exchange server 2010

    Hello
    I have one question:
    How to configure canon ir 2250 to send scans to emails via exchange server 2010?

    Hi,
    Based on my research, the member limit of a distribution list depends on the scalability and performance of your environment:
    http://blogs.technet.com/b/exchange/archive/2009/02/19/3407003.aspx
    Thanks,
    Angela Shi
    TechNet Community Support

  • How do I stop my computer from sending emails to everyone in my address book

    How do I stop my computer from sending emails to everyone in my address book? This is happening when I am not on my computer.

    I've been using a local isp and have recently gotten my mac email up and running. I think you are correct about the limitation being from the local isp as I was able to right click and send to all 67 via the Bcc. Good info, thanks.
    I promote the use of Bcc any chance I get. Seems so many out there just don't understand the forward/reply issue where names are scanned from nearly infinite lists of forwarded emails.

  • How to set attched file name while sending email through ABAP

    Hi All- tell me how to set attched file name while sending email through ABAP.
    regards...
    Abhay

    Sure,  when you are adding your entry to the packing list,  give the name in the obj_name field.
    *File 2
      mailbin = 'This is file 2'.
      append mailbin.
      data: start type i.
      data: end type i.
      start = tab_lines + 1.
      describe table mailbin lines end.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = start.
      mailpack-body_num = end.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST2'.        "<-  RIGHT HERE
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    Regards,
    RIch Heilman

  • Sending email to multiple address using Utl_Smtp

    Hi,
    I want to send email to multiple address using the Utl_Smtp feature.
    When I am sending email to one email address in the To:Field it works fine.However, when I send
    to multiple address I am getting the below error.I am using a table(Email_test) to store all email id.
    Error report:
    ORA-29279: SMTP permanent error: 501 5.1.3 Invalid address
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at line 48
    29279. 00000 - "SMTP permanent error: %s"
    *Cause:    A SMTP permanent error occurred.
    *Action:   Correct the error and retry the SMTP operation.
    I am trying two options both ways I am getting error
    Option 1:
    Selecting two email id indivually in the select query as below
    select email into v_Recipient1 from Email_test where Key_name='U1';
    select email into v_Recipient2 from Email_test where Key_name='U2';
    v_Recipient := v_Recipient1||';'||v_Recipient2;
    Option 2:
    Is there a way to use option
    select email into v_Recipient1 from Email_test where Key_name='U4';
    ===========================================================
    Create table Script
    ===========================================================
    create table Email_test (Email varchar2(100),Key_name varchar2(10));
    insert into Email_test values ('[email protected]','U1');
    insert into Email_test values ('[email protected]','U2');
    insert into Email_test values ('[email protected]','U3')
    insert into Email_test values ('[email protected];[email protected];[email protected]','U4');
    select * from Email_test
    [email protected]                         U1
    [email protected]                         U2
    [email protected]                         U3
    [email protected];[email protected];[email protected]     U4
    select * from Email_test where Key_name in ('U1','U2','U3')
    [email protected]     U1
    [email protected]     U2
    [email protected]     U3
    select * from Email_test where Key_name='U4'
    [email protected];[email protected];[email protected]
    =======================================================
    PL/SQL Block
    ===========================================================
    declare
    v_From VARCHAR2(80) := '[email protected]';
    v_cc VARCHAR2(80);
    v_Recipient VARCHAR2(80) ;
    v_Recipient1 VARCHAR2(80) ;
    v_Recipient2 VARCHAR2(80) ;
    v_Subject VARCHAR2(80);
    v_Mail_Host VARCHAR2(50);
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    begin
    --Mail Host name
    select VALUE into v_Mail_Host from Server_info where server_name = 'SMTPServer';
    select email into v_Recipient1 from Email_test where Key_name='U1';
    select email into v_Recipient2 from Email_test where Key_name='U2';
    v_Recipient := v_Recipient1||';'||v_Recipient2;
    --for CC
    select email into v_cc from Email_test where Key_name='U3';
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    utl_smtp.Rcpt(v_Mail_Conn, v_cc); -- To CC recepient
    utl_smtp.Rcpt(v_Mail_Conn, v_BCC); To BCC recepient
    utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    'Cc: ' || v_cc || crlf ||
    'Content-Type: text/html;' ||crlf ||
    --'Hello this is a test email');
    crlf || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf );
    utl_smtp.Quit(v_mail_conn);
    end;
    Any suggestion how to approach this issue.
    Thank you

    Simple Mail Transfer Protocol RFC 5321 specifications.
          RCPT TO:<forward-path> [ SP <rcpt-parameters> ] <CRLF>
       The first or only argument to this command includes a forward-path
       (normally a mailbox and domain, always surrounded by "&gt;" and "&lt;"
       brackets) identifying one recipient.In other words, you can only define a SINGLE mailbox address at a time. Multiple addresses requires multiple repeats of this command verb, once per maibox.
    Do not confuse this and the To: tag line in the Mime header that contains a comma delimited list of recipients. That tag line can contain anything - it is not parsed, not checked, and not verified as matching the actual recipient mailboxes as specified via the RCPT TO verb.

  • Sending email from different addresses under one account.

    Hello,
    So, I'm having an issue that's a little bit complicated, and in fact, I don't even know if there is a solution.  But, if anyone knows how to do this, I'd greatly appreciatte your help.
    So, here's what I'm trying to do.
    Right now, I have three different email accounts, an icloud and two gmails.  I have both of those gmails set up so that they forward to my icloud account.  So, in the mail app on my iphone, I only have my icloud account.  I've been trying to reduce clutter by doing this, and it seems to be working pretty well, save for this issue.
    The problem I am having is still being able to respond to emails sent to one of those two gmail accounts with the same email address.  I.e.-if someone emails me at my gmail account, it's then forwarded to icloud, but I still want to respond from that gmail account using the mail app on my iphone.  I'd like to do this without setting adding the two "dead" gmail accounts onto my phone, because everything is more streamlined when I'm only using icloud.
    I've been able to do this using iMail on my mac by adding the two gmail addresses to my icloud account in settings, as well as the gmail server.  So on my mac, I only have icloud set up in imail, but I can compose emails using my two gmail addresses.  I pretty much want to be able to do the same thing on my iphone.
    Does anyone know how this can, or even if, it can be set up?
    Also, if it can't be done in the native mail app to ios, do you know of any third party apps where something like this would be possible?
    Thanks!!1

    Hi 3s1k,
    Thank you for your question.
    When he replies to my email and changes the "send From" 
    to [email protected] and send the email, It will still show that it was sent from @mainDomain.com.
    Now, I think the issue is within his Exchange mailbox, his default reply email address is @MainDomain.com.
    A:You are right. By our testing. We could just send emails with primary address, but we could receive emails with primary address and second address.
    How do I get around this. The client wants to utilize sending email from both domains since he has clients in both domains.
    A: If we want to send email with specific email address, we could manually modify the primary email address to the specific domain by Exchange administrator. And the client didn’t use customized email address to send emails.
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim

  • Why I can't send emails to some address and also i...

    Hello!
    Why I can't send  email using my ovi mail account to some email address and also i can't send email using Thunderbird? So what is the problem?
    I can't send email to any address using Mozilla Thunderbird. Every time show "Login to server mail.ovi.com failed." but Thunderbird download my ovi account email without any problem. how do i fix this error. I don't know where to post this matter!

    Yahoo has messed with their stuff lately (honestly they've been messing with their servers for months)
    One thing would be if you guys wanted to use the yahoo mail app, or there have been other users posting solutions that they say work for them
    https://discussions.apple.com/message/27906475?ac_cid=tw123456#27906475
    https://discussions.apple.com/message/27894621?ac_cid=tw123456#27894621
    These have applied to people not able to get mail but changing the settings may help you and your wife. (My yahoo is still working so I haven't needed to try any of these)
    I've noticed with my Yahoo that they've changed their login protocols. For example 'stay signed in' is always clicked and the push is for people to merge multiple accounts to access their multiple yahoo from one account/sign in instead of signing out/in to access different accounts. I'm wondering if that change is what's messing with the protocols needed for iOS mail to work. But no one really knows for sure (and neither Apple or Yahoo will comment on the issue)
    About all users can do is find work arounds that work for them.
    If these don't work or if you don't want to use the yahoo mail app, you might try using safari to go to yahoo.com and access your mail that way.

  • Reply address: is it possible to use another reply address other than the pop address used in my account. I have a special work account and would like to send emails with that address as my reply address...or sent from address

    Reply address: is it possible to use another reply address other than the pop address used in my account. I have a special work account and would like to send emails with that address as my reply address...or sent from address

    i found out how to do this finally!
    1) set up google gmail account to forward your emails to (from the [email protected])
    2) go to your gmail account
    3) go to settings (cog in right hand corner)
    4) go to 'accounts and import'
    5) go to 'send mail as'
    6) click 'Add another email address you own' - add your [email protected] address
    7) google will send a verification email with code to that email address.
    8) enter code
    9) go back to gmail account  >'send mail as' and select 'make default'
    10) close mac 'mail' program and reopen it.
    as long as you have gmail account selected as the primary account in MAIL - mail will now come throught as being sent from that  [email protected] address!!

  • Send email on external email address using sap workflow

    Dear All,
    I wat to send email( on external email address) to all users on under one position in org unit using sap workflow.
    I have retrived all users under given postion using FM   'RH_OM_GET_HOLDER_OF_POSITION'.
    Please let me know how to get their email ids.
    Thanks & Regards
    Rajshree

    Hi Rajasree,
    You can get the email address by passing the PERNR of employee and read the infotype '0105' (communication) with subtype '0010'.
    DATA: lt_p0105 LIKE p0105 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'HR_READ_INFOTYPE'
       EXPORTING
    *   TCLAS                 = 'A'
        pernr                 = pernr
        infty                 = '0105'
        begda                 = sy-datum
        endda                 = sy-datum
    *   BYPASS_BUFFER         = ' '
    *   LEGACY_MODE           = ' '
    * IMPORTING
    *   SUBRC                 =
       TABLES
         infty_tab             = lt_p0105
      EXCEPTIONS
        infty_not_found       = 1
        OTHERS                = 2.
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.
    READ TABLE lt_p0105 WITH KEY subty = '0010'.
    email = lt_p0105-usrid_long.
    Regards,
    Pipit

  • Hi,  I have just set up my domain email address with google and Im trying to set up mail on my mac.  Its receiving mail but its not letting me send emails from that address.  I have tried quite a few solution but cant figure it out.  Can anyone help

    Hi,  I have just set up my domain email address with google and Im trying to set up mail on my mac.  Its receiving mail but its not letting me send emails from that address.  I have tried quite a few solution but cant figure it out.  Can anyone help

    Hi Lawrence1981,
    Thanks for visiting Apple Support Communities.
    You may want to check this article for additional troubleshooting steps:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Cheers,
    Jeremy

Maybe you are looking for

  • Can anybody help me ?

    Create a Flash swf that does the following: - connects (FCS NetConnection) to "rmtp://fcs.justwebcam/synctest/_definst_" - upon connection success waits for remote call of the method "init". The "init" method has one parameter that is type object. Th

  • Error in renaming the table from SYS user

    Hi I am in Schema by name jc and I have a table by name tab1 now i logged as sys user then I give a command rename jc.tab1 to tab2 ; getting the following error rename jc.tab1 to tab2 ERROR at line 1: ORA-01765: specifying table's owner name is not a

  • ITunes update to 11.1.4.62 has Outlook 2007 conflict

    I updated iTunes this evening and had significant problems and had to go through the complete uninstall/reinstall process as outlined in this thread. (Windows 7, 64 bit) https://discussions.apple.com/message/24627930?ac_cid=tw123456#24627930 I finall

  • Panasonic PV-DV953D connection Problems

    Ok, I've had this camera for about 3 years, I've made about 40 movies so far. Lately I'm really having a hard time getting the computer, Like I get real lucky if it recognizes. Right now I cannot so I am writing. I've been to the help and shut off ca

  • A1 - Menu, Home and Back buttons disabled???

    Hi, I restored my system to the original factory settings on my Lenovo A1, and now front buttons (menu, home and back) are disabled. Is there any way to enable/disable front buttons??? Thanks