Dear all,
with some changes in configuration I am able to open WDA through Work Item. Here I am using FM: SAP_WAPI_WORKITEM_COMPLETE to complete the WI while click on Confirm button on WDA.
******************************************************
l_cont_line-element = 'COMMENT'.
l_cont_line-value = 'hello'.
append l_cont_line to l_cont.
l_cont_line-element = '_RESULT'.
l_cont_line-value = '0001'.
append l_cont_line to l_cont.
l_cont_line-element = '_WI_RESULT'.
l_cont_line-value = '0001'.
append l_cont_line to l_cont.
CALL FUNCTION 'SAP_WAPI_WORKITEM_COMPLETE'
EXPORTING
WORKITEM_ID = LV_WI
* ACTUAL_AGENT = SY-UNAME
* LANGUAGE = SY-LANGU
* SET_OBSOLET = ' '
DO_COMMIT = 'X'
* DO_CALLBACK_IN_BACKGROUND = 'X'
* IFS_XML_CONTAINER =
IMPORTING
RETURN_CODE = rc
NEW_STATUS = lv_status
TABLES
SIMPLE_CONTAINER = l_cont
* MESSAGE_LINES =
* MESSAGE_STRUCT =
.
*********************************************************************
Now I have issue to get the vale of value of _WI_RESULT and _RESULT in my workflow template(SWDD) to configure some further steps depending on this value..
Please let me know..
Regards,
Chandan