KOMK and KOMP structures for pricing


I was looking for an explanation about pricing through pricing communication structures. what i understood is that first the sales order values get copied to KOMP and KOMK structures and then if these structures values matches with those of condition reocrods then the condtion rate is set in sales order or billing.

i have one question, how do the system matches values in komp/komk structres with those in condition records (A table) i.e how do the system recognises that the sales org/material/customer values contained in structure is equal to condition reocrds values.

iam not an abaper but is this some sort of code which is there in the program to match the value sin strcutres with the values in condition records ???

komk-vkorg= A702-VKORG



iam not sure but how does the system knows what values of structure is to be compared with what values of condition records