Method PBO2

Use

Method PBO2 is the second part of the PBO methods. In method PBO2, only the texts for the various fields are determined.

Sample source text:

Only the main parts of PBO2 are mentioned in the following sample source text.

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

METHOD if_maintenance_brf~pbo2 .

CALL METHOD super->if_maintenance_brf~pbo2.

*------... structure short text -------------------------------------

CALL METHOD cl_aux_brf=>get_structure_short

EXPORTING

iv_tabname = ds_brf142-structure

IMPORTING

ev_short = ds_brf142-structure_short.

*------... field short text -----------------------------------------

CALL METHOD cl_aux_brf=>get_field_short

EXPORTING

iv_tabname = ds_brf142-structure

iv_fieldname = ds_brf142-field

IMPORTING

ev_short = ds_brf142-field_short.

...

ENDMETHOD.

Description:

It is mandatory to call the PBO2 method of the superclass.

Note the following:

  • In method PBO2, you work exclusively in the screen structures/tables.

  • Class CL_AUX_BRF provides you with a range of methods that you can use to get the short texts for many objects. The method names usually end with the suffix '_SHORT'.