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

Grid Fieldcat generated from DB structure

Former Member
0 Likes
1,097

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

REUSE_ALV_FIELDCATALOG_MERGE

Greetings,

Blag.

2 REPLIES 2
Read only

Former Member
0 Likes
680

REUSE_ALV_FIELDCATALOG_MERGE

Greetings,

Blag.

Read only

Former Member
0 Likes
679

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.