Thanks for replying. I've edited the question adding the whole code.
You mean assigning the value from the Rec at OnOpenPage? I couldn't get the Rec at first, because it doesn't exist.
But while I was replying you, I tried to get the filter from the header and I finally got it or kind of. Thank you!
The problem is that it's executed before the request page and after it, so it replaces the value if it's changed by the user...
I share the code in case someone needs it:
//Report Extension from Sales - Shipment
//Goal: Get Rec of the report before the RequestPage
//This trigger is inside requestpage
trigger OnOpenPage()
var
Albaran: Record "Sales Shipment Header";
NoAlbaran: Text;
begin
//Here you get the No from the filter
NoAlbaran := "Sales Shipment Header".GetFilter("No.");
//With the No you can do the logic you need, this is an example
if Albaran.get(NoAlbaran) then begin
Valueless := Cliente.PQNAlbaranValorado;
end;
end;