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: 

Header in ALV using the class CL_SALV_TABLE

Former Member
0 Kudos

Hello All,

I have created a ALV using the class CL_SALV_TABLE. I have created the top of page using the following statements.

g_table->set_top_of_list( EXPORTING value = go_grid ).

g_table->set_top_of_list_print( go_grid ).

where go_grid is TYPE REF TO cl_salv_form_layout_grid and g_table is TYPE REF TO cl_salv_table.

My problem is if I do not provide a container in the method Factory() the header is displayed on top of the ALV but if I provide a container then the header is not shown.

Please help.

Thanks,

Anju

5 REPLIES 5

Former Member
0 Kudos

Hi,

Check the standard program "SALV_DEMO_TABLE_FORM_EVENTS" for reference.

Regards

Vinod

Former Member
0 Kudos

[Header in ALV|www.s-a-p-t-e-c-h-n-i-c-a-l.com/Tutorials/ALV/ColumnExcl.htm ]

0 Kudos

Guys,

The OP said,

"My problem is if I do not provide a container in the method Factory() the header is displayed on top of the ALV but if I provide a container then the header is not shown."

Do your solutions cater to the specific problem?

@OP: Can you share the code of your factory method call ? Are you passing both container instance & the container name while calling the method ?

Edited by: Suhas Saha on Apr 21, 2010 10:46 AM

Anyways you cannot use TOP-OF-PAGE for a container you have to use TOP-OF-LIST for it.

BR,

Suhas

Edited by: Suhas Saha on Apr 21, 2010 10:49 AM

Former Member
0 Kudos

Even long back i posted on the same issue and found no no solution on this.

Please refer the help link which shows clearly that header for ALV is not available in container

http://help.sap.com/erp2005_ehp_04/helpdata/EN/f9/1ab54099de3726e10000000a1550b0/frameset.htm

Former Member
0 Kudos

done.