It would be nice to have the ability to retrieve a table related to the record found.
Can you expand on what you are looking for here? This feature may already be available.
If I understood, I can obtain a single record o more records.
If I would obtain some fields of Sales Invoice Header (Last Document of Customer),
I would see a single record, but I would see record of header and below relative rows.