PURCHASE, NY. — A pre-tax impairment charge related to the war in Ukraine dragged down second-quarter earnings at PepsiCo, Inc. but didn't dampen the spirits of company executives who said business momentum continues.