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 POP UP

Former Member
0 Likes
543

Dear Experts,

I'm trying to use the function module : REUSE_ALV_POPUP_TO_SELECT

But, this functionality works fine for dispaly and select purposes.

But the requirement is Once the data is Poped up we may need to change some values in a particular field. But this function module doesn't allow that.

I tried adding EDIT = 'X' for field catalog but still I'm unable to edit the field. Is it because the pop up is a list functinality.

If so is there any function module that Pop's up Grid. If not any alternative would be higly appriciated.

Thanks

-Amit

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
509

The fm REUSE_ALV_POPUP_TO_SELECT will not have options to edit, For editing you need to use fm REUSE_ALV_GRID_DISPLAY. But using fm u can also display as popup by filling following import parameters

I_SCREEN_START_COLUM

I_SCREEN_START_LINE

I_SCREEN_END_COLUMN

I_SCREEN_END_LINE

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
510

The fm REUSE_ALV_POPUP_TO_SELECT will not have options to edit, For editing you need to use fm REUSE_ALV_GRID_DISPLAY. But using fm u can also display as popup by filling following import parameters

I_SCREEN_START_COLUM

I_SCREEN_START_LINE

I_SCREEN_END_COLUMN

I_SCREEN_END_LINE

Read only

0 Likes
509

a@s,

Thanks for the response, but if I need to use the fn module REUSE_ALV_GRID_DISPLAY.

Again I need to maintain and handle pf-status, user action and all the formal stuff.

I'm just trying to see if there is any standard functinality, just to plug in .

Any ways thanks for your response.

Thanks

-Amit

Read only

Former Member
0 Likes
509

Hi,

As said, you can use



CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_bypassing_buffer       = 'X'
          i_buffer_active          = ' '
          i_callback_program       = sy-repid
          i_callback_user_command  = 'USER_COMMAND1'
          i_callback_pf_status_set = 'STATUS_GRID'
          it_events                = t_events
          it_fieldcat              = t_fieldcatalog
          i_save                   = 'A'
          i_screen_start_column    = 10
          i_screen_start_line      = 1
          i_screen_end_column      = 150
          i_screen_end_line        = 20
        TABLES
          t_outtab                 = t_itab
        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.