P_CreditLimitUtilizationBseg1
P_CreditLimitUtilizationBseg1 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_Customer, I_ReceivablesPayablesItem) and exposes 13 fields. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Customer | I_Customer | inner |
| I_ReceivablesPayablesItem | irpi | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ReadLineItem | read_fiar_lineitems |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CreditControlArea | _CreditControlArea | $projection.CreditControlArea = _CreditControlArea.CreditControlArea |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PCREDLIMUTLBSEG1 | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| char10endasCreditSegment | ||||
| BusinessPartner | ||||
| Debtor | I_ReceivablesPayablesItem | Debtor | Debtor | |
| CreditControlArea | I_ReceivablesPayablesItem | CreditControlArea | Credit Control Area | |
| AccountingDocument | I_ReceivablesPayablesItem | AccountingDocument | Journal Entry | |
| FiscalYear | I_ReceivablesPayablesItem | FiscalYear | G/L Fiscal Year | |
| SpecialGLCode | I_ReceivablesPayablesItem | SpecialGLCode | Special G/L Ind | |
| CreditLimitIsChecked | ||||
| SpecialGLCodethen300else200endascomm_typ | ||||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| XBSEG |
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_CreditLimitUtilizationBseg1.
-- 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: PCREDLIMUTLBSEG1
-- Parameters: P_ReadLineItem : read_fiar_lineitems
CREATE VIEW P_CreditLimitUtilizationBseg1 AS
SELECT
case when _CreditControlArea._CreditControlArea2Segment.CreditSegment <> '' then cast( _CreditControlArea._CreditControlArea2Segment.CreditSegment as abap.char(10) ) end as CreditSegment AS char10endasCreditSegment,
I_Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
irpi.Debtor AS Debtor,
irpi.CreditControlArea AS CreditControlArea,
irpi.AccountingDocument AS AccountingDocument,
irpi.FiscalYear AS FiscalYear,
irpi.SpecialGLCode AS SpecialGLCode,
irpi._SpecialGLCode.CreditLimitIsChecked AS CreditLimitIsChecked,
case when irpi.SpecialGLCode <> '' then '300' else '200' end as comm_typ AS SpecialGLCodethen300else200endascomm_typ,
FinancialAccountType,
TransactionCurrency,
AmountInTransactionCurrency,
:P_ReadLineItem AS XBSEG
FROM I_ReceivablesPayablesItem AS irpi
INNER JOIN I_Customer ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CreditControlArea AS _CreditControlArea ON CreditControlArea = _CreditControlArea.CreditControlArea -- 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