DATA TYPE LINE OF

From Abap2Java

(Redirected from DATA...TYPE LINE OF)
Jump to: navigation, search

ABAP

The variant DATA...TYPE LINE OF of the keyword DATA is used to declare a variable that has a structure-type. The variable will have the same structure than the specified Table Type.

DATA ls_my_3rd_structure TYPE LINE OF my_table_type.
"my_table_type must be a table type defined in the Data Dictionary

See also:
Data Type, CONSTANTS, FIELD-SYMBOLS, TYPES, BEGIN END

Java

In Java, variables are defined without a specific keyword.

 int lv_my_variable;
 String lv_my_string = "Hello World";
 lv_my_variable = 23;

Variable definitions can have modifiers that define the visibility (public, protected, private) and other properties of the variable (final, abstract, static etc.).

There is direct no equivalent for the variants TYPE TABLE OF, LIKE TABLE OF, TYPE LINE OF, LIKE LINE OF, since there is no direct equivalent for the concept of internal tables in Java. Compare Array or Vector.

See also:
Data Type, attribute, modifier

Personal tools