on 05-28-2014 7:50 AM
Hi KH
You can use Function Module SAP_WAPI_WORKITEMS_TO_OBJECT to get the work items for a given object. Populate OBJECT_POR with the Base object and the key and get the work items in WORKLIST-WI_ID
Regards
Modak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi KH
OBJECT_POR-INSTID = Pass request number (include liading zeros / spaces also...the full key)
OBJECT_POR-CATID = 'CL' if your base object is Class / 'BO' if base object is Business Object
OBJECT_POR-TYPEID = class name/ Business object name
SELECTION_STATUS_VARIANT = :
0001 - only active (running) instances
0002 - if you want COMPLETED or CANCELLED InstancesLet other values be default for the FM SAP_WAPI_WORKITEMS_TO_OBJECT
The Workflist will be returned in table WORKLIST, workitem ID will be in column WI_ID
To get the OBJECT_POR-TYPEID:
check your workflow triggeing object in the header (Hat Icon) -> Version Independent Tab -> Start Events
To Get OBJECT_POR-CATID -> same as above, if it's BO, set to BO else CL
Regards,
Modak
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.