Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

C_LU_SAFTGenLedgerBP

DDL: C_LU_SAFTGENLEDGERBP SQL: CLUSAFTGENLEDBP Type: view CONSUMPTION

SAFT LU General Ledger Business Partner

C_LU_SAFTGenLedgerBP is a Consumption CDS View that provides data about "SAFT LU General Ledger Business Partner" in SAP S/4HANA. It has 1 association to related views.

Parameters (2)

NameTypeDefault
P_StartDate dats
P_EndDate dats

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_RegionText _RegionText GenLedBP.Region = _RegionText.Region and GenLedBP.Country = _RegionText.Country

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CLUSAFTGENLEDBP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
AccessControl.authorizationCheck #CHECK view
EndUserText.label SAFT LU General Ledger Business Partner view
VDM.lifecycle.status #DEPRECATED view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY char35endasBPIdentificationTypeText CHAR35
KEY BusinessPartnerType Undefined range (can be used for patch levels)
BPIdentificationNumber Issuing Authority
BusinessPartnerCustomer CHAR35
Customer Customer Sold-to Party
SupplierToPartner CHAR35
Supplier Supplier Supplier
VATRegistration VATRegistration VAT Registration No.
CompanyName CompanyName Text
StreetName StreetName Text
HouseNumber HouseNumber House Number
CityName CityName Name
PostalCode PostalCode Postal Code
Region Region Venue Region
RegionNameasRegionName
Country Country Venue: Ctry/Reg
SAFTGeneralLedgerAccountID SAFTGeneralLedgerAccountID Char 70
GLAccount GLAccount General Ledger
IBAN
BankAccount
Bank
BankAccountHolderName
BankControlKey
Ledger Ledger Ledger
ChartOfAccounts ChartOfAccounts Node Class

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 C_LU_SAFTGenLedgerBP.
-- 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: CLUSAFTGENLEDBP
-- Parameters: P_StartDate : dats, P_EndDate : dats

CREATE VIEW C_LU_SAFTGenLedgerBP AS
SELECT
  CompanyCode,
  case when BusinessPartnerType = '0001' then cast(BusinessPartnerCustomer as abap.char(35)) else cast(SupplierToPartner as abap.char(35)) end as BPIdentificationTypeText AS char35endasBPIdentificationTypeText,
  cast(BusinessPartnerType as abap.char(4)) AS BusinessPartnerType,
  cast(BusinessPartner as abap.char(60)) AS BPIdentificationNumber,
  cast(BusinessPartnerCustomer as abap.char(35)) AS BusinessPartnerCustomer,
  Customer,
  cast(SupplierToPartner as abap.char(35)) AS SupplierToPartner,
  Supplier,
  VATRegistration,
  CompanyName,
  StreetName,
  HouseNumber,
  CityName,
  PostalCode,
  Region,
  coalesce(_RegionText[1: Language = 'F'].RegionName, coalesce(_RegionText[1: Language = 'E'].RegionName, coalesce(_RegionText[1: Language = $session.system_language].RegionName, ''))) as RegionName AS RegionNameasRegionName,
  Country,
  SAFTGeneralLedgerAccountID,
  GLAccount,
  ' ' AS IBAN,
  ' ' AS BankAccount,
  ' ' AS Bank,
  '' AS BankAccountHolderName,
  ' ' AS BankControlKey,
  Ledger,
  ChartOfAccounts
LEFT OUTER JOIN I_RegionText AS _RegionText ON GenLedBP.Region = _RegionText.Region AND GenLedBP.Country = _RegionText.Country  -- association [0..1]
;