Show TOC

Procedure documentationDefining and Assigning Filter Object Types

 

Filter Object Types are already assigned to some BAPIs in your applications for the receiver and data filtering.

You can also define your own filter object types and assign them to a BAPI or to a parameter of a BAPI.

Procedure

To define filter object types for BAPIs, follow the steps below:

  • Define filter object types

    In the SAP menu, choose Start of the navigation path Tools Next navigation step IDoc Interface/ALE Next navigation step Development Next navigation step BAPI End of the navigation path.

    You can create filter object types in Data filtering or Receiver Determination.

    Then choose Define Filter Object Type (transaction BD95, table TBD11).

    Give the filter object type a name and specify a reference to a table field. The reference to a table field is needed to retrieve the documentation from the data element so that customers can get input help when maintaining the distribution model. For this reason a foreign key must be maintained for the table field.

    Note Note

    Use the following conventions when naming the filter object type:

    Default field name for the data element (example: COMP_CODE for the company code)

    For the required data object check whether a name has already been entered in the domain and default field names of the data element. If the fields are empty, a new filter object must be created. Usually the filter object will also appear in the BAPI interface as a field in the transfer structure, for example, bapiachead-comp_code.

    If this is the case create the filter object as follows:

    ALE object type

    Field name in the BAPI structure, for example, comp_code

    Table name

    Name of BAPI structure, for example, bapiachead

    Field name

    Field name in the BAPI structure, for example, comp_code

    End of the note.
  • Assign filter object types to a BAPI

    In the SAP menu, choose Start of the navigation path Tools Next navigation step ALE and EDI Next navigation step Development Next navigation step BAPI End of the navigation path.

    You can assign filter object types to a BAPI in Data filtering or Receiver Determination.

    The filter object types allowed for an object method are maintained in each view of table TBD16:

    1. Receiver Determination:

      Choose Assign filter object type to BAPI. You can maintain the entries:

      Object type (from table TOJTB)

      Method

      Filter object type (from table TBD11)

      Keep in mind that for receiver determination, you have to implement a Business Add-In to determine values for the filter object type you have defined (see Determining Filter Objects Using Business Add-Ins).

    2. Data Filtering:

      Choose Assign filter object type to parameter. You can maintain the entries:

      Object type (from table TOJTB)

      Method

      Filter object type (from table TBD11)

      Parameter

      Field name

      Enter the required data to assign a filter object to an object method for the receiver determination or parameter filtering.