Hello Deepak
Please check for ERP 6.0 update to EHP 7 check this guide
Check the section "Supported Source Releases"
For upgrade of BW ABAP to NetWeaver 7.40 check this guide and for Java check this guide.
Check the section "Checking the Source Release of the SAP System"
Additionally check the SAP note 1981278 - Central Note - Software Update Manager 1.0 SP12 [lmt_008] and the attachments that come with it.
Cheers
RB