Hi,
I'm not sure what kind of 'grouping' you are talking about, but in FBL5N, as in any report of this style, you have a possiblity of Dynamic Selection, based on different fields both from master data of the customer and from the document itself. Isn't that enough for your requirements?
Regards,
Eli