When there is a requirement for approving the mass approvals for the leave request workflow , then use the below function module PT_ARQ_REQUEST_EXECUTE to approve it.
Before running the functional module check the record status in the table PTREQ_HEADER with field status. It has the status 'SENT' .
data : EX_MESSAGES TYPE PTARQ_UIA_MESSAGES_TAB,
EX_COMMANDS TYPE PTARQ_UIA_COMMAND_TAB.
CALL FUNCTION 'PT_ARQ_REQUEST_EXECUTE'
EXPORTING
im_request_id = 'E079F211C65FEFF188150050569A609B' "PTREQ_HEADER-REQUEST_ID
IM_COMMAND = 'EXECUTE_APPROVE'
im_pernr = '00000001'
im_modus = 'R'
* IM_DEBUG =
* IMPORTING
* EX_REQUEST =
* EX_HAS_ERRORS =
* EX_SHOW_CHANGE =
tables
ex_messages = EX_MESSAGES
ex_commands = EX_COMMANDS
.
After running this function module the status become 'APPROVED' in the table PTREQ_HEADER , and if u check in the workflow the workflow would be completed. for detailed data run the report RPTARQDBVIEW.
Wednesday, September 14, 2011
Workflow Data for MASS approval leave - PT_ARQ_REQUEST_EXECUTE
Posted by
Unknown
at
1:45 AM
Labels: Workflow Data
Subscribe to:
Post Comments (Atom)
Recent Topics
Content
-
▼
2011
(20)
-
▼
September
(9)
- Interface programming in ABAP COMMUNICATION INTERF...
- Interface programming in ABAP COMMUNICATION INTERF...
- Interface programming in ABAP COMMUNICATION INTERF...
- Interface programming in ABAP COMMUNICATION INTERF...
- Interface programming in ABAP COMMUNICATION INTERF...
- Interface programming in ABAP COMMUNICATION INTERFACE
- SUBMIT a Program using ABAP function module
- SAP ABAP Keywords for program practise.
- Workflow Data for MASS approval leave - PT_ARQ_REQ...
-
▼
September
(9)
No comments:
Post a Comment