How does a field fetch data

I will explain in detail i have two fields A and B in item master .A’s type = data and B’s type = data…Now i want A field in my sales invoice also n it should fetch value from item master and similarly I want B in my sales invoice item table and it should fetch value from item master …what should i code for A and B
Will there be type=Link used anywhere in above scenario?