Skip to Content
0
Former Member
Sep 29, 2014 at 11:16 AM

ABAP E Mail Issue

50 Views

I have written a code to trigger E Mail from SAP using Function Module SO_NEW_DOCUMENT_SEND_API1. Users used to receive emails properly with the email content in E Mail Body as per the requirement. But now I have observed with the same function module the content of the email is going to users as an attachment with .RAW file. Below is the function module I have used.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = w_data

document_type = 'RAW'

* PUT_IN_OUTBOX = ' '

commit_work = 'X'

* IMPORTING

* SENT_TO_ALL =

* NEW_OBJECT_ID =

TABLES

* OBJECT_HEADER =

object_content = it_contnt

* CONTENTS_HEX =

* OBJECT_PARA =

* OBJECT_PARB =

receivers = it_rcvrs

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

.

IF sy-subrc NE 0.

ENDIF.



Can anyone please help me findout issue why the content is being sent as an attachment?


-Sunil