hi anjan,
in module pool i write ths code.in The bo zftr which i created . there i specify key field as personnelnumber i dint create method, i create event submit, for that event i create key field as parameter.k. in my workflow part, in basic data i create object type as zftr and event submit. in workflow container i gave element as personnellnumber created bo . to bind event and workflow i created this. after this just i have one user decision approve r reject.
the code which below is written in submit. whether it is correct? its not triggering in swel.i check there also
DATA: OBJECT_KEY TYPE SWR_STRUCT-OBJECT_KEY.
DATA: INPUT_CONTAINER TYPE TABLE OF SWR_CONT,
WA TYPE SWR_CONT.
WHEN 'SUBMIT'.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
object_type ='ZFTR'
object_key = object_key
EVENT = 'SUBMIT'
COMMIT_WORK = 'X'
* EVENT_LANGUAGE = SY-LANGU
* LANGUAGE = SY-LANGU
* USER = SY-UNAME
* IFS_XML_CONTAINER =
* IMPORTING
* RETURN_CODE =
* EVENT_ID =
TABLES
INPUT_CONTAINER = INPUT_CONTAINER.
* MESSAGE_LINES =
* MESSAGE_STRUCT =
Regards,
gopi