(Telecompaper) Oracle and SAP have agreed to settle their long-running legal battle over software copyrights. SAP will pay Oracle USD 359 million to settle the case, the Wall Street Journal reports. The payment is much smaller than Oracle originally sought. An appeals court in August threw out a USD 1.3 billion jury award against SAP, calculating Oracle's true damages at USD 356.7 million. SAP agreed to pay that amount plus interest. The company said it had previously paid Oracle USD 120 million for legal fees and dismissal of some legal claims. Both sides issued statements expressing satisfaction with the settlement. Oracle filed suit in 2007 alleging that TomorrowNow, a company that SAP had acquired, illegally downloaded Oracle's software. SAP shut down the business and admitted liability. The litigation mainly revolved around the amount of damages SAP should pay.