cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed columns in ALV Grid

Former Member
0 Kudos

Hi,

I have around 15 columns that needs to be displayed in a ALV Grid. (Web Dynpro Application). I am struck up with the following questions..

1. Is it possible to attach scrollbars to the ALV grid? If so, how do i do it? If not what is the alternate i have?

2. I would like to make the first 5 columns to be fixed during scrolling. If possible, how to do it?

Is there any sample application or paper on the advanced usage of alv grid, which i could refer? I had gone through the basic tutorials of alv..

Thanks for any help.

Rajee

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

you can use the method SET_FIRST_VISIBLE_SCROLL_COL of interface IF_SALV_WD_TABLE_SETTINGS to ficed the columns.

Regards

Naresh

Former Member
0 Kudos

Hello,

Take a look on this [Web Dynpro for ABAP - NW2004s SPS8 Documentation|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011] at page 199.

Hope this helps.

Regards.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> Hello,

>

> Take a look on this [Web Dynpro for ABAP - NW2004s SPS8 Documentation|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011] at page 199.

>

> Hope this helps.

>

> Regards.

I would be a little cautious about using the SPS8 version of the WDA documenation. A lot has changed with Web Dypnro ABAP throughout the support packages and this information in this document is defintely outdated. Personally I would always try and return to the online version (help.sap.com) so that you get the current version.

Former Member
0 Kudos

Hello Thomas,

You're right! The document is outdated. The new one that's updated can be found at [http://help.sap.com/saphelp_nw04s/helpdata/en/74/fd4142646ab46be10000000a155106/frameset.htm]

And I found a code sample (created by you) that can solve the proposed thread.

[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/web%2bdynpro%2babap%2b-%2bfixing%2ba%2bcolumn%2bin%2ban%2balv].

Regards.