HST_SES_DEL_VW

(SQL View)
Index Back

History Delete View

Delete view used for PTSF

SELECT S.SETID , A.BUSINESS_UNIT , A.CUST_ID , A.CUST_HIST_ID , A.FISCAL_YEAR , A.ACCOUNTING_PERIOD , %Dttm(A.HIST_DT, %TimeNull) FROM PS_CUST_HISTORY A , PS_SET_CNTRL_REC S , PS_CUSTOMER B WHERE S.SETCNTRLVALUE = A.BUSINESS_UNIT AND S.RECNAME = 'CUSTOMER' AND S.SETID = B.SETID AND A.CUST_ID = B.CUST_ID

  • Parent record: CUST_DATA
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

    Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

    Prompt Table: BUS_UNIT_TBL_FS

    3 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.

    Prompt Table: CUST_SRCH_VW

    4 CUST_HIST_ID Character(10) VARCHAR2(10) NOT NULL History ID
    5 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
    6 ACCOUNTING_PERIOD Number(3,0) SMALLINT NOT NULL Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table.
    7 LAST_UPDATE_DTTM DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.