Method COMPLETE_DEPENDENT_DATA

Use

Method PAI2 transfers the data that defines the object to the CUR table. Method COMPLETE_DEPENDENT_DATA then creates the dependent data. For this reason, this method operates exclusively on CUR data.

Sample source text:

Only the main parts of the source text are mentioned below.

METHOD if_maintenance_brf~complete_dependent_data.

DATA:

ls_brf200 TYPE tbrf200.

FIELD-SYMBOLS:

<fs_brf144_cur> TYPE tbrf144.

CALL METHOD super->if_maintenance_brf~complete_dependent_data.

REFRESH mt_brf200_cur.

ls_brf200-import_status = ds_brf150-import_status.

ls_brf200-applclass = ds_brf150-applclass.

ls_brf200-key_object = ds_brf150-expression.

ls_brf200-version = ds_brf150-version.

ls_brf200-object_is = 'A'.

ls_brf200-key_category = 'F'.

ls_brf200-object_vs = 0.

ls_brf200-category = 'F'.

LOOP AT mt_brf144_cur ASSIGNING <fs_brf144_cur>.

IF NOT <fs_brf144_cur>-param_ref IS INITIAL.

ls_brf200-object = <fs_brf144_cur>-param_ref.

ls_brf200-n_used = 1.

APPEND ls_brf200 TO mt_brf200_cur.

ENDIF.

ENDLOOP.

SORT mt_brf200_cur BY object.

DELETE ADJACENT DUPLICATES FROM mt_brf200_cur COMPARING object.

ENDMETHOD.

Description:

In the above source text the following is executed:

Alongside the mandatory call of the corresponding method of the subclass, table MT_BRF200_CUR is set up from table MT_BRF144_CUR. Duplicates are ignored initially. They are not removed until at the end.

Method COMPLETE_DEPENDENT_DATA must be able to handle data containing errors.