Application Development and Automation 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: 
Read only

Field symbol assignment

Former Member
0 Likes
916

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
Read only

peter_ruiz2
Active Contributor
0 Likes
631

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

Read only

0 Likes
631

Hi,

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

Thanks & Regards

Santhosh

Read only

0 Likes
631

hi,

try using this code.

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

regards,

Peter

Read only

Former Member
0 Likes
631

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