Add Item field in Results and this will automatically show the main line (first on the list of the same docnum) and line level items. You can add line sequence number field as well. 0 means main level. Also, in my case, I added a formula (text) that says MAIN if the line sequence number is 0 and LINE if otherwise.