The plausibility check of element values includes value lists, search helps, default values as well as a context-based check for correctness
The method GET_VALUE of the class /SCT/QP_CL_TOE is executed. This first checks whether the data has already been loaded by calling method /SCT/QP_CL_TOE-DO_PRELOAD. Within this method, IS_PRELOAD_ACTIVE (/SCT/QP_CL_TOE_DOMAIN) is called. This method can be redefined if you do not want to load all dependent elements beforehand. For example, in the case of a regulation type, you do not want to import all master data. With a domain, it makes sense to read all elements once beforehand. If the preload is activated, DO_PRELOAD_SELECT (/SCT/QP_CL_TOE_DOMAIN) and therein DO_SELECT (/SCT/QP_CL_TOE_DOMAIN) are called. These methods can be redefined depending on which data is to be determined. In the case of the domain, all objects of the regulation type are read in. The context is then determined for the appropriate elements from the previously determined data. Method DO_SELECT_CONTEXT (/SCT/QP_CL_TOE_DOMAIN) is called for this. If a customer-specific context determination is to be implemented, this method must be redefined. In the case of the domain, the GET_CONTEXT method is called from the interface /SCT/QP_IF_TOEC. The interface method has an export parameter regarding the class /SCT/QP_CL_TOEC_RESULT, which provides various tools and methods and contains a structure that collects all contexts (/SCT/QP_S_TOEC_RESULT).
Within the structure, a GUID is generated to keep the respective context together. The auxiliary method ADD_TOEC_GUID of class /SCT/QP_CL_TOEC_RESULT can be used for this. Furthermore, the components VALUES are filled with the respective leading line elements and VALIDS are filled with the respective dependent context values. All possibilities are multiplied. The user can use the methods ADD_VALUE and ADD_VALID_VALUE of class /SCT/QP_CL_TOEC_RESULT as support. If all contexts have been determined, they are copied to the buffer DO_FILL_BUFFER (/SCT/QP_CL_TOE_DOMAIN). The values are copied to the buffer in the respective class of the TOE. The system then checks against the buffer using the line selected in the ALV.