Get Example source ABAP code based on a different SAP table
Standard SAP Help for CHECK
CHECK SELECT-OPTIONS
Short Reference • CHECK SELECT-OPTIONS ABAP Statement
ABAP Syntax(Obsolete)CHECK SELECT-OPTIONS.
What does it do? This form of the statementCHECK for exiting processing blocks is only intended for use in executable programs that are associated using a logical database , and then only in the event blocks for the reporting events GET. It must not be used in methods.
The statement checks whether the content of theinterface work area that was filled for the current GET event by the logical database fulfills the conditions in all selection tables that are associated with the current node of the logical database. The name of the node is copied statically from the next highest GET statement in the program. The following restrictions apply: The statement CHECK SELECT-OPTIONS can only be used when the type of the current node of the logical database is a database table. If the node is to be used for dynamic selections, the statement evaluates only those selection criteria that have been declared with the NO DATABASE SELECTION addition of the SELECT-OPTIONS statement.