Hi Gurus,
I am facing an issue.
In my top of page subroutine I want to align my texts...few as left justified, few centralised & few right justified....
But I am not able to do so....everything is left justified.....
I am not using OOPS method.....using normal ALV grid FM...
Following is the subroutine used :-
FORM top-of-page.
DATA: t_header TYPE slis_t_listheader,
wa_header TYPE slis_listheader,
l_tab_space(10) TYPE c VALUE ' :',
l_hdr_asset(50) TYPE c,
l_hdr_rprtdt(50) TYPE c,
l_hdr_rundt(50) TYPE c,
l_hdr_deprec(50) TYPE c.
* Title
CONCATENATE text-e03 sy-datum INTO l_hdr_rundt SEPARATED BY space.
wa_header-typ = 'S'.
wa_header-info = l_hdr_rundt.
APPEND wa_header TO t_header.
CLEAR wa_header.
wa_header-typ = 'A'.
wa_header-info = text-e00.
APPEND wa_header TO t_header.
CLEAR wa_header.
CONCATENATE text-e01 g_anlkl INTO l_hdr_asset SEPARATED BY space.
wa_header-typ = 'S'.
wa_header-info = l_hdr_asset.
APPEND wa_header TO t_header.
CLEAR wa_header.
CONCATENATE text-e04 s_afabe-low INTO l_hdr_deprec SEPARATED BY space.
wa_header-typ = 'S'.
wa_header-info = l_hdr_deprec.
APPEND wa_header TO t_header.
CLEAR wa_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header.
ENDFORM.
Thanks Winnie