Using the BRF Standard Context to Transfer Application Data

Use

This variant allows you to use all options provided by the BRF.

Above all, you must decide which fields should make up the context. Then you define a DDIC structure that contains the required fields. This structure must be 'flat', in other words the fields of the structure must be of a primitive data type, meaning that they themselves must not be structures or tables.

Procedure

  1. Ensure that the context type BRF-Standard Context (implementing class 0CT001) is available in your application class.

  2. Define a flat DDIC structure that contains the required fields.

  3. Create a context of the type BRF-Standard-Context (0CT001)

  4. In Structure Name, enter the structure defined in step 2.

  5. Choose an expression prefix.

    The system creates expressions that read the contents of the fields of the structure. The names of the expressions consist of the prefix and the field name.

  6. In SAP List Viewer, select the expressions that you want to create.

  7. In SAP List Viewer, choose Create Expressions.

Note the following:

  • The system displays all fields of the context structure in SAP List Viewer.

  • The key fields are marked.

    Usually you do not need any expressions for them (especially not for the client).

    However, for the sake of completeness, the system displays the field.

  • The field name * stands for the whole structure. The result is a reference to the structure. Some other BRF expression types can accept such results.

  • All expressions that return the value of a field of the structure or the reference to the structure are of expression type Access to Simple Context (implementing class 0CA001).

  • You can change the expressions that you created above in step 6 at any time. You can also create such expressions manually. For more information, see the documentation on expression type Access to Simple Context.