In an InputScript for transaction FBL3N I would like to set a certain selection variant. But this is implemented in the SAP system via a "grid control" that I cannot handle in the InputScript. Is there a way around?

Yes, you can use transaction SA38 and set the program name "RFITEMGL". Then execute the function "Start with variant" with either Enter "/18" or Enter "=STRV". On the next screen you can then enter the name of the selection variant.