Page tree
Skip to end of metadata
Go to start of metadata

Purpose

The purpose of this document is to provide information on how to create an implementation for the BAdI /SAPSRM/BD_WF_RESP_RESOLVER on SRM 7.0 and above.

Overview

The document will describe, which methods and parameters are available in the BAdI /SAPSRM/BD_WF_RESP_RESOLVER.

Standard settings

This BAdI is designed to assign purchasing documents (or separate parts of these documents) to agent groups for approval.

Filtering on Document Type (DOCUMENT_TYPE), and Resolver Name (RESP_RESOLVER_NAME) can be used for the implementations. Each filter value can only be assigned to one implementation. If several implementations are assigned to the same filter value combination, the process is interrupted with the error 'No Implementation found'.

The defined filter values are maintained also in Customizing for SAP SRM under SRM Server ->  Cross-Application Basic Settings -> Business Workflow -> Process-Controlled Workflow -> Business Process Configuration -> Define Filter Values for BAdI 'Define Agents'. These filter names can be maintained in the process schema customizing in transaction /n/SAPSRM/WF_PROCESS for process levels:

Methods 

GET_APPROVERS_BY_AREA_GUID - Agents working in the responsibility area

This method returns all members of each individual agent group. 

ParameterTypeDescription
IS_AREAImportingResponsibility Area Attributes (BAdI Interface Parameter)
IS_DOCUMENTImportingPurchasing Document (BAdI Interface Parameter)
RT_APPROVERReturningTable of Responsible Agents (BAdI Interface Parameter)

This BAdI method is called from the method GET_RESPONSIBLE_AGENTS of class /SAPSRM/CL_WF_PROCESS_MANAGER.

GET_AREA_TO_ITEM_MAP - Area of responsibilities for document items

With this method it is able to assign the document items to a specific agent group. This assignment can be made by specifying the area of activity of that group. The area can be a technical key identifying the group itself or can also identify a master data range (for example, a cost center range or an organizational branch) for which the agent group is responsible. When an initial item ID is returned and a single area is specified, it is indicated that all document items should be assigned to a single agent group for approval. 

ParameterTypeDescription
IS_DOCUMENTImportingPurchasing Document (BAdI Interface Parameter)
IS_CURRENT_PROCESS_LEVELImportingProcess Level Attributes (BAdI Interface Parameter)
RT_ITEM_TO_AREA_MAPReturningResponsibility Area Map of Items (BAdI Interface Parameter)

This BAdI method is called from the method CREATE_DECISION_SET of class /SAPSRM/CL_WF_DS_GENERATOR.

GET_FALLBACK_AGENTS - Specify Fallback Agents

This method specifies the fallback agents that are used when method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID does not return any results. This is the case if the system cannot determine a responsible agent.

Note: Fallback agents can approve or reject the items of a document or they can forward the work item to another processor.

ParameterTypeDescription
IS_DOCUMENTImportingPurchasing Document (BAdI Interface Parameter)
RT_AGENTReturningFallback Agent List

This BAdI method is called from the method GET_RESPONSIBLE_AGENTS of class /SAPSRM/CL_WF_PROCESS_MANAGER.

CHECK_RESP_RESOLVER_PARAMETER - Check Responsibility Resolver Parameter

This method is to check the user's input for an additional parameter in the process level configuration in transaction /n/SAPSRM/WF_PROCESS.

ParameterTypeDescription
IV_RESP_RESOLVER_PARAMETERImportingResponsibility Resolver Parameter
IS_DOCUMENTImportingPurchasing Document (BAdI Interface Parameter)

This BAdI method is called from the form PARA_CHECK of include /SAPSRM/LWF_P_CFGF01

GET_RESP_RESOLVER_PARAMETER_F4 - Search Help For Responsibility Resolver Parameter

This method provides an input help for an additional parameter in process level configuration in transaction /n/SAPSRM/WF_PROCESS.

ParameterTypeDescription
IS_DOCUMENTImportingPurchasing Document (BAdI Interface Parameter)
CV_RESP_RESOLVER_PARAMETERChangingResponsibility Resolver Parameter

This BAdI method is called from the form PARA_F4 of include /SAPSRM/LWF_P_CFGF01.

Implementation

There are standard implementations of this BAdI, for example the implementation with the filter name RR_EMPLOYEE, RR_MANAGER.

Related Content

Related Documents

Process Level Configuration Badi usage

Related SAP Notes/KBAs

KBA: 1979967 Workitem can be processed by all users
KBA: 1769725 Unexpected multiple workitems for shopping cart with more than one item
KBA: 1942988 Incorrect approver is determined when create an invoice
KBA: 2176876 Item-based already approved requires approval after Workflow restart