The incident happened at the Co-op store in Thornton at about 02:15 on 17 May.
A Ford Transit flatbed van, stolen in Station Road, reversed into the premises. Extensive damage was caused to the building and an attempt was made to steal an ATM.
A 25-year-old man is expected to appear at Kirkcaldy Sheriff Court court on Monday.
Det Insp Stewart Andrew of Glenrothes CID said: "Officers have been pursuing various lines of enquiry ever since this incident took place, which has included liaison with our colleagues in Durham Constabulary.
"I want to thank local residents for their support throughout and reassure the community that we will use all resources at our disposal to investigate such incidents."

The 10 men and three women, aged from 22 to 54, are from Lincolnshire and West Yorkshire and are due to appear in court next month.
Ten face charges of conspiracy to hold another person in slavery or servitude.
Two have been charged with cheating the public revenue, and another person has been charged with false representation and possession of criminal property.
They are due to appear at Lincoln Magistrates' Court on 28 October.
Seven of those charged are from Washingborough Road, Lincoln; five from Drinsey Nook, near Saxilby; and one from Kinsley in West Yorkshire.
The charges follow a joint operation involving police and the National Crime Agency, during which a number of traveller sites were raided, including Drinsey Nook and Washingborough Road.
A man has been charged after a ram-raid at a shop in Fife.
[NEXT_CONCEPT]
Thirteen people have been charged after a police operation against modern slavery.