Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Attachments problems with DIAPI

Hi all,

I want to add one or more attachments to an activity (contacts object in sap).

I have successfully added an attachment to sap using the attachments2 object.

I try to add an attachment to the activity with the following code:

    oContact.AttachmentEntry = 123 // where 123 is the code of the attachment given by attachments2 object
    oReturn = oContact.Update() 

When I get the list of the attachments associated with the activity, no attachments is returned by the function

Attachments of the contacts object.

Is there also a way to attach more than one file?

Executing more than once the above code don't have the expected result, it only overwrites the attachment entry.

regards gabriele

Former Member
Not what you were looking for? View more on this topic or Ask a question