SAP KEY ACCESS

Get Example source ABAP code based on a different SAP table
  

Warning: Undefined variable $prev in /customers/b/9/9/trailsap.com/httpd.www/sap-help/index.php on line 54
ABAP Code Snippet

What does it do? Specifying a Table Key as a Search Key Either the primary table key or a secondary table key can be specified. The values can be declared either implicitly in a work area wa behind FROM or by listing the components of the table key explicitly behind TABLE KEY.

When the primary table key is used, the table categories are accessed as follows: Standard tables are searched in a linear fashion.
Binary scans are used for sorted tables .
The hash algorithm is used for hashed tables.

When the secondary table key is used, a binary scan is used in the sorted key case and a hash algorithm is used in the hash key case.