Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

QUERY REGARDING FUNCTION MODULE TO GENERATE FIELD CATALOG

Former Member
0 Likes
624

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....

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
571

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

4 REPLIES 4
Read only

JozsefSzikszai
Active Contributor
0 Likes
572

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
571

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_LVC

If 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

Read only

Former Member
0 Likes
571

kool guys.....thanks..eh

Read only

Former Member
0 Likes
571

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.