2008 Mar 18 5:22 PM
Hi all,
when displaying internal tables using ALV I have to provide a fieldcatalog of type SLIS_FIELDCAT_ALV
while I can create a dynamic internal table using a call to method CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE where I have to provide the fieldcatalog with type LVC_S_FCAT.
Does any one know of a method or function module which allows to convert a structure SLIS_FIELDCAT_ALV into LVC_S_FCAT? A simple move-corresponding does not work as the corresponding fields have different names.
Thanks & regards,
Thomas
2008 Mar 18 5:32 PM
Hi,
If you are displaying a list using cl_gui_alv_grid class, the field catalogue needs to be of type lvc_t_fcat anyways.
so I would suggest you create the create the field catalog as lvc_t_fcat at first place instead of creating it as SLIS_FIELDCAT_ALV.
2008 Mar 18 5:32 PM
Hi,
If you are displaying a list using cl_gui_alv_grid class, the field catalogue needs to be of type lvc_t_fcat anyways.
so I would suggest you create the create the field catalog as lvc_t_fcat at first place instead of creating it as SLIS_FIELDCAT_ALV.
2008 Mar 20 8:36 AM
hi,
Here is the example . Clearly explained. Have a look.
[OOPs ALV simple program|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap-7StepstocreateOOPSALV%2528forbeginners%2529&]
Regards,
Venkat.O
2008 Mar 20 8:46 AM
Hi,
Try using FM REUSE_ALV_GRID_DISPLAY_LVC to display ALV data instead of using FM REUSE_ALV_GRID_DISPLAY.
'REUSE_ALV_GRID_DISPLAY' is for the SLIS type pool.
'REUSE_ALV_GRID_DISPLAY_LVC' is for the LVC type pool which of course has a better functionality.
Hope this helps.
Thanks,
Balaji
2008 Mar 20 11:38 AM
Dear all,
thank you very much for your helpful input. Combining these I was able to solve this issue.
Kind regards,
Thomas
2008 Mar 20 12:08 PM