Need to display qualifying records in a grid fashion

HI

We have a button on customer maint. screen which when clicked opens up Sales Order/Quote History program. User can select customer from F2 list. Instead, we would like to pass current customer number to this program so only records where customer is from the Customer Maint. screen.

Alternately, if a new button is created, I can pass current Customer to SO_SalesOrderHistoryHeader and SO_SalesOrderHistoryDetail files and show only those records for the current customers. I would like to show these records in a table with some fields like, SO#, SO Date, ShipExpiryDate, Total$, etc.

Any suggestions are welcome.[:)]