04-12-2010 5:26 PM
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
04-12-2010 5:29 PM
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
04-13-2010 5:55 AM
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