11-04-2013 9:01 AM
Hi Folks,
After upgrade from SAP CRM 7.0 to EhP2 attachments in e-mails sent using function module SO_NEW_DOCUMENT_ATT_SEND_API1 are appearing blank. The parameters passed are as follows:
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = c_x
commit_work = c_x
TABLES
packing_list = it_objpack
object_header = it_objhead
contents_bin = it_objbin
contents_txt = it_objtxt
receivers = it_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Any suggestions as to what has to be changed for the attachments to be generated correctly?
Thanks and regards,
Meenakshi
11-04-2013 9:41 AM
Hello Meenakshi,
I don't see any issue with the FM import or export parameters. It is correctly put, unless there is the attachment contents that is empty when you are executing. Please debug and check if contents of the attachment has any value.
OR
you could check SAP example "BCS_EXAMPLE_7".
Please go through OSS 190669.
"To send lists, you can use the SO_NEW_DOCUMENT_ATT_SEND_API1 module. As of Release 6.10, you can also use the BCS interface. BCS stands for Business Communication Service. This interface provides a comfortable, class-based method to send documents."
11-04-2013 11:03 AM
11-04-2013 10:31 AM
Hi,
if you have a tables parameter CONTENTS_HEX, please use this instead of using CONTENTS_BIN. In our ERP system CONTENTS_BIN is marked as obsolete in the description of this tables parameter.
Regards,
Klaus