Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

re: alvgrid

Former Member
0 Likes
1,077

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,050

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

11 REPLIES 11
Read only

Former Member
0 Likes
1,051

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

Read only

0 Likes
1,050

Hi vijay,

How can i select multiple lines.

rgds

p.kp

Read only

0 Likes
1,050

Hi Krishna,

For multiple line selection you need to go for

layout-sel_mode = 'D'.

VIjay

Read only

0 Likes
1,050

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

Read only

0 Likes
1,050

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

Read only

0 Likes
1,050

Hi vijay,

After deleting the values, how can i refresh the table values.

rgds

p.kp

Read only

0 Likes
1,050

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

Read only

0 Likes
1,050

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

Read only

0 Likes
1,050

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

Read only

0 Likes
1,050

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

Read only

0 Likes
1,050

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..