SQL -Max function Lets understand MAX function in SQL SQL requirement Open VBEP table which contains schedule line details for each sales order Now check which ETENR has value more than 1 or 2 or 3 . its your choice The expected result is SELECT vbeln , MAX( etenr ) AS maxetenr FROM vbep INTO TABLE...