RMA_PRMCDNSH_VW

(SQL View)
Index Back

RMA Promo Code View

RMA Promo Code View

SELECT DISTINCT P.BUSINESS_UNIT , P.SOLD_TO_CUST_ID , P.PRODUCT_ID , P.PPRC_PROMO_CD , P.DESCR , P.SETID_PROMO , P.MERCH_TYPE , P.TD_RETURN_DAYS , P.LAST_ORDER_DATE , %CurrentDateIn FROM PS_RMA_PRMCD_VW P , PS_ORD_PRICE_ADJST A , PS_SET_CNTRL_REC S1 , PS_SET_CNTRL_REC S2 , PS_ORD_HEADER H , PS_ORD_LINE L WHERE A.PPRC_PROMO_CD = P.PPRC_PROMO_CD AND A.MERCH_TYPE = P.MERCH_TYPE AND S1.SETID = S2.SETID AND S1.RECNAME = S2.RECNAME AND S1.RECNAME = 'PPRC_PROMO_TBL' AND S1.SETCNTRLVALUE = P.BUSINESS_UNIT AND S2.SETCNTRLVALUE = A.BUSINESS_UNIT AND L.BUSINESS_UNIT = A.BUSINESS_UNIT AND L.ORDER_NO = A.ORDER_NO AND L.ORDER_INT_LINE_NO = A.ORDER_INT_LINE_NO AND L.BUSINESS_UNIT = H.BUSINESS_UNIT AND L.ORDER_NO = H.ORDER_NO AND H.SOLD_TO_CUST_ID = P.SOLD_TO_CUST_ID AND L.PRODUCT_ID = P.PRODUCT_ID AND A.OM_AMOUNT <> 0

  • Related Language Record: RMA_PRMCDNSH_LV
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    2 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer

    Prompt Table: %EDITTABLE5

    3 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
    4 PPRC_PROMO_CD Character(20) VARCHAR2(20) NOT NULL Price Promotion Code

    Prompt Table: PPRC_PROMO_TBL
    Set Control Field: BUSINESS_UNIT

    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    6 SETID_PROMO Character(5) VARCHAR2(5) NOT NULL Promotion SetID
    7 MERCH_TYPE Character(10) VARCHAR2(10) NOT NULL Merchandising Type
    8 TD_RETURN_DAYS Number(3,0) SMALLINT NOT NULL Days to Accept Returns
    9 ORDER_DATE Date(10) DATE Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop
    10 RMA_DATE Date(10) DATE RMA Date