‎2008 Feb 22 3:15 PM
Hi there. I've got a question.
Is there some function that allows me to create a grid field catalog which would be like some database structure or database table?
‎2008 Feb 22 3:16 PM
‎2008 Feb 22 3:16 PM
‎2008 Feb 22 3:31 PM
Hi,
You can use the FM REUSE_ALV_FIELDCATALOG_MERGE
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:
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.
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
Thanks,
Sriram Ponna.