Skip to Content
0
Former Member
Jun 20, 2006 at 09:33 PM

Email contents using ABAP

25 Views

Hi,

I am using FM 'SO_NEW_DOCUMENT_SEND_API1' to send an email to internet address.

Problem is even after populating the content internal table in table interface of FM, I am not seeing any contents in actual email.

Here is the sample code:

lt_object_content-line = 'No Records found'.

APPEND lt_object_content.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = l_document_data

put_in_outbox = 'X'

commit_work = 'X'

TABLES

object_header = lt_object_header

<b>contents_bin = lt_object_content</b>

receivers = lt_recievers

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.

Here the text "No records found" is not coming into email.

Could you pleae guide me on this..?

Thanks,

Samay