Skip to Content
avatar image
Former Member

abap query

Hi,

I have an internal table as below :

Internal table

No Of length id total Weights

5 30 z1 150 1500

7 30 z2 210 2100

3 30 z3 90 900

6 30 z4 180 1800

2 30 z5 60 600

1 5 Z6 5 50

10 5 Z7 50 500

The requirment is :

Restrictions Total Weight in Each bundle should not exceed 2500 and No Of items should not exceed '8' .Total No of items in each bundle should not exceed '8'.

Out put of internal 1 table should be as below.

No Of lenghts Id Marks Overall Met Weights Bundle

5 30 z1 150 1500 1

3 30 z2 90 900 1

4 30 z2 120 1200 2

3 30 z3 90 900 2

1 30 z4 30 300 2

5 30 z4 150 1500 3

2 30 z5 60 600 3

1 5 z6 5 50 3

8 5 z7 40 400 4

2 5 z7 10 200 5

Can you please let me know any ideas??

Thanks,

Vind

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 05, 2008 at 12:04 AM

    Did you find a solution? How many records does the table have?

    Add comment
    10|10000 characters needed characters exceeded