2006 Jan 04 6:02 AM
Hi,
I want to choose one line in grid display. After choose, i want to delete those rows selected. This is my
requirement.
1. How to put the select button infront of every row.
2. How to find the rows i selected.
Please give me the answer with out oops
rgds
p.kp
2006 Jan 04 6:12 AM
hi Krishna,
1. layout-box_fieldname = 'FIELDNAME'.
the field name should be there in internal table.
2. SELFIELD TYPE SLIS_SELFIELD.
after selecting you can get the info of row from selfied(row no).
thanks
vijay
Hi,
I want to choose one line in grid display. After choose, i want to delete those rows selected. This is my
requirement.
1. How to put the select button infront of every row.
2. How to find the rows i selected.
Please give me the answer with out oops
rgds
p.kp
2006 Jan 04 6:12 AM
hi Krishna,
1. layout-box_fieldname = 'FIELDNAME'.
the field name should be there in internal table.
2. SELFIELD TYPE SLIS_SELFIELD.
after selecting you can get the info of row from selfied(row no).
thanks
vijay
2006 Jan 04 6:22 AM
Hi vijay,
How can i select multiple lines.
rgds
p.kp
2006 Jan 04 6:27 AM
Hi Krishna,
For multiple line selection you need to go for
layout-sel_mode = 'D'.
VIjay
2006 Jan 04 6:45 AM
Hello vijay,
there is no such layout-sel_mode is not available
in layout. But i given u points. Please solve my problem.
rgds
p.kp
2006 Jan 04 7:00 AM
Hi Krishna,
If you are using OO alv sel_mode will come, but normal alv
you need to give box_fieldname for selecting the rows.
and then after that for selecting multiple rows you need to take help of keyboard key CNTRL(control key) and select multiple rows.
thanks
vijay
2006 Jan 04 7:04 AM
Hi vijay,
After deleting the values, how can i refresh the table values.
rgds
p.kp
2006 Jan 04 7:06 AM
hi i hope you declared the field selfield as mentioned above.
using that you can refresh.
slefield-refresh = 'X'.
just write the above code .
thanks
vijay
2006 Jan 04 7:23 AM
Hi vijay,
Iam getting one problem. How can i delete the selected lines. If i choose the lines 1-3 it is showing only one tabindex. So i want to choose lines which are not in the sequence, for those lines how can i delete.
rgds
p.kp
2006 Jan 04 7:39 AM
hi Krishna,
if you chose one row that is fine, if you choose multiple rows then..
what you have to do is
loop at itab where boxfield = 'X'.
"do delete here.<--
endloop.
thanks
vijay
2006 Jan 04 8:05 AM
Hi vijay,
I completed my above requirement. Now i want to append one more list to this list. How it is possible.
rgds
p.kp
2006 Jan 04 8:13 AM
Hi Krishna,
you need to add another list to your first list .
in end_of_list of first list call the another list.
i mean call reuse_alv_list_display FM.
populate the event end_of_list.
and fill the new list fieldcat,etc... and call the FM
this will add the new list to first list.
thanks
vijay
for any info just come back..