Start of Content Area

Background documentation Method SET_SCREEN_STRUCTURE  Locate the document in its SAP Library structure

On the PAI side, method SET_SCREEN_STRUCTURE is the counterpart to method GET_SCREEN_STRUCTURE on the PBO side.

Using the SET_SCREEN_STRUCTURE method, the subscreen in its function group transfers its structure-like field contents to the maintenance class.

 

Sample source text:   

   METHOD IF_MAINTENANCE_BRF~SET_SCREEN_STRUCTURE .

  

     IF iv_screen <> '2013' OR iv_program <> 'SAPLBRF_MAINTENANCE'.

       CALL METHOD super->if_maintenance_brf~set_screen_structure

         EXPORTING

           iv_screen = iv_screen

           iv_program = iv_program

           is_screen = is_screen.

     ELSE.

       ds_brf142 = is_screen.

     ENDIF.

  

   ENDMETHOD.

 

Description:

The relevant part of this source text is the ELSE branch within the IF statement. The structure that is transferred by the caller is transferred to the current SCR structure (in this case, DS_BRF142) via IS_SCREEN.

NoteMethod SET_SCREEN_STRUCTURE only looks after SCR structures.  You should therefore not use this method for CUR or OLD structures.

 

End of Content Area