297: -- validate foreign keys
298: if cr.PAYMENT_TERMS_ID is not null then
299: begin
300: select 'x' into temp
301: from RA_TERMS
302: where TERM_ID = cr.PAYMENT_TERMS_ID;
303: exception
304: when NO_DATA_FOUND then
305: dumm_status := INVPUOPI.mtl_log_interface_err(