Skip to Content
0
Former Member
Dec 01, 2008 at 11:58 AM

Problems with ADD_ATTACHMENT in DOC-Attachment

163 Views

Hi,

i create an DOC-Attachment and send it as email.

It work OK, but when open the attachtent in email word starts bauts ask me first

filekonverting; Windows (Standart). When chosse this everything is ok.

Why does word createing this question. How can i avoid this?

TRY.

*

CALL METHOD DOCUMENT->ADD_ATTACHMENT

EXPORTING

I_ATTACHMENT_TYPE = ATT_TYPE

I_ATT_CONTENT_HEX = IT_BIN

I_ATTACHMENT_SIZE = IT_LENGHT

I_ATTACHMENT_SUBJECT = SUBJECT.

*

  • Error abfangen

CATCH CX_BCS INTO BCS_EXCEPTION.

WRITE: 'Fehler aufgetreten.'(001).

WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.

EXIT.

ENDTRY.

*

Thanks.

Regards, Dieter