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: 

How to print the Grid title in ALV Report?

Former Member
0 Kudos

Hi All,

I write ALV Report.When i am going to print this report it is not printing the Grid Header(ie.Title ).even in Print Preview Also i m not getting the title.It shows the Gird with Values.How Can i print the title Also...

Regards,Ravi

4 REPLIES 4

Former Member
0 Kudos

hi there...

use the "I_grid_title" field in the function to put in the heading....

still is it does not appear, then get bak...

do reward if helpful.

Former Member
0 Kudos

Hi,

It would be better if u can put up the code which is producing the error. as i dont find any reason y its not getting displayed as i have done a similar thing minutes b4 u posted the qstn.

geetha_k
Active Participant
0 Kudos

Hi,

u will declare the data as below like this

DATA: LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,

TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.

DATA : ST_FIELDCAT TYPE SLIS_FIELDCAT_ALV,

IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,

ST_EVENT TYPE SLIS_ALV_EVENT,

IT_EVENT TYPE SLIS_T_EVENT.

DATA : ST_LIST TYPE SLIS_LISTHEADER,

IT_LIST TYPE SLIS_T_LISTHEADER,

IT_LIST1 TYPE SLIS_T_LISTHEADER,

IT_LIST2 TYPE SLIS_T_LISTHEADER.

START-OF-SELECTION.

IF G_FLAG = SPACE.

W_REPID = SY-REPID.

G_TOP_PAGE = 'TOP-PAGE'.

ST_LIST-INFO = ' Title Name '.

APPEND ST_LIST TO IT_LIST.

ST_LIST-INFO = ' second Name'.

APPEND ST_LIST TO IT_LIST.

ELSE.

ENDIF.

FORM TOP-PAGE .

DATA: V_LOGO(15).

V_LOGO = 'LOGO'.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = IT_LIST

I_LOGO = V_LOGO.

  • I_END_OF_LIST_GRID =

.

ENDFORM. "TOP-PAGE

Former Member
0 Kudos

Hi,

If you want to give the grid title, then use I_GRID_TITLE optional parameter in REUSE_ALV_GRID_DISPLAY function module.

If you want ALV Header use I_CALLBACK_TOP_OF_PAGE parameter in the same function module.

Regards,

Chandu