‎2008 Nov 12 5:16 AM
Hi Experts,
We have client requirments where clients want to see the report of certain no of wage types.
The no. of wage types is variable, they can select any no. of wage type (30-50). Is there any way of dynamically declaring the no of fields in internal table?
Thanks & Regards
Manas Nayak
‎2008 Nov 12 5:21 AM
‎2008 Nov 12 5:19 AM
Hi,
use this..
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = ifc
IMPORTING
ep_table = dy_month.
ASSIGN dy_month->* TO <dyn_month>.
CREATE DATA dy_wa LIKE LINE OF <dyn_month>.
ASSIGN dy_wa->* TO <wa_month>.
use this in one loop.....in every loop passing you just create the field catalog ifc... i think your prob will be solved.
Arunima
‎2008 Nov 12 5:20 AM
Check this
[https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/dynamic%252binternal%252btable]
‎2008 Nov 12 5:21 AM