Skip to Content
author's profile photo Former Member
Former Member

How to print the Grid title in ALV Report?

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 11:43 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 11:46 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 19, 2008 at 11:49 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 12:24 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.