Hi All,
I need to attach file during saving a QM notification and trigger workflow with this attachement. I am using BADI to capture attachement and later feed this to workflow.
I am using GUI_UPLOAD to attache the file and convert to internal table.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
filetype = 'BIN'
TABLES
data_tab = it_att
Then i am using 'SWC_TABLE_SET' to set the container with attachement as below.
CALL FUNCTION 'SWC_TABLE_SET'
EXPORTING
element = 'ATTACHMENT'
TABLES
container = t_container
table = it_att
then passing t_container to 'SWE_EVENT_CREATE'. 'ATTACHMENT' above is a parameter of 'zevent' of Object type 'ZBUS'.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'ZBUS'
objkey = object_key
event = 'zevent'
TABLES
event_container = lit_container
In Worklow, header has binding for event to worfklow container for 'ATTACHMENT' .
In Debugging, i dont see any error. Wokflow is triggering but container 'ATTACHMENT' is not populating in workflow.
I have read through the some forums but could not locate anything specific to
I have used this technique before for setting elemets and tabels but not attachement coverted data as abve.
Am I missing something.
Thanks,