Application Development and Automation 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: 
Read only

SO_NEW_DOCUMENT_SEND_API1 -DOCUMENT TYPE

Former Member
0 Likes
917

Hi all,

I want to send an email with HTML body text with the FM

SO_NEW_DOCUMENT_SEND_API1.

Unfortunaly the document type HTM isn't exit in TSOTD ?

My software component are

SAP_BASIS 620

SAP_ABA 620

It's a release problem or I have to install something?

thanks enzo

3 REPLIES 3
Read only

Former Member
0 Likes
616

Hi Enzo,

I hope this helps you.

Pass 'ALI' which you find in TSOTD.

Find below the code for your reference:

  • Create Message Attachment

  • Write Packing List (Attachment)

att_type = 'ALI'.

describe table objbin lines tab_lines.

read table objbin index tab_lines.

objpack-doc_size = ( tab_lines - 1 ) * 255 + strlen( objbin ).

objpack-transf_bin = 'X'.

objpack-head_start = 1.

objpack-head_num = 0.

objpack-body_start = 1.

objpack-body_num = tab_lines.

objpack-doc_type = att_type.

objpack-obj_name = 'ATTACHMENT'.

objpack-obj_descr = 'Attached Document'.

append objpack.

Cheers,

Saraswathi.

Read only

Former Member
0 Likes
616

Hi Enzo,

Here is the continuation to my response:

Send document with OTF/ALI attachment from spool to external recipient.

OTF/ALI document is converted to PDF/HTML format during

the SAPconnect send process.

Cheers,

Sarswathi.

Read only

0 Likes
616

Thanks K.B.

I will try?

Bye

enzo