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: 

Freezing ALV header in Pop-up ALV

Abinathsiva
Active Contributor

Hi Experts,

Have designed a module pool program based on selection option POP-UP ALV will be generated, there user will select required line item and it will flow back to table controller of module pool.

Requirement is when we have multiple lines in result when we scroll up, ALV header too scroll up and unable to use page up , page down too... attached screen shot and code for reference.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          is_layout                = l_layout
*         i_grid_settings          = lc_glay
          i_callback_pf_status_set = 'STATUS_103'
          i_callback_user_command  = 'USER_COMMAND_103'
          it_fieldcat              = it_fieldcat
          i_screen_start_column    = 1
          i_screen_start_line      = 1
          i_screen_end_column      = 10
*         i_screen_end_line        = 20
        TABLES
          t_outtab                 = it_mb52
        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.

8 REPLIES 8

venkateswaran_k
Active Contributor

Hi

Are You using the container? The ALV is coming inside the container?

Abinathsiva
Active Contributor

Yes Venkateswaran, it comes inside container...

Sandra_Rossi
Active Contributor

I don't see any "ALV header" in your screenshot, or do you mean "ALV column header titles"?

venkateswaran_k
Active Contributor
0 Kudos

Hi Abinath,

I am not sure if you put the object inside a container - and freeze the first row.- the whole object will scroll.

Why cant you use table control - to populate the table - instead of ALV

Regards,

Venkat

0 Kudos

Hi Abinath

Anything you find soln?

0 Kudos

Hi Venkateshwaran,

Working on same didn't found any solution yet.

raymond_giuseppi
Active Contributor

So you rewrote an F4 functionality with an old obsolete REUSE FM, could you consider:

  • Using an F4 FM such as F4IF_INT_TABLE_VALUE_REQUEST
  • Using a container and an OO ALV class so you could adapt your display to remove the vertical scrollbar. (If I undestood your problem)

Hi raymond.giuseppi

Thanks for your reply will try your suggestion