Hi Developer Team,
I have a use case where I need to move attachments added via the GOS (Generic Object Services) menu in SAP to the OpenText xECM system.
For example, when a user creates a Purchase Requisition (PR) using transaction ME51N, they may attach a document using the “Create Attachment” option in the GOS menu before saving the PR. At this point, the OpenText xECM business content window is disabled, as the PR has not yet been saved.
In our current setup, the business workspace in xECM is triggered after the PR is saved, based on specific business object events. So once the user saves the PR, a "create" event is triggered, and the corresponding workspace is created in xECM.
The business requirement is that any attachments added via GOS before saving the PR should be automatically transferred to the newly created xECM workspace, once the PR is saved.
Currently, these attachments are stored in the S/4HANA database. I am looking for a backend solution (e.g., via ABAP) to read these attachment details from the relevant SAP tables and pass them into the xECM workspace during or immediately after the PR is saved.
Please note:
Users are not willing to use ME52N to attach documents after saving the PR, nor are they willing to save the PR first and then attach documents via the xECM business content window. They want to attach documents during creation via ME51N and have those carried over automatically to xECM.
I would appreciate your suggestions or any technical approach to retrieve and transfer these attachments using backend logic.
Thanks,
Nitesh