December 2012
Intermediate to advanced
316 pages
6h 51m
English
In this recipe, we will see the new concept of secondary keys/index within internal tables. This lets you optimize your programs when accessing data residing within an internal table.
In this recipe, we will create a program that will store all data of table VBAK into an internal table. Then we will use the secondary key in order to fetch a record pertaining to a given order number, aufnr. The primary emphasis of this recipe is on the definition and usage of a secondary key for internal tables.
For creating a program using secondary index in internal tables, follow the steps below:
ty_vbak based on the database table vbak. We create two keys for this table type. ...Read now
Unlock full access