Grouping Earmarked Funds 
You can use this function to group together document items of an earmarked funds document. SAP delivers two inactive implementations:
Grouping scenarios for Spain
Grouping scenario for multi funding
For more information on the implementations, see the documentation on BAdIs: Activate Grouping Function in Earmarked Funds in the implementation guide (IMG) of