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 grid

Former Member
0 Kudos

Hi friends,

i need small help..

In my alv grid report, i need to suppress the std.heading thats coming from the decription given in attributes.

even though i'm using no std page heading, its still there.

how can i suppress this ..plz help me..

Thanks,

Praveen

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Put The event Load-of-program and Put SY-TITLE as space

6 REPLIES 6

Former Member
0 Kudos
REPORT ...
             NO STANDARD PAGE HEADEING.

Also in 
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program = report_id
            i_grid_title       = ws_title
            is_layout          = wa_layout
            it_fieldcat        = i_fieldcat
            it_sort            = i_sortcat
            i_save             = 'A'
            it_events          = i_events
       TABLES
            t_outtab           = i_final
       EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
  IF sy-subrc <> 0.

dont specify

<b>i_grid_title = ws_title</b>

Also if u have specified in layout remove teh title.

Reward if u find helpful.

Former Member
0 Kudos

check the EVENTs of that GRID FM.

<b> call function 'REUSE_ALV_EVENTS_GET'

exporting

i_list_type = 0

importing

et_events = fevents[].

  read table fevents with key name = 'TOP_OF_PAGE'.

  if sy-subrc = 0.
    fevents-form = 'Z_TOPOFPAGE'.
*    fevents-form = 'Z_LIST'.
    modify fevents index sy-tabix.
    clear fevents.

<b> "COMMENT THIS</b>

endif. </b>

Former Member
0 Kudos

Hi,

You have to write code in Perform Comment_build.

  • List Header for Top-Of-Page

perform comment_build using g_list_top_of_page[].

----


  • Form : comment_build

  • Description : This form is used to display the Report Header(ALV)

----


*

form comment_build using lt_top_of_page type

slis_t_listheader.

data: l_line type slis_listheader,

l_heading1 like rs38m-repti,

l_date(10), l_time(8).

clear l_line.

l_heading1 = 'GR/IR DETAIL REPORT'.

g_repid = sy-repid.

write sy-uzeit to l_time.

write sy-datum to l_date.

l_line-typ = c_h.

move l_heading1 to l_line-info.

append l_line to lt_top_of_page.

endform.

Regards,

Anji

Former Member
0 Kudos

Put The event Load-of-program and Put SY-TITLE as space

Former Member
0 Kudos

SY-TITLE contains the title that is gievn in the attributes screen.. u can over write it by assigning it with ur own title.

It wil solve your issue for sure.

Here is the syntax....

SY-TITLE = ' SDN Network'. --> assing ur own title.

Regards,

Sujatha.

0 Kudos

Hi Sujatha,

Exact answer but slightly delayed.

I have done this just by guess and got it done.

Thanks a lot for your kindness.