The columns and tables (AP7LINEITEMS, and AP7RECEIPTITEMS) you need are shown below:

Line # = sequence. AP7LINEITEMS
Vendor Part = vendorpartnumber. AP7LINEITEMS
Description = description. AP7LINEITEMS
Ordered = quantityordered. AP7LINEITEMS
Action = receipttype. AP7RECEIPTITEMS
Quantity = quantityreceived. AP7RECEIPTITEMS
Unit Cost = unitcost. AP7RECEIPTITEMS

You can join the AP7RECEIPTITEMS table to the AP7LINEITEMS table by using the ap7lineitemsid column. Please refer to the following article for details on the database schema and the various tables and joins available: How to find a database reference definition or schema (includes video demo)

An example SQL query to illustrate this, appears below:

select LI.SEQUENCE as 'Line #',
LI.VENDORPARTNUMBER as 'Vendor Part #',
LI.DESCRIPTION as 'Description',
LI.QUANTITYORDERED as 'Ordered',
RI.RECEIPTTYPE as 'Action', -- 1 - receive, 2 - reject, 3 - cancel
RI.QUANTITYRECEIVED as 'Quantity',
RI.UNITCOST as 'Unit Cost'

from AP7RECEIPTITEMS RI
inner join AP7RECEIPTS RC on RI.AP7RECEIPTSID = RC.AP7RECEIPTSID
inner join AP7LINEITEMS LI on RI.AP7LINEITEMSID = LI.AP7LINEITEMSID

Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Our Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.