Skip to Content
1
Former Member
Dec 29, 2009 at 12:11 PM

Reg: Call method document->add_attachment

656 Views

Hi,

We are sending attachments by email using set of cl_document_bcs -> methods.

When we try to send 2007 document files as attachment,i.e docx,xlsx files.The file type is getting truncated.

The reason is that the attribute of this method i_attachment_type is of type SOODK-OBJTP of length 3 chars only.

CALL METHOD document->add_attachment

EXPORTING

i_attachment_type = v_extension_type

i_attachment_subject = v_attachname

i_att_content_hex = it_content_binary.

Any suggestions to overcome this issue.

Thanks for your help.

Regards,

Keerthi