Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Field symbol assignment

Former Member
0 Kudos

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

4 REPLIES 4

peter_ruiz2
Active Contributor
0 Kudos

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

0 Kudos

Hi,

If I have an internal table in separate program and how to do assign this field-symbol from that??

Thanks & Regards

Santhosh

0 Kudos

hi,

try using this code.

ASSIGN (program name)itab to <field symbol>.

regards,

Peter

Former Member
0 Kudos

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