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

Purpose

This page is created to clarify how the search result across various SRM function can be modified.

Overview

With the Business Add-In BBP_WF_LIST you have the possibility to modify the displayed result of a search. This BAdi can be used during several searches for example during Advanced Search, POWL search or during search for Shopping Carts in Sourcing Cockpit. The BAdi supplies two methods, one for the search for purchasing documents and the other for using it in Sourcing Cockpit:

MethodDescription
BBP_WF_LISTChange Output List Purchasing Documents
BBP_WF_LIST_SOCOChange Output List Sourcing Application

Methods

BBP_WF_LIST

ParameterTypeAssociated TypeDescription
FLT_VALImportingBBP_SEARCH_OBJTYPObject Type
I_PDLIST_NEWImportingBBP_PDT_PO_LIST_BADIInterface GetList Purchase Order Table Type (BADI)
IV_USERImportingSY-UNAMEUser Name
E_PDLISTChangingBBP_PDT_DOC_KEY_BADIInterface GetList Purchase Order GUID Return Table Type

The changing parameter E_PDLIST can be used to determine the search result. The search will consider and display the items that are in this table.

BBP_WF_LIST_SOCO

ParameterTypeAssociated TypeDescription
FLT_VALImportingBBP_SEARCH_OBJTYPParameter FLT_VAL of Method BBP_WF_LIST_SOCO
IT_SOS_ITEMLISTImportingBBPT_PD_SOS_ITEMLISTTable with Items in Sourcing Cockpit
CT_ITEM_GUIDSChangingBBP_PDT_DOC_KEY_BADITable type - Key structure for BBP and Backend Documents

The changing parameter CT_ITEM_GUIDS can be used to determine the search result in Sourcing Cockpit. The search will consider and display the items that are in this table.

Reference Coding

Business Add-In  BBP_WF_LIST with Method BBP_WF_LIST is called from Method EXECUTE_SEARCH of the document-dependent class /SAPSRM/CL_PDO_SO_SEARCH_* (* indicates the document type, such as CONF, CTR, SC, INV etc.) The BAdi will be called after system performs the standard search using FM BBP_PD_SC_GETLIST.

Business Add-In BBP_WF_LIST with Method BBP_WF_LIST_SOCO is called from Method SEARCH of class /SAPSRM/CL_CH_WD_DOM_SOCO_GAF1. This BAdi will be called after system performs the standard search using Method EXECUTE_SEARCH of class /SAPSRM/CL_PDO_SO_SEARCH_PR.

Related Content

Related Documents

For more information about the search logic, please refer to the following Wiki page: Searching for requirements within the Sourcing Cockpit - Debug Hints