Tablecontrol select all button
hai,
I am using Table control in screen created by wizard and added selectall,deselect,sort buttons seperately in application tool bar.
I want to access tablecontrol from this buttons outside.
i dont know how to catch the tablecontrol from outside
selectall icon or button displayed in app toolbar.
I want to including coding here PAI.
ok_code = sy-ucomm.
case ok_code.
when 'selectall'.
call toolbar method ? what method
when 'deselect'.
when others.
endcase.
hai
thanks for your reply.
I have tablecontrol name as ztabctrol.
in coding wizard generated another two kinds of variable notation G_ztabctrol_itab and T_Ztabctrol. which one should i have to use below.
loop at tablecontrol_tab into tablecontrol_wa
move 'X' to tablecontrol_wa-flag.
modify tablecontrol_tab
from tablecontrol_wa
transporting flag.
endloop.
exit.
I declared data at top in prog and wrote this code below.
inside PAI.
loop at G_ZTABCTRLOBJ_ITAB into G_ZTABCTRLOBJ_WA
move 'X' to G_ZTABCTRLOBJ_WA-flag.
modify G_ZTABCTRLOBJ_ITAB
from G_ZTABCTRLOBJ_WA
transporting flag.
endloop.
exit.
it gives error at status "G_ZTABCTRLOBJ_ITAB is not defined".
why it is.
ambichan.
Similar Messages
-
Needed select all button in alv report
Dear Experts,
In alv report i want first field as button selectall then remaining fields must be displayed
this is my code,,
DEFINE m_fieldcat.
is_fieldcat-fieldname = &1.
is_fieldcat-hotspot = &2.
is_fieldcat-seltext_m = &3.
is_fieldcat-col_pos = &4.
is_fieldcat-outputlen = &5.
is_fieldcat-emphasize = &6.
is_fieldcat-Checkbox = &7.
append is_fieldcat to it_fcat.
clear is_fieldcat.
END-OF-DEFINITION.
m_fieldcat 'SLNO' '' text-112 '1' '5' 'C310' ''.
m_fieldcat 'KPI' '' text-110 '2' '30' 'C310' ''.
m_fieldcat 'PWEEK' 'X' text-109 '3' '16' 'C310' ''.
m_fieldcat 'CWEEK' 'X' text-111 '4' '16' 'C310' ''.
m_fieldcat 'MONTH' 'X' text-122 '5' '16' 'C310' ''.
m_fieldcat 'PMONTH' 'X' text-132 '6' '16' 'C310' ''.
m_fieldcat 'UOM ' '' text-138 '7' '10' 'C310' ''.
Thanks,
Thiru. RHi,
You can keep first field as checkbox. 'Select All' button is present in ALV whnever you use 'REUSE_ALV_GRID' F.M.
You can click on select all button that appears in ALV grid toolbar and all your checkboxes that appears in first field will get selected. Similar to 'Select All' there is 'Deselct All' button also in ALV grid.
Regards,
Saba -
HOW TO PERFORM SELECT ALL BUTTON IN ALV
Hi ,
i displayed output by using list display. in my status i have one button i.e. select all. when i click that button it has to select all the chckboxes in my list display.
anybody can send me the code please.
i am sending my code below.
report zmahi6.
type-pools : slis.
tables : zuser_secobjects.
data: t_header1 like zvfrcsthdr.
data : begin of t_header occurs 0 .
include structure t_header1.
data : customer_name like zvsfrcsthdr-customer_name,
kukla like kna1-kukla,
end of t_header.
data : t_header1 like zuser_secobjects.
data : begin of it_secobjects occurs 0.
include structure t_header1.
data : box,
input(1) type c,
end of it_secobjects.
*data : it_secobjects like zuser_secobjects occurs 0 with header line.
data : i_field type slis_t_fieldcat_alv with header line.
data : w_field like line of i_field.
data : i_sort type slis_t_sortinfo_alv.
data : w_sort like line of i_sort.
data : it_filt1 type slis_t_filter_alv with header line.
data:
i_tabname type tabname,
i_repid like sy-repid,
is_lout type slis_layout_alv.
data : chk_box type slis_fieldname.
selection-screen: begin of block b1 with frame title text-t01.
parameters : p_appln type zuser_secobjects-appln.
parameters : p_user type usr02-bname, "zuser_secobjects-appln_user,
p_partnr type zuser_secobjects-appln_partner,
p_ptype type zuser_secobjects-partner_type default '02',
p_upostn type zuser_secobjects-user_position,
p_sdate like likp-erdat default sy-datum,
"type zuser_secobjects-start_date
p_edate(10) default '12/31/9999',
type zuser_secobjects-end_date,
p_revnum type zuser_secobjects-revnum,
p_cted type zuser_secobjects-created_by,
p_cdate type zuser_secobjects-creation_date,
p_ctime type zuser_secobjects-creation_time,
p_chnby type zuser_secobjects-changed_by,
p_cdate1 type zuser_secobjects-changed_date,
p_ctime1 type zuser_secobjects-changed_time.
selection-screen: end of block b1.
start-of-selection.
perform get_data.
check sy-subrc eq 0.
set pf-status 'ZMAHEE'.
perform prepare_fieldcatalog.
perform alv_list_display.
form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when 'DELETE'.
perform delete.
endcase.
ENDFORM.
*& Form PREPARE_FIELDCATALOG
text
--> p1 text
<-- p2 text
form prepare_fieldcatalog.
clear: w_field,i_field.
refresh:i_field.
i_field-key = 'X'.
i_field-col_pos = 1.
i_field-ddictxt = 'S'.
i_field-seltext_s = '@11@'.
i_field-checkbox = 'X'.
i_field-input = 'X'.
i_field-fieldname = 'HEADER'.
i_field-outputlen = 0.
append i_field.
clear i_field.
w_field-fieldname = 'APPLN'.
w_field-tabname = 'IT_SECOBJECTS'.
w_field-seltext_l = text-m01.
w_field-outputlen = '10'.
w_field-col_pos = 1.
append w_field to i_field.
clear w_field.
w_field-fieldname = 'APPLN_USER'.
w_field-tabname = 'IT_SECOBJECTS'.
w_field-just = 'C'.
w_field-seltext_l = text-m02.
w_field-outputlen = '7'.
w_field-col_pos = 2.
append w_field to i_field.
clear w_field.
endform. " PREPARE_FIELDCATALOG
FORM pf_status_set *
--> RT_EXTAB *
form pf_status_set using rt_extab type slis_t_extab.
set pf-status '0001'.
endform.
*form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
*form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when 'DELETE'.
perform delete.
endcase.
*endform.
*& Form ALV_LIST_DISPLAY
text
--> p1 text
<-- p2 text
form alv_list_display.
i_repid = sy-repid.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = i_repid
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_comomand = 'USER_COMMAND'
is_layout = is_lout
it_fieldcat = i_field[]
it_sort = i_sort
it_events = it_evts[]
tables
t_outtab = it_secobjects.
endform. " ALV_LIST_DISPLAY
*& Form GET_DATA
text
--> p1 text
<-- p2 text
form get_data.
select * from zuser_secobjects
into table it_secobjects.
endform. " GET_DATA
*& Form delete
text
--> p1 text
<-- p2 text
form delete.
data : lines type i.
do lines times.
clear it_secobjects.
read line sy-index field value it_secobjects-box.
read table it_secobjects with key appln = it_secobjects-appln
appln_user = it_secobjects-appln_user.
if it_secobjects-input ne 'X'.
it_secobjects-box = 'X'.
modify line sy-index
field value it_secobjects-box.
else.
it_secobjects-box = space.
modify line sy-index
field value it_secobjects-box.
endif.
enddo.
endform. " delete
this program is not working when i select select all button. this button exist in pf status 0001.
anybody can modify the code and send me the code again.
thanks,
maheedhar.tHI Rich,
i tried in this way also but i didnt get the output. i am sending my code again plz do the necessary changes and resend it to me if possible,
report zmahi6.
type-pools : slis.
tables : zuser_secobjects.
data: t_header1 like zvfrcsthdr.
data : begin of t_header occurs 0 .
include structure t_header1.
data : customer_name like zvsfrcsthdr-customer_name,
kukla like kna1-kukla,
end of t_header.
data : t_header1 like zuser_secobjects.
data : begin of it_secobjects occurs 0.
include structure t_header1.
data : box,
input(1) type c,
checkBOX(1) type c,
end of it_secobjects.
data : wa_ita like line of it_secobjects.
*data : it_secobjects like zuser_secobjects occurs 0 with header line.
data : i_field type slis_t_fieldcat_alv with header line.
data : w_field like line of i_field.
data : i_sort type slis_t_sortinfo_alv.
data : w_sort like line of i_sort.
data : it_filt1 type slis_t_filter_alv with header line.
data:
i_tabname type tabname,
i_repid like sy-repid,
is_lout type slis_layout_alv.
data : chk_box type slis_fieldname.
selection-screen: begin of block b1 with frame title text-t01.
parameters : p_appln type zuser_secobjects-appln.
parameters : p_user type usr02-bname, "zuser_secobjects-appln_user,
p_partnr type zuser_secobjects-appln_partner,
p_ptype type zuser_secobjects-partner_type default '02',
p_upostn type zuser_secobjects-user_position,
p_sdate like likp-erdat default sy-datum,
"type zuser_secobjects-start_date
p_edate(10) default '12/31/9999',
type zuser_secobjects-end_date,
p_revnum type zuser_secobjects-revnum,
p_cted type zuser_secobjects-created_by,
p_cdate type zuser_secobjects-creation_date,
p_ctime type zuser_secobjects-creation_time,
p_chnby type zuser_secobjects-changed_by,
p_cdate1 type zuser_secobjects-changed_date,
p_ctime1 type zuser_secobjects-changed_time.
selection-screen: end of block b1.
start-of-selection.
perform get_data.
check sy-subrc eq 0.
set pf-status 'ZMAHEE'.
perform prepare_fieldcatalog.
perform alv_list_display.
END-OF-SELECTION.
AT USER-COMMAND.
CASE SY-UCOMM.
when 'DELETE'.
loop at it_secobjects.
it_secobjects-checkBOX = 'X'. "<-this would be the name of the
modify it_secobjects.
endloop.
rs_selfield-refresh = 'X'.
PERFORM ALV_LIST_DISPLAY.
endcase.
*ENDCASE.
*ENDFORM.
*& Form PREPARE_FIELDCATALOG
text
--> p1 text
<-- p2 text
form prepare_fieldcatalog.
clear: w_field,i_field.
refresh:i_field.
i_field-key = 'X'.
i_field-col_pos = 1.
i_field-ddictxt = 'S'.
i_field-seltext_s = '@11@'.
i_field-checkbox = 'X'.
i_field-input = 'X'.
i_field-fieldname = 'HEADER'.
i_field-outputlen = 0.
append i_field.
clear i_field.
w_field-fieldname = 'APPLN'.
w_field-tabname = 'IT_SECOBJECTS'.
w_field-seltext_l = text-m01.
w_field-outputlen = '10'.
w_field-col_pos = 1.
append w_field to i_field.
clear w_field.
w_field-fieldname = 'APPLN_USER'.
w_field-tabname = 'IT_SECOBJECTS'.
w_field-just = 'C'.
w_field-seltext_l = text-m02.
w_field-outputlen = '7'.
w_field-col_pos = 2.
append w_field to i_field.
clear w_field.
endform. " PREPARE_FIELDCATALOG
FORM pf_status_set *
--> RT_EXTAB *
form pf_status_set using rt_extab type slis_t_extab.
set pf-status '0001'.
endform.
*form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
*form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when 'DELETE'.
perform delete.
endcase.
*endform.
*form user_command using p_ucomm like sy-ucomm
*rs_selfield type slis_selfield.
case p_ucomm.
when 'DELETE'. " SELALL is the FCODE of ur push
*button
loop at it_secobjects into wa_ita.
it_secobjects-check = 'X'.
modify it_secobjects from wa_ita.
endloop.
endcase.
*endform.
form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when 'DELETE'.
loop at it_secobjects.
it_secobjects-checkBOX = 'X'. "<-this would be the name of the
*checkbox field in your internal table.
modify it_secobjects.
endloop.
rs_selfield-refresh = 'X'.
PERFORM ALV_LIST_DISPLAY.
endcase.
endform.
*& Form ALV_LIST_DISPLAY
text
--> p1 text
<-- p2 text
form alv_list_display.
i_repid = sy-repid.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = i_repid
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_comomand = 'USER_COMMAND'
is_layout = is_lout
it_fieldcat = i_field[]
it_sort = i_sort
it_events = it_evts[]
tables
t_outtab = it_secobjects.
endform. " ALV_LIST_DISPLAY
*& Form GET_DATA
text
--> p1 text
<-- p2 text
form get_data.
select * from zuser_secobjects
into table it_secobjects.
endform. " GET_DATA
*& Form delete
text
--> p1 text
<-- p2 text
form delete.
data : lines type i.
do lines times.
clear it_secobjects.
read line sy-index field value it_secobjects-box.
read table it_secobjects with key appln = it_secobjects-appln
appln_user = it_secobjects-appln_user.
if it_secobjects-input ne 'X'.
it_secobjects-box = 'X'.
modify line sy-index
field value it_secobjects-box.
else.
it_secobjects-box = space.
modify line sy-index
field value it_secobjects-box.
endif.
enddo.
endform. " delete
thanks,
maheedhar.t -
Select all button is not working in vl01n
Dear All,
We are facing a problem at the time of creating delivery through vl01n. At the time of selecting all line items of delivery on item overview screen, we are unable to select all line items. Due to this we have to delete each line item batches separately & to redetermine the batches or we can say select button is not working on item overview screen of vl01n. Also when we redetermine the batch split & return back to item overview screen, select all button works for line items perfectly.
thanks & regards
Deven SharmaHi,
In the user command write the code as per the sample given below:
FORM select_all .
CLEAR v_lisel.
DO.
READ LINE sy-index FIELD VALUE v_chk.
IF sy-subrc NE 0.
EXIT.
ENDIF.
READ LINE sy-index FIELD VALUE sy-lisel INTO v_lisel.
IF v_lisel+2(1) = ' ' AND sy-index GT 5.
v_lisel+2(1) = 'X'.
MODIFY LINE sy-index FIELD VALUE sy-lisel FROM v_lisel.
ENDIF.
ENDDO.
ENDFORM. " select_all
reward if useful
regards,
ANJI -
Highlight table control rows when select all button is clicked
Hi Experts,
I have a table control and filling up rows through user input and i have also created button such as Select All* , De-Select All, and Delete.
Now the issue is when i am pressing the select all button all the rows are marked for deletion(internal 'X' flag is set) but the rows are not highlighted(so that user will be able to know that all rows are selected).
Anything that i am missing, please guide......
Regards,
Abhijit G. BorkarOhh sorry there was some problem with the internet connect, that's why this duplicate happened.
Regards,
Abhijit G. Borkar -
Select all button is not working in ALV List Display
Hi All,
I am displaying output by using lav list display. afer displaying the output iam showing my own pf status here. in my pf status i am havinh one button called 'SELECT ALL' when i click this button it has to select all the checkboxees in my output. but it is not happening like that any body can siggest me what shall i do in this case.
i am sending my code below.
type-pools : slis.
tables : zuser_secobjects.
data : t_header1 like zuser_secobjects.
data : begin of it_secobjects occurs 0.
include structure t_header1.
end of it_secobjects.
data : wa_ita like line of it_secobjects.
*data : it_secobjects like zuser_secobjects occurs 0 with header line.
data : i_field type slis_t_fieldcat_alv with header line.
data : w_field like line of i_field.
data : i_sort type slis_t_sortinfo_alv.
data : w_sort like line of i_sort.
data : it_filt1 type slis_t_filter_alv with header line.
data:
i_tabname type tabname,
i_repid like sy-repid,
is_lout type slis_layout_alv.
data : chk_box type slis_fieldname.
selection-screen: begin of block b1 with frame title text-t01.
parameters : p_appln type zuser_secobjects-appln.
parameters : p_user type usr02-bname, "zuser_secobjects-appln_user,
p_partnr type zuser_secobjects-appln_partner,
p_ptype type zuser_secobjects-partner_type default '02',
p_upostn type zuser_secobjects-user_position,
p_sdate like likp-erdat default sy-datum,
p_edate(10) default '12/31/9999',
p_revnum type zuser_secobjects-revnum,
p_cted type zuser_secobjects-created_by,
p_cdate type zuser_secobjects-creation_date,
p_ctime type zuser_secobjects-creation_time,
p_chnby type zuser_secobjects-changed_by,
p_cdate1 type zuser_secobjects-changed_date,
p_ctime1 type zuser_secobjects-changed_time.
selection-screen: end of block b1.
INCLUDE ZVR_MAHI7_F01 *
form user_command using p_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case p_ucomm.
when 'DELETE_ALL'. " SELALL is the FCODE of ur push button
loop at it_secobjects into wa_ita.
wa_ita-checkBOX = 'X'. "<-- Change this
modify it_secobjects from wa_ita.
endloop.
rs_selfield-refresh = 'X'. "<- ADD THIS
endcase.
endform.
*& Form delete
form delete.
*data: is_secobjects type zuser_secobjects.
data : begin of is_secobjects occurs 0.
include structure zuser_secobjects.
data : checkbox type c.
data : end of is_secobjects.
*IF FLAG = 'X'.
is_secobjects-checkbox = 'X'.
modify is_secobjects
from it_secobjects
transporting checkbox
where checkbox = 'X'.
endform.
*& Form get_data
form get_data.
select * from zuser_secobjects
into table it_secobjects.
endform. " get_data
*& Form prepare_fieldcatalog
text
--> p1 text
<-- p2 text
form prepare_fieldcatalog.
clear: w_field,i_field.
refresh:i_field.
i_field-key = 'X'.
i_field-col_pos = 1.
i_field-ddictxt = 'S'.
i_field-seltext_s = '@11@'.
i_field-checkbox = 'X'.
i_field-input = 'X'.
i_field-fieldname = 'HEADER'.
i_field-outputlen = 0.
append i_field.
clear i_field.
w_field-fieldname = 'APPLN'.
w_field-tabname = 'IT_SECOBJECTS'.
w_field-seltext_l = text-m01.
w_field-outputlen = '10'.
w_field-col_pos = 1.
append w_field to i_field.
clear w_field.
w_field-fieldname = 'APPLN_USER'.
w_field-tabname = 'IT_SECOBJECTS'.
w_field-just = 'C'.
w_field-seltext_l = text-m02.
w_field-outputlen = '7'.
w_field-col_pos = 2.
append w_field to i_field.
clear w_field.
endform. " prepare_fieldcatalog
*& Form ALV_LIST_DISPLAY
text
--> p1 text
<-- p2 text
form alv_list_display.
i_repid = sy-repid.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = i_repid
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'USER_COMMAND'
is_layout = is_lout
it_fieldcat = i_field[]
tables
t_outtab = it_secobjects.
endform. " ALV_LIST_DISPLAY
anybody can modify the code and resend it to me.
thanks,
maheedhar.tHi,
In the user command write the code as per the sample given below:
FORM select_all .
CLEAR v_lisel.
DO.
READ LINE sy-index FIELD VALUE v_chk.
IF sy-subrc NE 0.
EXIT.
ENDIF.
READ LINE sy-index FIELD VALUE sy-lisel INTO v_lisel.
IF v_lisel+2(1) = ' ' AND sy-index GT 5.
v_lisel+2(1) = 'X'.
MODIFY LINE sy-index FIELD VALUE sy-lisel FROM v_lisel.
ENDIF.
ENDDO.
ENDFORM. " select_all
reward if useful
regards,
ANJI -
ALV GRID-how to select all the check boxes using push button
Hai All,
I displayed ALV grid & every record contains one check box as first column.
If user clicks on one push button all the check boxes needs to selected.
Could any one tell me how to do this?
Regards,
BhaskarHi Bhaskar,
Try this code :
*" Table declarations...................................................
TABLES :
spfli. " Flight Schedule
*" Data declarations...................................................
Work variables *
DATA :
w_checkbox TYPE c, " Check Box
w_checkbox1 TYPE c, " Check Box
w_lineno LIKE sy-lilli, " Current Line No
w_lines TYPE i. " No. Of Records in Int.Table
Internal table to hold Flight Schedule data *
DATA :
t_spfli LIKE
STANDARD TABLE
OF spfli.
Structure to hold Function Codes *
DATA :
fs_fcode LIKE LINE OF t_fcode.
TOP-OF-PAGE EVENT *
TOP-OF-PAGE.
PERFORM top_of_page.
START-OF-SELECTION EVENT *
START-OF-SELECTION.
PERFORM fetch_spfli_data.
SET PF-STATUS 'YMENU1'.
DESCRIBE TABLE t_spfli LINES w_lines.
fs_fcode = 'EXIT'.
APPEND fs_fcode TO t_fcode.
fs_fcode = 'SELECT'.
APPEND fs_fcode TO t_fcode.
fs_fcode = 'DESELECT'.
APPEND fs_fcode TO t_fcode.
fs_fcode = 'RETRIEVE'.
APPEND fs_fcode TO t_fcode.
AT USER-COMMAND EVENT *
AT USER-COMMAND.
PERFORM user_command.
FORM top_of_page .
WRITE :/50 'Flight Schedule Information'(008).
ULINE.
FORMAT COLOR 1.
WRITE :/10 'Carrier ID'(001),
25 'Connection ID'(002) ,
43 'Airport From'(003),
59 'Airport To'(004),
74 'Departure Time'(007),
93 'Arrival Time'(011),
106 space.
ENDFORM. " FORM TOP_OF_PAGE
FORM fetch_spfli_data .
SELECT carrid " Carrier ID
connid " Connection ID
airpfrom " Airport From
airpto " Airport To
deptime " Departure Time
arrtime " Arrival Time
FROM spfli
INTO CORRESPONDING FIELDS OF
TABLE t_spfli.
IF sy-subrc EQ 0.
PERFORM display_spfli_data.
ENDIF. " IF SY-SUBRC EQ 0
ENDFORM. " FORM FETCH_SPFLI_DATA
FORM display_spfli_data .
SORT t_spfli BY carrid ASCENDING.
LOOP AT t_spfli INTO spfli.
FORMAT COLOR 2.
WRITE :/2 w_checkbox AS CHECKBOX,
spfli-carrid UNDER text-001,
spfli-connid UNDER text-002,
spfli-airpfrom UNDER text-003,
spfli-airpto UNDER text-004,
spfli-deptime UNDER text-007,
spfli-arrtime UNDER text-011.
ENDLOOP. " LOOP AT T_SPFLI...
ENDFORM. " FORM DISPLAY_SPFLI_DATA
FORM user_command .
CASE sy-ucomm.
WHEN 'SELECT'.
w_checkbox1 = 'X'.
DO w_lines TIMES.
w_lineno = sy-index + 3.
READ LINE w_lineno FIELD VALUE w_checkbox.
IF w_checkbox = '*'.
CONTINUE.
ELSE.
MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
ENDIF. " IF W_CHECKBOX = '*'
ENDDO. " DO W_LINES TIMES.
WHEN 'DESELECT'.
w_checkbox1 = ' '.
DO w_lines TIMES.
w_lineno = sy-index + 3.
READ LINE w_lineno.
IF w_checkbox = '*'.
CONTINUE.
ELSE.
MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
ENDIF. " IF W_CHECKBOX = '*'
ENDDO. " DO W_LINES TIMES.
WHEN 'RETRIEVE'.
w_checkbox = ' '.
DO w_lines TIMES.
w_lineno = sy-index + 3.
READ LINE w_lineno FIELD VALUE w_checkbox INTO w_checkbox.
IF w_checkbox = 'X'.
PERFORM fetch_sflight_data.
PERFORM display_sflight_data.
ENDIF. " IF W_CHECKBOX = 'X'
ENDDO. " DO W_LINES TIMES.
ENDCASE. " CASE SY-UCOMM
ENDFORM. " FORM USER_COMMAND
This report gives you the SPFLI Data and places a check box in front of each record. When u click on select all button it will select all the records. And if you click on deselect all it will deselect all the records. When you are trying this maintain the pf-status 'YMENU1' and give the function codes as in the code.
Regards,
Swapna. -
My product has some very large tables (using RANGE_PAGING). I want to allow the end user to do a Select All operation, and then press a command button to act on all selected rows, but want my backing code to detect a Select All has been done, rather than attempt to retrieve all rows from the table. Is this doable with a RichTable?
I'm porting an existing UI over to ADF -- the old UI handled this by having a separate select all button (column header), which would get unset if any row got unselected, and the backing code could interrogate that. I was wondering if there was a more ADF-ish way of handling this.
Using Oracle JDeveloper 11g Release 1 (11.1.1.6.0)
Edited by: user12614476 on Dec 5, 2011 1:58 PM
(added JDeveloper version info)Are you really using 11.1.1.6? If so, I guess you should be asking in one of the internal Oracle forums.
But, no, there's no "more ADF-ish" way to my knowledge :)
John -
hi all,
im using REUSE_ALV_GRID_DISPLAY in my program,when im selecting the select all button in the top left corner of my grid i need to display a text message, i tried to capture the user command using SY-UCOMM but the value is null so is there any way to do this....Hi,
In you table declare one field which will indicate which rows are selected. I.e.
data: begin of table occurs 0,
"your fields here
selrow type c,
end of table.
"now in alv layout set field as the one which will row status of selection
ls_layout-box_fieldname = 'SELROW'.
Then caputre &ALL sy-ucomm in USER_COMMAND subroutine.
NOTE!
This is not triggering AT USER-COMMAND program event.Instead write such form:
FORM user_command USING f_ucomm TYPE sy-ucomm
ls_selfield TYPE slis_selfield.
if sy-ucomm = '$ALL'. "All button
ENDIF.
ENDFORM. "USER_COMMAND
"and direct FM to use this subroutine when event is raised
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_user_command = 'USER_COMMAND'
Regards
Marcin -
Using Select all to create multiple lines in a sales order
Hello SAP experts,
In our business practice users create multiple line sales orders with reference to contracts and use the copy paste method and then assign each line to the contract manually.
After a few years of this practice i found a new way to create multiple lines but it doesn't quite work correctly. When you have created the first line of an order if you click on the select all button the system will ask you how many lines do you want to copy. I don't know if this is standard SAP but 3 things don't happen when we use this 1) The schedule line information is blank 2) conditions do not copy from the contract even though the contract has been referenced. 3) Since there is no schedule line information the order fails when saving and we get a update terminated message.
I am having problems finding any documentation around this function so any help with this would be greatly appreciated.
error when updating is
Transaction.. VA01
Update key... 4D358878A8B601AAE10080000A2C4982
Generated.... 28.01.2011, 13:47:23
Completed.... 28.01.2011, 13:47:23
Error Info... 00 671: ABAP/4 processor: GETWA_NOT_ASSIGNEDGETWA_NOT_ASSIGNED
Many threads are there on this error message and you would come to know if you google with this text. Check couple of threads where the same topic was discussed
[Re: GETWA_NOT_ASSIGNED|Re: GETWA_NOT_ASSIGNED;
[Re: GETWA_NOT_ASSIGNED ABAP Dump|GETWA_NOT_ASSIGNED ABAP Dump;
Also there are some 20 OSS notes on this error message and you can have a look at the following notes:-
1) Note 913679 - VA01: Short Dump GETWA_NOT_ASSIGNED on click of quantity.
2) Note 591955 - ABAP runtime error GETWA_NOT_ASSIGNED
3) Note 870670 - SD_SALES_DOCU_MAINTAIN_DIALOG termination with GETWA_NOT_***
4) Note 141314 - VA02: Dump with 'GETWA_NOT_ASSIGNED'
thanks
G. Lakshmipathi -
hi,
the first column of my alv grid display is check boxes. i want all the check boxes to be checked when the user clicks on the select all button present on the grid.it very urgently required.plz give me the code.
thanks & regards,
santoshHi santosh nayak ,
on the action method of select all button, read the the whole alv. Set the value of the first field as abap_true. Bind the itab back to the node.
Regards
Sarath -
I have so many mails a day and I'd like to read and delete them selectively.
News letters from shopping mall sites, business mails from partners, customer's feedback mails and notification mails from SNS .....
After reading some interesting mail, there's mails I don't want to open for today.
I mean it's NOT that I stop subscription, just wanna delete for now.
But, there's no "Select all" button in Mail List and I cannot select mails to be removed all at a time.
So, the Mail app force me to tap each mails that I don't need to touch (one at a time... one at a time)
Given that you've got mails too lot a day, the number of times you have to tap would really mass up your day life!
To delete all, We should go to trash box and tap 'delete all'
but before we move each mail we need select all button.
it's deferent delete all and select all. delete all button is enough and useful for now in trash box. I think select all button in Mail Inbox(List) is urgent issue.
from a user in South KoreaApple doesn't read these forums, but you can give them your suggestions here:
http://www.apple.com/feedback/iphone.html. -
Function Module to select all entries in ALV output
Hi,
I have an ALV report and Select ALL and Deselect ALL Buttons added to it .
When the Select ALL button is pressed,all entries of the ALV report should be selected.
When the Deselect ALL button is pressed,all entries of the ALV report should be deselected.
Is there any function module to select all entries of the output and vice versa.
Thanks in advance.
Regards,
NavasHi Navas,
I have written a part of the code you can use.
TYPE-POOLS: slis.
DATA : ls_event TYPE slis_alv_event.
Set PF Status
ls_event-name = slis_ev_pf_status_set .
ls_event-form = slis_ev_pf_status_set .
APPEND ls_event TO gt_event.
CLEAR ls_event.
FORM pf_status_set USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'Z_STATUS'.
ENDFORM . "set_pf_status
(no need for any perform. This will be called automatically).
While calling the FM for ALV, pass the internal table gt_event in it_events parameter.
Double click on Z_STATUS and add two buttons in Application Toolbar.
1. Select All - Give function code name as &ALL,
2. Deselect All - Give function code name as &SAL.
Hope this helps.
Thanks,
Dawood.
Edited by: Dawood.S.Ghasletwala on Apr 3, 2009 3:51 PM -
We are Unable to Select All Resources on Payrun Worksheet to Lock or Submit Worksheet.
WE WOULD GREATLY APPRECIATE ANY WORK-AROUND TO RESOLVE THIS PROBLEM.
We have > 31,000 commissionable resources. Expanding the # of lines/screen to 100 will still require going thru 316 pages.
An ER to resolve this issue was first created in 2004 & nothing has been done to rectify the situation. The ER Response was:
Symptom(s)
~~~~~~~~~~
- You have a large number of salesreps in a Payrun.
- Select All button only selects the resources displayed in the current page,
and you have to navigate to multiple pages in order to submit and lock all
the worksheets.
- Select All button should select all the salesreps in the Payrun and not only
the salesreps on the current page.
Cause
~~~~~~~
This is the intended functionality of the product.
Fix
~~~~
- For the current version of OIC this is the expected functionality. Currently
there are two enhancement requests opened for this, one for the worksheet summary
page and the other for the Sign-off report page.You can do this (requires some coding though).
1. Download the worksheet (CN_WKSHT_GET_PUB)
2. Verify the details.
2. Use CN_PAYMENT_WORKSHEET_PVT.update_worksheet (with actions as Lock first and then submit) this worksheet_id (you may have to write a concurrent program?)
Thanks
Nagamohan -
Bulk deletion of photos - where is the "Select All"?
This is a question for Apple after a couple of years of frustration and work-arounds
Using the camera connection kit I frequently suck in hundreds of photos to the iPad for viewing in the field. These go into the 'All Imported' folder
In a short period of time, this folder grows to a monster (currently I have some 4000 photos in it) and I need to clear it out as it stuffs up my tiny 64gb iPad.
ALL methods I have read to do this are frankly awkward and kludgy. 'Image Capture" has stopped recognising the iPad". I don't always have access to a 3rd device which doesn't already have these photos imported (thus blocking the 'delete after importation' approach). Furthermore it has taken me over a year to grok that you need to use TWO fingers to swipe multiple photos (in any case an ugly process when dealing with 1000s) not ONE as in previous version. Like most iPad/Apple users I had assumed that this 'feature' had quietly been dropped
The addition of a simple 'select ALL' button would save me and thousands of users countless grief. There are a number of other applications in which this would be useful (music) but it is the photos which most affect me. it is a generic solution and compatible with the standard Applu UI metaphor. Why in earth would you not put this in place?
-gordon
[email protected]On a Mac, you can use the Apple Image Capture utility to bulk process your iPad photos.
On a Windows PC, there is no Apple Image Capture utility. However, you can follow this procedure to bulk-delete photos from your iPad:
connect your iPad to your PC using the USB-cable that came with your iPad
open Windows Explorer, and open the DCIM-folder on your iPad
you will see a list of folders with "weird" names, which look like this example:Computer\iPad\Internal Storage\DCIM\838CPLYO
for each folder, open it, select all photos in it, and press the delete-keynote: you cannot delete the entire folder itself, you have to go in and delete the photos in it
A bunch of empty folders will remain after this procedure, which you cannot delete manually, but they will be automatically cleaned-up after you restart your Photo app on your iPad.
Maybe you are looking for
-
How to access a web service(.wsdl) from portal component.
Hi , Is there any document/tutorial available on how to access a webservice from portal component ? I have found this linkhttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/g-i/how to access a web service.htm... but
-
Sorting Music within a Playlist
I am having a strange problem crop up that just started happenning recently. I am using the latest version of Apple TV system software along with the latest version of iTunes. When I create a playlist in iTunes I always sort it by track # by clicking
-
Acrobat 9 "Choose paper Source by PDF page size" prints as thumbnail
I have a customer who is trying to print a document that has different page sizes, eg. p.1 is 8 x 11, p.2 is 11 x 17. He can select the page size manually and everything works as expected. If you put a check mark in "Choose paper Source by PDF page s
-
Hi there! How can I dezone my DVD (I am in region 2 and I would like to be able to see dvd in region 1) Cheers
-
Is there a way to trace and/or block anonymous text messages? For the past month, ,I've been receiving these text messages coming from these numbers 1 (210) 100-100, 1 (210) 100-101, 1 (210) 100-102 and so on and on. it has gotten to the point that