BOE_PO_SHIP_VW(SQL View) |
Index Back |
---|---|
BOE PO Ship View |
SELECT L.BENEFIT_ID , S.BUSINESS_UNIT , 'N' , S.CURRENCY_CD , S.CURRENCY_CD_BASE , L.DESCR254_MIXED , H.VENDOR_SETID , H.VENDOR_ID , H.VNDR_LOC , L.INV_ITEM_ID , L.ITM_SETID , L.CATEGORY_ID , S.PO_ID , S.LINE_NBR , S.SCHED_NBR , S.QTY_PO , H.RT_TYPE , H.RATE_DATE , H.RATE_DIV , H.RATE_MULT , h.rt_type , S.PRICE_PO , S.PRICE_PO_BSE , L.UNIT_OF_MEASURE , S.SHIPTO_SETID , S.SHIPTO_ID , E.CSD_ITM_CATG_CD , HE.CSD_TPRTNR_CATG_CD , E.BUSINESS_UNIT_EXS , E.COUNTRY_SHIP_FROM , E.COUNTRY_SHIP_TO , E.CSD_TAX_CATG_CD , E.CSD_TAX_RATE_CD , E.EXS_TAX_TXN_TYPE , E.ORG_BU_TYPE , E.STATE_SHIP_FROM , E.STATE_SHIP_TO FROM PS_PO_HDR H , PS_PO_HDR_EXS HE , PS_PO_LINE L , PS_PO_LINE_SHIP S , PS_PO_LN_SHIP_EXS E WHERE (H.PO_STATUS = 'D' OR (H.CHNG_ORD_BATCH > 0 AND H.PO_STATUS = 'A' )) AND H.BUSINESS_UNIT = HE.BUSINESS_UNIT AND H.PO_ID = HE.PO_ID AND H.BUSINESS_UNIT = L.BUSINESS_UNIT AND H.PO_ID = L.PO_ID AND L.BUSINESS_UNIT = S.BUSINESS_UNIT AND L.PO_ID = S.PO_ID AND L.LINE_NBR = S.LINE_NBR AND L.CANCEL_STATUS = 'A' AND S.CANCEL_STATUS = 'A' AND S.SHIP_TO_CUST_ID = ' ' AND ((L.AMT_ONLY_FLG = 'N' AND (S.QTY_PO > ( SELECT SUM(D.QTY_PO) FROM PS_BOE_LN D WHERE S.BUSINESS_UNIT = D.BUSINESS_UNIT_PO AND S.PO_ID = D.PO_ID AND S.LINE_NBR = D.PO_LINE_NBR AND S.SCHED_NBR = D.PO_SCHED_NBR AND D.BOE_TYPE <> '3'))) OR NOT EXISTS ( SELECT 'X'FROM PS_BOE_LN D WHERE S.BUSINESS_UNIT = D.BUSINESS_UNIT_PO AND S.PO_ID = D.PO_ID AND S.LINE_NBR = D.PO_LINE_NBR AND S.SCHED_NBR = D.PO_SCHED_NBR AND D.BOE_TYPE <> '3')) AND S.BUSINESS_UNIT = E.BUSINESS_UNIT AND S.PO_ID = E.PO_ID AND S.LINE_NBR = E.LINE_NBR AND S.SCHED_NBR = E.SCHED_NBR AND E.EXS_TAX_TXN_TYPE = 'DIMP' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BENEFIT_ID | Character(10) | VARCHAR2(10) NOT NULL | Benefit Identification |
2 | BUSINESS_UNIT_PO | Character(5) | VARCHAR2(5) NOT NULL | PO Business Unit |
3 | CB_SELECT_PO | Character(1) | VARCHAR2(1) NOT NULL |
Select PO Schedule Checkbox
Y/N Table Edit Default Value: N |
4 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
5 | CURRENCY_CD_BASE | Character(3) | VARCHAR2(3) NOT NULL | Business Unit Base Currency |
6 | DESCR254_MIXED | Character(254) | VARCHAR2(254) NOT NULL | Description |
7 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
8 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
9 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
10 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
11 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL | Item SetID |
12 | CATEGORY_ID | Character(5) | VARCHAR2(5) NOT NULL | Category ID |
13 | PO_ID | Character(10) | VARCHAR2(10) NOT NULL | Purchase Order |
14 | PO_LINE_NBR | Number(5,0) | INTEGER NOT NULL | Purchase Order Line Number |
15 | PO_SCHED_NBR | Number(3,0) | SMALLINT NOT NULL | PO Schedule Number |
16 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |
17 | RT_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical. |
18 | BSE_RATE_DATE | Date(10) | DATE | Exchange Rate Date |
19 | BSE_RATE_DIV | Number(16,8) | DECIMAL(15,8) NOT NULL | Base Rate Divisor for Exchange Rates |
20 | BSE_RATE_MULT | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Base Rate Multiplier for Exchange Rates |
21 | BSE_RT_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical. |
22 | UNIT_PRICE | Signed Number(17,5) | DECIMAL(15,5) NOT NULL | Unit Price |
23 | PRICE_PO_BSE | Signed Number(17,5) | DECIMAL(15,5) NOT NULL | Price Base |
24 | UOM_PO | Character(3) | VARCHAR2(3) NOT NULL | Unit Of Measure PO |
25 | SHIPTO_SETID | Character(5) | VARCHAR2(5) NOT NULL | ShipTo SetID |
26 | SHIPTO_ID | Character(10) | VARCHAR2(10) NOT NULL | Ship To Location |
27 | CSD_ITM_CATG_CD | Character(10) | VARCHAR2(10) NOT NULL | Customs Duty Item Category Code |
28 | CSD_TPRTNR_CATG_CD | Character(10) | VARCHAR2(10) NOT NULL | Customs Duty Tax Category |
29 | BUSINESS_UNIT_EXS | Character(5) | VARCHAR2(5) NOT NULL | Excise Business Unit |
30 | COUNTRY_SHIP_FROM | Character(3) | VARCHAR2(3) NOT NULL |
Specifies the country from which the invoice contents were shipped (for VAT processing only).
Prompt Table: COUNTRY_TBL |
31 | COUNTRY_SHIP_TO | Character(3) | VARCHAR2(3) NOT NULL |
Specifies the country to which the invoice contents were shipped (for VAT processing only).
Prompt Table: COUNTRY_TBL |
32 | CSD_TAX_CATG_CD | Character(10) | VARCHAR2(10) NOT NULL |
Custom Tax Category
Prompt Table: EXS_TAX_CAT_VW2 |
33 | CSD_TAX_RATE_CD | Character(10) | VARCHAR2(10) NOT NULL | Customs Tax Rate Code |
34 | EXS_TAX_TXN_TYPE | Character(4) | VARCHAR2(4) NOT NULL |
Tax Transaction Type. This field will be used in the Tax determination and calculation of taxes.
DEB=Direct Export With Bond DEWB=Direct Export Without Bond DIMP=Direct Import DOM=Domestic LEB=Local Export With Bond LEWB=Local Export Without Bond LIMP=Local Import Prompt Table: PO_TAX_EXS_TXNV |
35 | ORG_BU_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
Business Unit Type. This field will have six translate values representing the various BUs
AP=Payables AR=Receivables BI=Billing IN=Inventory OM=Order Management PO=Purchasing |
36 | STATE_SHIP_FROM | Character(6) | VARCHAR2(6) NOT NULL | Ship From State |
37 | STATE_SHIP_TO | Character(6) | VARCHAR2(6) NOT NULL | Ship To State |