Demi Moore and Bruce Willis's daughter Scout can do community service to resolve her public drinking and fake ID case, a US judge says.

Scout, who is now 21, was excused from court as a Manhattan judge agreed to dismiss her misdemeanour case if she does two days of service.

She did not have to enter a plea in the case, which took a curious detour into the Pakistani beer industry.

Her lawyer, Stacey Richman, said prosecutors "took a logical approach to assessing the situation".

The arrangement in Scout's case, technically known as an adjournment in contemplation of dismissal, is often offered to defendants in first-time misdemeanour cases.

The Brown University student was arrested on June 4. A court complaint said she was sipping an eight-ounce can of "Pakistani beer" in Manhattan's Union Square in violation of an open-container law.

Scout, who was then 20, gave police an ID card with the name Katherine Kelly before ultimately showing her real ID, according to a criminal complaint. Those allegations led to a misdemeanour impersonation charge.

Ms Richman took aim at the charges in court papers earlier this month, saying she had contacted Pakistan's sole brewery and found it did not make an eight-ounce can of any alcoholic beverage and did not have permission to export products to the United States.

The case was resolved before prosecutors responded. Scout is the second of her actor parents' three daughters together. The couple divorced in 2000.

She is pursuing a career in music while studying and pursuing various extracurricular activities at Brown, Ms Richman said in her court papers.