Skip to Content
0
Feb 22, 2007 at 11:05 AM

Link between business transaction and attached documents

40 Views

Hi all,

how can I establish the link between a business transaction (BUS200120) and the attached documents BEFORE business transaction is actually saved (COMMIT)?

When pressing SAVE for saving the business transaction one of the defined action profiles is executed in which an automatic mail is created. I want to add the attached documents from the business transaction to the mail as attachments. However, when using methods from CL_CRM_DOCUMENTS exporting the business object data nothing is returned because the business transaction is not yet made persistent a this very point in time (Action profile before actual commit). Is there a way to retrieve the link between the business transaction and the attached documents? In other words, how to get from the business transaction GUID to the GUID of the attached documents in table CRMORDERPHIO and related tables?

Kind regards,

Micky.