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: 

Layout in REUSE_ALV_BLOCK_LIST_DISPLAY

Former Member
0 Kudos

Hi people,

I have a problem with the layout of REUSE_ALV_BLOCK_LIST_DISPLAY. I want to freeze some fields of my alv, I write in the fieldcat something like this:

p_gt_fieldcat-OUTPUTLEN = '30'.

p_gt_fieldcat-key = 'X'.

APPEND p_gt_fieldcat.

But I saw in the fm REUSE_ALV_BLOCK_LIST_HS_APPEND 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'.

As you can see I have to change de value of GT_STACK-LAYOUT-NO_KEYFIX.

Anybody knows how could I make this change??

Thxz a lot.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Can you specify clearly for which field you are doing below

p_gt_fieldcat-OUTPUTLEN = '30'.

p_gt_fieldcat-key = 'X'.

APPEND p_gt_fieldcat.

Here you are using the append statemetn, i think you need to modify the internal tbale p_gt-fieldcat. check once...

Regards,

Satya.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Can you specify clearly for which field you are doing below

p_gt_fieldcat-OUTPUTLEN = '30'.

p_gt_fieldcat-key = 'X'.

APPEND p_gt_fieldcat.

Here you are using the append statemetn, i think you need to modify the internal tbale p_gt-fieldcat. check once...

Regards,

Satya.

Former Member
0 Kudos

hi

good

if you want to freeze some of the field in the field catalogue than you canGT_STACK-LAYOUT-NO_KEYFIX = 'X'.

similarly if you want to freeze the field in

REUSE_ALV_BLOCK_LIST_DISPLAY

you can use the similar approach

thanks

mrutyun^

0 Kudos

Hi people!

Thanks both for your answer.

The problem is that although in my fieldcat i put p_gt_fieldcat-key = 'X'. Inside de Function alv_blck_hs_append there is a sentence that change my layout.

gt_stack-layout-no_keyfix = 'X'. As it is in the standard i can´t change it.

I will try with other things.

Thxs!!!