02-21-2007 12:50 PM
Morning,
I can create an e-mail with a spreadsheet attachment. Unfortunately the line data that I want to include in each line of the spreadsheet is greater than 255 characters. This is a problem as the function module I am using SO_DOCUMENT_SEND_API1 will only permit a line length of 255 characters because the parameter contents_bin is a table of line type SOLISTI1. The line type SOLISTI1 consists of one field which is 255 characters in length.
Does anyone know of a way of getting more than 255 characters into each line of the excel spreadsheet?
I would prefer to use business communication server classes (e.g. CL_BCS) to implement the solution if possible. However, I have the same issue there. When I call the method DOCUMENT->ADD_ATTACHMENT where DOCUMENT is an instance of class CL_DOCUMENT_BCS the parameters I_ATT_CONTENT_TEXT and I_ATT_CONTENT_HEX are based upon table types SOLI_TAB and SOLIX_TAB. Table types SOLI_TAB and SOLIX_TAB are based upon line types SOLI and SOLIX respectively. Both of these line types have one field LINE. The respective data elements are limited to 255 characters - SO_TEXT255 and SO_RAW255.
Any assistance would be very much appreciated.
Thanks and regards
John.
08-01-2007 2:41 PM
Hallo
use DATA: binary_content TYPE solix_tab.
DATA: xl_content TYPE xstring .
CALL METHOD cl_document_bcs=>xstring_to_solix
EXPORTING
ip_xstring = xl_content
receiving
rt_solix = binary_content
.
Regards
Jan
08-01-2007 2:51 PM
Hi,
Check this thread.
Its have Thomas Jung reply please look into it.
aRs
Points are always welcome
Message was edited by:
a®