10-10-2007 3:50 PM
Hi, I have FI invoice images stored in IXOS server. Most of the time they are stored as FAX/TIF and very rarely as PDF.
I could manage to get those documents from IXOS server to application server or PC.
But when I'm trying to send those as email it gives me error. I'm using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
for those documents which were stored as PDF there is no issue, only problem is with those docs which are stored as FAX/TIF.
I have also tried to use FM 'SCMS_AO_OTF_TO_PDF' before using email FM. even this FM doesn't do any conversion for me.
DESCRIBE TABLE lt_docs1 LINES lines.
siz1 = ( lines - 1 ) * 255 + 1024.
Here is how I'm filling the data to mail FM.
lt_document_data-doc_size = siz1.
lt_document_data-obj_name = 'SAPoffice'.
lt_document_data-obj_descr = 'IXOS Image file'.
Update the packing list.
CLEAR lt_packing_list_txt-transf_bin.
lt_packing_list_txt-head_start = 1.
lt_packing_list_txt-head_num = 0.
lt_packing_list_txt-body_start = 1.
lt_packing_list_txt-body_num = lines.
lt_packing_list_txt-doc_type = rawtyp.
APPEND lt_packing_list_txt.
CLEAR lt_packing_list_txt.
lt_packing_list_txt-transf_bin = 'X'.
lt_packing_list_txt-head_start = 1.
lt_packing_list_txt-head_num = 0.
lt_packing_list_txt-body_start = 1.
lt_packing_list_txt-body_num = lines.
lt_packing_list_txt-doc_type = pdftyp.
lt_packing_list_txt-obj_name = 'Message'.
lt_packing_list_txt-obj_descr = i_connections-arc_doc_id.
lt_packing_list_txt-obj_langu = 'E'.
lt_packing_list_txt-doc_size = siz4.
APPEND lt_packing_list_txt.
.
.
.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lt_document_data
TABLES
packing_list = lt_packing_list_txt
object_header = lt_object_header " --> just blank
contents_bin = lt_docs1 "--> retrieved data from archive IXOS.
receivers = lt_real_recipients
Return code here is 0, but then in SAP inbox it returns an error msg 'Message cannot be processed as it cannot be converted'.
10-11-2007 6:58 AM
Hi,
First check that whether mail is going from u r sap to outside or not.
using system->shortmessage.
if that connection is ok. Check this link u may find a solution.
http://www.resortdata.com/Customers/Knowledge/KB-Crystal/KC00003.htm
Assign points if useful.