-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending attachment as email ( Format Error ) #9
Comments
Hi, I've tried your coding in my system. The main problem is that you've not specified the i_attachment_size parameter when attaching the binary to the mail. Here a complete test report. Hope that solves your issue and we can close it. REPORT zdemo_excel_send_mail. CONSTANTS: DATA: CONCATENATE sy-uname '@GMAIL.COM' INTO mailto. DATA send_request TYPE REF TO cl_bcs. DATA main_text TYPE bcsy_text. DATA: lo_excel TYPE REF TO zcl_excel, DATA: lv_file TYPE xstring, " Creates active sheet " Get active sheet lo_worksheet = lo_excel->add_new_worksheet( ). lv_file = lo_excel->save_as( zcl_excel=>c_xlsx ). " Convert to binary TRY.
|
Yes It works, Great |
Hi Gregor, |
What steps will reproduce the problem?
The text was updated successfully, but these errors were encountered: