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

REUSE_ALV_COMMENTARY_WRITE help

Former Member
0 Likes
550

Hi ABAP Gurus,

Can any one explain me about

H = Header, S = Selection, A = Action in top-of-page in alv reports ?

Thanx and Regards

Srini

Hi ABAP Gurus,

Can any one explain me about

H = Header, S = Selection, A = Action in top-of-page in alv reports ?

Thanx and Regards

Srini

3 REPLIES 3
Read only

bpawanchand
Active Contributor
0 Likes
504

Hi

well you can see the function module documentations for reference

http://www.sap-img.com/abap/sample-programs-on-alv-grid.htm

Regards

pavan

Read only

former_member206439
Contributor
0 Likes
504

Hi

*ALV Header declarations

data: t_header type slis_t_listheader,

wa_header type slis_listheader,

t_line like wa_header-info,

ld_lines type i,

ld_linesc(10) type c.

  • Title

wa_header-typ = 'H'. this is for header text

wa_header-info = 'EKKO Table Report'.

append wa_header to t_header.

clear wa_header.

  • Date

wa_header-typ = 'S'. selection text

wa_header-key = 'Date: '.

concatenate sy-datum+6(2) '.'

sy-datum+4(2) '.'

sy-datum(4) into wa_header-info."todays date

append wa_header to t_header.

clear: wa_header.

  • Total No. of Records Selected

describe table it_ekko lines ld_lines.

ld_linesc = ld_lines.

concatenate 'Total No. of Records Selected: ' ld_linesc

into t_line separated by space.

wa_header-typ = 'A'. action to be done

wa_header-info = t_line.

append wa_header to t_header.

clear: wa_header, t_line.

call function 'REUSE_ALV_COMMENTARY_WRITE'

exporting

it_list_commentary = t_header

i_logo = 'NARESH_LOGO'.

Read only

0 Likes
504

Thnx Naresh for ur answer