Application Development 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: 

alv

Former Member
0 Kudos

hi guru's,

what is exact use of FM

REUSE_ALV_FIELDCATALOG_MERGE

thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI

FU REUSE_ALV_FIELDCATALOG_MERGE

____________________________________________________

Short Text

Create field catalog from dictionary structure or internal table

Functionality

Supports the creation of the field catalog for the ALV function modules

based either on a structure or table defined in the ABAP Data

Dictionary, or a program-internal table.

The program-internal table must either be in a TOP Include or its

Include must be specified explicitly in the interface.

The variant based on a program-internal table should only be used for

rapid prototyping since the following restrictions apply:

o Performance is affected since the code of the table definition must

always be read and interpreted at runtime.

o Dictionary references are only considered if the keywords LIKE or

INCLUDE STRUCTURE (not TYPE) are used.

If the field catalog contains more than 90 fields, the first 90 fields

are output in the list by default whereas the remaining fields are only

available in the field selection.

If the field catalog is passed with values, they are merged with the

'automatically' found information.

Parameters

I_PROGRAM_NAME

I_INTERNAL_TABNAME

I_STRUCTURE_NAME

I_CLIENT_NEVER_DISPLAY

I_INCLNAME

I_BYPASSING_BUFFER

I_BUFFER_ACTIVE

CT_FIELDCAT

Exceptions

INCONSISTENT_INTERFACE

PROGRAM_ERROR

Function Group

SALV

*************************************

The Function module documentation is as follows.

Supports the creation of the field catalog for the ALV function modules based either on a structure or table defined in the ABAP Data Dictionary, or a program-internal table.

The program-internal table must either be in a TOP Include or its Include must be specified explicitly in the interface.

The variant based on a program-internal table should only be used for rapid prototyping since the following restrictions apply:

Performance is affected since the code of the table definition must always be read and interpreted at runtime.

Dictionary references are only considered if the keywords LIKE or INCLUDE STRUCTURE (not TYPE) are used.

If the field catalog contains more than 90 fields, the first 90 fields are output in the list by default whereas the remaining fields are only available in the field selection.

If the field catalog is passed with values, they are merged with the 'automatically' found information.

***********************************************

Check this sample program:

http://www.sap-img.com/fu015.htm

http://www.sap-img.com/abap/reincarnation-of-reuse-alv-fieldcatalog-merge.htm

***********************************************

check these threads............

https://forums.sdn.sap.com/click.jspa?searchID=1192539&messageID=2528136

https://forums.sdn.sap.com/click.jspa?searchID=1192539&messageID=2827913

https://forums.sdn.sap.com/click.jspa?searchID=1192539&messageID=1552643

***********************************

Regards

vasu

5 REPLIES 5

Former Member
0 Kudos

HI

FU REUSE_ALV_FIELDCATALOG_MERGE

____________________________________________________

Short Text

Create field catalog from dictionary structure or internal table

Functionality

Supports the creation of the field catalog for the ALV function modules

based either on a structure or table defined in the ABAP Data

Dictionary, or a program-internal table.

The program-internal table must either be in a TOP Include or its

Include must be specified explicitly in the interface.

The variant based on a program-internal table should only be used for

rapid prototyping since the following restrictions apply:

o Performance is affected since the code of the table definition must

always be read and interpreted at runtime.

o Dictionary references are only considered if the keywords LIKE or

INCLUDE STRUCTURE (not TYPE) are used.

If the field catalog contains more than 90 fields, the first 90 fields

are output in the list by default whereas the remaining fields are only

available in the field selection.

If the field catalog is passed with values, they are merged with the

'automatically' found information.

Parameters

I_PROGRAM_NAME

I_INTERNAL_TABNAME

I_STRUCTURE_NAME

I_CLIENT_NEVER_DISPLAY

I_INCLNAME

I_BYPASSING_BUFFER

I_BUFFER_ACTIVE

CT_FIELDCAT

Exceptions

INCONSISTENT_INTERFACE

PROGRAM_ERROR

Function Group

SALV

*************************************

The Function module documentation is as follows.

Supports the creation of the field catalog for the ALV function modules based either on a structure or table defined in the ABAP Data Dictionary, or a program-internal table.

The program-internal table must either be in a TOP Include or its Include must be specified explicitly in the interface.

The variant based on a program-internal table should only be used for rapid prototyping since the following restrictions apply:

Performance is affected since the code of the table definition must always be read and interpreted at runtime.

Dictionary references are only considered if the keywords LIKE or INCLUDE STRUCTURE (not TYPE) are used.

If the field catalog contains more than 90 fields, the first 90 fields are output in the list by default whereas the remaining fields are only available in the field selection.

If the field catalog is passed with values, they are merged with the 'automatically' found information.

***********************************************

Check this sample program:

http://www.sap-img.com/fu015.htm

http://www.sap-img.com/abap/reincarnation-of-reuse-alv-fieldcatalog-merge.htm

***********************************************

check these threads............

https://forums.sdn.sap.com/click.jspa?searchID=1192539&messageID=2528136

https://forums.sdn.sap.com/click.jspa?searchID=1192539&messageID=2827913

https://forums.sdn.sap.com/click.jspa?searchID=1192539&messageID=1552643

***********************************

Regards

vasu

Former Member
0 Kudos

HI

this is basically used if you want to use any SE11 structure directly as your fieldcataloge.

in this case you need not make your fieldcataloge in the alv code

reward if useful

vivekanand

Former Member
0 Kudos

hi,

This function module is used to generate the field catalog.

You have to pass the internal table name to this function module with which you want to create field catalog and also if you defined that internal table in the include then pass the name of that include else report name.

Functionality

Supports the creation of the field catalog for the ALV function modules based either on a structure or table defined in the ABAP Data Dictionary, or a program-internal table.

The program-internal table must either be in a TOP Include or its Include must be specified explicitly in the interface.

The variant based on a program-internal table should only be used for rapid prototyping since the following restrictions apply:

Performance is affected since the code of the table definition must always be read and interpreted at runtime.

Dictionary references are only considered if the keywords LIKE or INCLUDE STRUCTURE (not TYPE) are used.

If the field catalog contains more than 90 fields, the first 90 fields are output in the list by default whereas the remaining fields are only available in the field selection.

If the field catalog is passed with values, they are merged with the 'automatically' found information.

.

Reward point if useful...

-Umesh

Former Member
0 Kudos

feildcatalog contains description of the list output feilds,

usually a subset of the internal output table feilds

a feildcatalog is required for every alv list output to add desired functionality

regards

prasanth kumar

Former Member
0 Kudos

hai ,

the main use of that FM is that it takes all the fields in the internal table to the field catlog.so if u want to display particular fields in the table it is not possible.

hope it is usefull.