09-11-2008 5:01 PM
Hi ,
i displayed my output using "REUSE_ALV_GRID_DISPLAY" and now i want to disable that print icon in top i mean next to back cancel buttons in output screen, how to do this pls tell me .
Thx
09-11-2008 5:16 PM
Hi Karnam,
If you want to disable icons in alv output follow the below steps.
we can do two ways.
*Method 1:* By calling customized GUI
a. Goto -- SE41 --- click button Status on application tool bar.
Frm
Program: SAPLKKBL
Status: STANDARD
To
Program: ZPROGRAM (which program to copy)
Status: ZSTANDARD
Click copy.
b. In SE41
Program: ZPROGRAM (which program to copy)
Status: ZSTANDARD
Click on change.
Deactivate required icons:
Select icon and click on Function code button it will deactivate.
c. Goto ZProgram.
Data: lv_slis_pf TYPE slis_formname VALUE 'SETSTATUS'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = w_repid
i_callback_pf_status_set = lv_slis_pf
it_fieldcat = it_fieldcat
it_sort = it_sortcat
tables
t_outtab = it_final
d. Create routine and call your customized GUI
&----
*& Form setstatus
&----
form setstatus using rt_extab type slis_t_extab.
set pf-status 'ZSTANDARD'.
endform. "Set_pf_status
Method 2:
Ex: SORT and SUMMATIONS icons
Data: i_excluding TYPE slis_t_extab,
wa_excluding TYPE slis_extab.
wa_excluding-fcode = '&UMC'.
APPEND wa_excluding TO i_excluding.
wa_excluding-fcode = '&OUP'.
APPEND wa_excluding TO i_excluding.
wa_excluding-fcode = '&ODN'.
APPEND wa_excluding TO i_excluding.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_excluding = i_excluding
TABLES
t_outtab = i_sbook
Try any method it will work fine.
Mahamood.