‎2010 Nov 15 1:37 PM
I have written code to create an XSL attachment to am email. It does send out the attachment in the correct format but it does not print out all the lines of output. If i have 2 lines in my output table the excel file produced contains only the first line.
I am currently using the FM SO_DOCUMENT_SEND_API1. How do I resolve this issue? Is there another FM that works better?
Thanks
Eliza
‎2010 Nov 15 3:27 PM
Of course, you're always better off using the most current email method - class CL_BCS if you're on NW6.0 or above. You didn't post your code, but it sounds like you're not terminating your lines properly. Are you using CL_ABAP_CHAR_UTILITIES=>CR_LF to terminate the lines and CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB to delimit the fields?
‎2010 Nov 15 3:48 PM
Yes, I have the correct terminating condition. Somehow when I change the packing list factor from 255 to 510 it works.
t_packing_list-doc_size = t_packing_list-body_num * 510.
I do not understand why it does not work with
t_packing_list-doc_size = t_packing_list-body_num * 255.
Thanks.