2007 Jan 05 4:10 AM
Hi Experts
I was developed an ALV Report. It's working fine.
But my requirement is the designed Layout has to be saveable.
As of now it is not saveable.
Can you please let me know the procedure how I can make the designed layout as saveable.
Your suggestions are highly appreciable.
Regards,
Kumar
2007 Jan 05 4:14 AM
Hi,
Set the parameter I_SAVE to 'X'.
in REUSE_ALV_GRID_DISPLAY FM.
Regards,
Raghavendra
Hi,
Set the parameter I_SAVE to 'X'.
in REUSE_ALV_GRID_DISPLAY FM.
Regards,
Raghavendra
2007 Jan 05 4:14 AM
Hi,
Set the parameter I_SAVE to 'X'.
in REUSE_ALV_GRID_DISPLAY FM.
Regards,
Raghavendra
2007 Jan 05 4:18 AM
2007 Jan 05 4:14 AM
2007 Jan 05 4:15 AM
just add reuse_alv_grid_display fm
I_SAVE = 'A'
in exporting.
regards
shiba dutta
2007 Jan 05 4:23 AM
Hai,
See the below code for the same .
DATA : g_t_event TYPE slis_t_event,
r_t_event LIKE LINE OF g_t_event,
w_disp_variant TYPE disvariant.
PARAMETERS : p_varian LIKE disvariant-variant.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varian.
HELP IF YOU WANT TO USE DISPLAY VARIANTS, use this form
PERFORM show_existing_display_variants.
FORM show_existing_display_variants .
HELP VALUES OF I_SAVE:
HELP 'U' SHOW ONLY USER SPECIFIC VARIANTS
HELP 'X' SHOW ONLY USER INDEPENDENT VARIANTS
HELP 'A' SHOW ALL VARIANTS
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = w_disp_variant
i_save = 'A'
IMPORTING
es_variant = w_disp_variant
EXCEPTIONS
not_found = 1
program_error = 2
OTHERS = 3.
IF sy-subrc = 0.
p_varian = w_disp_variant-variant.
ENDIF.
ENDFORM. " show_existing_display_variants
aftere this pass the following exporting parameters tot he LIST_DISPLAY fm.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = w_report_name_tx
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
i_structure_name =
IS_LAYOUT =
it_fieldcat = g_fcat_alv
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
i_default = 'X'
i_save = 'A'
is_variant = w_disp_variant
*
it_events = g_t_event
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = t_final_out
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.
*
*
*
ENDFORM. " ALV_DISPLAY
&----
this will help u
regards,
2007 Jan 05 4:39 AM
Hi,
use i_save in the function module reuse_alv_grid_display. assign :
1. ' ' to Display variants cannot be saved
2. 'X' to Standard save mode
3. 'U' to User-specific save mode
4. 'A' to Standard and user-specific save mode
reward points if helpful
2007 Jan 05 5:50 AM
Hi ,
You add FM REUSE_ALV_GRID_DISPLAY
I_SAVE = 'A' OR I_SAVE =X' .
In Exporting .
1.'X' used for Standard Save Mode
2.'A' used for Standard & User specific save Mode.
Reward points if helpful .
With Regards ,
Ravi
2007 May 23 10:53 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |