Method PBO1

Use

For PBO itself there are two methods, namely PBO1 and PBO2.

The exclusive task of PBO1 is to prefill all fields of the screen structure. In particular, the CUR tables or CUR structures are copied to SCR tables or SCR structures. Texts for fields are not enhanced here.

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

Method PBO1 must not contain any coding that refers to controls. You must implement this coding in method PBO_CONTROL.

Sample source text:

  1. First part of source text:

METHOD if_maintenance_brf~pbo1 .

DATA:

ls_dd03l TYPE dd03l,

ls_brf144 TYPE tbrf144,

lds_brf144 TYPE sbrf144,

ls_dfies TYPE dfies,

lt_dfies TYPE STANDARD TABLE OF dfies.

CALL METHOD super->if_maintenance_brf~pbo1.

*------ some prefilling -----------------------------------------------

ms_brf142_cur-import_status = ds_brf150-import_status.

ms_brf142_cur-applclass = ds_brf150-applclass.

ms_brf142_cur-expression = ds_brf150-expression.

ms_brf142_cur-version = ds_brf150-version.

ms_brf142_cur-type = 'T'.

ms_brf142_cur-structure_is = 'A'.

ms_brf142_cur-structure_vs = 0.

MOVE-CORRESPONDING ms_brf142_cur TO ds_brf142.

Description of first part of source text:

It is mandatory to call the PBO1 method of the superclass. In addition, the CUR structure is enhanced to include important fields before it is transferred to the SCR structure.

  1. Second part of source text:

*------ the where table -----------------------------------------------

REFRESH dt_brf144.

LOOP AT mt_brf144_cur INTO ls_brf144.

CLEAR lds_brf144.

MOVE-CORRESPONDING ls_brf144 TO lds_brf144.

CALL METHOD cl_aux_brf=>get_currency_field

EXPORTING

iv_structure = ds_brf142-structure

iv_field = lds_brf144-field

IMPORTING

ev_field = lds_brf144-curr_field.

APPEND lds_brf144 TO dt_brf144.

ENDLOOP.

Description of second part of source text:

This is where the screen table of the where conditions is filled from the underlying CUR table. In addition, the screen table is filled with data that the BRF itself does not save (such as currency fields in DS_BRF144). You are not permitted to determine texts here.