Skip to Content
0
Former Member
Nov 16, 2009 at 09:22 AM

Reg:Field-symbols

34 Views

Hi,

I have the following code..

Types: begin of ty_line,

col1(1) type C,

col2(1) type C,

End of ty_line.

Types : gt_line type standard table of ty_line.

Data : it_line type gt_line,

wa_line like line of it_line.

Now by using field symbols I want to insert data into it_line and display the data in it_line with field symbols reffering to wa.

Normally we will do like...

wa_line-col1 = 'A'.

wa_line-col2 = 'B'.

append wa_line to it_line.

loop at it_line into wa_line.

write : wa_line-col1 , wa_line-col2.

endloop.

I dont want like this...I want to know how to use field symbols in this scenario.