Green’s Dictionary of Slang

abram-sham n.

[sham abram v.]

[late 19C] the practice of travelling the country posing as a madman.