‎2010 Aug 16 4:56 PM
Hi,
The requirement is to create the fieldcatalog same as internal table, Can any one put some light on it,
I explore SDN and other sites also, used FMs LVC_FIELDCATALOG_MERGE' and 'REUSE_ALV_FIELDCATALOG_MERGE', but it is taking whole DB table to which this Internal table is ref.
Thanks for kind attension,
Anmol Bhat.
‎2010 Aug 16 5:00 PM
Hi Anmol,
try this code
DATA: o_alv TYPE REF TO cl_salv_table.
DATA: lx_msg TYPE REF TO cx_salv_msg.
TRY.
cl_salv_table=>factory(
IMPORTING
r_salv_table = o_alv
CHANGING
t_table = <Internal Table>). "Pass your internal table here automatically it will build field catalog
CATCH cx_salv_msg INTO lx_msg.
ENDTRY.
o_alv->display( ). "it will display the report in ALV format no need calling 'REUSE_ALV_DISPLAY_LIST'
Prabhudas
‎2010 Aug 16 7:43 PM
Thanks,
Actually I want the Fieldcat, but ur logic help me to get the fiedcat too. Thanks a lot. Clossing the threat.