Hi,
IMHO what you did is better.
But if you have to sum maybe you need to create extra quantity , amount fields .
If you decide on the one line solution you can use the "RENAMING WITH SUFFIX suffix" to include the same structure more the once.
See http://scn.sap.com/docs/DOC-47512
Regards.