Hi, the code is in:
RetailTransactionServiceOrders. getCustomerOrderShipmentHistory(str _xmlArgumentString = '')
The corresponding table\view contains RetailOrderHistoryView, RetailTransactionTable, SalesLine, RetailSalesLine.
I suggest that you go through this mesthod, it will be pretty easy to identify the table used.