You have to add a Request Page and set the RequestFilterFields (e.g. No.).
If you want to mimic how a report has to be built in you have to look for report 206 (tailored for RDLC) or 1306 (tailored for Word Layout) depending what are you developing for or targeting your output.
If you want to run the report after selecting one record or more record in the field, you have to look for the code in the OnAction in one of the printing actions in sales order list.
I would better ask your CSP Partner or Reseller to guide you through the basics of the report development, just to have a more organic way how to create and master report developments with AL.
A milestone page to bookmark - if this concerns report - is the folllowing
http://thinkaboutit.be/2017/08/how-do-i-create-a-report-and-layout-in-vscode/
Steven also deliver very good reporting class and is author of several books about reporting with dynamics NAV (hopefully he could make one also for BC)