Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

Re: Assigning values to field symbols

$
0
0

Hi Jacob,

 

Let us say you have data in internal table lt_data

 

"if you know the column name

 

field-symbol:  <fs_data> like line of lt_data.

 

loop at lt_data assigning <fs_data>.

 

<fs_data>-a = sy-tabix. "or some other number

 

endloop.

if you dont know the column name,

 

field-symbol:  <fs_data> type any,

                    <fs_value> type any.

 

 

loop at lt_data assigning <fs_data>.

 

 

     assign component 'A' of structure <fs_data> to <fs_value>.

     if <fs_value> is assigned.

     <fs_value> = "New number

     endif.

 

endloop.

 

Hope this helps you.

Regards,

Rama


Viewing all articles
Browse latest Browse all 9193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>