I'm very close to the desired result but I cannot figure out what I am doing wrong. This is what I got after mapping:
You are close, very close.
For code, this line item should be formatted as TEXT and the formula will use the CODE function.
For Product Family, this line item should be formatted as a LIST, P2 Product Family, and the formula will use the PARENT function.