Skip to Content

ALV Title using I_GRID_TITLE not showing up in REUSE_ALV_GRID

data:      vg_grid_title    TYPE LVC_TITLE.

move 'Batch: XXXXXX'' to vg_grid_title.

    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          = vg_status
       i_callback_user_command           = vg_ucom
*   I_CALLBACK_TOP_OF_PAGE            = ' '
*   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
*   I_CALLBACK_HTML_END_OF_LIST       = ' '
*   I_STRUCTURE_NAME                  =
*   I_BACKGROUND_ID                   = ' '
   I_GRID_TITLE                      = vg_grid_title
*   I_GRID_SETTINGS                   =
   IS_LAYOUT                         = sg_layout

Title is not showing up.

Do i need to do anything extra.?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2010 at 01:09 PM

    Hi,

    Try giving the grid title by exploring the options in the structure sg_layout.

    Regards,

    Sharin.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2010 at 05:48 AM

    Hi

    Please try dis :

    VG_GRID_TITLE = 'Batch: XXXXXX'.

    and

    • I_BACKGROUND_ID = ' '

    I_GRID_TITLE = VG_GRID_TITLE

    *or *

    make use of

    class : CL_DD_DOCUMENT .

    DATA: TEXT1 TYPE SDYDO_TEXT_ELEMENT,

    data : DOCUMENT TYPE REF TO CL_DD_DOCUMENT. "#EC CALLED

    CALL METHOD DOCUMENT->ADD_GAP

    EXPORTING

    WIDTH = 150.

    TEXT1 = 'YOUR GRID TITLE IN THE REPORT '.

    CALL METHOD DOCUMENT->ADD_TEXT

    EXPORTING

    TEXT = TEXT1

    SAP_EMPHASIS = strong .

    Hope it helps

    Regards

    Swapnil

    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.