i want to send an internal table with html mail.
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.
Eitan Rosenberg replied
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 .
FORM test_07 .
DATA: it_sflight TYPE TABLE OF sflight .
SELECT * INTO TABLE it_sflight
UP TO 100 ROWS .
DATA: it_receivers TYPE somlreci1_t .
APPEND '<receiver mail>' TO it_receivers .
CALL FUNCTION 'Y_R_EITAN_TESTS_05'
i_subject = 'Hi there'
it_receivers = it_receivers
it_data = it_sflight.
ENDFORM . "test_07