SAP_WAPI_ATTACHMENT_ADD and WORKFLOW
I have a project about WD4A and workflow. I use a WD to trigger a workflow by raising a event of self-defined class. Meanwhile, I want to generate a pdf file as an attachment for the next receiver in the workflow. Method SAP_WAPI_ATTACHMENT_ADD need work item ID as a import parameter. Here is the problem, how can I get the work item ID after triggering the workflow?