Sending email in html.

Dear Expert,
I am trying to send a mail to the user outlook and i wish to include some HTML code. I include the following code in the email text. However it is not working. Anyone know what should i configure in the smtp or on the workflow side?
<html><head></head><body><a href='http://www.googole.com'>Cllick here</a></body></html>
Thanks.
Regards,
Bryan.

Hi Aditya,
I follow your recomendation to create a program to send the mail out.
My code looks as the following.
    DATA:   l_docdata TYPE sodocchgi1,
            li_content TYPE TABLE OF solisti1,
            li_receiver TYPE TABLE OF somlreci1,
            l_ename     TYPE pa0002-cname,
            l_text(255),
            lw_receiver TYPE somlreci1.
    l_docdata-obj_name = 'Notification'.
    l_docdata-sensitivty = 'P'.
    l_docdata-proc_syst = sy-sysid.
    l_docdata-proc_clint = sy-mandt.
    l_docdata-obj_descr = 'TEST'.
l_text  = 'Testing Content'.
APPEND l_text TO li_content. CLEAR l_text.
lw_receiver-receiver = 'MyMailtestATGM ail.com'.
lw_receiver-rec_type = 'U'.   "e m a i l
APPEND lw_receiver TO li_receiver.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        document_data              = l_docdata
        commit_work                = 'X'
        DOCUMENT_TYPE              = 'HTM'
      TABLES
        object_content             = li_content
        receivers                  = li_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.
I try to use the code above and i manage to send the mail out. However when i change the l_text  = 'Testing Content'  to  l_text  = '<A HREF="http://www.google.com">Click Here</A>'  , it does not reach my mailbox even in in transaction SCOT, i can see that it is succesfully transmited.
Do you have any idea?
Thanks.
Regards,
Bryan.

Similar Messages

  • Send Email in HTML Format with Javamail.

    GOD BE BLESSED!
    Hello dudes,
    i create a jsp page let me send emails from a database using the API Javamail.
    But these emails when i send then, goes in text format only, and i want to send emails in HTML format too. Anyone can help me?
    I think the Javamail API can send in HTML format.
    thanks and sorry, my english is basic but i think you understand. ;)
    Adler Medrado

    I was trying to do the same thing...I found this on the java.sun.com website somewhere. Hope it works out for you.
    try {
    String host = "";
    String from = "";
    String to = "";
    String fileAttachment = fileName;
    // Get system properties
    Properties props = new Properties();
    // Setup mail server
    props.put("mail.smtp.host", host);
    // Get session
    Session session1 =
    Session.getInstance(props, null);
    // Define message
    MimeMessage message =
    new MimeMessage(session1);
    message.setFrom(
    new InternetAddress(from));
    message.addRecipient(
    Message.RecipientType.TO,
    new InternetAddress(to));
    message.setSubject("");
    // create the message part
    MimeBodyPart messageBodyPart =
    new MimeBodyPart();
    //fill message
    messageBodyPart.setText("");
    Multipart multipart = new MimeMultipart();
    multipart.addBodyPart(messageBodyPart);
    // Part two is attachment
    messageBodyPart = new MimeBodyPart();
    DataSource source =
    new FileDataSource(fileAttachment);
    messageBodyPart.setDataHandler(
    new DataHandler(source));
                   messageBodyPart.setFileName(fileAttachment);
    multipart.addBodyPart(messageBodyPart);
    // Put parts in message
    message.setContent(multipart);
    // Send the message
    Transport.send( message );
    }catch (Exception e){
    System.err.print("Mailing error:");
    System.err.println(e);

  • Send Email with HTML format in Outlook Macro

    I can use the following to send email with HTML format in VBA. I also have created an HTML file. Is there a way to load the file into .HTMLBody to send it as HTML format message?
        Set OutlookApp = CreateObject("Outlook.Application")
        Set objMail = OutlookApp.CreateItem(olMailItem)
        With objMail
           .BodyFormat = olFormatHTML
           .HTMLBody = "<HTML><BODY>Enter the message text here. </BODY></HTML>"
           .Display
        End With

    Try: 
    Dim fso As Scripting.FileSystemObject
    Dim htmlFile As Scripting.TextStream
    Set fso = New Scripting.FileSystemObject
    Set htmlFile = fso.OpenTextFile("C:\path\to\my-html-file.htm")
    strInsert = htmlFile.ReadAll
    then change:
    .htmlbody = strInsert
    oh, and you need to set a reference to the Scripting runtime in Tools, References. 
    Diane Poremsky [MVP - Outlook]
    Outlook & Exchange Solutions Center
    Outlook Tips
    Subscribe to Exchange Messaging Outlook weekly newsletter

  • Java.mail sending email in html format

    I trying to send emails from my java program, I ve managd to send text mails, I want to send email in html format is there a way of doing that and how
    thanks for your help

    Thanks a lot it is working now but I think that sending mails in text format is the best way since there isn't a way of knowing whether the recepient can handel html mails

  • Sending email in html format.

    i am trying to send email in html format. the following is my sample code. it's just sending plain text. how should i send html file in email?
    String message_body = "<a href=\"test.html\">click here</a>";
    MimeMessage msg = new MimeMessage( session );
    // From Address
    msg.setFrom( new InternetAddress( fromAddress ) );
    // TO Address
    InternetAddress recipient_Address = new InternetAddress( toAddress );
    msg.addRecipient(Message.RecipientType.TO, recipient_Address);
    // Subject
    msg.setSubject( subject );
    // MimeBodyPart object for message body part
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText( message_body );
    // MimeBodyPart object for file to attach
    MimeBodyPart mbp2 = new MimeBodyPart();
    Multipart mp = new MimeMultipart();
    // create the Multipart and add message body and file to attach.
    mp.addBodyPart(mbp1);
    // add the Multipart to the message
    msg.setContent(mp);
    msg.setSentDate(new Date());
    // send the message
    Transport.send(msg);
    i'd appreciated it...

    msg.setContent(mp, "text/html");Have I put this in the right place? You need to apply it to your body text, at any rate.

  • Sending emails in HTML on iPhone?

    How do I configure the iPhone 5 to send emails in HTML? 

    Lucky I stopped by again
    We have heard of this problem from a small number of people over the last few weeks.
    Briefly it seems that some contacts can be formatted weirdly in your address book. The easiest solution seems to be to export the problem contact as vcf and reimport, which cleans the contact in some way, then it should be fine.
    More on solubleapps.com/MailShot-support, if you haven't visited there already.
    Any problems please get in touch on our support email address and we'll try our best to help. Also Watch for the new update in a week or so.
    Cheer, Peter

  • Send email in HTML format with attachment.

    I want to send out email in HTML fromat and attach a file to it. I know how to send HTML email but I cant attach a file to it.
    Can anybody help me with that?

    What kind of attachment?
    1) A file not related to the HTML
    or 2) a file used by the HTML (i.e. a GIF)?
    If 1) see here http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html#SendingAttachments
    If 2) see here http://forum.java.sun.com/thread.jsp?forum=43&thread=242791
    (make sure you read all the thread as inline attachments are mentioned at the end)
    SH

  • Send email in html format

    Hello everybody,
    First of all:
    I already searched via internet but couldn´t found an example which helped me to solve my problem. Anyway I believe it must be very simple what I want to do.
    My Problem: I want to send an email in html format, but until now everything I tried didn´t worked. Please help me. What do I have to do?
    I already tried a lot of code typing. For example this one:
    this.resolveNode("#event").submit.target="mailto:"+email_adressen+"subject="+subject+"&Body="+body+"&MessageFormat=HTML";
    But nothing is working, you always see the html tags in the text - they have no effect at all :-( .
    Best regards,
    Paolo

    I was trying to do the same thing...I found this on the java.sun.com website somewhere. Hope it works out for you.
    try {
    String host = "";
    String from = "";
    String to = "";
    String fileAttachment = fileName;
    // Get system properties
    Properties props = new Properties();
    // Setup mail server
    props.put("mail.smtp.host", host);
    // Get session
    Session session1 =
    Session.getInstance(props, null);
    // Define message
    MimeMessage message =
    new MimeMessage(session1);
    message.setFrom(
    new InternetAddress(from));
    message.addRecipient(
    Message.RecipientType.TO,
    new InternetAddress(to));
    message.setSubject("");
    // create the message part
    MimeBodyPart messageBodyPart =
    new MimeBodyPart();
    //fill message
    messageBodyPart.setText("");
    Multipart multipart = new MimeMultipart();
    multipart.addBodyPart(messageBodyPart);
    // Part two is attachment
    messageBodyPart = new MimeBodyPart();
    DataSource source =
    new FileDataSource(fileAttachment);
    messageBodyPart.setDataHandler(
    new DataHandler(source));
                   messageBodyPart.setFileName(fileAttachment);
    multipart.addBodyPart(messageBodyPart);
    // Put parts in message
    message.setContent(multipart);
    // Send the message
    Transport.send( message );
    }catch (Exception e){
    System.err.print("Mailing error:");
    System.err.println(e);

  • Send email with html and images over Sockets

    Hi! I'm sending email messages through sockets with html. So far is working great. But now, I need to include images in the html code, like a web page. I don't have any idea on how to do this. Sending image apart from the html code is not big deal, but how to put it in the code. I mean how to make this html code, work:
    <table border="0">
         <tr>
              <td>Image in code</td>
         </tr>
         <tr>
              <img src="what to put here"/>
         </tr>
    </table>This is the code that I'm using to send the html mail:
    StringBuffer retBuff = new StringBuffer();
              //BufferedReader msg;
              //msg = new BufferedReader(msgFileReader);
              smtpPipe = new Socket(mailHost, SMTP_PORT);
              smtpPipe.setSoTimeout(120000);
              if (smtpPipe == null) {
                   return retBuff;
              inn = smtpPipe.getInputStream();
              outt = smtpPipe.getOutputStream();
              in = new BufferedReader(new InputStreamReader(inn));
              out = new PrintWriter(new OutputStreamWriter(outt), true);
              if (inn == null || outt == null) {
                   retBuff.append("Failed to open streams to socket.");
                   return retBuff;
              String initialID = in.readLine();
              retBuff.append(initialID);
              retBuff.append("HELO " + localhost.getHostName());
              out.println("HELO " + localhost.getHostName());
              String welcome = in.readLine();
              retBuff.append(welcome);
              retBuff.append("MAIL From:<" + from + ">");
              out.println("MAIL From:<" + from + ">");
              String senderOK = in.readLine();
              retBuff.append(senderOK);
              for (int i = 0; i < to.length; i++) {
                   retBuff.append("RCPT TO:<" + to[i] + ">");
                   out.println("RCPT TO:<" + to[i] + ">");
                   String recipientOK = in.readLine();
                   retBuff.append(recipientOK);
              retBuff.append("DATA");
              out.println("DATA");
              out.println("From: Steren <" + from + ">");
              out.println("Subject: " + subject);
              out.println("Mime-Version: 1.0;");
              out.println("Content-Type: text/html; charset=\"ISO-8859-1\";");
              //out.println("Content-Type: multipart/mixed; charset=\"ISO-8859-1\";");
              //out.println("Content-Transfer-Encoding: 7bit;");
              //String line;
              //while ((line = msg.readLine()) != null) {
              //     out.println(line);
              out.println(msg);
              retBuff.append(".");
              out.println(".");
              String acceptedOK = in.readLine();
              retBuff.append(acceptedOK);
              retBuff.append("QUIT");
              out.println("QUIT");
              return retBuff;

    Throw all this away and use one of the numerous existing Java mail packages, such as javax.mail for a start.

  • Sending email with HTML report through a button

    Hi,
    I've noticed in APEX 4 there is a default option (through Action Menu -> Download Formats: email) to send an email with report in HTML format...
    may I know how to accomplish it using a Button... seems like APEX is using javascript:gReport.email.show(); function to accomplish it but I don't know how to implement it...
    Please advice
    Thanks in advance

    qwe12654 wrote:
    GokhanAtil,
    I've posted a sample on APEX.ORACLE.COM... LOGIN DETAILS ARE SAME AS ABOVE...
    ON the page now I have both the SQL based report and interactive report...
    On the top right you may see 2 icons.. one for downloading report in PDF (using SQL Report as the source) and the second for sending email (using interactive report, similar logic as what you've recommended)...
    Is there a way I may be able to send report via email, using SQL report as the source (rather than interactive report)...?
    You can always use APEX_MAIL to send emails.
    http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_mail.htm
    or the alternative option would be:
    to convert all my SQL reports into interactive, would require a bit of efforts (I'll go with it if the above option is not available)... but would need to know how to download INTERACTIVE reports in PDF, excel and CSV formats using a button ... similar logic to what you've done for sending emails
    Thanks again for all your assistanceIt's very easy to make buttons for downloading the interactive reports in HTML, CSV or PDF.
    I have created a PDF button and put the link:
    http://apex.oracle.com/pls/apex/f?p=40418:11:1316531694094700:PDF
    "1316531694094700" is the value of p_instance. You can find it from HTML codes of your page:
    <input type="hidden" name="p_instance" value="1316531694094700" id="pInstance">
    You can change PDF to CSV or HTMLD (so your visitor download the report in CSV or HTML)
    Best Regards,
    Gokhan
    If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks

  • Send emails in html format

    Hi All,
    My requirement is to send emails. I am using javamail and it works fine. But the body of the email should be in table format.
    I am planning to use Html as below. But don't know how to combine html in java. Is there any other way of achieving it ? Please let me know if I am not clear.
    <htm>
    <table border="1">
    <tr>
    <td bgcolor="red">Header</td>
    </tr>
    <tr>
    <td bgcolor="yellow">Sub Header1</td>
    <td bgcolor="yellow">Sub Header1</td>
    </tr>
    <tr>
    <td bgcolor="green">Values</td>
    <td bgcolor="green">Values</td>
    </tr>
    </html>

    so, do I need another method which tells Java whereto output the HTML Tags ?
    The method writes to a PrintWriter defined somewhere,
    you can also pass the PrintWriter as third argument
    to the method.
    To generate a String containg the whole HTML Dokument
    you would write something like:
    StringWriter stringWriter = new StringWriter();
    PrintWriter printWriter = new
    PrintWriter(stringWriter);
    writeStartTable();
    writeStartRow();
    writeCell("BlaBla", "green");
    printEndTable();
    printWriter.flush();
    printWriter.close();
    stringWriter.close();
    String content = stringWriter().toString();
    BodyPart mailBody = new MimeBodyPart();
    mailBody.setContent(content, "text/html");
    I was succesful in sending mail using HTML format. Thanks for ur reply.
    But if I try send the mail in HTML format along with an attachment, the MIME type defaults to "text/plain".
    Is there a way to set the MIME type to "text/html" when I send mail with an attachment.
    Please help . Let me know if I am not clear

  • Send email in html format with pdf attachment

    I am trying to send an email out of SAP using an abap program in the html format with a pdf attachment. I am using the function module -SO_DOCUMENT_SEND_API1. I noticed that when i specify the body type of the message as 'RAW' I get to see the pdf attachments however when i switch it to 'HTM' I loose the attachment in the email generated. Can anyone please help me in solving this problem. Thanks!

      ld_email                 = p_email. "All email IDs
      ld_mtitle                 = 'Bank Statement'.
      ld_format                = 'PDF'. "Attachment Format
      ld_attdescription      = 'Statement'.
      ld_attfilename          = p_filename. "Name of file
      ld_sender_address      = p_sender_address. "Sender mail address
      ld_sender_address_type = p_sender_addres_type. "INT - Internet
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle . "Description
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle. "Description
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'HTM'. " THis is for BODY of mail RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_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.
    * Populate zerror return code
      ld_error = sy-subrc.

  • Send email with HTML output?

    I have A CFM FILE(testing3.cfm):
    <cfset month = #URL.Month#>
    <cfset year = #URL.Year#>
    <CFQUERY>
    SELECT .....code..
    </CFQUERY>
    <HTML>
    <table>
    <thead>
    <tr >
    <th>Month</th>
    <th>Employee First Name</th>
    <th>Employee Last Name</th>
    <th>Stars<br/></th>
    <cfoutput query="">
    <tr >
    <TD></TD>
    </tr>
    </cfoutput>
    </table>
    --- more code, pretty much the same
    </HTML>
    I can see this 'report' when i click on the link depending on the year or month.(testing2.cfm) file
    This file gets data from a table from every month,
    which works good.
    I want to be able to send a email of these results to who ever I choose to send it to.
    For example not the same people everytime , I would choose who I put in the 'TO' email part.
    So maybe there would be a button/link that would open up the email message (outlook) and i
    be able to see what is on  the html and be able to send it to the people I would like.
    Doing my research I have seen I can use 'cfemail' but this doesnt seem like it would be able
    to do what I want, only be able to do attachments.I would like to see the report i will send
    before I send it out( from the above code i can click on it).
    I be thinking maybe I can add a button/link next the the month in 'testing2.cfm', but im not sure if
    that would be the best way to do it.
    What would be the best way I can approch this? Any tips or articles I can read would help.

    You could design it such as to be able to view the content and send the mail on the same page. An example follows.
    testing2.cfm
    1/2014 (a link that takes you to testing3.cfm)
    testing3.cfm
    <cfsavecontent variable="pageContent">
    <cfquery>
    </cfquery>
    <html>
    <body>
    <table>
    <thead>
    <tr >
    <th>Month</th>
    <th>Employee First Name</th>
    <th>Employee Last Name</th>
    <th>Stars<br/></th>
    etc.
    </body>
    </html>
    </cfsavecontent>
    <p>
    <!--- Display page content --->
    <cfoutput>#pageContent#</cfoutput>
    </p>
    <p>
    <!--- Clicking on this link will re-open the current page, and send mail --->
    <a href="testing3.cfm?action=mail">Send mail</a>
    </p>
    <cfif isdefined("URL.action") and URL.action is "mail">
        <cfquery name="getEmailAddresses" datasource="myDSN">
            SELECT email FROM myTable
        </cfquery>
        <cfmail query="getEmailAddresses"
            from="[email protected]"
            to="#getEmailAddresses.email#"
            subject="Information">
    Dear colleague,
    Here is the information for January 2014.
        <cfoutput>#pageContent#</cfoutput>
    Regards,
    Admin    
        </cfmail>
    <p>The e-mails have been sent!</p>
    </cfif>

  • Sending email by HTML

    Hi have been using the following script successfully which produces a plain text email in my drafts folder for Microsoft Entourage:
    set strRecipientAddr to "[email protected]" -- 'To:' recipient.
    set strRecipientName to "email"
    set tContent to "Dear Joe Bloggs" & return & return & "some messageinfo here" & return & return & return & return & "I look forward to your reply." & return & return & "Regards" & return & return & "Tony" & return & return & "Addressdetails" & return & return & "Tel: Fax: " -- 'Contnets:' or 'Message' string.
    set tSubject to "email subject - " & (do shell script "date +%v") -- 'Subject:' string.
    tell application "Microsoft Entourage"
    set composeMessage to make new outgoing message with properties {recipient:{address:strRecipientAddr, display name:strRecipientName, recipient type:to recipient}, subject:tSubject, content:tContent}
    --send --send composeMessage
    end tell
    on format_eMailAddress(eMailAddress)
    return " <"Microsoft Entourage"
    tell application "System Events"
    tell process "Microsoft Entourage"
    click menu item "HTML" of menu 1 of menu bar item "Format" of menu bar 1
    end tell
    end tell
    Thanks for reading this.
    Tony

    Hi antony
    Maybe "Send Complex HTML with Inline Files 2004" By Rob Buckley might help.
    http://www.the-word-is-not-enough.com/HTML2004.php
    based on Paul Berkowitz's code.
    http://www.softlow.com/mac-os-x/utilities/system/free/send-complex-html.html
    Budgie

  • Send email via html template solution

    Dear Guru ,
    I am writing an abap program that can send the 'HTML' email to external user ( such as : GMAIL , YAHOO ) ...
    Up to now , everything is fine .... But i am looking for a solution that is it possibile to use a HTML template for that ?
    For example :
    I have one HTML file , like that :
    <body>
      <table>
         <tr><td>&name</td></tr>
         <tr><td>&address</td></tr>
      </table>
    And in my abap program i will fill my username ( sy-uname ) and address ( zaddress ) to this HTML file and then send to the external user ...
    Any good idea for that ? My idea is very stupid that put this file to internal table and then check it line by line ....
    Thanks .
    Best Regards,
    Carlos

    Here i share my abap code if someone internet for this topic :
    FUNCTION Z_BCAPPLYTEMPLATE.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(FILE) TYPE  CHAR255
    *"  TABLES
    *"      PARAMETERS STRUCTURE  ZTMPLSTRU
    *"      CONTEXT STRUCTURE  ZTMPLSTRU
    * This function can read a template file that storage in the application server
    * And then replace the "^" charater to some parameters .
    * Sometimes use for the HTML format email sending
    * By Carlos
    * Defined vars
      DATA : BEGIN OF IT_READ OCCURS 0.
             INCLUDE STRUCTURE ZTMPLSTRU .
      DATA : END OF IT_READ .
      DATA : V_LENLEFT LIKE SY-FDPOS .
      DATA : V_PARAMETER TYPE CHAR200 .
      DATA : V_IDX TYPE I .
      V_IDX = 1 .
      SY-SUBRC = 0 .
      OPEN DATASET : FILE FOR INPUT IN TEXT MODE ENCODING UTF-8.
      CLEAR : IT_READ[] .
    * Read file
      DO.
          IF sy-subrc <> 0.
            exit.
          ENDIF.
          READ DATASET FILE INTO IT_READ.
          IF sy-subrc = 0.
            append IT_READ .
          ENDIF.
      ENDDO.
      CLOSE DATASET FILE .
    * Start apply parameters
      LOOP AT IT_READ .
          CLEAR : V_LENLEFT .
          CONTEXT = IT_READ .
          WHILE sy-subrc = 0 .
                CLEAR :  V_LENLEFT .
                SEARCH CONTEXT-LINE for '^' .
                IF SY-SUBRC = 0 .
                " READ PARAMETERS
                    READ TABLE PARAMETERS INDEX V_IDX  .
                      IF SY-SUBRC = 0 .
                          V_PARAMETER = PARAMETERS-LINE .
                          V_IDX = V_IDX + 1 .
                      ENDIF .
                    V_LENLEFT = SY-FDPOS + STRLEN( V_PARAMETER ) - 1 .
                    concatenate CONTEXT-LINE(sy-fdpos) V_PARAMETER CONTEXT-LINE+v_lenleft into CONTEXT-LINE .
                else.
                    append CONTEXT.
                endif .
          ENDWHILE .
          CLEAR sy-subrc .
      ENDLOOP .
    ENDFUNCTION.

Maybe you are looking for

  • T61 key not working after win7 upgrade

    Hi I upgraded my thinkpad T61´s windows from XP to 7(64bits) but one of my key from keyboard stopped to work. I installed all the drivers and ThinkVantage System Update, but it didn´t work. My keyboard layout is Portuguese-BR(ABNT) and the problem is

  • Oracle 8.0.5.1 on Linux/critical error

    Hello! My Oracle database (running under Linux) terminated by itself and doesn't like to start anymore. When starting, I get the following error: ------> Oracle Server Manager Release 3.0.5.0.0 - Production (c) Copyright 1997, Oracle Corporation. All

  • Error - Stack state no roll memory

    Hi, We have deployed our BSP application for appraisals. This is a custom application which is a copy of standard BSP application HAP_DOCUMENT. We are facing a problem in the production environment, we are getting a number of abends (error - STACK_ST

  • How do I have a virus?  Mac Proctector is on my computer. Please help me!

    I am trying to get rid of it. I am so not computer savy. It is the reason I bought a Mac to begin with. I am going to call my credit card companies, but how do I get rid of the pop ups?

  • When I download CS4, it won't open. "

    "Setup"cant be opened because it is from an unidentified developer" is the message that pops up when I try to open the disk image.