With the indictment of union lawyers on racketeering charges and the Federal subpoena of union records, the 29,000 members of New York City's mighty Patrolmen's Benevolent Association might be expected to demand the scalps of their union leaders.

But many police officers have turned their anger in recent months not on the union's leaders, but on Mayor Rudolph W. Giuliani. For instance, a flier that some police officers are distributing among the ranks demonstrates the depths of their discontent.

The flier, resembling part of a will, says, ''I, . . ., a New York City police officer, want all of my family and brother officers who read this to know'' that ''in the event of my death,'' Mr. Giuliani and his Police Commissioner should ''be denied attendance of any memorial service in my honor as their attendance would only bring disgrace to my memory.''

It is not known how many officers have signed the document, which is not officially blessed by the union.