10-03-2008 8:27 AM
Hi All,
I want to assign a range table to a field symbol and at the same time I want to clear the contents of the table and field symbol.
Please let me know how to do this...
Thanks & Regards
Santhosh
10-03-2008 8:32 AM
hi,
try this.
data:
wa like line of itab.
field-symbol:
<fs_table> type any table,
<fs_field> type any.
assign local copy of initial line of itab to <fs_table>.
loop at <fs_table> into wa.
assign component 'SIGN' of structure wa to <fs_field>.
modify your fields here.
endloop.
regards,
Peter
10-03-2008 8:38 AM
Hi,
If I have an internal table in separate program and how to do assign this field-symbol from that??
Thanks & Regards
Santhosh
10-03-2008 8:42 AM
hi,
try using this code.
ASSIGN (program name)itab to <field symbol>.
regards,
Peter
10-03-2008 8:34 AM
This code may help u...
DATA: range TYPE RANGE OF matnr.
FIELD-SYMBOLS: <range> LIKE range[].
ASSIGN RANGE[] to <range>.
Edited by: Sukriti Saha on Oct 3, 2008 9:38 AM