Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with e-mail attachments after upgrade

Former Member
0 Kudos

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

3 REPLIES 3

former_member219162
Contributor
0 Kudos

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."

0 Kudos

Hi,

I'm agree with , used the BCS

see the doc : Sending Mail using Oo

regards

Fred

former_member195402
Active Contributor
0 Kudos

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