P_RO_SAFTBSEC

DDL: P_RO_SAFTBSEC SQL: PROSAFTBSEC Type: view BASIC

Bsec

P_RO_SAFTBSEC is a Basic CDS View that provides data about "Bsec" in SAP S/4HANA. It reads from 1 data source (bsec) and exposes 19 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem.

Data Sources (1)

SourceAliasJoin Type
bsec bsec from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PROSAFTBSEC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
VDM.viewType #BASIC view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Bsec view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bsec bukrs Value
KEY AccountingDocument bsec belnr SD Document
KEY FiscalYear
KEY AccountingDocumentItem bsec buzei Posting View Item
BusinessPartnerName1
BusinessPartnerName2
Country bsec land1 Trip Ctry/Reg
CityName
PostalCode bsec pstlz Postal Code
Region bsec regio Resident Region
TaxID1 bsec stcd1 Tax Number 1
TaxID2 bsec stcd2 Tax Number 2
TaxID3 bsec stcd3 Tax Number 3
TaxID4 bsec stcd4 Tax Number 4
TaxID5 bsec stcd5 Tax Number 5
StreetAddressName bsec stras Street/House
IsNaturalPerson
IsOneTimeAccount bsec xcpdk One-time acct
BankReference bsec bkref Reference

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_RO_SAFTBSEC.
-- 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: PROSAFTBSEC

CREATE VIEW P_RO_SAFTBSEC AS
SELECT
  bsec.bukrs AS CompanyCode,
  bsec.belnr AS AccountingDocument,
  cast( bsec.gjahr as fis_gjahr_no_conv preserving type ) AS FiscalYear,
  bsec.buzei AS AccountingDocumentItem,
  cast(bsec.name1 as ad_name1) AS BusinessPartnerName1,
  cast(bsec.name2 as ad_name2) AS BusinessPartnerName2,
  bsec.land1 AS Country,
  cast(bsec.ort01 as ad_city1) AS CityName,
  bsec.pstlz AS PostalCode,
  bsec.regio AS Region,
  bsec.stcd1 AS TaxID1,
  bsec.stcd2 AS TaxID2,
  bsec.stcd3 AS TaxID3,
  bsec.stcd4 AS TaxID4,
  bsec.stcd5 AS TaxID5,
  bsec.stras AS StreetAddressName,
  cast(bsec.stkzn as bu_natural_person) AS IsNaturalPerson,
  bsec.xcpdk AS IsOneTimeAccount,
  bsec.bkref AS BankReference
FROM bsec
;