The QPPD framework provides methods for processing BRFplus - Business Rules (F). This includes the
Mapping to inbound signature
Execution of the function
Logging of messages (Actions from the BRFplus)
Mapping of the return values to the QPPD.
Both value generation of elements and changing GUI properties are supported.
Standard Function Processing
The BRFplus function calls are integrated into generation classes. The generation class is specified for each object type assignment. The generation method calls the corresponding BRFplus processing methods. When using the classes /SCT/QP_CL_BRF_GEN* corresponding BRFplus applications and functions are called automatically.
No further programming is necessary. If a differentiated call is required, this is carried out in customer generation classes.
Call in a public function with a specification of the function and application.
* Call without specifying the version. The version according to Customizing then appliesbrf_execute( EXPORTING  iv_application = 'APPLICATION_NAME'                        it_functions   = VALUE #( ( sign = 'I' option = 'CP' low = 'FU_GEN*' ) )             IMPORTING   et_param_tme   = et_param_tme                         et_param_PMK   = et_param_pmk).* Call when using application and function according to Customizingbrf_execute( IMPORTING et_param_tme = et_param                        et_param_pmk = et_param_pmk).* Call GUI functions.brf_execute( EXPORTING iv_application = 'APPLICATION_NAME'                       it_functions = VALUE #( ( sign = 'I' option = 'CP' low = 'FU_GUI*' ) )             IMPORTING et_param_tme = et_param ).Mapping
In the BRFplus function processing, the mapping of QPPD → BRFplus → QPPD is carried out. The mapping is implemented using class /SCT/QP_CL_BRF_MAP3 with interface /SCT/QP_IF_BRF_MAP3. If the mapping is to be adjusted. You can register and execute an individual class using the class factory setting. Mapping is performed for the BRFplus objects tables, structures, and elements. Deep structures are also supported. The most important methods are:
SET_SIGNATURE*
in these methods, the reference to the QPPD objects is established. The prefix of the BRF names is analyzed here. Types, contexts, and object types are determined for tables and structures. For the element, the reference to the QPPD element and field name is determined.
MAP_IMPORTING*
The methods are used to read the actual element values according to Signature. The search for the element values is carried out according to the schema:
System Element from the header or BASE data set such as VART, VTYP or VNAME
Element values from the current object type
Element values according to specification for context, VTYP, or object type
General search without specifications
MAP_RETURNING*
All possible elements and fields that are contained in the generation structure are returned. The BRFpluselement EDITABLE, which controls the input option, has a special role.
Formula Function Processing
The class /SCT/QP_CL_BRF_FORMULAS is provided for generating element values using complex formulas in which min and max values are combined differently.
The description of the method calls follows.
Individual function processing
Service methods are provided in class /SCT/QP_CL_FDT for calling individual BRFplus functions. The class buffers applications, functions, and signatures and reduces the runtimes for BRFplus calls.
The report /SCT/QP_DEMO_FDT_call shows how the methods are used.
GET_APPLICATION_FUNCTIONS
This method returns the internal BRFplus ID of functions of a BRFplus application.
GET_FUNCTION_SIGNATURE_IMPORT
The signature of the importing parameters is determined for a BRFplus function. The properties of tables, structures, and elements are determined. Deep structures are supported. In addition to the data types, references to the import data are also provided. Data can then be assigned to these references.
GET_FUNCTION_SIGNATURE_RETURN
Functionality is analogous to the import signature for returning the BRFplus function.
PROCESS
Executes the BRFplus function. Optionally, the trace option can be activated.
PROCESS_MESSAGES
Returns log messages from BRFplus actions, since the last execution of this method.