Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

i want to send an internal table with html mail.

hi,

i created a fm. and i want to give an internal table to imports value. then i want to send this internal table with html mail. but how can i give internal table to fm. because data type is unknown. it can changes. please help me.

Former Member
replied

Hi,

I had some extra time so here it is .

global-y_r_eitan_tests_05.txt - This go to the gloabl (support class)

y_r_eitan_tests_05.txt - The function - generate html table and send by using cl_bcs .

Using:

FORM test_07 .

  DATA: it_sflight TYPE TABLE OF  sflight .

  SELECT * INTO TABLE it_sflight

  FROM sflight

  UP TO 100 ROWS .

  DATA: it_receivers TYPE somlreci1_t .

  APPEND '<receiver mail>' TO it_receivers .

  CALL FUNCTION 'Y_R_EITAN_TESTS_05'

    EXPORTING

      i_subject    = 'Hi there'

      it_receivers = it_receivers

      it_data      = it_sflight.

ENDFORM .                                                   "test_07

Regards.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question