Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

save layout Button in Object Oriented ALV

Hi gurus,

I am working on Object Oriented ALV. I am facing one problem when the outpput get shown on the screen the save layout and select layout buttons are not appearing on the application toolbar of alv.


cl_salv_table=>factory( IMPORTING r_salv_table = g_alv_out

CHANGING t_table = i_alv ).

  • Set status GUI


pfstatus = 'STANDARD'

report = sy-repid

set_functions = g_alv_out->C_FUNCTIONS_ALL ).

g_columns = g_alv_out->get_columns( ).

  • Set new description texts for columns

PERFORM f_set_column_name USING:

'LTEXT' text-001 text-001 text-001 space,

'NAME1' text-002 text-002 text-002 space,

'TXZ01' text-003 text-007 text-007 space,

'KWERT' text-004 text-004 text-004 space,

'WEMNG' text-005 text-010 text-011 space,

'BALNC' text-012 text-013 text-014 space,

'AFNAM' text-006 text-008 text-009 space.

PERFORM f_set_column_name USING 'WEMNG'

space space space 'WAERS'.

PERFORM f_set_column_name USING 'KWERT'

space space space 'WAERS'.

  • Set column as hotspot

g_column ?= g_columns->get_column( 'EBELN' ).

g_column->set_cell_type( g_column->hotspot ).

g_events = g_alv_out->get_event( ).

CREATE OBJECT gr_events .

SET HANDLER gr_events->on_double_click FOR g_events.

  • Display report

g_alv_out->display( ).

CATCH cx_salv_msg.


where in the Status STANDARD I have entered all the buttons includeing these two buttons

Can you please Help me in solving this issue.



Edited by: vinod parhad on Jul 2, 2010 1:35 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question