Application Development and Automation 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: 
Read only

header function module

Former Member
0 Likes
729

Hi

all

can any one suggest me the function module name for

displaying header on list or grid report .

only through the function module name

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
646

hi,

fm = > REUSE_ALV_COMMENTARY_WRITE.

rgds

anver

5 REPLIES 5
Read only

Former Member
0 Likes
646

FORM top_of_page. "#EC CALLED.

CALL FUNCTION <b>'REUSE_ALV_COMMENTARY_WRITE'</b>

EXPORTING

it_list_commentary = w_standard_header.

ENDFORM. "top_of_page

Read only

anversha_s
Active Contributor
0 Likes
647

hi,

fm = > REUSE_ALV_COMMENTARY_WRITE.

rgds

anver

Read only

Former Member
0 Likes
646

HI,

FM <b>'REUSE_ALV_COMMENTARY_WRITE'</b>

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = GD_REPID

I_CALLBACK_TOP_OF_PAGE = <b>'TOP-OF-PAGE' </b>

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

  • i_grid_title = outtext

IS_LAYOUT = GD_LAYOUT

IT_FIELDCAT = FIELDCATALOG[]

  • it_special_groups = gd_tabgroup

IT_EVENTS = GT_XEVENTS

I_SAVE = 'X'

IS_VARIANT = Z_TEMPLATE

TABLES

T_OUTTAB = IT_EKKO

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.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = LT_TOP_OF_PAGE.

  • I_LOGO = 'ENJOYSAP_LOGO'.

ENDFORM.

hope this helps,

do reward if it helps,

priya.

Read only

Former Member
0 Likes
646

Hi Jitendra,

Fn module --> REUSE_ALV_COMMENTARY_WRITE

You can refer SAP std program BALVHD01.

BR,

Preema

*Award points for helpful answers

Read only

Former Member
0 Likes
646

'REUSE_ALV_COMMENTARY_WRITE'

call this function module and build list header like this

data: ls_listheader type slis_t_listheader.

ls_listheader-typ = 'H'.

ls_listheader-INFO = 'THIS IS HEADER OF THE REPORT'.

APPEND ls_listheader.

ls_listheader-typ = 'S'.

ls_listheader-INFO = 'ITEM IN HEADER'.

APPEND ls_listheader.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = ls_listheader

  • I_LOGO =

  • I_END_OF_LIST_GRID =

  • I_ALV_FORM =

.

IT WILL WORK