Show TOC

Defining Hierarchies Between BAPI ParametersLocate this document in the navigation structure

Use

If you are developing your own ALE business processes, you may have to define dependencies between BAPI table parameters with regard to filtering parameters for data selection.

These dependencies are defined by the field references between the table parameters of BAPIs.

You can filter parameters to determine the dataset and to define dependencies only for the distribution of master data using BAPIs that are called synchronously.

Example

A BAPI for material master data contains the tables for plant data and associated storage data. The table containing plant data has a reference to the table containing storage data via the key field PLANTS. There is a hierarchical dependency between the plant and storage data. If plant 001 of a material is not to be replicated due to parameter filtering, then none of the storage data for plant 001 will be replicated.

Prerequisites

You use BAPI parameter filtering to manage the size of the dataset in the BAPI interface.

Procedure

You can define these hierarchical dependencies in ALE Development under Start of the navigation path BAPI Next navigation step Data Filtering Next navigation step Maintain Hierarchy of Table Parameters End of the navigation path (BDBP).

Enter the object type and the method of the BAPI. You can display existing BOR object types and their associated methods using the input help (F4).

The following processing options are available in the Hierarchy menu:

  • Create

  • Change

  • Display

  • Delete

Create Hierarchy

This checks whether a hierarchy for the BAPI already exists. Then it checks whether an ALE IDoc interface has already been generated and whether the associated IDoc has been released.

If the IDoc has already been released, then the generated interface has already been delivered to customers and no hierarchy can be created or changed for an existing BAPI because of compatibility problems. In this case you have to create a new BAPI. A corresponding error message is displayed. If the ALE interface already exists, but the IDoc has not yet been released, then the system will inform you that it needs to be regenerated.

A hierarchy tree is displayed on the next screen. For details see Editing the Hierarchy Display further below.

Change Hierarchy

The same checks are made as when you create a hierarchy. On the next screen the same processing options are provided as when you create a hierarchy.

Display Hierarchy

The same checks are made as when you create a hierarchy. On the next screen you cannot make any changes to the hierarchy.

To display the field references between the tables, double-click on the parent table. The parent table is automatically copied to the next dialog box. Select one of the child tables from the input help.

Select Field references to display the field references.

Delete Hierarchy

The same checks are made as when you create a hierarchy. Once you have confirmed you want to delete the BAPI hierarchy, it is deleted.

Editing the Hierarchy Display

The root node in the hierarchy display corresponds to the function module of the BAPI. The root node is used only for display and is not saved. Also, it cannot be changed.

You can edit the hierarchy display as follows:

  • Insert table parameters

  • Delete table parameters

  • Define field references between parent and child tables

  • Save hierarchy

Parent tables inserted directly under the root node that do not have child tables are not saved. If only this type of table is created, there is no hierarchy and therefore a hierarchy cannot be saved.

Insert table parameters

Place the cursor on a hierarchy node and choose Start of the navigation path Edit Next navigation step Insert table parameters End of the navigation path.

If you place the cursor on a root node, you can select a parent table of the highest level via the input help.

If a table exists above the marked node, this is copied to the next dialog box and you can add a child table to this table.

In principle a table can only exist once in the hierarchy. You can display the available tables via the input help.

In the dialog box you can display the common fields of the parent and child of the table in which the field references can be defined by selecting Field references. You can mark the fields for which a field reference is to be defined. If no field references between the two tables exist, an error message is displayed.

Delete table parameters

To delete a table, place the cursor on the relevant node of the hierarchy with the table names of the child table. Confirm the prompt. All other child tables of the deleted table will also be deleted.

Define field references between parent and child tables

Place the cursor on the node of a child table and choose Start of the navigation path Edit Next navigation step Table parameters Next navigation step Change field references End of the navigation path or select the pushbutton Field reference with the change icon.

The next dialog box contains the parent parameters and provided that a reference exists, the child parameters too.

When you create table parameter, you can select the associated child table via the input help.

You can display common fields by selecting Field references. Only field references are displayed that have the same names in the parent and child tables.

You can define the references between the fields by marking the appropriate references. Field references already defined are marked already.

Save hierarchy

To save a hierarchy, choose Start of the navigation path Hierarchy Next navigation step Save End of the navigation path.

A transport request is generated to send the associated Customizing table to the correction and transport system.

If an error occurs when accessing the database, the hierarchy is not saved. A corresponding error message is displayed.