The class for controlling alignment in the header/footer is cl_salv_form_layout_data_grid.
Example:
data: lr_grid type ref to cl_salv_form_layout_grid,
lr_layout_grid type ref to cl_salv_form_layout_data_grid,
lr_label type ref to cl_salv_form_label.
lr_label = lr_grid->create_label(
row = 1
column = 1
colspan = 4
text = 'Net Profit Report'(h01)
tooltip = text-h01 ).
lr_layout_grid ?= lr_label->get_layout_data( ).
lr_layout_grid->set_h_align( if_salv_form_c_h_align=>center ).
Search This Blog
Showing posts with label OM. Show all posts
Showing posts with label OM. Show all posts
Friday, November 11, 2011
Friday, August 20, 2010
OO ALV OM and other sample programs
Check out the new ALV OM: cl_salv_table=>factory
Sample programs in SAP:
SALV_DEMO_TABLE_REAL_SIMPLE
SALV* "New OM stuff
BALV* "old school
/nABAPDOCU "abap documentation and examples
SE80->Package = SABAPDEMOS
ALV Object Model - Simple 2D Table - The Basics
ALV Object Model - Simple 2D Table - Event Handling
ALV Object Model - Hierarchical Sequential List - The Basics
SAP Help
Sample programs in SAP:
SALV_DEMO_TABLE_REAL_SIMPLE
SALV* "New OM stuff
BALV* "old school
/nABAPDOCU "abap documentation and examples
SE80->Package = SABAPDEMOS
ALV Object Model - Simple 2D Table - The Basics
ALV Object Model - Simple 2D Table - Event Handling
ALV Object Model - Hierarchical Sequential List - The Basics
SAP Help
Subscribe to:
Posts (Atom)