‎2008 Mar 17 3:45 PM
Hey Guys.........
What i want to know is that whether or not we can use function modules like REUSE_ALV_FIELDCATALOG_MERGE to generate field catalog if we r using more than one standard table in our code. If yes than what function module to use and how to use it?
thanks....
‎2008 Mar 17 5:35 PM
hi Faisal,
yes, you can still use REUSE_ALV_FIELDCATALOG_MERGE. Like:
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = program_name
i_internal_tabname = internal_table_name
I_STRUCTURE_NAME =
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = program_name
Pls. note that you have to declare all fields with LIKE (and not with TYPE), otherwise the Fm is not working.
hope this helps
ec
‎2008 Mar 17 5:35 PM
hi Faisal,
yes, you can still use REUSE_ALV_FIELDCATALOG_MERGE. Like:
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = program_name
i_internal_tabname = internal_table_name
I_STRUCTURE_NAME =
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = program_name
Pls. note that you have to declare all fields with LIKE (and not with TYPE), otherwise the Fm is not working.
hope this helps
ec
‎2008 Mar 18 8:29 AM
Hello Faisal
If you have only "flat" (non-hierarchical of block) ALV list then I recommend to avoid SLIS-based ALV.
Instead use the following function modules (if you do not want to use OO-based ALV):
LVC_FIELDCATALOG_MERGE
REUSE_ALV_GRID_DISPLAY_LVCIf your output itab consists of several structures simply call fm LVC_FIELDCATALOG_MERGE repeatedly with the different structures. The entries in the fieldcatalog are appended.
Regards
Uwe
‎2008 Mar 18 4:29 PM
‎2008 Mar 19 10:35 PM
Hi Khan,
For generatinf fieldcatalaog for different structures , you need to call the FM 'REUSE_ALV_FIELDCATALOG_MERGE' as many times as you need.
so every time u pass the name of the structure a fieldcatalog is generated for that structure.
I think other than this u cannot do .
Thanks & Regards,
AMK.
REWARD POINTS IF USEFUL.