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

Former Member
0 Likes
1,153

We're in the process of upgrading from 4.7 to ECC 6.0 and ran across an issue with reports using FM REUSE_ALV_GRID_DISPLAY.

In the TOP-OF-PAGE event, we are passing header info using FM REUSE_ALV_COMMENTARY_WRITE and it creates a comment section above the ALV with the header info.

In ECC 6.0, that info isn't showing anymore. Has anyone run into this issue?

Otherwise, is there a way to create the same functionality using the OO method?

Thanks,

Robert.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,042

Hi Robert,

Are you getting a blank area in the place of the header?

There must be some problem with the SAP GUI.

Reinstall or install the latest patch for the SAP GUI.

regards,

Ravi

We're in the process of upgrading from 4.7 to ECC 6.0 and ran across an issue with reports using FM REUSE_ALV_GRID_DISPLAY.

In the TOP-OF-PAGE event, we are passing header info using FM REUSE_ALV_COMMENTARY_WRITE and it creates a comment section above the ALV with the header info.

In ECC 6.0, that info isn't showing anymore. Has anyone run into this issue?

Otherwise, is there a way to create the same functionality using the OO method?

Thanks,

Robert.

6 REPLIES 6
Read only

Former Member
0 Likes
1,043

Hi Robert,

Are you getting a blank area in the place of the header?

There must be some problem with the SAP GUI.

Reinstall or install the latest patch for the SAP GUI.

regards,

Ravi

Read only

0 Likes
1,042

yes, a blank area is appearing there. i'll talk to BASIS about a patch for the GUI.

thanks for the advice.

Read only

0 Likes
1,042

I should note, that i have another report based on RHSTRU00 (headcount report) that works fine. it shows the area.

But, this is using OO ALV_TREE_CONTROL

CALL METHOD alv_tree_control->set_table_for_first_display
  EXPORTING
    is_variant           = gs_variant
    i_save               = 'A'
    i_default            = 'X'
    i_background_id      = 'SIWB_WALLPAPER'
    is_hierarchy_header  = hierarchy_header
    it_list_commentary   = lt_list_commentary      <======
    it_toolbar_excluding = it_toolbar_excluding
  CHANGING
    it_outtab            = it_tab
    it_fieldcatalog      = fieldcatalog.

Read only

0 Likes
1,042

Are you getting the heading for BALVST02_GRID program?

If yes, just, compare your prog

Read only

0 Likes
1,042

great.. we have to comment out the i_callback_html_top_of_page and it works

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_background_id             = 'SIWB_WALLPAPER'
        i_callback_program          = g_repid
*       i_callback_pf_status_set    = 'DEFAULT'
        i_callback_user_command     = w_callback_ucomm
        i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE'  <=========
        is_layout                   = gs_layout
        it_fieldcat                 = gt_fieldcat[]
        it_special_groups           = gt_sp_group[]
        it_sort                     = gt_sort[]
        i_save                      = g_save
        is_variant                  = g_variant
        it_events                   = gt_events[]
        is_print                    = gs_print
      TABLES
        t_outtab                    = irep
      EXCEPTIONS
        program_error               = 1.

Read only

0 Likes
1,042

also, Note 989992 addresses this issue.