Ansicht
Dokumentation
MM_PUR_S4_PROXY_CCTR - Assigning of Default Values to Search Fields for Central Purchase Contracts
ROGBILLS - Synchronize billing plans CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
This Business Add-In (BAdI) is used to add purchase requisitions to an existing central purchase contract in the Manage Purchase Requisitions Centrallyapplication (MM-PUR-HUB-PR component).
When you add the selected purchase requisition items to a central purchase contract, the Add to Central Purchase Contractwindow opens with the application's default search field values.
You can use this BAdI to modify the default values in the search fields for central purchase contracts. Based on the search field values, a list of central purchase contract is displayed.
Using this BAdI, you can change the following search fields for central purchase contract:
Field | Technical Name | More Information |
---|---|---|
Supplier | procmthubsupplier | Provide one or more values |
Company Code | procmthubcompanycode | Provide one or more values |
Purchasing Organization | procmthubpurchasingorg | Provide one or more values |
Purchasing Group | procmthubpurchasinggroup | Provide one or more values |
Central Purchase Contract | centralpurchasecontract | Provide one or more values |
Validity Start Date | validitystartdate | Date is set to default with a format YYYYMMDD. On defaulting this search field, the central purchase contracts created with a validity start date greater than the default date are displayed. |
Validity End Date | validityenddate | Date is set to default with a single value format YYYYMMDD. On defaulting this search field, the central purchase contracts created with validity an end date less than the default date are displayed. |
Creation Date | creattiondate | Date is set to default with a single value format YYYYMMDD. On defaulting this search field, the central purchase contracts created with the creation date greater than the default date are displayed. |
Material | purchasingcentralmaterial | Provide one or more values |
Material Group | materialgroup | Provide one or more values |
Distribution Status | purchasingdocumentstatus | Provide one or more values |
Contract In Preparation | purgcontractisinpreparation | Single value can be given (Boolean) |
Method for BAdI:DEFAULT_CCTR_SEARCH_FIELDS
The method DEFAULT_CCTR_SEARCH_FIELDS of the Business Add-In MMPUR_CCTR_SEARCH_FIELDS_DEF enables you to change the search fields that appear in the Add to Central Purchase Contractwindow.
Parameters
Import Parameters
- PROXYPR: This parameter contains the key fields (PR ID, PR Item ID, Connected System) for the selected proxy purchase requisitions.
- SEARCH_FIELDS: This parameter holds the default search field values for the application.
Changing Parameters
SEARCH_FIELDS_NAME_VAL_CHANGE: Fill this table with the name value pairs for the search fields that are modified in the BAdI implementation.
Implement the following snippet to define a default value 1010 in the Purchase Organizationsearch field whenever the connected system is ABC.
IF proxypr-procurementhubsourcesystem = ‘ABC’.
lv_filter_name = 'procmthubpurchasingorg'.
ls_filter_nameval-filtername = lv_filter_name.
ls_filter_nameval-filtervalue = '1010'.
,,APPEND ls_filter_nameval TO search_fields_name_val_change.
ENDIF.
A sample implementation class is available that illustrates the intended use of this BAdI (CL_CCTR_SRCH_DEFAULT_EXAMPLE).
rdisp/max_wprun_time - Maximum work process run time BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 5833 Date: 20240523 Time: 185741 sap01-206 ( 63 ms )