miércoles, 11 de mayo de 2016

ABAP Debugger Controls Session (Tabs Structure and Table)

Hi All,

Now, let's return for the debugger console. When I talk about Desktop Tabs you have to remember that we have variables in the executed program.

We have program variables, like Internal Tables, Structures, and Variables.


So the difference between structure and Internal table is how it's declare in the beginning of the program:

Example of Internal Table:

DATA: Begin of IT_TABLE occurs 0,
             .... Fields ....
            End of IT_TABLE.

This declaration is the most common and old programming method.


DATA: IT_TABLE Type Table of TY_TABLE.

This declaration is the present method to declare an internal table in a program.

So, the declaration of a Structure could be:

TABLE: MARA. " Example of a Structure of Transparent Table.

DATA:  WA_MARA LIKE MARA.

DATA:  WA_MARA TYPE MARA.

And others kind of declarations, but this are the most common.


In the Tab Structure or Tab Table, you can see the content of every row or every field of them.

In this case, I'm going to use a type table and a type line to show you the difference between Structure and table:

An Example of table is:

Example Table

And an example of Structure:


Example Structure


If you pay attention, the structure image, has every field and value of each one. And in the table has every row of a table.


Regards,
Rober






No hay comentarios:

Publicar un comentario