Request clarification before answering.
For SRM mass approval/rejection, you can use the standard function module /SAPSRM/FU_WF_RFC_DECISION.
CALL FUNCTION '/SAPSRM/FU_WF_RFC_DECISION'
EXPORTING
iv_header_guid = ls_header-guid
iv_mode = 'APPROVAL'
iv_wiid = ls_mass_approval-wiid
iv_decision = lv_decision
iv_approver = sy-uname
TABLES
message_lines = DATA(lt_messages)
EXCEPTIONS
OTHERS = 1.
You can call this FM for each selected workflow item from the mass approval process, passing the corresponding WIID, document GUID, decision (APPROVED/REJECTED, depending on your implementation), and approver.
I have used this approach for implementing mass approval/rejection for SRM workflow items.
You will still need to handle the selection of multiple work items and the UWL-side/UI logic, but /SAPSRM/FU_WF_RFC_DECISION can be used to process the actual workflow decision.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.