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: 

SO_DOCUMENT_SEND_API1 - HTML page format

Former Member
0 Kudos

Hi,

I'm trying to generate an EMAIL (function 'SO_DOCUMENT_SEND_API1') with HTML format, in SOST I can see it correctly, but when I receive it, it seems that the HTML instruction weren't translated .... could anyone help me? We have LOTUS NOTES as mail program.

Thanks

Lara

8 REPLIES 8

Former Member
0 Kudos

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

document_data = doc_chng

put_in_outbox = 'X'

sender_address = 'MORGANTINI-L'

sender_address_type = space

commit_work = 'X'

TABLES

packing_list = t_objpack

  • object_header = objhead

  • contents_bin = objbin

contents_txt = t_objtxt

receivers = t_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.

Former Member
0 Kudos

Hi,

I have absolutely the same problem!

In SOST, on doubleclicking the message, IE opens and the Email (html layout) is displayed correctly.

But when I receive it on Lotus Notes, its the plain html code (not translated).

In fact, when I copy this code I received in Lotus Notes, and paste it into a textfile.htm and open it with any browser, it works fine.

Please help us!

I have been facing this problem for two days now and I am not able to find any solution.

0 Kudos
    • send email

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = ls_docum

document_type = 'HTM'

  • PUT_IN_OUTBOX = ' '

  • IMPORTING

  • SENT_TO_ALL =

  • NEW_OBJECT_ID =

TABLES

  • OBJECT_HEADER =

object_content = lt_content

  • CONTENTS_HEX =

  • OBJECT_PARA =

  • OBJECT_PARB =

receivers = lt_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.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

0 Kudos

I just changed the email address from a lotus notes email address to a googlemail address.

Nothing changed. Googlemail displays it as plain html text.

Thus it has nothing to do with the receiver software. There must be some sort of settings inside SAP (SCOT? SALE?) where it is triggered that this mail is an html email and consequently the receiver software wont interpret it as text, but as html!

Former Member
0 Kudos

Hi

Try using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 for sending the mail.

Thanks

Vijay

0 Kudos

IMO that wont change anything.

The only difference between SO_NEW_DOCUMENT_SEND_API1 and SO_NEW_DOCUMENT_ATT_SEND_API1

is the capability to send attachments along the email.

But as I have absolutely no other idea what to do else, I'll give it a try.

I'll report back soon.

thanks so far.

Former Member
0 Kudos

Hi Erik,

sorry .. I didn't write that I found the solution to my problem ...

The problem was related to SCOT definition ... we didn't use the SMTP Mail server but we had a wrong definition infact we used the Fax server DOMINO ...

I hope that this could help you too!

Thanks

Lara

0 Kudos

Hey Lara,

great to hear that you solved the problem. Could you possibly tell me exactly where and what I have to change in order to get it going?

yours

erik