Send email to a non-sap email address

Hi,
I have to send a notification when one of the condition occurs. I have to send email based on the role of the users, i.e first find the email addresses of the users based on the role and then send email to their non-sap email addresses(like the company outlook email). Can someone tell me the detailed steps need to be followed here..
Thanks in advance,
Henry.

hi David,
    WELCOME TO SDN
       Use FM <b>SO_NEW_DOCUMENT_SEND_API1.</b>
SAP Send mail via ABAP functions SO_NEW_DOCUMENT_SEND_API1
This abap mail sending program demonstrate how you can send a mail to the user SAP Office mailbox.
REPORT ZSEND .
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: SY-UNAME TO RECEIVER-RECEIVER,
        'X'      TO RECEIVER-EXPRESS,
        'B'      TO RECEIVER-REC_TYPE.
  APPEND RECEIVER.
insert mail description
  WRITE 'Sending a mail through abap'
                 TO DOC_DATA-OBJ_DESCR.
CALL FUNCTION <b>'SO_NEW_DOCUMENT_SEND_API1'</b>
     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.
http://sapr3.tripod.com/abap011.htm
Regards,
Santosh
Note: Reward Points if helpful

Similar Messages

  • How to send IDocs from a non-SAP system to a SAP system

    Hi everyone i am new to SAP R/3 System.
    Currently i am required to send IDocs from a non-SAP system to a SAP R/3 System.
    There is a guide on Cost-Effective and Quick Communication between SAP and 3rd Party Systems using IDOC HTTP XML Interface. But its from a SAP system to a non-SAP system and i am able to do that.
    Is there any step by step guide where they teaches you how to send IDocs from a non-SAP system to SAP system via similar method?
    Thank You!

    Hi,
    I hope this link may help you......
    http://publib.boulder.ibm.com/infocenter/iisinfsv/v8r1/index.jsp?topic=/com.ibm.swg.im.iis.ds.entpak.sapr3.use.doc/topics/c_pack_r3_Introduction.html

  • IDOC's sending to XI from NON-SAP system

    I need to send one IDOC from a NON-SAP sytem to XI. In my scenario I've configured a receiver IDOC adapter with the suitables RFC destination and Port for the SAP R/3 receiver system. We achieve this sending by using the following URL: "http://:/sap/xi/engine?type=entry" but we don´t get any message in XI. We don´t know if we are doing it properly.
    Could you help me?
    Thank you in advance.
    Juan Pablo.

    Hi Juan,
    Did you try the HTTP client tool that Michal gaves you?
    Attention: the URL address that this tool or any other client who wants send messages via XI with http is: http://<our-server>:<http-port>/sap/xi/engine?type=entry and not -> http://<our-server>:<our-port>/sap/xi
    This URL must be set on the pipeline of XI Business System (role-> Integration Server) as well on integration server configuration.
    If you have http port and adapter_plain service (sifc) running it should be working!!!
    Open your browser and put the Integration Engine URL http://<our-server>:<http-port>/sap/xi/engine?type=entry
    If it’s running you should be see this soap message:
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP:Header />
    - <SOAP:Body>
    - <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <faultcode>SOAP:Client</faultcode>
      <faultstring>Empty HTTP request received</faultstring>
      <faultactor>http://sap.com/xi/XI/Message/30</faultactor>
    - <detail>
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="MESSAGE">EMPTY_HTTP_REQUEST_RECEIVED</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Empty HTTP query received. No message processing possible</SAP:Stack>
      </SAP:Error>
      </detail>
      </SOAP:Fault>
      </SOAP:Body>
      </SOAP:Envelope>[/code]
    Cheers,
    Ricardo.
    Message was edited by: Ricardo  Quintino
    Message was edited by: Ricardo  Quintino

  • Sending Order acknowledgment to Non SAP system

    Hello All,
    Need expert advice in one of the scenario i am facing.
    The scenario is
    Vendor sends the scheduling agreement order confirmation to SAP system through inbound IDOC with message type ORDRSP......IDOC is posted in SAP.Now there is another third party system which plans the material planning... now this order confirmation needs to be send to that non SAP third party system which has JDBC
    client needs the order confirmation data (SA no.,,co code...Item number....committed qty...delivery date...material no... plant) in flat file format only
    please suggest the possible ways to overcome.

    Hi NR,
    What I understand from above is -
    1. Inbound IDoc getting posted in SAP
    2. Confirmation needs to be send to Non-SAP system which uses JDBC/Database
    3. They want only Flat Files.
    To answer above questions/scenarios - you have 2 choices
    1. Proxy to JDBC Approach  Directly post confirmation data to third party database.
    How to do this -
         a. Open ports with third party. - Check Connectivity stuff.
         b. get databases details and configure receiver JDBC Adapter in your side
    2. Proxy to SecureFTP - By this approach you will place a CSV file to securedFTP decided by you and your third party from where third party job will pick that file and post it to their database.
    Regards
    Aashish Sinha

  • Send data to other non SAP system

    Hye techies,
       I have a requirement, on click of submit in my bsp application, the data updated by the button event should also be updated in other non SAP system.
      Please let me know what is required at my end, also please let me know what should the other communicating non SAP should have to consume the data.
    Regards
    Imran.

    Hello,
    you want to consume the data send by sap via .NET?
    I think in this case it is better to send the data via RFC. You have to implement an interface in your .NET application which will consume the data  sent by sap. On the SAP side you can define a function module as interface. The .Net and the SAP FM parameters must be the same. Now you define an RFC in SAP via SM59,for exception chosse "start on explicit host" and then entery the .Net/SQL server adress and your programm. in your abap code you call your fm...
    CALL FUNCTION XYZ DESTIONATION 'XYZ'
    . In your .Net progamm consume the data send by sap and write it in the db. I hope this explanation is ok for you. We solved problems like yours, with this way.
    A direct change of your SQL Data via BSP, in my opinion, is NOT possible

  • ALE: Sending IDOC inbound from non-SAP system

    Hi
    How does one need to setup the SAP system to accept data from an external non-SAP system. Should one setup some sort of conection to trigger an import to SAP?

    Hi,
    On the SAP side you need to create a partner profile in T.code: WE20 of type LS. And add the message type, idoc type in the inbound parameters section of it.
    And you must also specify the partner number you created here, on the IDoc control record.
    This link from SAP help, will provide some addition data.
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6524507d11d18ee90000e8366fc2/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6524507d11d18ee90000e8366fc2/frameset.htm</a>
    Hope this helps.
    Regards,
    Sumant.

  • Send receipt notification to non-primary email address

    I want to make a purchase on the iTunes store for my wife without her knowing about it. ProbleIm is the primary email address is our shared email so she will see the receipt of the purchase. Is there a way I can just have the receipt sent to the alternate email address that I set up in my Apple ID Account Settings? Then the receipt will be sent to my personal email address.
    Thanks

    Yes - gifts are sent to an email address not to the iTunes account, the email has a redemption code in it which the recipient then redeems. The recipient needs to be in the same country as yourself, he/she won't be able to redeem it if their account is in a different country's store.
    Redeeming a gift : Redeeming iTunes Gift Cards and content codes - Apple Support

  • Auto forward emails sent to non-exist emails address to specific email

    Hi!
    i have exchange 2010 i need to make an auto forward or redirect when email sent to my organization with a wrong email address
    for example
    [email protected] send an email to [email protected] and user X doesn't exist on my domain , i need this message to be redirect automatic to alternate email [email protected]
    thanks
    Mohamed Azoz

    Hi
    Maybe you can look at the edge server for doing this if you have one:
    http://www.norman.com/uk/business/support/support_articles/not_valid_email_addresses_validated_by_edge_transport_role_in_exchange_2007_2010
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Redirecting BT email to a non-BT email address?

    Hi there,
    I have broadband with BT but I use a domain name and email service provided by another company, and at the moment use webmail, not POP3. I don't normally need to use my BT email address, but I know I should check it from time to time in case of service announcements from BT. Is there any way I can forward/redirect emails addressed to my BT email address to another email address that I check regularly?
    Many thanks for your time.

    have you tried going to your bt mail account,then options,more options then forwarding?
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Post Moved Cannot Send emails on my non BT emai...

    Post Moved http://community.bt.com/t5/Other-BB-Queries/Cannot-Send-emails-on-my-non-BT-email-account-HELP-Now-E...
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    you need to authorise your Tiscali email account.
    login to www.btyahoo.com with your BT email address and password. go into the Mail section. go into Options. then if I remember rightly, it says pop/accounts or similar, and you need to add your Tiscali email in there.
    you will then receive an email on your Tiscali account to authorise it.
    found the link to the help page for you http://bt.custhelp.com/app/answers/detail/a_id/10903/kw/reset%20BT%20Yahoo%20Password/c/346,412,416/...

  • Sending IDoc from Non-SAP system to XI

    Dear all,
       We have a non sap system which needs to send IDoc to XI, Please could you answer my following four questions
    1. What should be the values for the following fields in the IDoc control record
    e.g. RCVPRN = <logical system name of XI>
    SNDPOR
    SNDPRT
    SNDPRN
    RCVPRT
    RCVPOR
    2. How does XI decide which port(idx1) to be used when it receives an idoc
    3. The third party system is a non sap one, so it does not have a client no, so I would assume, I need to use another SAP system as a meta data provider, in that case, how would i tell XI to use that port when it receives IDocs from the non-SAP system ?
    4. In what step does XI use the logical system name of the Business system(in SLD)?
    Thanks in advance
    cheers
    danus
    Edited by: Chidambaram Danus on Jan 25, 2008 2:21 PM

    Hi
    there is bit wrong interpretation of the statement
    If the sender system is a non-SAP system, the sender service is identified from the logical system name of the sender port.
    If the sender system is nonSAP it indicates taht the data is coming to XI from non sap systems such as file, database, webservice etc. to XI and from XI it will pass to sap as IDOC inbound.
    For this you need to create the logical system in SAP (receiver) and pass on that value to IDOC header.
    You could maintain it in the Business service used for Sender system (nonSAP). here it will be available in the tabs ---> History.
    note : IDOC is the concept of data container in SAP, you will not be able to have the IDOCs in non sap systems...
    Thanks
    Swarup
    Edited by: Swarup Sawant on Jan 25, 2008 2:54 PM

  • HOW TO SEND THE REPORTS AND  THROUGH XI TO NON -SAP SYSTEM

    Hi Experts,
                 I want to know how to send the reports and  smartform through xi to another system. All the post blogs are   just explaning only about the FILE-TO-FILE, FILE-TO-IDOCS scenarios only.

    Hi,
    XI is the middleware that to be used to transfer the data between various systems and even you could design the Business Processes with it.
    In R/3 the smartforms, are generally converted to PDF and then  have to send it across to Non SAP systems. Similarly you can convert the smartforms to pdf format and keep it on application server. XI will pick up that pdf and will send it to Non SAP system either as mail or as an attachments.
    ABAP reports are normally used to re-present the data. If you need to transfer this data across the Non SAP systems then you have the IDOCs to be generated, RFC or ABAP Proxy to integrate this data with Non SAP system.
    XI is not restricted only upto file to file or file to IDOC scenarios. It have enormous capabilities to involve various Business Processes as well integrate various SAP or Non SAP systems.
    If need anymore  specific details, please let us know.
    Thanks
    Swarup

  • How to send a IDOC-XML to a non-sap system

    Hai Frnds,
                      Can you give me a hint , if i would like to Convert a IDOC into xml and need to send it to a Non-sap system.And can i use change pointers here...
    i have have similar one but it stores in the Front End system only....
    waiting for ur replies...

    Hi Mr. Jeevan,
    And can i use change pointers here..>>>.
    i think it wont be useful.. as change pointer only replicates master datas in the target system.
    Actually u can use CHANGE POINTER in such cases where When ever changes occur in  the field values then idoc triggers automatically and send changed information via ALE to other system.
    for example:
    u r setting up ALE for material master.
    suppose u change material description in one side then change pointers triggers idoc and generate idoc with changed description and send to other end.
    main use of change pointers is to track changes and send to other end if there is any changes.
    i will suiggest u to follow this....
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
    also see
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    regards
    biplab

  • Stop generation of Inbound IDOC from Non - SAP

    Hi Experts,
    I have a requirement to update data base PA0105 for Email. The Email is coming for external system (Non SAP), which contains 1 employee in 1 IDoc. If SAP has valid email and same has been passed for external system to SAP via Inbound IDoc, it should not update PA0105. Hence, I am deleting the IDOC segments in Exit "ZXHALU07", before RBDAPP01 is getting called. As per the requirement its working fine.
    Question: Is there any way to stop generating the IDOC. If the email ID were same, then IDoc should not generate in SAP.  Please provide your valuable reply.  Thanks.
    Regards,
    Ganesh R K.

    Hi All,
    Scenario:
    Need to Create Inbound IDOC in SAP system and receive it from Non Sap system.
    Problem:
    IDOC is successfully dispatched from Non Sap system(Sender Side) but, it is not received to SAP system(Receiver Side).
    At receiver side(in SAP system) all configuration settings are fine (RFC destination is tested with no errors, partner profile are given with the inbound parameters, function module is successfully tested with no errors, distribution model is created etc).
    In receiving system(SAP) no IDOCs are generated in We02 after sending the IDOC from Non Sap side.
    Can any one please suggest me the reason for the above mentioned problem?
    Thank you,
    Swetha.C

  • IDOC-- XI-- HTTP (non-sap) 403 Forbidden

    Hi guys,
    When I execute my scenario IDOC>XI>HTTP (non-sap) URL address Asynchr. The receiver receives the message correctly
    but in my XI monitoring the message stands in error mode.
    At first sight this is not a big problem because the receiver receives the message correctly
    but it would be nice if the message would stand in processed succesfully.
    The error:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
      <SAP:P1>403</SAP:P1>
      <SAP:P2>Forbidden</SAP:P2>
      <SAP:P3>Service Error</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Http server code 403 reason Forbidden explanation Service Error</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please don't redirect me to an old topic because I have  read all topics and none of them could help me. :s
    TIA
    Message was edited by: Peter Delve

    Hi,
    this is the describtion of W3ORG:
    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. If the server does not wish to make this information available to the client, the status code 404 (Not Found) can be used instead.
    May contact web admin.
    Regards
    Matt

Maybe you are looking for

  • Itunes wont open nothing pops up

    So i Instaled Itunes on my New Dell computer but itunes wont open and nothing pops up saying anything. i have uninstalled it and then re-installed it and it still will not open

  • JMS Bridge is not starting up in Weblogic10

    Hi, I am new to Weblogic10 and I configured the JMS server and JMS bridge to send and receive the messages from MQ queues. When starting the weblogic server I am continuously getting error like, <21-Mar-2009 07:24:08 o'clock GMT> <Error> <MessagingBr

  • How can I use the global varialbes in the Web Form Server?

    When I migrate the Form5 to Form6i and deploy the form into WEB, I encounter a problem. In Form5, I use a form to call all the functions forms and process the login. So, the functions forms can get the login user's information by :Global variable. No

  • T20 connection

    Hi, Does anybody know which is the best quality external speaker connection to use from a tv. Is it 3.5 mm headphone socket, or RCA phono connection. Thanks.

  • Extreme vs Express Card/34

    Hi. Driving around town to test out Airport Extreme on my MBP, I found several hotspots, including T-Mobile at a Starbucks. I didn't connect as I only wanted to see what's out there. My question is what purpose does the expansion slot for an Express