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: 

ALV Title using I_GRID_TITLE not showing up in REUSE_ALV_GRID

agnihotro_sinha2
Active Contributor
0 Kudos

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.?

2 REPLIES 2

Former Member
0 Kudos

Hi,

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

Regards,

Sharin.

Former Member
0 Kudos

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