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 hierarchial display

Former Member
0 Kudos

Hi,

Through hierarchial display i'm displaying 15 columns of which first 3 columns are key fields, when i scroll to see the 13 or other columns i should still be able to see the first 3 cols values along with 13 & other remaining cols.

is there any field in fieldcatalog that has to be set for this condition. i have already tried using fix_column = 'X' for these 3 fields but it's not working.

is there any specific relationship that has to be maintained b/w header & item table for this to happen.

Regards

Raghavendra.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Please try to set fieldcat-key = 'X' for the columns to be fixed. Also check whether the no_keyfix field of is_layout is set as space.

3 REPLIES 3

Former Member
0 Kudos

Please try to set fieldcat-key = 'X' for the columns to be fixed. Also check whether the no_keyfix field of is_layout is set as space.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Here is the sample code.

DATA: lw_fieldcat_head TYPE slis_fieldcat_alv.

CLEAR lw_fieldcat_head.

lw_fieldcat_head-fieldname = C_VBELN.

lw_fieldcat_head-tabname = 'i_output'.

lw_fieldcat_head-key = c_x .

APPEND lw_fieldcat_head TO i_fieldcat.

  • Populating ALV Field Catalogue for the ALV Header Structure

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_internal_tabname = 'i_output'

i_structure_name = 'ZALV_HIERLIST_HEAD'

CHANGING

ct_fieldcat = i_fieldcat

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

Former Member
0 Kudos

Hi!,

I have de same problem to you, but even using gt_fieldcat-key = 'X'. It doesn't work. I could see in the standard function 'REUSE_ALV_BLOCK_LIST_HS_APPEND' something like this:

  • Oblig. values for mode BLOCK_APPEND

GT_STACK-LAYOUT-GROUP_BUTTONS = SPACE.

GT_STACK-LAYOUT-NO_KEYFIX = 'X'.

GT_STACK-LAYOUT-BLOCK_MODE = 'X'.

Does anybody know how could i modify the standard layout?

txs.

Patricia