Hi,
I am writing a custom application.
A workflow is supposed to start by a Web Dynpro ABAP Application.
The user can attach files to it.
A superior is supposed to review the files and either approve or reject the request.
I tried the following in Web Ddynpro ABAP:
CALL FUNCTION 'EWW_WORKFLOW_START'
EXPORTING
X_TASK = 'WS90000074'
IMPORTING
Y_WORKFLOW_ID = lv_WF_ID
TABLES
X_CONTAINER = lv_IT_CONTAINER
EXCEPTIONS
...
then followed by:
CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
EXPORTING
WORKITEM_ID = lv_wf_id
ATT_HEADER = lv_swr_att_header
ATT_BIN = Item_FILENAMEATTACHED
DOCUMENT_OWNER = SY-UNAME
LANGUAGE = SY-LANGU
IMPORTING
ATT_ID = lv_swr_att_id
....
The Workflow has onlay one user decision step and one notification Step.
In the user decision step, there is a binding from ATTACHOBJECTS to the task.
But, in the log, you can see the attachment in the Workflow Container of the workflow instance, but you don't see it in the task (neither Inbox nor UWL)
Anyone has a suggestion?