What ffp's are you a member of now? One codeshare flight is not a reason to join a (new) ffp.
What fare booking class?
http://www.wheretocredit.com/all-nippon-airways
With Star Alliance the operating carrier determines ff earning.
Flying a flight marked by one airline (flight number), operated by a second airline (codeshare) and crediting the frequent flyer miles to a third airlines ffp is always problematic. Usually only works if all three are in the same alliance (Oneworld - Star - Skyteam) or specific provision in the ff program rules. e.g AA miles or BA avios on QF marketed flight operated by EK.