P_Copa_Doc
P_Copa_Doc is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (P_Copa_Doc2) and exposes 215 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_Copa_Doc2 | P_Copa_Doc2 | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | PFICOPADOC | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (215)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| kokrs | kokrs | Org. Value | ||
| BELNR | BELNR | SD Document | ||
| BUZEI | BUZEI | Posting View Item | ||
| PERIO | PERIO | Time unit | ||
| objnr | objnr | Val. Obj. No. | ||
| WRTTP | WRTTP | Value Type | ||
| KSTAR | KSTAR | Settlement CE | ||
| hrkft | hrkft | Origin group order | ||
| vrgng | vrgng | Bus.Transaction | ||
| PAROB | PAROB | Partner Object | ||
| PAROB1 | PAROB1 | Partner Object | ||
| uspob | uspob | Source Object | ||
| VBUND | VBUND | Trading Partner | ||
| PARGB | PARGB | Trdg Part.BA | ||
| BEKNZ | BEKNZ | Dr/Cr indicator | ||
| TWAER | TWAER | Trans. Currency | ||
| WTGBTR | WTGBTR | WTGBTR | ||
| OWAER | OWAER | Object Currency | ||
| WOGBTR | WOGBTR | WOGBTR | ||
| KWAER | KWAER | Global Currency | ||
| WKGBTR | WKGBTR | WKGBTR | ||
| WKFBTR | WKFBTR | WKFBTR | ||
| PAGBTR | PAGBTR | Price Variance | ||
| PAFBTR | PAFBTR | Price Var. Fxd | ||
| MEINH | MEINH | Unit of Measure | ||
| MEGBTR | MEGBTR | Total Quantity | ||
| MEFBTR | MEFBTR | Fixed Quantity | ||
| MEINB | MEINB | Posted UofMeas. | ||
| MBGBTR | MBGBTR | Total quantity | ||
| MBFBTR | MBFBTR | Fix qty entered | ||
| qunit1 | qunit1 | Add Unit Meas 1 | ||
| quant1 | quant1 | Add. Quantity 1 | ||
| qunit2 | qunit2 | Add Unit Meas 2 | ||
| quant2 | quant2 | Add. Quantity 2 | ||
| qunit3 | qunit3 | Add Unit Meas 3 | ||
| quant3 | quant3 | Add. Quantity 3 | ||
| MVFLG | MVFLG | Qty Compl/Incom | ||
| sgtxt | sgtxt | Text | ||
| refbz | refbz | REFBZ | ||
| ZLENR | ZLENR | Item | ||
| BW_REFBZ | BW_REFBZ | Row in op. ver. | ||
| gkont | gkont | Offsetting Acct | ||
| gkoar | gkoar | Offst.Acct Type | ||
| werks | werks | Receiving Plant | ||
| matnr | matnr | Vehicle Model | ||
| rbest | rbest | PO Category | ||
| ebeln | ebeln | Source PurchDoc | ||
| ebelp | ebelp | Item pur. doc. | ||
| zekkn | zekkn | Account Assgmt No. | ||
| erlkz | erlkz | Status | ||
| pernr | pernr | Personnel no. | ||
| BTRKL | BTRKL | Amount Class | ||
| paobjnr | paobjnr | Profit. segment | ||
| beltp | beltp | Debit Type | ||
| GSBER | GSBER | Business Area | ||
| FKBER | FKBER | Functional Area | ||
| scope | scope | Visibility | ||
| logsyso | logsyso | Logical System | ||
| PKSTAR | PKSTAR | Partner Cost El | ||
| pbukrs | pbukrs | Partner CoCode | ||
| PFKBER | PFKBER | Partner FArea | ||
| pscope | pscope | PartnerObjClass | ||
| logsysp | logsysp | Logical system | ||
| DABRZ | DABRZ | Reference date | ||
| bwstrat | bwstrat | Val.strategy | ||
| objnr_hk | objnr_hk | Origin object | ||
| rsrce | rsrce | Resource | ||
| qmnum | qmnum | Notification | ||
| GEBER | GEBER | Fund | ||
| PGEBER | PGEBER | Partner Fund | ||
| GRANT_NBR | GRANT_NBR | Receiver Grant | ||
| PGRANT_NBR | PGRANT_NBR | Partner Grant | ||
| REFBZ_FI | REFBZ_FI | FI Posting Item | ||
| segment | segment | Segment number | ||
| psegment | psegment | Partner Segment | ||
| POSNR | POSNR | WBS Element | ||
| prctr | prctr | Profit Centers | ||
| PPRCT | PPRCT | Partner PC | ||
| BUDGET_PD | BUDGET_PD | Rec BudPer | ||
| PBUDGET_PD | PBUDGET_PD | Par. BudPer | ||
| prodper | prodper | Production Month | ||
| awtyp | awtyp | Reference Document Type | ||
| AWKEY | AWKEY | RefKey GJE | ||
| AWSYS | AWSYS | Logical System | ||
| accas | accas | Account Assignment | ||
| KOSTL | KOSTL | Substitute CC | ||
| LSTAR | LSTAR | Activity Type | ||
| AUFNR | AUFNR | SettlementOrder | ||
| AUTYP | AUTYP | Order category | ||
| PSPNR | PSPNR | WBS Element | ||
| PSPID | PSPID | Std. proj. def. | ||
| VBELN | VBELN | SD Sched. Agmt | ||
| VBPOSNR | VBPOSNR | Item | ||
| CE4KEY | CE4KEY | Key CE4xxxx | ||
| erkrs | erkrs | Operating concern | ||
| paccas | paccas | Part. Acct Assgmt | ||
| PKOSTL | PKOSTL | Sender Cost Ctr | ||
| plstar | plstar | ParActvy | ||
| paufnr | paufnr | Partner order | ||
| pautyp | pautyp | Prtnr Ord. Cat. | ||
| PPSPNR | PPSPNR | Partner WBS Element | ||
| PPSPID | PPSPID | Part. Proj. Def | ||
| PVBELN | PVBELN | Partner SalOrd | ||
| PVBPOSNR | PVBPOSNR | Part. SlsOrd Item | ||
| PCE4KEY | PCE4KEY | Partner Key CE4 | ||
| work_item_id | work_item_id | Work Item ID | ||
| gjahr | gjahr | Settlement Year | ||
| bldat | bldat | Journal Entry Date | ||
| budat | budat | Posting Date | ||
| usnam | usnam | User Name | ||
| blart | blart | Rep. rec. doc. type | ||
| LEDNR | LEDNR | Ledger | ||
| BUKRS | BUKRS | Value | ||
| BELNR_FI | BELNR_FI | FI Document Number | ||
| docln | docln | Matching Document Line Item | ||
| drcrk | drcrk | Debit/Credit | ||
| koart | koart | Account type | ||
| ktopl | ktopl | G/L Chart of Accounts | ||
| KOSTL_ORI | KOSTL_ORI | |||
| ryear | ryear | Ref. Year1 | ||
| rmvct | rmvct | Transact. Type | ||
| bttype | bttype | Business Transaction Type | ||
| aworg | aworg | Refer. Org.Unit | ||
| awref | awref | Reference Doc. | ||
| bschl | bschl | Posting Key | ||
| timestamp | timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| eprctr | eprctr | Elimination PrCtr | ||
| rhoart | rhoart | Origin object | ||
| rebzg | rebzg | Invoice Ref. | ||
| rebzj | rebzj | Fiscal Year | ||
| rebzz | rebzz | Item | ||
| rebzt | rebzt | Follow-On Doc. Type | ||
| lifnr | lifnr | Vendor no. | ||
| umskz | umskz | Special G/L Ind | ||
| mwskz | mwskz | Tax Code | ||
| hbkid | hbkid | House Bank | ||
| hktid | hktid | House Bank Account | ||
| augdt | augdt | Clearing | ||
| augbl | augbl | Clrng doc. | ||
| auggj | auggj | Clrg Fiscal Yr | ||
| hkgrp | hkgrp | Origin Group | ||
| ukostl | ukostl | OrigCCtr | ||
| ulstar | ulstar | OrigAct. | ||
| LSTAR_ORI | LSTAR_ORI | |||
| AUFNR_ORI | AUFNR_ORI | |||
| AUTYP_ORI | AUTYP_ORI | |||
| fkart | fkart | Ship. cost type | ||
| vkorg | vkorg | SD Sales Org. | ||
| vtweg | vtweg | RefDistCh-Cust/Mat. | ||
| spart | spart | Source supplier | ||
| anln1 | anln1 | Asset | ||
| anln2 | anln2 | Sub-number | ||
| bzdat | bzdat | Reference date | ||
| anbwa | anbwa | Trans. type | ||
| periv | periv | FYear Variant | ||
| fiscyearper | fiscyearper | Period/Year | ||
| lokkt | lokkt | Local Acct No. | ||
| ktop2 | ktop2 | Alternative COA | ||
| movcat | movcat | Trans.Type Cat. | ||
| anlgr | anlgr | Group Asset | ||
| anlgr2 | anlgr2 | Subnumber | ||
| ktosl | ktosl | Transaction | ||
| afabe | afabe | Deprec. Area | ||
| slalittype | slalittype | SLALineItemType | ||
| zuonr | zuonr | Finance Project | ||
| xopvw | xopvw | OI Management | ||
| co_belkz | co_belkz | Dr/Cr ind. CO | ||
| kalnr | kalnr | ProdCostEst.No. | ||
| kzbws | kzbws | Valuation | ||
| xobew | xobew | Vendor stk val. | ||
| sobkz | sobkz | Special Stock | ||
| mat_kdauf | mat_kdauf | SD Doc of Inv. | ||
| mat_kdpos | mat_kdpos | SD Item of Inv. | ||
| bwtar | bwtar | Valuation Type | ||
| bwkey | bwkey | Valuation Area | ||
| mat_lifnr | mat_lifnr | Vendor of Inv. | ||
| kdauf | kdauf | SD Document | ||
| kdpos | kdpos | Sales Ord. Item | ||
| mat_ps_posid | mat_ps_posid | WBSElem of Inv. | ||
| PS_PSP_PNR | PS_PSP_PNR | WBS Element | ||
| ps_posid | ps_posid | WBS Element | ||
| ps_pspid | ps_pspid | Project def. | ||
| awitem | awitem | Ref. Doc. Line Item | ||
| awitgrp | awitgrp | Ref. Item Group | ||
| racct_sender | racct_sender | Sender GL Account | ||
| accas_sender | accas_sender | Sender Acct Assgmt | ||
| matkl | matkl | Product Sold Group | ||
| kdgrp | kdgrp | Customer group | ||
| xreversing | xreversing | Reversal doc. | ||
| xreversed | xreversed | Reversed | ||
| xtruerev | xtruerev | Is true reversal | ||
| aworg_rev | aworg_rev | Reversal Org. | ||
| awref_rev | awref_rev | Reversal Ref. | ||
| parobsrc | parobsrc | ParObj Source | ||
| ppaobjnr | ppaobjnr | PartnerPrf.Seg. | ||
| rrcty | rrcty | Record Type | ||
| vorgn | vorgn | Transaction | ||
| ARTNR | ARTNR | Product | ||
| KNDNR | KNDNR | Customer | ||
| bstat | bstat | Document Status | ||
| kstrg | kstrg | Cost Objects | ||
| pkstrg | pkstrg | Partner Cost Object | ||
| cpudt | Imported On | |||
| cputm | Time | |||
| AKTBO | AKTBO | Profit. segment | ||
| PASUBNR | PASUBNR | Subnumber | ||
| UNUSED_CE3 | UNUSED_CE3 | Not to cstg-bas | ||
| CE4_KWSVME_ME | CE4_KWSVME_ME | |||
| BRSCH | BRSCH | Industry | ||
| BZIRK | BZIRK | Sales District | ||
| KMVKBU | KMVKBU | |||
| KMVTNR | KMVTNR | |||
| VKGRP | VKGRP | Sales Group | ||
| KMWNHG | KMWNHG | |||
| KNT_FRM_KZ | KNT_FRM_KZ | Acct-based PA |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_Copa_Doc.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PFICOPADOC
CREATE VIEW P_Copa_Doc AS
SELECT
kokrs,
BELNR,
BUZEI,
PERIO,
objnr,
WRTTP,
KSTAR,
hrkft,
vrgng,
PAROB,
PAROB1,
uspob,
VBUND,
PARGB,
BEKNZ,
TWAER,
WTGBTR,
OWAER,
WOGBTR,
KWAER,
WKGBTR,
WKFBTR,
PAGBTR,
PAFBTR,
MEINH,
MEGBTR,
MEFBTR,
MEINB,
MBGBTR,
MBFBTR,
qunit1,
quant1,
qunit2,
quant2,
qunit3,
quant3,
MVFLG,
sgtxt,
refbz,
ZLENR,
BW_REFBZ,
gkont,
gkoar,
werks,
matnr,
rbest,
ebeln,
ebelp,
zekkn,
erlkz,
pernr,
BTRKL,
paobjnr,
beltp,
GSBER,
FKBER,
scope,
logsyso,
PKSTAR,
pbukrs,
PFKBER,
pscope,
logsysp,
DABRZ,
bwstrat,
objnr_hk,
rsrce,
qmnum,
GEBER,
PGEBER,
GRANT_NBR,
PGRANT_NBR,
REFBZ_FI,
segment,
psegment,
POSNR,
prctr,
PPRCT,
BUDGET_PD,
PBUDGET_PD,
prodper,
awtyp,
AWKEY,
AWSYS,
accas,
KOSTL,
LSTAR,
AUFNR,
AUTYP,
PSPNR,
PSPID,
VBELN,
VBPOSNR,
CE4KEY,
erkrs,
paccas,
PKOSTL,
plstar,
paufnr,
pautyp,
PPSPNR,
PPSPID,
PVBELN,
PVBPOSNR,
PCE4KEY,
work_item_id,
gjahr,
bldat,
budat,
usnam,
blart,
LEDNR,
BUKRS,
BELNR_FI,
docln,
drcrk,
koart,
ktopl,
KOSTL_ORI,
ryear,
rmvct,
bttype,
aworg,
awref,
bschl,
timestamp,
eprctr,
rhoart,
rebzg,
rebzj,
rebzz,
rebzt,
lifnr,
umskz,
mwskz,
hbkid,
hktid,
augdt,
augbl,
auggj,
hkgrp,
ukostl,
ulstar,
LSTAR_ORI,
AUFNR_ORI,
AUTYP_ORI,
fkart,
vkorg,
vtweg,
spart,
anln1,
anln2,
bzdat,
anbwa,
periv,
fiscyearper,
lokkt,
ktop2,
movcat,
anlgr,
anlgr2,
ktosl,
afabe,
slalittype,
zuonr,
xopvw,
co_belkz,
kalnr,
kzbws,
xobew,
sobkz,
mat_kdauf,
mat_kdpos,
bwtar,
bwkey,
mat_lifnr,
kdauf,
kdpos,
mat_ps_posid,
PS_PSP_PNR,
ps_posid,
ps_pspid,
awitem,
awitgrp,
racct_sender,
accas_sender,
matkl,
kdgrp,
xreversing,
xreversed,
xtruerev,
aworg_rev,
awref_rev,
parobsrc,
ppaobjnr,
rrcty,
vorgn,
ARTNR,
KNDNR,
bstat,
kstrg,
pkstrg,
cast( cast ( cpudt as abap.dats(8) ) as fis_cpdat ) AS cpudt,
cast( cast ( cputm as abap.tims(6) ) as ttet_dt_cr_time ) AS cputm,
AKTBO,
PASUBNR,
UNUSED_CE3,
CE4_KWSVME_ME,
BRSCH,
BZIRK,
KMVKBU,
KMVTNR,
VKGRP,
KMWNHG,
KNT_FRM_KZ
FROM P_Copa_Doc2
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- 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
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA