Application Development 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: 

abap query

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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