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

alv heading

Former Member
0 Likes
391

Hi Gurus,

I want to print heading for alv report as

xxxxxxxxxx xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx

xxxxxx Dt:xxxxxxx to xxxxxx xxxxxxxxxx.

Thanks for spending time.

Hi Gurus,

I want to print heading for alv report as

xxxxxxxxxx xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx

xxxxxx Dt:xxxxxxx to xxxxxx xxxxxxxxxx.

Thanks for spending time.

1 REPLY 1
Read only

Former Member
0 Likes
357

Hi!

FORM top_of_page.

  • The main header:


  CLEAR gs_line.
  gs_line-typ  = 'H'.
  gs_line-info = sy-title.
  APPEND gs_line TO gt_top_of_page.

  • For the datum from x to y, you might use the following:


  CLEAR lv_fejlec.
  CONCATENATE p_text_da1 ' '
      p_s_datum-low(4) '.' p_s_datum-low+4(2) '.' p_s_datum-low+6(2) '-'
      p_s_datum-high(4) '.' p_s_datum-high+4(2) '.' p_s_datum-high+6(2)
    INTO lv_fejlec.
  CLEAR gs_line.
  gs_line-typ  = 'S'.
  gs_line-info = lv_fejlec.
  APPEND gs_line TO gt_top_of_page.

ENDFORM.

And oyu have to call the top_of_page form in your ALV.



  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
     i_callback_top_of_page            = 'TOP_OF_PAGE'

Regards

Tamá