SAP SRM (PPS) Workflow – BW Reporting.
Business Scenario
In order to manage and optimize the procurement process in Public sector area a detailed reporting on the Workflow Process is needed. To be able to measure and analyze how long the process takes, where roadblocks may be occurring, and where there may be opportunities for improvement.
The following types of workflow data required in BW to do reporting on the workflow statuses.
For each RFx, RFx Response and Contract:
When the document was created and who created
For each step in the approval process, who submitted it, who received it, what the outcome was, and how long it took to accomplish the approval step (measured by the elapsed time between when it was first submitted and when a decision was made)Total amount of time taken to process the document.
In addition, it is desirable to be able to incorporate relationships between documents into the workflow data, so that workflow across all of the documents related to procurement can be analyzed. Ex:To know what RFx Responses were tied to an RFx, as well as any contracts or POs that resulted from the responses so that we can measure and analyze how long it takes to go from an RFx through to one or more POs or contracts
The implementation needs to address the complexity of the process, in that there are several different scenarios that can occur, including
The most common scenario, which is one RFx leading to 1 or more responses, with each response leading to 0 to many POs or contracts
A contract can be entered without an RFx having been done in the system
A contract can be tied to more than one RFx
An RFx may result in a follow-up RFx .
To achieve the above business requirement, ccBPM integration with BW is required.All the below data modeling is done based on the requirement mentioned above.
Data Sources
0BPM_WIHEAD
0BPM_LOGHIST
0BPM_OBJREL
ZWF_REL_DOCS –Generic Extractor based on Function Module
ZSRM_DOC_GETDETAIL – Generic Extractor based on Function Module
Data Store Objects
ZWF_DS01 Work Flow Items
ZWF_DS02 Work Flow Details
ZWF_DS03 Work item object relation information
ZWF_RDOC WF Related Documents (Newly Created DSO)
ZSRM_DET SRM Document Details (Newly Created DSO)
Info Sets
ZWF_IS01
This info set will be used to create queries to find the workflow execution timings for each single document with the departmental approvals, approver name, purchase org, etc. Execution timings can be converted to Hours, minutes and seconds based on the client need.
ZWF_DS01 Work Flow Items
ZWF_DS03 Work item object relation information
ZSRM_DET SRM Document Details
ZWF_IS02
ZWF_DS01 Work Flow Items
ZWF_DS03 Work item object relation information
ZSRM_DET SRM Document Details
ZWF_RDOC WF Related Documents
This Infoset will be used to create queries to find the workflow execution timings for the related documents with the departmental approvals, approver name, purchase org, etc. Execution timings can be converted to Hours, minutes and seconds based on the client need.
Ex : Rfx – RFx’s response — Contract.
Data Model
Data source Enhancements
Following data sources can be enhanced based on the requirement and the fields needed in the report.
0BPM_WIHEAD – Enhancement can be done to get the approver name of the work item by calling the Function Module SUSR_USER_ADDRESS_READ
0BPM_OBJREL – Enhancement can be done to find the approving department based on the business object by reading the workflow configuration table. We made the customization as such to pull the approval steps of the workflow not all the workflow steps.
Generic Extractors
1. ZWF_REL_DOCS (Custom FM extractor, any nomenclature can be used)
This extractor is based on the function module RSAX_BBP_PROCDOC_GETDETAIL to extract related documents for a given RFx/Response/Contract.
Inputs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IMPORTING
TABLES
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Processing (pseudo code) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
a. Call function module ‘BBP_PROCDOC_GETDETAIL’ to get the related documents into lt_header_rel for ls_head-guid
|
2. ZSRM_DOC_GETDETAIL (Custom FM extractor, any nomenclature can be used)
This extractor is based on the function module RSAX_SRM_DOC_GETDETAIL to extract the following details for an SRM document.
- Created date and time
- Object Type
- Purchasing Organization
- Purchasing Group
- Process type
- Process subtype
- Smart Number
- Bidder
- Bidder name
- Version
Inputs (attach record layout if applicable) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IMPORTING
TABLES <td
|