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: 

Freezing of cell of ALV(urgent)

Former Member
0 Kudos

Hi all abapers,

My requirement is to freeze a particular cell of ALV grid. Pleas give me an idea of that if anyway it is possible.

I anticipate for ur reply.

I assure you for giving full marks if you get my solution done.

Cheers,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

In the feildcatalog of the field do this.

<b>

wa_fieldcat-key = 'X'.

</b>

Vasanth

2 REPLIES 2

Former Member
0 Kudos

Hello,

In the feildcatalog of the field do this.

<b>

wa_fieldcat-key = 'X'.

</b>

Vasanth

mohammed_moqeeth
Active Participant
0 Kudos

Hi Pradeep,

before calling "REUSE_ALV_LIST_DISPLAY".

write the code as below:

LOOP AT FCAT ASSIGNING <lfs_fieldcat>.

CASE <lfs_fieldcat>-fieldname.

WHEN 'MATNR'.

<b><lfs_fieldcat>-KEY = 'X'. "for freezing MATNR column</b>

WHEN 'ERSDA'.

<b><lfs_fieldcat>-KEY = 'X'. "for freezing ERSDA column</b>

WHEN 'ERNAM'.

<b><lfs_fieldcat>-KEY = 'X'. "for freezing ERNAM column</b>

endcase.

endloop.

<b>Reward points if it is useful....</b>

Cheers !

Moqeeth.