How do I export all the inbound and outbound records of a certain SKU?

Enter the product page → check SKU →drop-down export menu → export warehouse records → select report type and time range → export.