German sportswear brand Puma has booked mixed second-quarter results as it moved to a net loss but revealed sales that beat analyst expectations pushing the group's share price up.