2009 Jun 24 1:22 PM
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
2009 Jun 24 1:27 PM
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
a®
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
2009 Jun 24 1:27 PM
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
a®
2009 Jun 24 3:40 PM
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
2009 Jun 24 2:00 PM
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.