What is Field Symbols

ABAP Field symbols are similar to de-referenced pointer in C Programming, ABAP field symbol are placeholder or symbolic name of other fields, it represents a real equivalent to pointers in the sense of variables that contain a memory address.

In this article we will use ABAP Field symbols to display some of table content dynamically, we will try to display data from table MSEG and VBAP for several step :

Declare one parameter ABAP Variables following code :

Create field symbols as below, this field symbols use as internal table to collect data from query.

Create data object reference from table you’ve input on parameter.

Now you can get data from table and put the result into field symbols. i have to limit row of data only for 100 rows.

After you get data, you can display the data using ALV, first you need to create field catalog using the function module REUSE_ALV_FIELDCATALOG_MERGE.

Now you can display data via ALV using REUSE_ALV_GRID_DISPLAY.

The result :

field-symbols-abap

field-symbols-alv-grid-abap

Full Source Code :

Leave a Reply

Your email address will not be published. Required fields are marked *