LM_PO_ORG_SR_VW(SQL View) |
Index Back |
---|---|
PO Org search viewPO Org search view |
SELECT A.LM_PO_ID , C.LM_ORGANIZATION_ID , A.LM_PO_NAME , C.LM_ORG_DESCR , C.LM_ORG_TYPE , A.CURRENCY_CD , A.LM_AMT , A.LM_PO_PURCHASE_DT , A.LM_EXP_DT , A.LM_BALANCE_AMT , A.LM_OWNER_ID FROM PS_LM_ENRMT_PO_VW A , PS_LM_MOP_OWNR_VW B ,PS_LM_ORGANIZATION C WHERE A.LM_PO_ID = B.LM_MOP_ID AND B.LM_MOP_OWNER_ID = C.LM_ORGANIZATION_ID AND B.LM_MOP_TYPE = 'PO' AND B.LM_MOP_OWNER_TYPE ='ORG' AND %CurrentDateIn BETWEEN C.EFFDT AND C.LM_END_EFFDT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | LM_PO_ID | Number(10,0) | DECIMAL(10) NOT NULL | Purchase Order Id. Unique key for purchase orders. |
2 | LM_ORGANIZATION_ID | Number(15,0) | DECIMAL(15) NOT NULL | Organization ID |
3 | LM_PO_NAME | Character(20) | VARCHAR2(20) NOT NULL | PO Number field in the PO table. |
4 | LM_ORG_DESCR | Character(50) | VARCHAR2(50) NOT NULL | Customer Description |
5 | LM_ORG_TYPE | Character(15) | VARCHAR2(15) NOT NULL | Organization Type |
6 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
7 | LM_AMT | Number(23,3) | DECIMAL(22,3) NOT NULL | Amount available |
8 | LM_PO_PURCHASE_DT | Date(10) | DATE | PO Purchase Date |
9 | LM_EXP_DT | Date(10) | DATE | Expiry Date for PO, TUs. |
10 | LM_BALANCE_AMT | Number(22,2) | DECIMAL(21,2) NOT NULL | Balance Amount available for payment. |
11 | LM_OWNER_ID | Number(15,0) | DECIMAL(15) NOT NULL | Owner ID |