Disable MatchCode on OO ALV
Hi,
For my ALV I use standard structure, and some datas have Help defined.
So, when I display the ALV, I have matchcode button for these datas (like MATNR).
Is it possible to disable the display of this button ?
I've tried to use the parameter F4availabl of the fieldcatalog, but the button is still displayed (but not working => Message 'No help for this data')
Thanks!
Hello Marie
If you clear field <b>gs_fcat-REF_TABLE</b> for your field (in case of MATNR clear the value gs_fcat-REF_TABLE = 'MARA') and the F4 button will no longer be available. At least this works for the sample reports and table SFLIGHT (CURRENCY field).
Regards
Uwe
Similar Messages
-
Disable delete button in ALV grid
Hi Experts,
I have a functionality to disable some buttons in alv grid such as delete row,cut,print etc.
I know how to exclude them by using it_toolbar_excluding , but I need to disable them.
Can you please let me know how to handle this.
I am displaying the ALV grid by calling the method set_table_for_first_display.
Thanks in Advance
PrasanthHi,
By using below code you can disable any button in ALV display
data : tool_wa_exclude type ui_func.
tool_wa_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
append tool_wa_exclude to tool_it_exclude .
call method grid2->set_table_for_first_display
exporting
it_toolbar_excluding = tool_it_exclude
changing
it_outtab = it_ekpo
it_fieldcatalog = it_fcat
exceptions
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4.
U need to pass tool_it_exclude internal table to method for displaying -
Grey out(disable) a row in ALV grid
Hi,
I want to know how to grey out(disable) row wise in ALV grid display.
i..e.. Few rows in ALV grid display shoud be editable and few rows non editable based on certain condition.
How do we do that....Please help.
Thanks in advance.Hi,
Since fieldcatalog is used to modify coloum and not the row, the fieldcatalog would not solve the problem.
Thankyou. -
Disable select button in ALV report.
Hi,
i have an alv report with a select colunn, is there a way to disable a select botton in a specific row ?
for example i have a report with 30 rows i want to disable the select botton in row 15.
thanks
Elad.Hi,
Try this
DATA ls_stylerow TYPE lvc_s_styl .
DATA lt_styletab TYPE lvc_t_styl .
Populate style variable (FIELD_STYLE) with style properties
LOOP AT it_ekko INTO wa_ekko. "loop on your internal table
IF sy-tabix = 15.
ls_stylerow-fieldname = 'SELECT' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
"set field to disabled
APPEND ls_stylerow TO wa_ekko-field_style.
MODIFY it_ekko FROM wa_ekko.
ENDIF.
ENDLOOP.
Thanks,
Anitha A -
How can I disable input on the ALV gridview?
Hi everybody,
I'm developing an application and would like for my users to be able to view the data in the ALV grid. Actually the only thing they may be able to do are delete rows from the ALV.
I set the ALV grid to editmode so you can insert and delete rows. But how can I disable the Insert functionality without losing the delete functionality?
Is is possible to just remove or hide the 'add row' button in the toolbar?
Thanks in advance
Regards,
WouterWouter,
It is possible to EXCLUDE buttons from the ALV GRID tool bar. You didn't mention if you were using OO or not, therefore I will assume you are not.
* In Global Data
data:
g_exclude TYPE slis_t_extab.
* somewhere before you call the FM to display ALV
PERFORM exclude_icons.
* You will need to find out the FCODE of your Add Row Icon in the GUI Status being used.
* Form exclude_icons
FORM exclude_icons.
APPEND '&ETA' TO g_exclude. "Details
* APPEND '&OUP' TO g_exclude. "Sort Up
* APPEND '&ODN' TO g_exclude. "Sort Down
APPEND '&ILT' TO g_exclude. "Set Filter
APPEND '&UMC' TO g_exclude. "Sum
* APPEND '&RNT_PREV' TO g_exclude. "Print preview
* APPEND '&VEXCEL' TO g_exclude. "Excel
* APPEND '&RNT_PREV' TO g_exclude. "Word processing
* APPEND '%PC' TO g_exclude. "Local File
* APPEND '%SL' TO g_exclude. "Mail recepient
APPEND '&ABC' TO g_exclude. "ABC Analysis
APPEND '&GRAPH' TO g_exclude. "Graphic
* APPEND '&OL0' TO g_exclude. "Change layout
* APPEND '&OAD' TO g_exclude. "Select layout
* APPEND '&AVE' TO g_exclude. "Save Layout
APPEND '&INFO' TO g_exclude. "Information
ENDFORM. " exclude_icons
* When you execute the FM to display...
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
is_layout = g_layout
it_sort = g_sort[]
it_events = g_events[]
it_fieldcat = g_fieldcat[]
i_save = g_save
it_excluding = g_exclude "<== Need this parameter defined to pass
TABLES
t_outtab = it_out
EXCEPTIONS
program_error = 1
OTHERS = 2. -
How to disable 'set filter' in alv list display
Hi Friends,
I am working on alv report and I came across a requirement that I need to disable the 'set filter' to restrict the user from filtering records in output.
please help on this.
thanks in advance.HI
check these sample codes
Here are some code snippets:
FORM output_report.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZRRRMPROJSTAT'
is_layout = gs_layout
it_fieldcat = gt_fieldcat
it_sort = gt_sort
i_save = 'A'
it_events = gt_events
TABLES
t_outtab = i_project
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " output_report
FORM build_fieldcat.
DATA: s_fieldcat TYPE slis_fieldcat_alv.
DATA: l_col_count like s_fieldcat-col_pos.
l_col_count = 1.
CLEAR s_fieldcat.
s_fieldcat-col_pos = l_col_count.
l_col_count = l_col_count + 1.
s_fieldcat-tabname = i_project.
s_fieldcat-fieldname = 'PSPID'.
s_fieldcat-datatype = 'CHAR'.
s_fieldcat-outputlen = '10'.
s_fieldcat-seltext_l = 'Project Number'.
s_fieldcat-seltext_m = 'Project Number'.
s_fieldcat-seltext_s = 'Project Number'.
s_fieldcat-key = 'X'.
s_fieldcat-fix_column = 'X'.
s_fieldcat-just = 'C'.
s_fieldcat-no_zero = 'X'.
APPEND s_fieldcat TO gt_fieldcat.
* and so on....
ENDFORM
FORM sort_layout.
DATA: ls_sort TYPE slis_sortinfo_alv.
REFRESH gt_sort.
CLEAR ls_sort.
ls_sort-spos = '1'.
ls_sort-tabname = 'i_project'.
ls_sort-fieldname = 'PSPID'.
APPEND ls_sort TO gt_sort.
CLEAR ls_sort.
ls_sort-spos = '2'.
ls_sort-tabname = 'i_project'.
ls_sort-fieldname = 'POSID'.
APPEND ls_sort TO gt_sort.
ENDFORM. " sort_layout
FORM build_layout.
CLEAR gs_layout.
* gs_layout-totals_before_items = 'X'.
gs_layout-zebra = 'X'.
gs_layout-numc_sum = 'X'.
gs_layout-get_selinfos = 'X'.
gs_layout-box_tabname = 'X'.
gs_layout-info_fieldname = 'COLOR'.
ENDFORM. "
Reward alll helpfull answers
Regards
Pavan -
How to disabled 'user settings' in ALV by right clicking
Hi,
How to disable the 'user setting' context menu and corresponding popup after right clicking in the ALV.
I already tried parameter wddisableuserpersonalization = X but still I can do a right click and go to user settings.
Hope you can provide the right solution/method etc.
Thanks, JohnHi,
In my opinion this has nothing to do with auth settings... Has everything been transported cleanly?
You should double check the settings on your Acceptance machine, especially considering WD_GLOBAL_SETTING. If User-Personalization is allowed here, it will overwrite everything else.
Maybe also check WD_ANALYZE_CONFIG_USER on Acceptance machine and delete all personalizations for the user you are testing with. I once successfully messed up my Personalization with conflicting entries there...
best regards, Lukas -
Disable checkbox in hirarichal ALV
In my report I am displaying hirarichal ALV (without OOPS) with checkboxes at both header level and item level. Processing is like user select a header row and few of its items rows by selecting the respective checkboxes and hits a button which does some functionality.
What I need is after hitting that button those selected checkbox( both header and item rows) should become disable. I am able to disable header level checkox by changing its value to '0' . But the same '0' value when I am passing to Item row checkboxes, they are not getting disabled. I have tried values like '-' but still item level checkboxes are not getting disabled. Kindly help.
Regards,
RajneeshHi Weishan,
I think that you are forgetting to update your main data table.
You are building new style tables, but you have to reapply these style tabs to the corresponding rows of your internal table, and <i>then</i> call refresh_table_display.
Hope this helps...
Phil -
hi experts,
after some processing of my alv, for records that are flagged, i will need to diable the checkbox.
LOOP AT gt_rec_item INTO ls_alv WHERE locked_flag = 'X'.
l_tabix = sy-tabix.
REFRESH lt_celltab.
ls_celltab-fieldname = 'CHECKBOX'.
ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
INSERT ls_celltab INTO TABLE lt_celltab.
INSERT lines of lt_celltab INTO TABLE ls_alv-celltab.
MODIFY gt_rec_item FROM ls_alv.
CALL METHOD g_grid->refresh_table_display.
by using the above codes, it does change the checkbox to be disabled, but it doesnt show in my alv.Hi Weishan,
I think that you are forgetting to update your main data table.
You are building new style tables, but you have to reapply these style tabs to the corresponding rows of your internal table, and <i>then</i> call refresh_table_display.
Hope this helps...
Phil -
Disable editable field in ALV grid using OOPS
I have following requirements,
Displaying ALV grid output with most of the fields editable.
Validations on data entered for each fields,for error messages
Query :
I want to make all the fields except the field in ERROR in display only mode
similar to case when we do validation of fields in table controls.HI
check the below links lot of info and examples r there for OOPS
http://www.sapgenie.com/abap/OO/index.htm
http://www.geocities.com/victorav15/sapr3/abap_ood.html
http://www.brabandt.de/html/abap_oo.html
Check this cool weblog:
/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql
/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sap-img.com/
http://www.sapgenie.com/
http://help.sap.com
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
these links
http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
For funtion module to class
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm
for classes
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm
for methods
http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm
for inheritance
http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm
for interfaces
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm
For Materials:
1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291
2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
8) http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
1) http://www.erpgenie.com/sap/abap/OO/index.htm
2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
Check these sample code
data : begin of it_mara occurs 0,
mark type flag,
matnr type matnr,
mtart type mtart,
meins type meins,
end of it_mara.
data : begin of it_mara1 occurs 0,
mark type flag,
matnr type matnr,
mtart type mtart,
meins type meins,
end of it_mara1.
data : begin of it_mara2 occurs 0,
mark type flag,
matnr type matnr,
mtart type mtart,
meins type meins,
end of it_mara2.
data : t_fieldcat type lvc_t_fcat,
t_fieldcat1 type lvc_t_fcat,
s_fieldcat like line of t_fieldcat.
data : s_layout type lvc_s_layo.
data : control type ref to cl_gui_custom_container,
grid type ref to cl_gui_alv_grid.
data: begin of wa ,
mark type flag,
matnr type matnr,
mtart type mtart,
meins type meins,
end of wa.
class lcl_events_box definition.
public section.
methods :
*Handler_Data_Changed for event Data_Changed of cl_gui_alv_grid
*imporTing er_data_changed,
Handler_User_Command for event User_Command of cl_gui_alv_grid
imporTing e_ucomm,
Handler_ToolBar for event ToolBar of cl_gui_alv_grid
importing E_object E_interactive.
endclass.
class lcl_events_box implementation.
method Handler_user_command.
PERFORM FORM_USERCOMMAND CHANGING E_UCOMM.
endmethod.
method Handler_ToolBar.
PERFORM FORM_TOOLBAR CHANGING E_OBJECT E_INTERACTIVE
E_OBJECT->MT_TOOLBAR.
endmethod.
ENDCLASS.
start-of-selection.
data : w_events type ref to lcl_events_box.
select matnr mtart meins from mara into corresponding fields of table
it_mara.
call screen 100.
*& Module pbo_module OUTPUT
text
MODULE pbo_module OUTPUT.
if GRID is initial.
CREATE OBJECT CONTROL
EXPORTING
CONTAINER_NAME = 'CUST_CTRL'.
CREATE OBJECT GRID
EXPORTING
I_PARENT = CONTROL.
PERFORM BUILD_CATALOG.
PERFORM BUILD_CATALOG1.
PERFORM BUILD_LAYOUT.
CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = s_layout
CHANGING
IT_OUTTAB = it_mara[]
IT_FIELDCATALOG = t_fieldcat.
CREATE OBJECT W_EVENTS.
SET HANDLER : W_EVENTS->HANDLER_TOOLBAR FOR GRID,
W_EVENTS->HANDLER_USER_COMMAND FOR GRID.
CALL METHOD GRID->SET_TOOLBAR_INTERACTIVE.
ELSE.
call method grid->refresh_table_display.
ENDIF.
ENDMODULE. " pbo_module OUTPUT
*& Form BUILD_CATALOG
FORM BUILD_CATALOG .
S_FIELDCAT-COL_POS = '1'.
S_FIELDCAT-FIELDNAME = 'MARK'.
S_FIELDCAT-CHECKBOX = 'X'.
S_FIELDCAT-eDIT = 'X'.
APPEND S_FIELDCAT TO T_FIELDCAT.
CLEAR S_FIELDCAT.
S_FIELDCAT-COL_POS = '2'.
S_FIELDCAT-FIELDNAME = 'MATNR'.
S_FIELDCAT-SCRTEXT_M = 'MATERIAL'.
APPEND S_FIELDCAT TO T_FIELDCAT.
S_FIELDCAT-COL_POS = '3'.
S_FIELDCAT-FIELDNAME = 'MTART'.
S_FIELDCAT-SCRTEXT_M = 'MATERL TYPE'.
APPEND S_FIELDCAT TO T_FIELDCAT.
S_FIELDCAT-COL_POS = '4'.
S_FIELDCAT-FIELDNAME = 'MEINS'.
S_FIELDCAT-SCRTEXT_M = 'UOM'.
APPEND S_FIELDCAT TO T_FIELDCAT.
ENDFORM. " BUILD_CATALOG
*& Form BUILD_LAYOUT
text
--> p1 text
<-- p2 text
FORM BUILD_LAYOUT .
S_LAYOUT-ZEBRA = 'X'.
S_LAYOUT-CWIDTH_OPT = 'X'.
S_LAYOUT-GRID_TITLE = 'Material Details'.
ENDFORM.
" BUILD_LAYOUT////////////////////////////////////
" USER_COMMAND_0100 INPUT
*& Form FORM_USERCOMMAND
text
<--P_E_UCOMM text
form FORM_USERCOMMAND changing p_e_ucomm.
CASE P_E_UCOMM.
WHEN 'INT1'.
DO.
READ TABLE IT_MARA INDEX SY-INDEX TRANSPORTING MARK MATNR.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
IF IT_MARA-MARK = 'X'.
read table it_mara into wa TRANSPORTING MATNR MTART MEINS .
MOVE-CORRESPONDING WA TO IT_MARA1.
READ TABLE IT_MARA1 TRANSPORTING MATNR MTART MEINS .
MOVE-CORRESPONDING IT_MARA1 TO IT_MARA2.
APPEND IT_MARA2.
CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = s_layout
CHANGING
IT_OUTTAB = it_mara2[]
IT_FIELDCATALOG = t_fieldcat1.
SET PARAMETER ID 'MAT' FIELD IT_MARA-MATNR.
CALL TRANSACTION 'MM02'.
. ENDIF.
ENDIF.
ENDDO.
ENDCASE.
endform. " FORM_USERCOMMAND
*& Form FORM_TOOLBAR
text
<--P_E_OBJECT text
<--P_E_INTERACTIVE text
<--P_E_OBJECT_>MT_TOOLBAR text
FORM FORM_TOOLBAR CHANGING P_E_OBJECT TYPE REF TO
CL_ALV_EVENT_TOOLBAR_SET
P_E_INTERACTIVE
MT_TOOLBAR TYPE TTB_BUTTON.
DATA WAL_BUTTON TYPE STB_BUTTON.
*WAL_BUTTON-ICON = ICON_status_reverse.
WAL_BUTTON-TEXT = 'GO'.
WAL_BUTTON-QUICKINFO = 'PROCEED'.
waL_button-FUNCTION = 'INT1'.
WAL_BUTTON-BUTN_TYPE = 0.
WAL_BUTTON-DISABLED = SPACE.
insert WAL_BUTTON INTO P_E_OBJECT->MT_TOOLBAR index 1.
endform. " FORM_TOOLBAR
*& Module PF-STATUS OUTPUT
text
module PF-STATUS output.
set pf-status 'Z7PSTAT'.
endmodule. " PF-STATUS OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module USER_COMMAND_0100 input.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'CANCEL'.
LEAVE PROGRAM.
ENDCASE.
endmodule. " USER_COMMAND_0100 INPUT
*& Form BUILD_CATALOG1
text
--> p1 text
<-- p2 text
form BUILD_CATALOG1 .
S_FIELDCAT-COL_POS = '1'.
S_FIELDCAT-FIELDNAME = 'MATNR'.
S_FIELDCAT-SCRTEXT_M = 'MATERIAL'.
APPEND S_FIELDCAT TO T_FIELDCAT1.
S_FIELDCAT-COL_POS = '2'.
S_FIELDCAT-FIELDNAME = 'MTART'.
S_FIELDCAT-SCRTEXT_M = 'MATERL TYPE'.
APPEND S_FIELDCAT TO T_FIELDCAT1.
S_FIELDCAT-COL_POS = '3'.
S_FIELDCAT-FIELDNAME = 'MEINS'.
S_FIELDCAT-SCRTEXT_M = 'UOM'.
APPEND S_FIELDCAT TO T_FIELDCAT1.
endform. " BUILD_CATALOG1
check the below link may be useful for you
http://www.sapdevelopment.co.uk/reporting/alvhome.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
Simple ALV report
http://www.sapgenie.com/abap/controls/alvgrid.htm
http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
ALV
1. Please give me general info on ALV.
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
2. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
3. How do I add subtotals (I have problem to add them)...
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
4. How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
5. How to print page number / total number of pages X/XX in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
7. How can I set the cell color in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=52107
8. How do I print a logo/graphics in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=81149
http://www.sapfans.com/forums/viewtopic.php?t=35498
http://www.sapfans.com/forums/viewtopic.php?t=5013
9. How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
10. How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
11. How can I display an icon in ALV? (Common requirement is traffic light icon).
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
12. How can I display a checkbox in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
Go thru these programs they may help u to try on some hands on
ALV Demo program
BCALV_DEMO_HTML
BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
BCALV_GRID_DEMO Simple ALV Control Call Demo Program
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO
BC_ALV_DEMO_HTML_D0100
<b>Reward all helpfull answers</b>
Regards -
Hotspot Disable for zeros in ALV
If a alv column is defined with HOTSPOT and it consists of values greater than zero and values equal to zero.
So is there any method to disable the hotspot where values = 0 and
enable the hotspot for value greater than zero.
Expectiing your earliest replyHi Mohammed,
I dont think it would be possible. Because HOTSPOT is defined when you are building the field catalog and we are talking about disabling HOTSPOT based on internal table values....
If you know some way of doing it, please let me know
Best Regards,
Ram. -
How disable Bex Analyser in ALV
Hi Everybody,
how can i disable the context menu function 'BEx Analyser' within my export button in ALV? I just diable under spro->NetWeaver->Application Server->WD4A->disable Java depended functions in alv.
I try also the following function:
lr_cl_salv_wd_config_table->if_salv_wd_std_functions~SET_BEX_ANALYZER_ALLOWED( abap_false ).
But the method SET_BEX_ANALYZER_ALLOWED from the class cl_salv_wd_config_table is not known?
We are using ECC6.0 2005.
regards,
Sid
Edited by: Sid Mopo on Dec 17, 2008 9:22 AMyou can try this:
DATA: lr_config_model TYPE REF TO cl_salv_wd_config_table.
DATA:
lr_function_settings TYPE REF TO if_salv_wd_function_settings,
lr_function TYPE REF TO cl_salv_wd_function_std.
lr_function_settings ?= lr_config_model.
lr_function = lr_function_settings->get_function_std( if_salv_wd_c_std_functions=>BEX_ANALYZER ).
lr_function->set_visible( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).
lr_function->set_enabled( abap_false ). -
Disable F4 function on ALV grid row
Hello,
I have an ALV and I need to disable the F4 OR cancel event ONF4 for a cell, BUT ONLY in the last row.
Is it possible? I've searched a lot, but I didn't found anything that help me.
Could you help me?
Thanks,
KleberHi ,
You cannot cancel the event for only a particular cell but
You can use the following Logic to get your requirement.
in the Implementation of onF4 event.
on_f4 for event onf4 of cl_gui_alv_grid
importing e_fieldname
es_row_no
" This Contains the row Number of Cell on which You clicked F4
er_event_data
et_bad_cells
e_display.
" in Implementation
method on_f4.
if es_row_no-row_id ne <last Row>.
"write your logic here
endif.
endmethod.
"You can get Last row from
"Select Query use sy-dbcnt
"or if you modified any records deleting,inserting
"at that time You can use read <itab> index 1 transporting no fields. then use sy-tfil
Hope this is useful for you
Regards,
Raghava Channooru -
HOW to Disable a button in ALV on application bar
Hi,
I have a button in ALV program and i want to disable that button which is on application bar is there any way plz tel me
Regards,
Salehahi ,
Copy the STANDARD status of the function group SALV into the application program
i.e in ur prg....
see below ex....
data:
t_spfli like standard table of spfli.
DATA:
w_program LIKE sy-repid.
SELECT *
INTO CORRESPONDING FIELDS OF TABLE t_spfli
FROM spfli.
MOVE sy-repid TO w_program.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = w_program
i_callback_pf_status_set = 'STATUS'
i_structure_name = 'SPFLI'
TABLES
t_outtab = t_spfli
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.
*& Form status
text
-->P_T_EXTAB text
FORM status USING p_t_extab TYPE slis_t_extab.
SET PF-STATUS 'DEMO' EXCLUDING '&ODN'.
ENDFORM. "status
<b></b><b></b><i></i>
regards ,
Naresh. -
Disable sort option in ALV GRID DISPLAY
Hi Experts,
I have an Alv output with fixed layout, means user should not be allowed to edit/sort/toggle any of the columns, particularly sort functionality should be removed.
I have already tried the function code logic with excluding table. That only makes the sort option disappear. Still when you select a particular column and right click, you will find that the Sort in Ascending order' and 'Sort in descending order' functions are still enabled. This was already raised as a thread but not answered.
[alv sort option]
Please help.
Note: Disabling the icon doesnt help in disabling the functionality.Try by excluding the entire Sort group. Like:
Data:
t_toolbar_excld1 type ui_functions, "buttons to exclude
wa_toolbar_excld&1 like line of t_toolbar_excld1.
wa_toolbar_excld1 = cl_gui_alv_grid=>MC_FG_SORT. " <<
APPEND wa_toolbar_excld1 TO t_toolbar_excld1.
CALL METHOD r_alv_grid1->set_table_for_first_display
EXPORTING is_variant = w_is_variant1
is_layout = w_is_layout1
i_save = c_alv_save_cd
it_toolbar_excluding = t_toolbar_excld1
CHANGING it_outtab = my_table
it_fieldcatalog = t_fieldcat1.
Regards,
Naimesh Patel
Maybe you are looking for
-
Creating a standby on different host
Hi , We are planning to create a cross platform standby database. our source db is on IBM AIX and standby will be on HP-UX. oracle db version: 11.2.0.1 Is it possible to create a standby when primary and secondary will be on different host. your sugg
-
I just did a clean install of Mountain Lion on my Late 2009 Mini. I use a 55" TV as the only monitor connected to the Mini and it is overscanning pretty badly. I do not have the option button to turn off the overscan feature. There has to be a way
-
HT1766 Iphone 4s backup error to Itunes
Iphone 4s is connected but upon attempts to backup I get a not connected error? Any suggestions. both Iphone and Itunes are the latest version
-
hi, recently my mouse button on my macbook has been making a wierd clicking noise, which is quite offputting as i have only had it since november! sounds like it is loose, it does it when i just rest my finger on it.
-
Hi, My Client's requirement is to change the background colour of SUS Screen. Do anyone have Idea how to change the background colour? Regards, Lovkesh