Sending mail to an external mailid from SAP ABAP with formatting

Hi,
I am using so_object_send to send an email from the abap program the issue is i need to send the email text as formatted one that is some text in bold and higher fontsize compared to other how can i do the same is their any other function
Regards
Gopi krishna

Hi gopi,
Check this link,
http://www.sap-img.com/fu016.htm
These are the FM for sending external email :-
SO_DOCUMENT_SEND_API1 
SAPoffice: Send new document with attachments via RFC 
SO_NEW_DOCUMENT_ATT_SEND_API1
(In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)
SAPoffice: Send new document with attachments via RFC 
Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject. 
SO_NEW_DOCUMENT_SEND_API1 
SAPoffice: Send new document
Hope this helps u.
Kindly reward points to the useful answer.
Thanks&Regards,
Ruthra.R

Similar Messages

  • Req. is to send mail on Client Domain id from SAP XI- ALRTCATDEF

    HI,
    I have configured Alert Configuration on SAP PI 7.10 & it is working fine ... able to send message on ALERT Inbox on RWB.
    But.... Now my Problem is to send those alert mail on Client Email Id .
    lets say if I am working for company name "SteelCompany" ... then mail is to reach on abc @ steelcompany.com
    All I know , something need to be done on SCOT T-Code of SAP PI System.
    What exactly  needs to be done ??? . Please guide .
    Regards
    PS
    Edited by: prabhatxi on Nov 11, 2011 11:52 AM

    Hi,
    To send alert emails to the client, he should have have one communication user in PI system. And specify that user in the fixed receipent in ALRTCATDEF tcode. And do the following.
    1).Goto t-code SCOT; double-click SMTP and specify the mail-host and mail-port for the respective mail server.
    2)Make the u2018Node in useu2019 check box as checked.
    3)Click on the u2018Internet->Setu2019 button under u2018Supported address typesu2019 to specify the email-address of the recipient.
    Specify the email-address of the recipient who is going to receive the alert mails.
    (OR) Specify u2018*u2019 in case of multiple email-ids.
    -->Goto Menu->Settings->Default Domain and specify the domain id of the company.
    -->Save the settings done in SCOT.
    Regards
    Priyanka

  • Sending external email from SAP with following requirements...

    Hi All,
           I need to send external emails from SAP by meeting following requirements.
    1) With subject line more than 100 characters.
    2) No attachments, only body which has specific format (blueprint/layout) and would be amended often, hence code shouldn't be touched during amendments.
    3) Should be able to know the success/failure of mail sending at program level.

    Hi,
    The code below demonstrates how to send an email to an external email address
    *& Report  ZSENDEMAIL                                                  *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default '[email protected]' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_receivers
           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.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Connecting and Updating External Database from SAP

    Connecting and Updating External Database from SAP
    How can i connect SAP Database to External database?
    How can i update external databas from SAP withouting using BI/BW, Workflow or Net Weaver?
    If anyone know please let me inform.
    Thanks in Advance.
    Jahnavee Trivedi

    Steps
    1. Create an entry in tnsnames.ora for the remote oracle DB
    2. Test sqlplus user/pass@remote 
    3. create a synonym which points to a table at remote DB check docs.oracle.com
    4. user ABAP code execute SQL to insert data into local synonym which inturn updates the remote DB.
    I have done this in the past, it works great.
    It requries, DBA skills + ABAP programming
    -AJ

  • Call to Web Sevice in external system from SAP CRM

    Hi,
    I have to make a call to External system from SAP CRM 5.0 system. The external system will provide a sample webservice which SAP will try to initiate
    Can you please tell me:
    1. What settings/object needs to be maintained in SAP in order to make this call.
    2. how I can make a call to this Web-Service from a BADI and pass the values to web service and also capture the returning value.
    Please explain in detail
    Thanks,
    Mike

    Mike,
    You should honestly search the SDN site for consuming web services with ABAP.  There are some good examples.
    However the general procedure is easy:
    1.  Generate an ABAP proxy using the WSDL provided to you by the external program
    2.  Configure an HTTP destination for the server of the web services (needed for HTTPS calls)
    3.  Configure the logical port for the web service using lpconfig
    4.  Write the abap code to call the webservice via the proxy.  Works very similar to FM call in my opinion.
    To expose a webservice(bapi being called from outside) you need to do a little more work
    1.  Create a web services for the RFC enabled function module via SE80
    2.  Use wsadmin and wsconfig to make the service available
    3.  Publish the service out to the UDDI as needed.
    Once again this code is pretty well documented in the standard help and SDN.  Do a simple search on ABAP proxies and you will find what you need.
    Take care,
    Stephen

  • Unable supplying parameter like 'PASSWORD' in external program from SAP

    HI GURUS,
    I am unable supplying parameter like 'PASSWORD' in external program from SAP.
    Is it possible to achieve this? IF it is then how could we suplly Password information to External Program for loging in.
    Thanks
    SANKU.

    Which way you are supplying password ?
    Programtically  ? or ?
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Jul 17, 2009 3:26 PM

  • Test external webservice from any ABAP transaction or ABAP workbench

    Hi,
    Is there any option/way from ABAP workbench (or any other SAP tCode)  to test an external webservice.
    Basically i used to use tools like XMLSPY or SoapUI to check any external webserivice e.g. http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
    with this i could get confirmation that the webservice provider is indeed up and working.
    these tools allowed me to create a request soap message (request payload) and send it to the endpoint, and showed the response soap message.
    This kind of testing i would like to do from SAP ABAP workbench or any sap tCode.
    what is the easiest way to test quickly.
    thanks,
    madhu.

    Hi,
    SOAP UI is definitely the easier option but you could generate the proxy class in ABAP workbench and test that as described here: [http://www.netweavercentral.com/?p=272|http://www.netweavercentral.com/?p=272]
    Gregor

  • From SAP ABAP to SAP FICO consultant

    Hi Experts,
    Hope you all are doing good in your area.
    I want your guidance for my sap career ahead .
    I have 4 years of experience in SAP as an certified ABAP Consultant.
    With  this year of experience I have worked on technical developments of  SAP PP/MM/FICO/SD  modules.
    Now I want to move as an Functional Consultant for FICO module .
    I had started working on the same.
    But my doubt is whether I can go ahead as SAP FICO(ABAP) consultant .
    I have programming background ,PG in Computer Application.
    What are recruiters criteria for the same .
    Can I go ahead as SAP techno functional consultant (ABAP/FICO).
    Need your guidance .
    Regards,
    Jeet

    hi Jeetendra,
    I definitely see no harm in trying to be a FICO Consultant who knows ABAP (or vice-versa). I've seen some really crazy requirements come from recruiters and this combination was one of them.
    Just to give you an idea, I've recruiters asking for ABAP with  BASIS, ABAP with SOA experience, ABAP with SCM, ABAP with PP-DS, ABAP with SLT etc apart from clubbing ABAP with any of the core Functional Modules.
    So yeah, if FICO is your "thing" and you think it will be a cake-walk then go for it.
    pk

  • What r certifications should i do?I am SAP ABAPer with 9 month xperience.

    I am SAP ABAPer with 9 month xperience, currently i am on bench.So in the mean time What r certifications should i do?
    Pl give me  suggestions that how should i utilize my this free time.Shall i go for any certifications?
    Thanks in advance.

    Safari 5.1.9 and Java 6 are the latest versions available for OS X 10.6.8. To upgrade any further you would need to upgrade to Mountain Lion (OS X 10.8.4) through the Mac App Store.
    http://www.apple.com/osx/how-to-upgrade/

  • SAP ABAP with BI

    Hi all,
    Can any1 plz tel me what all tasks are mainly involved in SAP ABAP with BI.

    Hi
    We use to write ABAP code in BI ..............
    In Extraction Part:
    Data Source Enhancement.
    Data Source creation by using Function Module.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c035c402-3d1a-2d10-4380-af8f26b5026f
    In Modeling part:
    Routines(Start,End,Expert,etc)
    In Reporting Part:
    User Exit
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0df642e-6112-2d10-4bb6-8af1a772eb69?quicklink=index&overridelayout=true
    Regards
    Chandar Sekhar T

  • Sending mail to external mailid from user exit EXIT_SAPLEBNF_005

    Hai ALL,
    iam facing problem with sending mail to external id from user exit exit_saplebnf_005 , this user exit for ROLE Determination of releasing of PO .
    in this user exit i passed a user name for this role from one z table.
    through workflow the mails are send to workplace of resposible person maintained in ztable.
    now user requirement is they want some intimation in their outlook for they got mail in workplace .
    can anybody help me.
    Thanks .
    sushmita.k

    they can either define automatic forwarding in their SAP office to external e-mail OR they can set their external e-mail as preferred method of communication and they should receive mail to their external mailbox assuming that sending to external mail is supported in your system (check with BASIS folks).

  • I am sending mails to a particular domain from MVC3 application, more details below Is there any server settings for the same?

    From MVC3 Application, There is mail functionality it works well but if in TO address if I am including a recipient mail of external domain mail is sent but taking long time. and If I am using same mail id with an another mail id it works immediately.
    Could you please advice the resolution?
    Bhanu Prakash K

    Hi Bhanu Prakash K,
    Did you mean that send email to an external domain email account slowly via MVC application? However, when
    send to an internal email account, will work
    immediately?
    Based on your description, this issue seems to be more related to MVC application. I suggest you should post
    this question in ASP.NET Model-View-Controller (MVC) Forum. I believe we will get a better assistance there.
    If any update or anything I misunderstand, please don't hesitate to let me know. 
    Best regards,
    Justin Gu

  • How to execute external command from SAP

    Hi gurus,
    i need to execute an external command from a Sap (rel ECC.5.0) to a server UNIX (no SAP); precisely i have to write a file into a directory in unix server.
    I see transaction SM49 and Sm69 but i don't know how can i use these features.
    Please coul'd you help me or give me a documentation.
    Thank's in advance
    Maurizio Ortolani
    email. [email protected]

    Hi Maurizio,
    i do it in this way:
    CONSTANTS: CMD_LS(50)   VALUE 'ls -al /transfer/sap'.
      DATA: BEGIN OF ITAB_LS OCCURS 0,
              LINE(200),
            END   OF ITAB_LS.
      CALL 'SYSTEM'
        ID 'COMMAND' FIELD CMD_LS
        ID 'TAB'     FIELD ITAB_LS-SYS.
    How do you write the file, via an UNIX-COMMAND than try the above call
    with your command.
    Another way is to write the file via OPEN DATASET ..., TRANSFER ... TO ..., CLOSE DATASET.
    If you mean this i can give you an example.
    Hope it helps.
    Regards, Dieter

  • Gmail "send mail as" setting not working from iPhone

    I added a second gmail account to Mail. This gmail account has the "send mail as" setting set to show a different "from" address than the actual gmail account, and works fine when I send mail from my desktop. When I send mail from that account through Mail on the iPhone, it does not pick up this setting and the actual gmail account appears as the "from" address. I don't see any place in Settings or Mail to set this, and I couldn't find previous discussions of it here. Any help? Thanks in advance.

    Anyone?

  • Send mail as comma seperated file from abap

    Hi,
    i need to send mail from my program...as a comma seperated file...can u help me out.
    regards
    shankar

    See function module SO_NEW_DOCUMENT_ATT_SEND_API1, there is an example in the documentation. The example is for a .BMP file but you should be able to use the similar code for a text file (you might need to use object RAW). The content of comma-separated file must be in an internal table when you'll call this function module.
    There are also lots of examples available all over the Internet, use search by FM name.

Maybe you are looking for

  • Error: Windows - No Disk

    I just installed Flex and whenever I try to test a page, I dialog box comes up that says Windows - No Disk. The text of the dialog is Exception processing message c00000013 Parameters 75b6bf9c 4 75b6bf9c 75b6bf9c. This also happens if I try to go to

  • Adobe Media Encoder CC Fails To Dynamically Link Embedded AE Comps Within PR.

    When launching a PR project in Media Encoder to kick off a render.  The dynamic link engine loads the PR sequence just fine but during the render it fails to read any clips that were "relaced with AE comp", instead inserting an "offline media" plate.

  • How can I convert  AudioInputStream to  byte array ?

    Hi I want to convert audioinputStream to bytearry? i try like this ByteArrayOutputStream baos = new ByteArrayOutputStream();      int c = 0;      while (true) {      try {                     c = audioInputStream.read();                } catch (IOExc

  • Properties for searchability on our intranet

    I need to be able to enter properties on the pdf form because its used for keyword in searching on our intranet. I go to the completed form in Windows Explorer and right click and open Properties then click on the PDF tab. I fill in the title, author

  • Serious merge error

    I am doing this from within Jdeveloper 9034 with a 9i SCM version 4.0.12.91.9. Strict locking is not enabled. A file is checked out by user A. User B checks the same one out, modifies it, and checks it in. When user A checks this file in, he is promp