P_CcpCustLineItem
CCP customer line items
P_CcpCustLineItem is a Composite CDS View that provides data about "CCP customer line items" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 144 fields with key fields bukrs, gjahr, belnr, buzei. Part of development package EBPP_APAR_FIORI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCCPCSTLNITM | 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 | view |
Fields (144)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | bukrs | CompanyCode | ||
| KEY | gjahr | FiscalYear | ||
| KEY | belnr | AccountingDocument | ||
| KEY | buzei | AccountingDocumentItem | ||
| kunnr | Customer | |||
| umsks | SpecialGLTransactionType | |||
| umskz | SpecialGLCode | |||
| augdt | ClearingDate | |||
| augbl | ClearingJournalEntry | |||
| zuonr | AssignmentReference | |||
| budat | PostingDate | |||
| bldat | DocumentDate | |||
| waers | TransactionCurrency | |||
| xblnr | _JournalEntry | DocumentReferenceID | ||
| blart | AccountingDocumentType | |||
| monat | FiscalPeriod | |||
| bschl | PostingKey | |||
| shkzg | DebitCreditCode | |||
| gsber | BusinessArea | |||
| mwskz | TaxCode | |||
| hwaer | CompanyCodeCurrency | |||
| dmbtr | AmountInCompanyCodeCurrency | |||
| wrbtr | AmountInTransactionCurrency | |||
| mwsts | TaxAmountInCoCodeCrcy | |||
| wmwst | TaxAmount | |||
| bdiff | ValuationDiffAmtInCoCodeCrcy | |||
| hwae2 | AdditionalCurrency1 | |||
| hwae3 | AdditionalCurrency2 | |||
| bdif2 | ValuationDiffAmtInAddlCrcy1 | |||
| sgtxt | DocumentItemText | |||
| projn | Project | |||
| aufnr | OrderID | |||
| anln1 | MasterFixedAsset | |||
| anln2 | FixedAsset | |||
| saknr | OperationalGLAccount | |||
| hkont | GLAccount | |||
| filkd | BranchAccount | |||
| zfbdt | DueCalculationBaseDate | |||
| zterm | PaymentTerms | |||
| zbd1t | CashDiscount1Days | |||
| zbd2t | CashDiscount2Days | |||
| zbd3t | NetPaymentDays | |||
| zbd1p | CashDiscount1Percent | |||
| zbd2p | CashDiscount2Percent | |||
| sk1dt | CashDiscount1DueDate | |||
| sk2dt | CashDiscount2DueDate | |||
| netdt | NetDueDate | |||
| skfbt | CashDiscountBaseAmount | |||
| sknto | CashDiscountAmtInCoCodeCrcy | |||
| wskto | CashDiscountAmount | |||
| zlsch | PaymentMethod | |||
| zlspr | PaymentBlockingReason | |||
| zbfix | FixedCashDiscount | |||
| hbkid | HouseBank | |||
| bvtyp | BPBankAccountInternalID | |||
| rebzg | InvoiceReference | |||
| rebzj | InvoiceReferenceFiscalYear | |||
| rebzz | InvoiceItemReference | |||
| samnr | InvoiceList | |||
| mansp | DunningBlockingReason | |||
| mschl | DunningKey | |||
| madat | LastDunningDate | |||
| manst | DunningLevel | |||
| maber | DunningArea | |||
| xzahl | IsUsedInPaymentTransaction | |||
| mwsk1 | TaxDistributionCode1 | |||
| mwsk2 | TaxDistributionCode2 | |||
| mwsk3 | TaxDistributionCode3 | |||
| bstat | AccountingDocumentCategory | |||
| vbund | PartnerCompany | |||
| vbeln | BillingDocument | |||
| rebzt | FollowOnDocumentType | |||
| stceg | VATRegistration | |||
| egbld | DelivOfGoodsDestCountry | |||
| rstgr | PaymentDifferenceReason | |||
| vertt | TreasuryContractType | |||
| vertn | AssetContract | |||
| vbewa | CashFlowType | |||
| wverw | BillOfExchangeUsage | |||
| projk | WBSElementInternalID | |||
| fipos | CommitmentItem | |||
| nplnr | ProjectNetwork | |||
| aufpl | OrderInternalBillOfOperations | |||
| aplzl | OrderIntBillOfOperationsItem | |||
| xegdr | IsEUTriangularDeal | |||
| dmbe2 | AmountInAdditionalCurrency1 | |||
| dmbe3 | AmountInAdditionalCurrency2 | |||
| bdif3 | ValuationDiffAmtInAddlCrcy2 | |||
| xragl | ClearingIsReversed | |||
| uzawe | PaymentMethodSupplement | |||
| xstov | _JournalEntry | ReversalIsPlanned | ||
| xref1 | Reference1IDByBusinessPartner | |||
| xref2 | Reference2IDByBusinessPartner | |||
| pswsl | BalanceTransactionCurrency | |||
| pswbt | AmountInBalanceTransacCrcy | |||
| lzbkz | StateCentralBankPaymentReason | |||
| landl | SupplyingCountry | |||
| imkey | RealEstateObject | |||
| vbel2 | SalesDocument | |||
| posn2 | SalesDocumentItem | |||
| eten2 | ScheduleLine | |||
| fistl | FundsCenter | |||
| geber | Fund | |||
| dabrz | SettlementReferenceDate | |||
| xnegp | IsNegativePosting | |||
| kostl | CostCenter | |||
| rfzei | PaymentCardItem | |||
| kkber | CreditControlArea | |||
| prctr | ProfitCenter | |||
| xref3 | Reference3IDByBusinessPartner | |||
| qsskz | WithholdingTaxCode | |||
| dtws1 | DataExchangeInstruction1 | |||
| dtws2 | DataExchangeInstruction2 | |||
| dtws3 | DataExchangeInstruction3 | |||
| dtws4 | DataExchangeInstruction4 | |||
| xpypr | HasPaymentOrder | |||
| kidno | PaymentReference | |||
| t014_waers | CreditControlAreaCurrency | |||
| absbt | HedgedAmount | |||
| ccbtc | PaymentCardPaymentSettlement | |||
| pycur | PaymentCurrency | |||
| pyamt | AmountInPaymentCurrency | |||
| bupla | BusinessPlace | |||
| secco | TaxSection | |||
| cession_kz | AccountsReceivableIsPledged | |||
| grant_nbr | GrantID | |||
| gmvkz | CustomerIsInExecution | |||
| pprct | PartnerProfitCenter | |||
| buzid | AccountingDocumentItemType | |||
| auggj | ClearingJournalEntryFiscalYear | |||
| hktid | HouseBankAccount | |||
| budget_pd | BudgetPeriod | |||
| pays_prov | PaymentServiceProvider | |||
| pays_tran | PaymentRefByPaytSrvcProvider | |||
| mndid | SEPAMandate | |||
| payt_rsn | PaymentReason | |||
| vname | JointVenture | |||
| egrup | JointVentureEquityGroup | |||
| gkont | OffsettingAccount | |||
| gkart | OffsettingAccountType | |||
| awtyp | ReferenceDocumentType | |||
| bukrs_sender | _JournalEntry | SenderCompanyCode | ||
| belnr_sender | _JournalEntry | SenderAccountingDocument | ||
| gjahr_sender | _JournalEntry | SenderFiscalYear |
@AbapCatalog.sqlViewName: 'PCCPCSTLNITM'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.sizeCategory: #XL
@VDM.private:true
@VDM.viewType: #COMPOSITE
@ClientHandling.type: #CLIENT_DEPENDENT
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'CCP customer line items'
define view P_CcpCustLineItem
as select from I_OperationalAcctgDocItem
{
key CompanyCode as bukrs,
key FiscalYear as gjahr,
key AccountingDocument as belnr,
key AccountingDocumentItem as buzei,
Customer as kunnr,
SpecialGLTransactionType as umsks,
SpecialGLCode as umskz,
ClearingDate as augdt,
ClearingJournalEntry as augbl,
AssignmentReference as zuonr,
PostingDate as budat,
DocumentDate as bldat,
@Semantics.currencyCode:true
TransactionCurrency as waers,
_JournalEntry.DocumentReferenceID as xblnr,
AccountingDocumentType as blart,
FiscalPeriod as monat,
PostingKey as bschl,
DebitCreditCode as shkzg,
BusinessArea as gsber,
TaxCode as mwskz,
@Semantics.currencyCode:true
CompanyCodeCurrency as hwaer,
@Semantics: { amount : {currencyCode: 'hwaer'} }
AmountInCompanyCodeCurrency as dmbtr,
@Semantics: { amount : {currencyCode: 'waers'} }
AmountInTransactionCurrency as wrbtr,
@Semantics: { amount : {currencyCode: 'hwaer'} }
TaxAmountInCoCodeCrcy as mwsts,
@Semantics: { amount : {currencyCode: 'waers'} }
TaxAmount as wmwst,
@Semantics: { amount : {currencyCode: 'hwaer'} }
ValuationDiffAmtInCoCodeCrcy as bdiff,
@Semantics.currencyCode:true
AdditionalCurrency1 as hwae2,
@Semantics.currencyCode:true
AdditionalCurrency2 as hwae3,
@Semantics: { amount : {currencyCode: 'hwae2'} }
ValuationDiffAmtInAddlCrcy1 as bdif2,
DocumentItemText as sgtxt,
Project as projn,
OrderID as aufnr,
MasterFixedAsset as anln1,
FixedAsset as anln2,
OperationalGLAccount as saknr,
GLAccount as hkont,
BranchAccount as filkd,
DueCalculationBaseDate as zfbdt,
PaymentTerms as zterm,
CashDiscount1Days as zbd1t,
CashDiscount2Days as zbd2t,
NetPaymentDays as zbd3t,
CashDiscount1Percent as zbd1p,
CashDiscount2Percent as zbd2p,
CashDiscount1DueDate as sk1dt, //Cash discount due date1
CashDiscount2DueDate as sk2dt, //Cash discount due date2
NetDueDate as netdt, //Net due date
@Semantics: { amount : {currencyCode: 'waers'} }
CashDiscountBaseAmount as skfbt,
@Semantics: { amount : {currencyCode: 'hwaer'} }
CashDiscountAmtInCoCodeCrcy as sknto,
@Semantics: { amount : {currencyCode: 'waers'} }
CashDiscountAmount as wskto,
PaymentMethod as zlsch,
PaymentBlockingReason as zlspr,
FixedCashDiscount as zbfix,
HouseBank as hbkid,
BPBankAccountInternalID as bvtyp,
InvoiceReference as rebzg,
InvoiceReferenceFiscalYear as rebzj,
InvoiceItemReference as rebzz,
InvoiceList as samnr,
DunningBlockingReason as mansp,
DunningKey as mschl,
LastDunningDate as madat,
DunningLevel as manst,
DunningArea as maber,
IsUsedInPaymentTransaction as xzahl,
TaxDistributionCode1 as mwsk1,
TaxDistributionCode2 as mwsk2,
TaxDistributionCode3 as mwsk3,
AccountingDocumentCategory as bstat,
PartnerCompany as vbund,
BillingDocument as vbeln,
FollowOnDocumentType as rebzt,
VATRegistration as stceg,
DelivOfGoodsDestCountry as egbld,
PaymentDifferenceReason as rstgr,
TreasuryContractType as vertt,
AssetContract as vertn,
CashFlowType as vbewa,
BillOfExchangeUsage as wverw,
WBSElementInternalID as projk,
CommitmentItem as fipos,
ProjectNetwork as nplnr,
OrderInternalBillOfOperations as aufpl,
OrderIntBillOfOperationsItem as aplzl,
IsEUTriangularDeal as xegdr,
@Semantics: { amount : {currencyCode: 'hwae2'} }
AmountInAdditionalCurrency1 as dmbe2,
@Semantics: { amount : {currencyCode: 'hwae3'} }
AmountInAdditionalCurrency2 as dmbe3,
@Semantics: { amount : {currencyCode: 'hwae3'} }
ValuationDiffAmtInAddlCrcy2 as bdif3,
ClearingIsReversed as xragl,
PaymentMethodSupplement as uzawe,
_JournalEntry.ReversalIsPlanned as xstov,
Reference1IDByBusinessPartner as xref1,
Reference2IDByBusinessPartner as xref2,
@Semantics.currencyCode:true
BalanceTransactionCurrency as pswsl,
@Semantics: { amount : {currencyCode: 'pswsl'} }
AmountInBalanceTransacCrcy as pswbt,
StateCentralBankPaymentReason as lzbkz,
SupplyingCountry as landl,
RealEstateObject as imkey,
SalesDocument as vbel2,
SalesDocumentItem as posn2,
ScheduleLine as eten2,
FundsCenter as fistl,
Fund as geber,
SettlementReferenceDate as dabrz,
IsNegativePosting as xnegp,
CostCenter as kostl,
PaymentCardItem as rfzei,
CreditControlArea as kkber,
ProfitCenter as prctr,
Reference3IDByBusinessPartner as xref3,
WithholdingTaxCode as qsskz,
DataExchangeInstruction1 as dtws1,
DataExchangeInstruction2 as dtws2,
DataExchangeInstruction3 as dtws3,
DataExchangeInstruction4 as dtws4,
HasPaymentOrder as xpypr,
PaymentReference as kidno,
@Semantics.currencyCode:true
CreditControlAreaCurrency as t014_waers,
@Semantics: { amount : {currencyCode: 't014_waers'} }
HedgedAmount as absbt,
PaymentCardPaymentSettlement as ccbtc,
@Semantics.currencyCode:true
PaymentCurrency as pycur,
@Semantics: { amount : {currencyCode: 'pycur'} }
AmountInPaymentCurrency as pyamt,
BusinessPlace as bupla,
TaxSection as secco,
AccountsReceivableIsPledged as cession_kz,
GrantID as grant_nbr,
CustomerIsInExecution as gmvkz,
cast(case FunctionalArea when ' '
then ''
else FunctionalArea
end as fkber preserving type) as fkber,
PartnerProfitCenter as pprct,
AccountingDocumentItemType as buzid,
ClearingJournalEntryFiscalYear as auggj,
HouseBankAccount as hktid,
BudgetPeriod as budget_pd,
PaymentServiceProvider as pays_prov,
PaymentRefByPaytSrvcProvider as pays_tran,
SEPAMandate as mndid,
PaymentReason as payt_rsn,
JointVenture as vname,
JointVentureEquityGroup as egrup,
OffsettingAccount as gkont,
OffsettingAccountType as gkart,
ReferenceDocumentType as awtyp,
_JournalEntry.SenderLogicalSystem as logsystem_sender,
_JournalEntry.SenderCompanyCode as bukrs_sender,
_JournalEntry.SenderAccountingDocument as belnr_sender,
_JournalEntry.SenderFiscalYear as gjahr_sender
}
where
FinancialAccountType = 'D'
and(
ClearingJournalEntry = ''
or ClearingJournalEntry <> ''
)
and AccountingDocumentCategory <> 'D'
and AccountingDocumentCategory <> 'M'
//Below logic is from FM EBPP_BD_GET_CUSTOMER_STATEMENT
and AccountingDocumentCategory = ' '
and(
SpecialGLTransactionType is initial
or SpecialGLTransactionType = 'A'
)
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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