Skip to Content
avatar image
Former Member

Identifying the list of workflow approvers

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 20, 2011 at 11:53 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2011 at 12:01 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2011 at 12:09 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 20, 2011 at 09:21 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded