Skip to Content

Send tabular output in email using oops

Hi All,

  

  I am sending email notificatios to users using following methdos of class:

CL_DOCUMENT_BCS->CREATE-DOCUMENT

CL_BCS->ADD_RECIPIENT

CL_BCS->SEND

I am able to send email but now requirement is to send output internal table of 3 columns and upto 5 rows in tabular format.

Please help.

Thanks,

Arpita

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 07, 2015 at 06:23 AM

    Hi,

    You can create html table .

    See sample program Y_R_EITAN_TEST_10_09 attached .

    Regards.

    I change the program so the same table is sent in the body of the message AND as attachment. See FORM get_html_table


    Add comment
    10|10000 characters needed characters exceeded

  • Jan 07, 2015 at 06:04 AM

    Hi Arpita,

    You an send the information in HTML format as mail body.

    Try below link to create a format in HTML first and use the html code to create Header, table and Footer information.

    And send those all information a HTM type of document.

    http://online-html-editor.org

    Use CL_DOCUMENT_BCS=>CREATE_DOCUMENT and pass the 'HTM" document type with Internal table, which will contains the HTML coding.

    Regards.

    Praveer.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 07, 2015 at 05:56 AM

    Hi Arpita,

    You can create your document of type HTML using html tags you can achieve the tabular format in email.

    Regards,

    Shashikanth

    Add comment
    10|10000 characters needed characters exceeded

    • If I comment this code then output table is not coming .

      I want both RAW and HTM  type.

      and work area values are populated as w_final-werks instead of 1001

      I have used as <TD>w_final-werks</TD>

      Kindly help.