Skip to Content
0
Former Member
Apr 21, 2007 at 07:46 AM

ALV

18 Views

Dear All ,

i have four checkboxes

1. plant

2. vendor

3. buyer

4. material

I have the following data in my itab

plant vendor buyer material qty

a001 1234 a1 s123 10

a001 5678 a1 s123 20

a001 1234 b1 s123 15

plant + vendor + buyer + material is key feild

now if he clicks checkbox plant & buyer

it should add the qty feild for record where plant & buyer is same

so in this case output report should be

a001 1234 a1 s123 10

a001 5678 a1 s123 30

i cant use collect statement as plant + vendor + buyer + material is a combined

key feild and not plant + buyer

also if i consider all the conditions in selection of checkbox

it would be 2 raise to 4 = 16 combinations

i dont want to write so much code

how do i do it

pts will be given