Skip to Content
0
Jun 13, 2008 at 07:32 AM

problem in mail

19 Views

Dear all,

I am using SO_NEW_DOCUMENT_SEND_API1 to send a mail

the email contents are in OBJECT_CONTENT

which i have used as follows

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

DOCUMENT_DATA = email_chng

DOCUMENT_TYPE = 'HTM'

PUT_IN_OUTBOX = 'X'

COMMIT_WORK = 'X'

IMPORTING

SENT_TO_ALL = sent

NEW_OBJECT_ID = newid

TABLES

  • packing_list = objpack

  • object_header = objhead

  • contents_bin = html_tab

  • contents_txt = objtxt

OBJECT_CONTENT = email_content

  • CONTENTS_HEX =

  • OBJECT_PARA =

  • OBJECT_PARB =

RECEIVERS = email_receivers

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

write / : 'Mail Cannot be sent to Dealer' .

else.

write / : 'Mail Sent Successfully To Dealer.' .

My problem is that in email_content even though there are 10 table entries..they all get send in the mail as continous one..that is they do not get printed one below the other..

What can be done?