Output for help.
Hi Satsihs,
U can do acheive this by below code,
If you are using oops then
create a custom container and
x_layout TYPE lvc_s_layo.
To display date in format 24/09/2013 do,
DATA: a(8) TYPE c, b(10) TYPE c.
a = p_date.-----------------> your input date
CONCATENATE a+6(2) '/' a+4(2) '/' a+0(4) INTO b.
x_layout-grid_title = 'DATE: ' && b.
then call the method set_table_for_first_display
CALL METHOD obj_grid->set_table_for_first_display
EXPORTING
is_layout = lx_layout
2>
if u r not using oops and any container then u can acheive this by,
t_header_top TYPE slis_t_event, ---------for top of page
t_header TYPE slis_t_listheader.
x_header TYPE slis_listheader.
FORM top1.
REFRESH: t_header.
x_header-typ = 'H'.
x_header-info = 'Delivery Header Details'.-----------this is the header text
APPEND x_header TO t_header.
CLEAR: x_header.
"To print Date in DD/MM/YYYY format
DATA: a(8) TYPE c, b(10) TYPE c.
a = p_date.-----------ur input paramatere
CONCATENATE a+6(2) '/' a+4(2) '/' a+0(4) INTO b.
x_header-typ = 'S'.
x_header-key = 'Date :'.
x_header-info = b.
APPEND x_header TO t_header.
CLEAR: x_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header.
ENDFORM.
then call function reuse_alv_display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_top_of_page = 'TOP1' ------------this is the top of page