The Rami, along with the 40B, is unique among CZ's in that it uses a shorter screw, and no, the longer ones won't work even though they're the same diameter. If the grip screws on the Rami are too long they will rub against the side of the magazine and interfere with it.
The 40b was discontinued by CZ around 2008. However it uses the same size screw as the Rami. A few sellers- not many- offer grip screws to fit the 90% of CZ pistols that all take the same size. But as far as I know I am the only seller in the U.S. -maybe the world- besides CZ-USA to offer grip screws to fit the Rami and 40B. And CZ-USA has only slotted or Phillips heads. I have Rami/ 40B screws in both stainless and brass hex head, and when you include shipping costs they're actually less than what CZ charges for slotted screws .