IBM Support

Adding Documents via the MIF can remove documents added to related records

Question & Answer


Question

If you create a PO with an Attachment, then create an Invoice against that received PO with an Attachment via the MEA or MIF, why does the Attachment get deleted on the PO?

Cause

This is caused by the DeleteAll statement called in the MICSetIn class and the out of the box Relationship that exists between those objects.

Answer

To fix this issue do the following:

Create a new Relationship on the INVOICE Object - DOCLINKS2

Child Object - DOCLINKS

Where Clause - (ownertable= 'INVOICE' and ownerid=:invoiceid)

Amend your Integration Object and change the Relationship between the
INVOICE and DOCLINKS object to DOCLINKS2

This will stop the DeleteAll removing the Documents on the related records.

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.2.1;6.2.2;6.2.3;6.2.4;6.2.5;6.2.6;6.2.7;6.2.8;7.1;7.1.1;7.5;7.6","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21470512