on 12-20-2011 11:47 AM
Hi,
We had a custom workflow for PR approval process in our client system. Our requirement is to develop an ABAP Report which show the approver with whom current purchase requisition approval is pending and the time it is pending with the approver. We also have to report the list of approvers who approved the PR and the time taken by corresponding approver.
Regards
Rakesh
Hi- If you have PR number as one of the selection screen parameter, then you could use FM- SAPWAPIWORKITEMOBJECT to get all the WF instances for that PR, then by using FM- SAPWAPIREADCONTAINER or by using table- SWWWIHEAD, you can take other details
Vinoth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The best way to do this is by using the SAP_WAPI* function modules and not using any custom tables. In my opinion.
regards
Rick Bakker
hanabi technology.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We developed a similar kind of report for one of our client. You can make use of SWWW_WI2OBJ table to link y9our PR and get the work item ID of the workflow. Then you can make use of SWWUSERWI table to get with whom it is lying. The time can be calculated by using SWWIHEAD table. Please try to search function modules to read the same.
Else you can proceed with defining a custom table and inserting entries on creation/approval and all.
Thanks
Nabheet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
May be I cannot suggest anything with respect to your PO, but since you are making use of the custom workflow then I feel teh better way to handle this is make use of program exits in the so that you can update a custom table where you can save the current status of the PO.
[Check this|http://wiki.sdn.sap.com/wiki/display/ABAP/ProgramExitsIn+Workflow]
Regards
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.