P_BusinessPlace
P_BusinessPlace is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (j_1bbranch) and exposes 53 fields with key fields bukrs, branch. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| j_1bbranch | BP | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | j_1bbrancht | _text | $projection.bukrs = _text.bukrs and $projection.branch = _text.branch and _text.language = $session.system_language and _text.bupla_type = '' |
| [0..*] | P_BusinessPlaceSalesOffice | _SalesOfficeMap | $projection.branch = _SalesOfficeMap.bupla |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PBUSINESSPLACE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | bukrs | j_1bbranch | bukrs | Value |
| KEY | branch | j_1bbranch | branch | Repository branch |
| adrnr | j_1bbranch | adrnr | Sold-To Address | |
| validfrom | j_1bbranch | validfrom | Vers.Valid From | |
| validto | j_1bbranch | validto | Vers.Valid To | |
| stcd1 | j_1bbranch | stcd1 | Tax Number 1 | |
| stcd2 | j_1bbranch | stcd2 | Tax Number 2 | |
| stcd5 | j_1bbranch | stcd5 | Tax Number 5 | |
| vkbur | ||||
| kr_repres | j_1bbranch | kr_repres | Rep's Name | |
| kr_bustype | j_1bbranch | kr_bustype | Type of Business | |
| kr_indtype | j_1bbranch | kr_indtype | Type of Industry | |
| kr_taxoff | j_1bbranch | kr_taxoff | Dis. Tax Office | |
| person_name | j_1bbranch | person_name | Name of Persn Resp. | |
| represn | j_1bbranch | represn | Rep's Name | |
| indtypn | j_1bbranch | indtypn | Type of Industry | |
| gestyp | j_1bbranch | gestyp | Type of Business | |
| ntsnumber | j_1bbranch | ntsnumber | NTS Registration No. | |
| cgc_branch | j_1bbranch | cgc_branch | CNPJ Bus. Place | |
| state_insc | j_1bbranch | state_insc | State Tx No. ST | |
| munic_insc | j_1bbranch | munic_insc | Munic. Tax No. | |
| industry | j_1bbranch | industry | Industry Sector | |
| single | j_1bbranch | single | Single-level | |
| nfdec | j_1bbranch | nfdec | NF Price DecPl. | |
| suframa | j_1bbranch | suframa | Suframa Code | |
| nire | j_1bbranch | nire | NIRE ID | |
| niredt | j_1bbranch | niredt | NIRE Date | |
| spedactind | j_1bbranch | spedactind | SPED Activity Ind. | |
| cnae | j_1bbranch | cnae | CNAE | |
| legalnat | j_1bbranch | legalnat | Legal Nature | |
| crtn | j_1bbranch | crtn | CRT Number | |
| icmstaxpay | j_1bbranch | icmstaxpay | ICMS Taxpayer | |
| indtyp | j_1bbranch | indtyp | Type of Industry | |
| tdt | j_1bbranch | tdt | Tax Declaration Type | |
| comsize | j_1bbranch | comsize | Company Size | |
| decregpc | j_1bbranch | decregpc | Decl. Reg. PIS/COFI | |
| prefix | j_1bbranch | prefix | SerialNo.Prefix | |
| pac01 | j_1bbranch | pac01 | Print Auth. Code | |
| vdp01 | j_1bbranch | vdp01 | PAC Valid-To Date | |
| pac02 | j_1bbranch | pac02 | Print Auth. Code | |
| vdp02 | j_1bbranch | vdp02 | PAC Valid-To Date | |
| cnbp_enabled | j_1bbranch | cnbp_enabled | Biz Place Enabled | |
| tax_reg_nmbr | j_1bbranch | tax_reg_nmbr | Unfd Socl Crdt Code | |
| valid_from | ||||
| valid_to | ||||
| branch_long | ||||
| gstin | j_1bbranch | gstin | Taxpayer GSTIN | |
| bupla_class | j_1bbranch | bupla_class | Bus Place Class. | |
| idsign | j_1bbranch | idsign | Signer of Tax Inv | |
| buscode | j_1bbranch | buscode | Business Code | |
| gstcd | j_1bbranch | gstcd | Tax ID No. | |
| _text | _text | |||
| _SalesOfficeMap | _SalesOfficeMap |
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_BusinessPlace.
-- 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.
CREATE VIEW P_BusinessPlace AS
SELECT
BP.bukrs AS bukrs,
BP.branch AS branch,
BP.adrnr AS adrnr,
BP.validfrom AS validfrom,
BP.validto AS validto,
BP.stcd1 AS stcd1,
BP.stcd2 AS stcd2,
BP.stcd5 AS stcd5,
'' AS vkbur,
BP.kr_repres AS kr_repres,
BP.kr_bustype AS kr_bustype,
BP.kr_indtype AS kr_indtype,
BP.kr_taxoff AS kr_taxoff,
BP.person_name AS person_name,
BP.represn AS represn,
BP.indtypn AS indtypn,
BP.gestyp AS gestyp,
BP.ntsnumber AS ntsnumber,
BP.cgc_branch AS cgc_branch,
BP.state_insc AS state_insc,
BP.munic_insc AS munic_insc,
BP.industry AS industry,
BP.single AS single,
BP.nfdec AS nfdec,
BP.suframa AS suframa,
BP.nire AS nire,
BP.niredt AS niredt,
BP.spedactind AS spedactind,
BP.cnae AS cnae,
BP.legalnat AS legalnat,
BP.crtn AS crtn,
BP.icmstaxpay AS icmstaxpay,
BP.indtyp AS indtyp,
BP.tdt AS tdt,
BP.comsize AS comsize,
BP.decregpc AS decregpc,
BP.prefix AS prefix,
BP.pac01 AS pac01,
BP.vdp01 AS vdp01,
BP.pac02 AS pac02,
BP.vdp02 AS vdp02,
BP.cnbp_enabled AS cnbp_enabled,
BP.tax_reg_nmbr AS tax_reg_nmbr,
cast( BP.valid_from as glo_bupla_validfrom_cn preserving type ) AS valid_from,
cast( BP.valid_to as glo_bupla_validto_cn preserving type ) AS valid_to,
cast( BP.branch_long as glo_bupla_bupla_th ) AS branch_long,
BP.gstin AS gstin,
BP.bupla_class AS bupla_class,
BP.idsign AS idsign,
BP.buscode AS buscode,
BP.gstcd AS gstcd
FROM j_1bbranch AS BP
LEFT OUTER JOIN j_1bbrancht AS _text ON bukrs = _text.bukrs AND branch = _text.branch AND _text.language = $session.system_language AND _text.bupla_type = '' -- association [0..1]
LEFT OUTER JOIN P_BusinessPlaceSalesOffice AS _SalesOfficeMap ON branch = _SalesOfficeMap.bupla -- association [0..*]
;
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