02-22-2006 10:18 PM
I am using ECC 5 version.
In the ALV grid display, if we assign a box as a first field, we get selection boxes for each row and also in the Fields' header, we will have one more button to select All fields and columns in the list.
I do not require 'Select All' button in the list but I need individual selection buttons. Please help me.
Thanks
02-22-2006 10:34 PM
Hi TSKR,
Please check sample program : BCALV_EDIT_05 .
That will help you.
Regards,
Lanka
02-22-2006 10:45 PM
If u execute the program(BCALV_EDIT_05), I do not want the 'Select all' button but i need row select buttons. Can u suggest any alternate?
02-23-2006 12:56 AM
in BCALV_EDIT_05, the 'select all' button only appears because the gui status, main100, includes it. If your program does not include the button in its gui status then it will not appear on the screen.
02-23-2006 4:04 PM
Actually the Select All button is there in 2 places in the program 'BCALV_EDIT_05'. 1) In the Application toolbar 2) In the List(First column left side to select all records). I need to disable the 2nd button.
thanks
02-23-2006 4:13 PM
Thats pretty simple...
do this..
<b>GS_LAYOUT-NO_ROWMARK = 'X'.</b>
Regards
vijay
02-23-2006 4:42 PM
Vijay,
If we use this option, we are going to remove the selection button from the all the rows. But I want to take out disable only the Select All button not individual buttons
Thanks
02-23-2006 4:53 PM
Hi,
if you want only one it cannot be done...
either you loose both or have both.
any way you have checkbox to select single record why to worry..
regards
vijay
02-23-2006 4:48 PM
this should help u
u want to select 2 or more boxes at a time , if i am right
tables Mara.
DATA: begin of lmara OCCURS 0,
abc.
include structure mara.
data end of lmara.
SELECT * FROM mara.
move-corresponding mara to lmara.
append lmara.
endselect.
call screen 100.
*&---------------------------------------------------------------------*
*& Module STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module STATUS_0100 output.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
data: gc_custom_container TYPE REF TO cl_gui_custom_container,
ggrid_codes TYPE REF TO cl_gui_alv_grid,
gs_layout TYPE lvc_s_layo,
gt_fieldcat type lvc_t_fcat.
IF gc_custom_container IS INITIAL.
CREATE OBJECT gc_custom_container
EXPORTING container_name = 'ALV_CONTAINER'.
CREATE OBJECT ggrid_codes
EXPORTING
i_parent = gc_custom_container.
data st_fieldcat type lvc_s_fcat.
st_fieldcat-fieldname = 'ABC'.
st_fieldcat-inttype = 'C'.
st_fieldcat-outputlen = 3.
st_fieldcat-CHECKBOX = 'X'.
st_fieldcat-EDIT = 'X'.
st_fieldcat-coltext = 'ABC'.
st_fieldcat-seltext = 'ABC'.
append st_fieldcat to gt_fieldcat.
clear st_fieldcat.
st_fieldcat-fieldname = 'MATNR'.
st_fieldcat-inttype = 'C'.
st_fieldcat-outputlen = 10.
st_fieldcat-coltext = 'Material'.
st_fieldcat-seltext = 'MATNR'.
append st_fieldcat to gt_fieldcat.
gs_layout-grid_title = 'WELCOME 2 NEW WORLD'.
gs_layout-no_toolbar = 'X'.
CALL METHOD ggrid_codes->set_table_for_first_display
EXPORTING
* i_structure_name = 'MARA'
is_layout = gs_layout
CHANGING
it_outtab = lmara[]
it_fieldcatalog = gt_fieldcat.
ENDIF.