Method PAI2

Use

Method PAI2 is the second part of the PAI methods.

Method PAI2 transfers the SCR tables and SCR structures to CUR tables and CUR structures.

To a certain extent, PAI2 is the counterpart of method PBO1, as CUR tables and CUR structures are transferred to SCR tables and SCR in both these methods.

Method PAI2 must not contain any coding that refers to table controls. You must implement this coding in method PAI_CONTROL.

Sample source text:

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

*------ all lines of select conditions --------------------------------

LOOP AT dt_brf144 INTO ls_brf144_scr.

*------... copy from dynpro structure to table structure --------------

CLEAR ls_brf144.

ls_brf144-import_status = ds_brf150-import_status.

ls_brf144-applclass = ds_brf150-applclass.

ls_brf144-expression = ds_brf150-expression.

ls_brf144-version = ds_brf150-version.

ls_brf144-field = ls_brf144_scr-field.

ls_brf144-curr_field = ls_brf144_scr-curr_field.

APPEND ls_brf144 TO mt_brf144_cur.

ENDLOOP.

Description:

In the above source text the following is executed:

The SELECT condition of a 0TB001 expression is transferred from SCR table ds_brf144 to the CUR table.

Note the following:

  • Method PAI2 must be able to handle data containing errors.

  • The setup of the dependent tables (such as TBRF200) takes place in method COMPLETE_DEPENDENT_DATA.