Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

please help for this Logic

Hi Guys,

We are having a problem translating these scenario to codes:

<b>Total = 1600</b>

<b>Given items:</b>

200

300

400

900

to get the total we need to add (900 + 400 + 200) to get the exact value.

other scenarios: Total: 1350, 750, etc...

In all scenarios.. the less number of items added and closest sum to the total should be chosen.

Thanks in advance!

Regards,

Mike

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question