12-16-2008 12:52 PM
Hi all,
i use FM REUSE_ALV_GRID_DISPLAY and it's work fine. I can change layout (add or delete columns) now i would like to save this changes. I don't have the button to do that, how can i display it ?
Cheers.
12-16-2008 12:57 PM
Hello,
In REUSE_ALV_GRID_DISPLAY parameter I_SAVE pass the value 'A'.
Here is the SAP documentatn for this:
' ' = Display variants cannot be saved
Defined display variants (such as delivered display variants) can be selected for presentation regardless of this indicator. However, changes cannot be saved.
'X' = Standard save mode
Display variants can be saved as standard display variants.
Saving display variants as user-specific is not possible.
'U' = User-specific save mode
Display variants can only be saved as user-specific.
'A' = Standard and user-specific save mode
Display variants can be saved both as user-specific and as standard
variants. Users make their choice on the dialog box for saving the
display variant.
Hope this is helpful.
BR,
Suhas
12-16-2008 12:57 PM
Hello,
In REUSE_ALV_GRID_DISPLAY parameter I_SAVE pass the value 'A'.
Here is the SAP documentatn for this:
' ' = Display variants cannot be saved
Defined display variants (such as delivered display variants) can be selected for presentation regardless of this indicator. However, changes cannot be saved.
'X' = Standard save mode
Display variants can be saved as standard display variants.
Saving display variants as user-specific is not possible.
'U' = User-specific save mode
Display variants can only be saved as user-specific.
'A' = Standard and user-specific save mode
Display variants can be saved both as user-specific and as standard
variants. Users make their choice on the dialog box for saving the
display variant.
Hope this is helpful.
BR,
Suhas
12-16-2008 1:13 PM
12-16-2008 1:18 PM
Hello,
Please check the output, there must be a button for "Save Layout" (Ctrl+F10). Ihave used this multiple times & it works.
This is a sample code:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'F_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND'
IS_LAYOUT = FP_ST_LAYOUT
IT_FIELDCAT = FP_IT_FIELDCAT
I_SAVE = 'A'
TABLES
T_OUTTAB = FP_IT_OUTPUT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Error in calling Standard ALV Functional Module
MESSAGE I019. "Error Occured in ALV Function Module
LEAVE LIST-PROCESSING.
ENDIF.
BR,
Suhas
12-16-2008 1:28 PM
12-16-2008 1:30 PM
Hello,
You asked about the "Save Layout" button & the param for this is
I_SAVE = 'A'
This is sufficient to be able to save layout.
Suhas
12-16-2008 1:32 PM
<This is sufficient to be able to save layout.
So why the button is not displayed ?
12-16-2008 1:36 PM
Ok i find... The parameter is_variant must be filled. Now it's ok.
Thanks so much.
Cheers.