P_RO_SAFTBSEC
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)
| Source | Alias | Join Type |
|---|---|---|
| bsec | bsec | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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