Values:
code_type code_description id
ML UNKNOWN 1
PT Payment Terms 2
CT Country 3
PC Profit Center 4
DP Department 5
SL Ship Location 6
SM GP Ship Method 7
TM Transport Mode 8
DT Delivery Terms 9
TC Transport Carrier 10
PlantCust Plants to Customers 12
II Ignore Inventory Plant 13
MC Shipping Country 11
What I would like is for the source and target code fields to be validated against different master tables based on the value of the code-type field. For instance, if the code-type were "CT", I'd like the source and target codes validated against the country code master, but if the code-type field were "PC", then I'd like the source and target codes validated against the GL Profit Center table (ie... IS_IN_DB()).
Thanks,
Carl