Using Data Sources to Transfer Application Data to the BRF

Context

In this coding you transfer the application data that is contained in a global structure, or in a global internal table within a function group, for example, to the BRF by way of a reference. You also need to implement a function module in this function group. You register this function module and the DDIC (data dictionary) structure with the BRF.

What is meant by the DDIC structure is that the global structure or table refers to a DDIC type (structure, database table, and so on). You cannot make global structures or tables available to the BRF if they do not have any DDIC reference.

DDIC reference does not mean that the data source module must be read from the database.

The following expression types form the interface between the application and the BRF.

  • Simple value request (implementing class 0SM001)

  • Field of a line of an internal table (0TB001)

  • Reference-like expression (0RF001)

Procedure


  1. Implement the required access function module.

    In doing so, use function module BRF_DATA_GET_TEMPLATE as a copy template.

    In function group BRF_DEMO you can find further examples for data sources (get- modules).

  2. To register the tables or structures and your access function modules with the BRF, proceed as follows:

    1. Call up transaction BRF

    2. Choose Start of the navigation pathUtilities Next navigation step Data SourcesEnd of the navigation path

      This takes you to the Display View "BRF: Registration of Accessible Structures/Tables" screen.

    3. Choose with the quick info text Display -> Change.

    4. Choose New Entries.

      The New Entries: Overview of Added Entries screen appears..

    5. Enter the following data:

      • Enter your application class.

      • In the Tab/Struct field, specify whether a table or a structure should be accessed.

      • In the Table/Structure Name field, enter the DDIC table/structure that you used to type the global internal table/structure.

      • Leave the Version field blank.

      • In the Access Function Module field, enter a module that is suitable for your structure/table.

    6. Repeat these steps for all required tables/structures.

Results

You have made data of your application available to the BRF by a simple value request or by a field of a line of an internal table.