$ 0 0 What you've asked is already available in standard system, choose a line item in the delivery document and click details button. You'll be direct to be a screen, here you can get the predecessor document number under the tab 'Predecessor data.'