on 03-13-2009 2:02 AM
Hi,
I used the below FM to retrieve workitem id from lt_worklist. This enhancement is to check the valid approvers at Goods Confirmation.
CALL FUNCTION 'SAP_WAPI_WORKITEMS_TO_OBJECT'
EXPORTING
objtype = 'BUS2203'
objkey = lw_doc_guid
top_level_items = space
selection_status_variant = 0000
TABLES
worklist = lt_worklist.
I used this FM in BBP_DOC_CHK badi implementation. It was working fine during unit testing but now it is not working as expected because it doesnu2019t return any record.
I would like to know what are the possible causes that make this FM not returning any record.
Thanks.
Hello
this could be a timing problem. Had it before, the workitem did not exist in the very moment
of calling this. Putting a wait period of 1 seconds solved the issue.
maybe helps
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.