SAP Message BP371 - All funds and fiscal years must be the same

Diagnosis
You have entered differing funds or fiscal years in internal tableDOC_ITEMS_SENDER or internal table DOC_ITEMS.
Processing is only possible when the same fund and the same fiscal yearis entered in all lines of table DOC_ITEMS_SENDER orDOC_ITEMS.

System Response
Processing cancelled.

Procedure
Enter the same fund and the same fiscal year in all lines.