RMA_CNTCT2_INVW

(SQL View)
Index Back

Order Header Search Record


SELECT DISTINCT a.business_unit , a.rma_id , a.return_fr_cust_id , a.cntct_seq_num , b.language_cd FROM ps_set_cntrl_rec c , PS_RMA_HEADER a , ps_cust_contact b WHERE c.recname='CUSTOMER' AND a.business_unit = c.setcntrlvalue AND a.rma_type='I' AND a.return_from_option = 'E' AND a.return_fr_cust_id = b.cust_id AND (a.cntct_seq_num = b.cntct_seq_num OR a.cntct_seq_num=0) AND b.eff_status='A' AND %EffdtCheck(cust_contact c, b, %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_RMA Character(5) VARCHAR2(5) NOT NULL RMA Business Unit

Prompt Table: SP_BU_FS_NONVW

2 RMA_ID Character(10) VARCHAR2(10) NOT NULL RMA Number
3 RETURN_FR_CUST_ID Character(15) VARCHAR2(15) NOT NULL Return From Cust ID
4 CNTCT_SEQ_NUM Number(5,0) INTEGER NOT NULL Contact Sequence Number
5 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code