ENDFORM. " F_MAIL_SENDFORM f_build_email_data CHANGING p_lt_binary_content TYPE STANDARD TABLE p_size TYPE so_obj_len. DATA: e_xstring TYPE xstring. DATA: mt_fcat TYPE lvc_t_fcat, ms_fcat TYPE lvc_s_fcat, st_fieldcat TYPE slis_fieldcat_alv. DATA: mt_data TYPE REF TO data....
l_xml_table_forecastTYPETABLEOFx255, l_rcTYPEi, l_xml_sizeTYPEi, binary_content_forecastTYPEsolix_tab, sent_to_allTYPEos_boolean, main_textTYPEbcsy_text, send_requestTYPEREFTOcl_bcs, documentTYPEREFTOcl_document_bcs, recipientTYPEREFTOif_recipient_bcs, bcs_exceptionTYPEREFTOcx_bcs, mailto...
ev_size=lv_size ).CATCHcx_bcs.MESSAGEe445(so).ENDTRY.TRY.*--- create persistent send request ---lo_send_request = cl_bcs=>create_persistent( ).*--- create and set document with attachment ---*create document object from internal table with text*append 'Hello world!' to main_text. ...
DOCUMENT->ADD_ATTACHMENT( EXPORTING I_ATTACHMENT_TYPE = W_ATTACHMENT-OBJTP I_ATTACHMENT_SUBJECT = W_ATTACHMENT_SUBJECT I_ATT_CONTENT_HEX = W_ATTACHMENT-CONT_HEX ). ENDLOOP. * 第三步: 添加邮件内容到发送请求 SEND_REQUEST->SET_DOCUMENT( DOCUMENT ). * 第四步:設置發送人出件地址 SENDER_ID =...
send_request = cl_bcs=>create_persistent( ). * --- create and set document with attachment --- * create document object from internal table with text APPEND 'Hello world!' TO main_text. " 邮件内容 document = cl_document_bcs=>create_document( i_type = 'RAW' i_text...
*---createpersistentsentrequest---lr_send_request=cl_bcs=>create_persistent().*---createandsetdocumentwithattachment---*createdocumentobjectfrominternaltablewithtextCONCATENATElv_body'<html><body><table>'INTOlv_body."hereaddtablecontentwithinrows(<tr>)andcells(<td>)CONCATENATElv_body...
Excel upload to itab Function module: GUI UPLOAD TEXT_CONVERT_XLS_TO_SAP ALSM_EXCEL_TO_INTERNAL_TABLE Class: cl_fdt_xl_spreadsheet Class: xco_cp_xlsx xco_cp_xlsx_selection xco_cp_xlsx_read_access ... For the detailed solution , scroll down below to "Excel up...
Hello All, I am using the function module SO_DOCUMENT_SEND_API1 to send an e-mail with an excel attachment. The code works fine for less than 255 characters in each row
I tried the to send attachment by adding records to 'docs' internal table but it is a text file attachment.How to send report output in a excel file as an attachment.Kapil Former Member 2005 Apr 04 10:03 AM 0 Kudos I'm not exactly sure what you are looking for here. You ...
ENDFORM. * * * Form SEND_FILE_AS_EMAIL_ATTACHMENT * * * Send email FORM send file as email attachment tables it message it_attach using p_email p_mtitle p_format p_file name p_attdescripti on p_se nder_address p_se nder_addres_type cha nging p_error p_reciever. DATA: ld_error...