P_CreditLimitUtilizationBseg1

DDL: P_CREDITLIMITUTILIZATIONBSEG1 SQL: PCREDLIMUTLBSEG1 Type: view COMPOSITE

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)

SourceAliasJoin Type
I_Customer I_Customer inner
I_ReceivablesPayablesItem irpi from

Parameters (1)

NameTypeDefault
P_ReadLineItem read_fiar_lineitems

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_CreditControlArea _CreditControlArea $projection.CreditControlArea = _CreditControlArea.CreditControlArea

Annotations (5)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PCREDLIMUTLBSEG1 view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (13)

KeyFieldSource TableSource FieldDescription
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]
;