Entering content frame

Procedure documentation Defining and Assigning Filter Object Types  Locate the document in its SAP Library structure

Structure linkFilter 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.

Process Flow

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

·        Define filter object types

In the SAP menu choose Tools ® ALE ® IDoc Interface/ALE ® Development ® BAPI.

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.

Use the following conventions to name filter object types:

-          Release 3.0/3.1: Domain name (example: KOKRS for the controlling area)

-          Release 4.0: 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 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.

·        Defining filter object types to a BAPI

In the SAP menu choose Tools ® ALE ® IDoc Interface/ALE ® Development ® BAPI.

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.

¡        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 f to determine values for the filter object type you have defined (see Determining Filter Objects Using Business Add-Ins).

¡        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 orparameter filtering.

 

 

Leaving content frame