Showing results for 
Search instead for 
Did you mean: 


Former Member
0 Kudos

for a structure how to represent the component's field details during programming

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rekha,

You might get more detailed answers in the ABAP forum. In any case, let me give you some details.

If you have a structure, you can reference the fields of that structure using the name of the variable for that structure, followed by a dash and then followed by the technical name of the field.

For example, if you have a structure that is defined as:

types: begin of ty_sample,
                 field1 type string,
                 field2 type dats,
         end of ty_sample.

Then you can define a variable with the the same components as this structure using an ABAP code similar to the ff:

data: w_data type ty_sample.

You can then reference the first field, by saying


Hope this helps.

Answers (0)