Start of Content Area

Background documentation Definition of a Filter-Dependent Classic BAdI  Locate the document in its SAP Library structure

To define a filter-dependent Business Add-In, first create the definition of the Business Add-In and select the Filter-dependent checkbox.

Enter the data element you want as a filter type or select a filter type using the input help.

A filter type can be a data element or a structure. A data element must fulfill the following criteria:

·        The data element's domain may contain a maximum of 30 characters and must be of the type Character.

·        Either the data element has a search help with a search help parameter of the same type as the data element, and this parameter must serve as both the import and export parameter, or the domain has fixed domain values or a value table containing a column with the same type as the data element.

If necessary, you can create such a data element yourself.

If you want to call the implementation of a Business Add-In to depend not only on a filter value but on various values, you can enter the name of a structure in the FilterType field. The structure can consist of several data elements that fulfill the above conditions for data elements. The structure must not be longer than 80 characters.

You can use different elements as filter types, for example: a country, a material, an object type, an internal parameter, and so on. This also applies to structures.

Now create an interface with methods Remember that for each method you create in the interface of a filter-dependent enhancement, the filter value must be defined as the importing parameter so that the application program can provide the filter value to the enhancement method. The method then selects the active implementation for that value.

The filter value is always declared using the parameter flt_val and is predefined in the list of parameters.

This graphic is explained in the accompanying text

 

End of Content Area