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: 

title

Former Member
0 Kudos

How to set a title for the alv output.

9 REPLIES 9

Former Member
0 Kudos

Hi

U can do SET TITLEBAR before calling the ALV or you can use the event to set the status, here you can set the titlebar too.

Max

Former Member
0 Kudos

hi,

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = LV_REPID

IT_FIELDCAT = IT_FLDCAT

IT_EVENTS = TOP_OF_PAGE

is_layout = s_layout

TABLES

T_OUTTAB = IT_INV

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

FORM TOP_OF_PAGE.

DATA : LS_VALUE TYPE SLIS_LISTHEADER ,

LT_VALUE TYPE SLIS_T_LISTHEADER.

clear ls_value.

LS_VALUE-TYP = 'H'.

  • LS_VALUE-KEY = TEXT-H03.

LS_VALUE-INFO = 'HEADING'.

APPEND LS_VALUE TO LT_VALUE .

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = LT_VALUE

  • I_LOGO =

  • I_END_OF_LIST_GRID =

.

hope this helps,

do reward if it helps,

priya.

former_member181962
Active Contributor
0 Kudos

In the layout you can specify window_titlebar = 'title'.

Regards,

Ravi

Former Member
0 Kudos

Hi

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

i_callback_program = sy-repid

  • I_CALLBACK_PF_STATUS_SET = ' '

i_callback_user_command = 'USERCOMMAND'

i_callback_top_of_page = 'TOPPAGE'

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

i_structure_name = 'but000'

  • I_BACKGROUND_ID = ' '

<b>* I_GRID_TITLE =</b> <b>"Here attach ur sub routine for title.</b>* I_GRID_SETTINGS =

is_layout = is_layout

  • IT_FIELDCAT =

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

it_sort = it_sort

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

it_events = it_events

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • I_HTML_HEIGHT_TOP = 0

  • I_HTML_HEIGHT_END = 0

  • IT_ALV_GRAPHICS =

  • IT_HYPERLINK =

  • IT_ADD_FIELDCAT =

  • IT_EXCEPT_QINFO =

  • IR_SALV_FULLSCREEN_ADAPTER =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab = itab[]

  • EXCEPTIONS

  • PROGRAM_ERROR = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Regs

Manas Ranjan Panda

Message was edited by:

MANAS PANDA

Former Member
0 Kudos

Hi,

ALV output displays with the title given to your report.

if u want to give additionally some title then u can do it using FM in top-of-page

data : x_listheader type slis_listheader, "Header for top of page

t_listheader type slis_t_listheader."ALV LIST HEADER TABLE

refresh t_listheader.

clear x_listheader.

x_listheader-typ = 'H'. "HEADING

x_listheader-info = title

append x_listheader to t_listheader.

*-- FUNCTION TO WRITE THE TITLE AND SUB-TITLE OF THE ALV.

call function 'REUSE_ALV_COMMENTARY_WRITE'

exporting

it_list_commentary = t_listheader.

....

Madhavi.

Former Member
0 Kudos

hi,

pass the title to layout.

w_layo-grid_title = w_title.

append w_layo.

CALL METHOD w_alv_grid->set_table_for_first_display

EXPORTING

i_save = 'A'

is_layout = w_layo

CHANGING

it_outtab = it_data[]

it_fieldcatalog = wt_fieldcat

EXCEPTIONS

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

OTHERS = 4.

regards,

keerthi

Message was edited by:

keerthi kiran varanasi

Former Member
0 Kudos

Hi..

check this . to give the gird title..

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = SY-REPID

*grid title...

I_GRID_TITLE = 'ALL QUOTATION'

or if you are using oo abap.. you ve to give the title in the layout..

data: gl_layout type lvc_s_layo. "ALV control: Layout structure

in the PBO event include the title as..

gl_layout-grid_title = 'sales document details'(100).

hope this helps you..

regards

kothai.

Former Member
0 Kudos

hi ,

displaying the title in ALV is so simple

first we have to declare a table of type SLIS_T_LIST_HEADER

and append the information to the table

and pass it in the function module

REUSE_ALV_COMMENTARY_WRITE

Regards

srinivas

Former Member
0 Kudos

In the title of report i am getting a title like SAP, how can i change it