12-18-2007 5:58 AM
VBRK-KURRF Exchange rate
KWERT
Hi Techis
in my alv grid output i want to display 2 buttons
1.Change layout button
2.save layout button
so as to change n save layout as per client notification.
will anybody pls tell me the details steps to display buttons at output
Rewards will b given for answer..
Regards
Santosh L
12-18-2007 6:04 AM
Hello Santosh
Assuming that you are using OO-based ALV lists (or at least fm REUSE_ALV_GRID_DISPLAY_LVC) you need to define the IS_VARIANT (type DISVARIANT) parameter and allow the user to save layouts:
Example:
gs_variant-report = syst-repid.
gs_variant-handle = 'GRID'.
Additionally, you have to set IMPORTING parameter I_SAVE:
- I_SAVE = 'A' (user-specific and global layouts)
- I_SAVE = 'U' (user-specific layouts only)
For details please refer to the tutorial: [An Easy Reference For ALV Grid Control| https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a41...;
Regards,
Uwe
12-18-2007 6:06 AM
Hi Santhosh,
use set-pf status to get buttons on ouput screen.
and use edit-mask options in layout to edit the output
Thanx
vinesh
12-18-2007 6:10 AM
Hi,
Use the parameter I_CALLBACK_PF_STATUS_SET option in FM 'REUSE_ALV_GRID_DISPLAY' .
create a subroutine set_pf_status.
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD'.
ENDFORM. "set_pf_status
Double click on ZSTANDARD and in application menu chosoe required buttons you want.
write code for thses buttons in subroutine.
FORM USER_COMMAND USING P_UCOMM LIKE SY- UCOMM
P_SELFIELD TYPE SLIS_SELFIELD.
CASE P_UCOMM .
ur code .
endcase.
endform.
and paas this subroutine as I_CALLBACK_USER_COMMAND parameter in FM 'REUSE_ALV_GRID_DISPLAY'
Thanks,
Kasiraman R