The Potential Duplicates pop-up displays a standard, pre-defined set of columns. You can change the columns to be displayed by creating a new ALV Display Variant.
To change displayed columns
-
Create an append structure on structure /TRILLIUM/SEARCH_FIELDS.
-
Create the append structure in the customer namespace (Z* or Y*).
-
Add the fields that you want to display in the pop-up. You can add any fields that you want to display (i.e., from KNA1 and/or from Z tables).
-
-
Create a BADI implementation for BADI /TRILLIUM/ADDRSRCHEX.
-
Create the BADI implementation in the customer namespace (Z* or Y*).
-
Implement the code required to retrieve and populate the additional fields in method BEFORE_MATCHER_CALL.Loop through table parameter CH_T_ADDRESS_MATCHES.
-
The customer numbers are available in field CH_T_ADDRESS_MATCHES -KUNNR.
-
Select additional data from KNA1 and/or any required Z* tables.
-
Set the values for the additional fields in parameter CH_T_ADDRESS_MATCHES.
-
-
-
Create a new ALV Display Variant that includes the additional fields.
-
Display the duplicate pop-up window.
-
Click Change Layout.Figure 1. Click Change Layout
- Modify the layout as desired and then save it with a name, such
as/ZCUSTOMER.Figure 2. Save the Layout
-
- Set your new ALV Display Variant as the default view for Customers.
-
Go to the Trillium section of the IMG and open node “Maintain display variants for duplicate lists.”Figure 3. Open Node Maintain Display Variants
-
Set the layout value for the row with keys KNA1 ADRDR (LFA1 ADRNR for ERP Vendors) to your new ALV Display Variant.Figure 4. Set the Layout Value
-