CA_CON_PND_VW

(SQL View)
Index Back

Modify Sold To Customer Srch

Search Record for the Modify Sold To Customer Component, which retrieves only Pending Contracts provided no Sales Order exists for it.

SELECT HDR.BUSINESS_UNIT , HDR.CONTRACT_NUM , HDR.DESCR , HDR.SOLD_TO_CUST_ID , CUST.NAME1 , HDR.CA_STATUS , HDR.CONTRACT_TYPE , HDR.CA_RQST_SRC , HDR.REGION_CD , HDR.CONTRACT_ADMIN , HDR.MAST_CONTR_ID , HDR.CURRENCY_CD FROM PS_CA_CONTR_HDR HDR , PS_CUST_SLD_VW CUST , PS_SET_CNTRL_GROUP GRP WHERE HDR.SOLD_TO_CUST_ID = CUST.CUST_ID AND HDR.BUSINESS_UNIT = GRP.SETCNTRLVALUE AND GRP.REC_GROUP_ID = 'FS_23' AND GRP.SETID = CUST.SETID AND HDR.CA_RQST_SRC NOT IN ('OND', 'INT') AND HDR.CA_PROC_STATUS='P' AND NOT EXISTS( SELECT 'X' FROM PS_ORD_HEADER_EC EC WHERE EC.BUSINESS_UNIT = HDR.BUSINESS_UNIT AND EC.CNTRCT_ID=HDR.CONTRACT_NUM) AND NOT EXISTS( SELECT 'X' FROM PS_GM_PROPOSAL GM WHERE GM.BUSINESS_UNIT = HDR.BUSINESS_UNIT AND GM.PROPOSAL_ID = HDR.CONTRACT_NUM AND PROPOSAL_FLG ='S') AND NOT EXISTS( SELECT 'X' FROM PS_RS_SO_HDR RS WHERE RS.BUSINESS_UNIT = HDR.BUSINESS_UNIT AND RS.CONTRACT_NUM = HDR.CONTRACT_NUM)

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

Default Value: OPR_DEF_TBL_CA.BUSINESS_UNIT

Prompt Table: SP_BU_CA_NONVW

2 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract
3 DESCR Character(30) VARCHAR2(30) NOT NULL Description
4 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer

Prompt Table: CUST_SLD_VW

5 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
6 CA_STATUS Character(24) VARCHAR2(24) NOT NULL Contract Status

Prompt Table: CA_STATUS_VW

7 CONTRACT_TYPE Character(15) VARCHAR2(15) NOT NULL Contract Type

Prompt Table: CA_TYPE_TBL
Set Control Field: BUSINESS_UNIT

8 CA_RQST_SRC Character(3) VARCHAR2(3) NOT NULL Contract Classification
FED=Federal Reimbursable Agreement
GEN=Generic Application
GOV=Government
INT=Internal
OND=CRM Field Services On Demand
STD=Standard
9 REGION_CD Character(10) VARCHAR2(10) NOT NULL Identifies the Sales Region. Populated on the Item Table to identify the Sales Region the Item is applied to.

Prompt Table: CA_REGION_CD_VW
Set Control Field: BUSINESS_UNIT

10 CONTRACT_ADMIN Character(40) VARCHAR2(40) NOT NULL Contract Administrator defined on CABU.

Prompt Table: MEMBER_VW

11 MAST_CONTR_ID Character(25) VARCHAR2(25) NOT NULL Master Contract #

Prompt Table: CA_MASTER_VW

12 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code