Hi all,
I am using the following code to trigger the event of the object type, in turn trigger a workflow everything works fine but the problem is not all the data are coming into the workflow is there something else that i have to do in this piece of code?
include <cntn01>.
parameter : p_test type c.
data : begin of persdata_key,
pernr type p0002-pernr,
subty type T591A-subty,
objps type p0002-objps,
sprps type p0002-sprps,
endda type p0002-endda,
begda type p0002-begda,
seqnr type p0002-seqnr,
end of persdata_key.
data key type SWEINSTCOU-OBJKEY.
Select single pernr subty objps sprps endda begda seqnr from
PA0001 into corresponding fields of
persdata_key
where pernr = '22'.
swc_container my_container.
swc_create_element my_container 'EL1'.
swc_set_element my_container 'EL1' '01'.
move persdata_key to key.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'PERSDATA'
objkey = key
event = 'CHANGED'
CREATOR = ' '
TAKE_WORKITEM_REQUESTER = ' '
START_WITH_DELAY = ' '
START_RECFB_SYNCHRON = ' '
NO_COMMIT_FOR_QUEUE = ' '
DEBUG_FLAG = ' '
NO_LOGGING = ' '
IDENT =
IMPORTING
EVENT_ID =
TABLES
EVENT_CONTAINER = my_container
EXCEPTIONS
OBJTYPE_NOT_FOUND = 1
OTHERS = 2
.
commit work.
IF sy-subrc <> 0.
write sy-subrc.
ENDIF.
Regards
Narendiran Rathinavelu