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 Symbols

Former Member
0 Kudos

Dear All,

I created dynamic internal table and assign to field symbol. I successfully populate the field symbol and it contain only numeric fields. I need to do total sum at the end. I used "SUM" statement AT LAST .....ENDAT. but it is giving syntax error because of field symbol a field symbol. How can we done total at last on this dynamic internal table?? Is there any other alternative??

Thanks,

Siva.

Moderator message: please use a more descriptive subject line next time.

Edited by: Thomas Zloch on Apr 12, 2010 6:41 PM

2 REPLIES 2

Subhankar
Active Contributor
0 Kudos

Hi,

To do that you can use the object oriented ALV using FACTORY method.

Here when you creating the field catalog you can hard coded give field name.

Thanks

Subhankar

Former Member
0 Kudos

Below code will display all the fields in internal table "IT_VBSS".

call method cl_salv_table=>factory
          importing
            r_salv_table = gr_table
          changing
            t_table      = it_vbss.

Regards

Vinod