DEMO_PURCH_DOC
Purchase Document
DEMO_PURCH_DOC is an SAP database table in S/4HANA. Purchase Document. It contains 13 fields. 2 CDS views read from this table.
CDS Views using this table (2)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| DEMO_CDS_FUNCTION_1 | view_entity | from | CDS view entity, function | |
| Demo_Cds_Purch_Doc | view_entity | from | CDS view entity, purchase document |
Fields (13)
| Key | Field | Data Element | Description | Domain | Type | Length |
|---|---|---|---|---|---|---|
| KEY | client | abap.clnt | ||||
| KEY | purchasedocument | purchdocde | Purchase Doc ID | |||
| description | abap.sstring | Description | ||||
| status | abap.char | Approval Status | ||||
| priority | abap.char | Priority | ||||
| price | abap.curr | |||||
| currency | abap.cuky | |||||
| purchasingorganization | abap.char | Purchasing Organization | ||||
| purchasedocumentimageurl | abap.sstring | Purchase Document Image URL | ||||
| crea_date_time | timestampl | Time Stamp | ||||
| crea_uname | uname | User Name | ||||
| lchg_date_time | timestampl | Time Stamp | ||||
| lchg_uname | uname | User Name |
Derived SQL schema, reconstructed from the indexed DDIC field metadata (field names, types, lengths and key flags) — a functional representation, not the verbatim SAP source.
-- Purchase Document
-- Category TRANSPARENT · Delivery class A
-- Derived schema, generated from indexed DDIC field metadata (not the verbatim SAP source).
CREATE TABLE DEMO_PURCH_DOC (
CLIENT, -- abap.clnt
PURCHASEDOCUMENT, -- Purchase Doc ID [purchdocde]
DESCRIPTION, -- Description [abap.sstring]
STATUS, -- Approval Status [abap.char]
PRIORITY, -- Priority [abap.char]
PRICE, -- abap.curr
CURRENCY, -- abap.cuky
PURCHASINGORGANIZATION, -- Purchasing Organization [abap.char]
PURCHASEDOCUMENTIMAGEURL, -- Purchase Document Image URL [abap.sstring]
CREA_DATE_TIME, -- Time Stamp [timestampl]
CREA_UNAME, -- User Name [uname]
LCHG_DATE_TIME, -- Time Stamp [timestampl]
LCHG_UNAME, -- User Name [uname]
PRIMARY KEY (CLIENT, PURCHASEDOCUMENT)
);
Learn More
- Understanding Data Lineage in SAP S/4HANA
- SAP Tables vs CDS Views — Key Differences
- Understanding the SAP S/4HANA Data Model
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA