P_CcpCustLineItem_2
CCP customer line items cube
P_CcpCustLineItem_2 is a Composite CDS View that provides data about "CCP customer line items cube" in SAP S/4HANA. It reads from 1 data source (P_CcpCustLineItem_1) and exposes 150 fields with key fields bukrs, gjahr, belnr, buzei. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CcpCustLineItem_1 | P_CcpCustLineItem_1 | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_AgingSecCount | int4 | |
| P_AgingSecDays | int4 |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CompanyCode | _comp_code | $projection.bukrs = _comp_code.CompanyCode |
| [1..1] | I_Customer | _cust | $projection.kunnr = _cust.Customer |
| [1..1] | I_CustomerCompany | _cust_comp | $projection.bukrs = _cust_comp.CompanyCode and $projection.kunnr = _cust_comp.Customer |
| [0..1] | I_PostingKeyWithSpecialGLCode | _posting_key | $projection.bschl = _posting_key.PostingKey and $projection.umskz = _posting_key.SpecialGLCode |
| [0..1] | P_CcpLatestDisputeCase | _dispute_case | $projection.dispute_case_objkey = _dispute_case.obj_key |
| [0..1] | I_AcctgDocPaymentCardData | _card_payt_data | $projection.bukrs = _card_payt_data.CompanyCode and $projection.belnr = _card_payt_data.AccountingDocument and $projection.gjahr = _card_payt_data.FiscalYear and $projection.rfzei = _card_payt_data.PaymentCardItem |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCCPCSTLNITM2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | CCP customer line items cube | view |
Fields (150)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | bukrs | bukrs | Value | |
| KEY | gjahr | gjahr | Settlement Year | |
| KEY | belnr | belnr | SD Document | |
| KEY | buzei | buzei | Posting View Item | |
| kunnr | kunnr | Stock customer | ||
| umsks | umsks | Transact.Type | ||
| umskz | umskz | Special G/L Ind | ||
| augdt | augdt | Clearing | ||
| augbl | augbl | Clrng doc. | ||
| zuonr | zuonr | Finance Project | ||
| budat | budat | Posting Date | ||
| bldat | bldat | Journal Entry Date | ||
| waers | waers | Transaction Currency | ||
| xblnr | xblnr | Reference | ||
| blart | blart | Rep. rec. doc. type | ||
| monat | monat | Period Block | ||
| bschl | bschl | Posting Key | ||
| shkzg | shkzg | Returns | ||
| gsber | gsber | Business Area | ||
| mwskz | mwskz | Tax Code | ||
| dmbtr | dmbtr | Loc. amount | ||
| wrbtr | wrbtr | Gross Amount | ||
| mwsts | mwsts | LC tax amount | ||
| wmwst | wmwst | Tax Amount | ||
| bdiff | bdiff | Valuation Diff. | ||
| bdif2 | bdif2 | Valuation Diff. 2 | ||
| sgtxt | sgtxt | Text | ||
| projn | projn | WBS Element | ||
| aufnr | aufnr | SettlementOrder | ||
| anln1 | anln1 | Asset | ||
| anln2 | anln2 | Sub-number | ||
| saknr | saknr | G/L Account | ||
| hkont | hkont | Transfer acct | ||
| filkd | filkd | Branch | ||
| zfbdt | zfbdt | Payment date | ||
| zterm | zterm | Terms of Payment | ||
| zbd1t | zbd1t | Payment in | ||
| zbd2t | zbd2t | Payment in | ||
| zbd3t | zbd3t | Payment in | ||
| zbd1p | zbd1p | Max. Cash Dis. (%) | ||
| zbd2p | zbd2p | Nrm. Cash Dis. (%) | ||
| sk1dt | sk1dt | Cash Discount 1 | ||
| sk2dt | sk2dt | Cash Discount 2 | ||
| netdt | netdt | Due On | ||
| skfbt | skfbt | Disc. base | ||
| sknto | sknto | Discount Amt | ||
| wskto | wskto | CD Amount | ||
| zlsch | zlsch | Pymt Meth. | ||
| zlspr | zlspr | Pymt Lock Rsn | ||
| zbfix | zbfix | Fixed | ||
| hbkid | hbkid | House Bank | ||
| bvtyp | bvtyp | Part.bank type | ||
| rebzg | rebzg | Invoice Ref. | ||
| rebzj | rebzj | Fiscal Year | ||
| rebzz | rebzz | Item | ||
| samnr | samnr | Collect.Inv. | ||
| mansp | mansp | DunnLockReason | ||
| mschl | mschl | Dunning key | ||
| madat | madat | Last Dunned | ||
| manst | manst | Dunning Level | ||
| maber | maber | Dunning Area | ||
| xzahl | xzahl | Payt Tran. | ||
| mwsk1 | mwsk1 | Tax Code | ||
| mwsk2 | mwsk2 | W/Tax Code | ||
| mwsk3 | mwsk3 | Tax Code | ||
| bstat | bstat | Document Status | ||
| vbund | vbund | Trading Partner | ||
| vbeln | vbeln | SD Sched. Agmt | ||
| rebzt | rebzt | Follow-On Doc. Type | ||
| stceg | stceg | VAT Reg. No. | ||
| egbld | egbld | Dest. C/R | ||
| rstgr | rstgr | Reason Code | ||
| vertt | vertt | Contract Type | ||
| vertn | vertn | Int. dist. key | ||
| vbewa | vbewa | Flow Type | ||
| wverw | wverw | Usage | ||
| projk | projk | WBS Element | ||
| fipos | fipos | Commitment item | ||
| nplnr | nplnr | Network | ||
| aufpl | aufpl | TaskList No.Ops | ||
| aplzl | aplzl | Plan No.f.Oper. | ||
| xegdr | xegdr | EU Triang. Deal | ||
| dmbe2 | dmbe2 | LC2 Amount | ||
| dmbe3 | dmbe3 | LC3 Amount | ||
| bdif3 | bdif3 | Valuation Diff. 3 | ||
| xragl | xragl | Reverse clrg | ||
| uzawe | uzawe | Pmnt Meth. Sup. | ||
| xstov | xstov | Reversal Flag | ||
| xref1 | xref1 | Reference Key 1 | ||
| xref2 | xref2 | Reference Key 2 | ||
| pswsl | pswsl | G/L Currency | ||
| pswbt | pswbt | G/L Amount | ||
| lzbkz | lzbkz | SCB Ind. | ||
| landl | landl | Supply C/R | ||
| imkey | imkey | Real Estate Key | ||
| vbel2 | vbel2 | Sales Document | ||
| posn2 | posn2 | Item | ||
| eten2 | eten2 | Schedule Line | ||
| fistl | fistl | Funds Center | ||
| geber | geber | Fund | ||
| dabrz | dabrz | Reference date | ||
| xnegp | xnegp | Reversl Posting Type | ||
| kostl | kostl | Substitute CC | ||
| rfzei | rfzei | Payt Card Item | ||
| kkber | kkber | Cred.Contr.Area | ||
| prctr | prctr | Profit Centers | ||
| xref3 | xref3 | Third Reference | ||
| qsskz | qsskz | WTax Code | ||
| dtws1 | dtws1 | Instruct. Key 1 | ||
| dtws2 | dtws2 | Instruct. Key 2 | ||
| dtws3 | dtws3 | Instruct. key 3 | ||
| dtws4 | dtws4 | Instruct. key 4 | ||
| xpypr | xpypr | Payment Sent | ||
| kidno | kidno | Payment Ref. | ||
| absbt | absbt | Hedged Amount | ||
| ccbtc | ccbtc | Settlement | ||
| pycur | pycur | Paymnt Crcy | ||
| pyamt | pyamt | Pt Crcy Amt | ||
| bupla | bupla | Business place | ||
| secco | secco | Section Code | ||
| cession_kz | cession_kz | AR Pledging Ind | ||
| grant_nbr | grant_nbr | Receiver Grant | ||
| gmvkz | gmvkz | Execution | ||
| fkber | fkber | Functional Area | ||
| pprct | pprct | Partner PC | ||
| buzid | buzid | Line Item ID | ||
| auggj | auggj | Clrg Fiscal Yr | ||
| hktid | hktid | House Bank Account | ||
| budget_pd | budget_pd | Rec BudPer | ||
| pays_prov | pays_prov | PSP | ||
| pays_tran | pays_tran | PSP Payment Ref. | ||
| mndid | mndid | Mandate Ref. | ||
| payt_rsn | payt_rsn | Payment Reason | ||
| vname | vname | Volatility Name | ||
| egrup | egrup | Equity group | ||
| gkont | gkont | Offsetting Acct | ||
| gkart | gkart | Offst.Acct Type | ||
| awtyp | awtyp | Reference Document Type | ||
| bukrs_sender | bukrs_sender | Sender CoCode | ||
| belnr_sender | belnr_sender | Sender Doc.No. | ||
| gjahr_sender | gjahr_sender | Sender FiscalYr | ||
| status | status | Workflow Status | ||
| display_doc | display_doc | |||
| doc_type | doc_type | VAT Document Type | ||
| payment_ind | payment_ind | Payt Tran. | ||
| _comp_code | _comp_code | |||
| _cust | _cust | |||
| _cust_comp | _cust_comp | |||
| _posting_key | _posting_key |
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_CcpCustLineItem_2.
-- 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: PCCPCSTLNITM2
-- Parameters: P_AgingSecCount : int4, P_AgingSecDays : int4
CREATE VIEW P_CcpCustLineItem_2 AS
SELECT
bukrs,
gjahr,
belnr,
buzei,
kunnr,
umsks,
umskz,
augdt,
augbl,
zuonr,
budat,
bldat,
waers,
xblnr,
blart,
monat,
bschl,
shkzg,
gsber,
mwskz,
dmbtr,
wrbtr,
mwsts,
wmwst,
bdiff,
bdif2,
sgtxt,
projn,
aufnr,
anln1,
anln2,
saknr,
hkont,
filkd,
zfbdt,
zterm,
zbd1t,
zbd2t,
zbd3t,
zbd1p,
zbd2p,
sk1dt,
sk2dt,
netdt,
skfbt,
sknto,
wskto,
zlsch,
zlspr,
zbfix,
hbkid,
bvtyp,
rebzg,
rebzj,
rebzz,
samnr,
mansp,
mschl,
madat,
manst,
maber,
xzahl,
mwsk1,
mwsk2,
mwsk3,
bstat,
vbund,
vbeln,
rebzt,
stceg,
egbld,
rstgr,
vertt,
vertn,
vbewa,
wverw,
projk,
fipos,
nplnr,
aufpl,
aplzl,
xegdr,
dmbe2,
dmbe3,
bdif3,
xragl,
uzawe,
xstov,
xref1,
xref2,
pswsl,
pswbt,
lzbkz,
landl,
imkey,
vbel2,
posn2,
eten2,
fistl,
geber,
dabrz,
xnegp,
kostl,
rfzei,
kkber,
prctr,
xref3,
qsskz,
dtws1,
dtws2,
dtws3,
dtws4,
xpypr,
kidno,
absbt,
ccbtc,
pycur,
pyamt,
bupla,
secco,
cession_kz,
grant_nbr,
gmvkz,
fkber,
pprct,
buzid,
auggj,
hktid,
budget_pd,
pays_prov,
pays_tran,
mndid,
payt_rsn,
vname,
egrup,
gkont,
gkart,
awtyp,
bukrs_sender,
belnr_sender,
gjahr_sender,
status,
display_doc,
pdf,
doc_type,
payment_ind
FROM P_CcpCustLineItem_1
LEFT OUTER JOIN I_CompanyCode AS _comp_code ON bukrs = _comp_code.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_Customer AS _cust ON kunnr = _cust.Customer -- association [1..1]
LEFT OUTER JOIN I_CustomerCompany AS _cust_comp ON bukrs = _cust_comp.CompanyCode AND kunnr = _cust_comp.Customer -- association [1..1]
LEFT OUTER JOIN I_PostingKeyWithSpecialGLCode AS _posting_key ON bschl = _posting_key.PostingKey AND umskz = _posting_key.SpecialGLCode -- association [0..1]
LEFT OUTER JOIN P_CcpLatestDisputeCase AS _dispute_case ON dispute_case_objkey = _dispute_case.obj_key -- association [0..1]
LEFT OUTER JOIN I_AcctgDocPaymentCardData AS _card_payt_data ON bukrs = _card_payt_data.CompanyCode AND belnr = _card_payt_data.AccountingDocument AND gjahr = _card_payt_data.FiscalYear AND rfzei = _card_payt_data.PaymentCardItem -- association [0..1]
;
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