2006 Aug 31 9:04 AM
Hi gurus all,
I want to make save button in alv display turns onn, cause now it's gray and i cannot click on it. and i'm using function reuse_alv_grid_display.
i'm included half of my code,
DATA: li_events TYPE slis_t_event,
lwa_events LIKE LINE OF li_events.
REFRESH li_events.
CLEAR lwa_events.
Get event
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 4
IMPORTING
et_events = li_events.
Set event END_OF_LIST
READ TABLE li_events WITH KEY name = 'END_OF_LIST'
INTO lwa_events.
IF sy-subrc = 0.
lwa_events-form = 'END_OF_LIST'.
MODIFY li_events FROM lwa_events TRANSPORTING form
WHERE name = 'END_OF_LIST'.
ENDIF.
data : ls_variant like disvariant,
gs_layout type slis_layout_alv.
ls_variant-report = sy-repid.
Display ALV
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_top_of_page = 'TOP_OF_PAGE'
it_fieldcat = i_fieldcat
is_layout = gs_layout
it_sort = i_sortcat
it_events = li_events
i_save = c_x
is_variant = ls_variant
TABLES
t_outtab = i_final
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.
Hi gurus all,
I want to make save button in alv display turns onn, cause now it's gray and i cannot click on it. and i'm using function reuse_alv_grid_display.
i'm included half of my code,
DATA: li_events TYPE slis_t_event,
lwa_events LIKE LINE OF li_events.
REFRESH li_events.
CLEAR lwa_events.
Get event
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 4
IMPORTING
et_events = li_events.
Set event END_OF_LIST
READ TABLE li_events WITH KEY name = 'END_OF_LIST'
INTO lwa_events.
IF sy-subrc = 0.
lwa_events-form = 'END_OF_LIST'.
MODIFY li_events FROM lwa_events TRANSPORTING form
WHERE name = 'END_OF_LIST'.
ENDIF.
data : ls_variant like disvariant,
gs_layout type slis_layout_alv.
ls_variant-report = sy-repid.
Display ALV
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_top_of_page = 'TOP_OF_PAGE'
it_fieldcat = i_fieldcat
is_layout = gs_layout
it_sort = i_sortcat
it_events = li_events
i_save = c_x
is_variant = ls_variant
TABLES
t_outtab = i_final
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.
2006 Aug 31 9:06 AM
Hi memeo,
1. Simple
2.<b> i_save = 'A'</b>
3. While calling the fm
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
make sure u pass the parameter also. (with value 'A')
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
<b> i_save = 'A'</b>
regards,
amit m.
2006 Aug 31 9:16 AM
well, it didn't work.
hmm, i should make another button, instead of making save button enabled, thanks for the answer
2006 Aug 31 9:25 AM
Hi again,
1. Why do u need the SAVE button ?
2. For saving the layout ?
3. If yes, then there are other
3 buttons, which do this functionality.
regards,
amit m.
2006 Aug 31 9:59 AM
1. I need it for save my layout to custom table which i already created.
2. you are right.
i already made button using screen. thanks for your reply
Regards,
Memeo
2009 Nov 03 1:26 PM
In system Menu go to User Profile -> own data ->paramers input following values
Parameter ID : SD_VARIANT_MAINTAIN
Parameter Value : A
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |