CDR_I_PACKAGE_U
Customer Data Return - File Prepare
CDR_I_PACKAGE_U is a Composite CDS View that provides data about "Customer Data Return - File Prepare" in SAP S/4HANA. It reads from 1 data source (cdr_pack_r) and exposes 18 fields with key field packid. It has 5 associations to related views. Part of development package S_APS_CDR_MODEL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cdr_pack_r | Package | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | CDR_I_DOM_DESCR_U | _DomainDescr | _DomainDescr.domname = 'CDR_SCENARIO' and _DomainDescr.domvalue_l = $projection.scenario |
| [1] | CDR_I_SCOPE_MAIN_U | _ScopeMain | _ScopeMain.ScopeName = $projection.scope_name |
| [0..*] | CDR_I_DETAILS_U | _PackageDetails | |
| [0..*] | CDR_I_PACKAGE_FILES_U | _PackageFiles | |
| [0..*] | CDR_I_FILE_ARC_U | _PackageArcFiles | |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Customer Data Return - File Prepare | view | |
| Metadata.allowExtensions | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | packid | cdr_pack_r | packid | Package |
| name | cdr_pack_r | name | Zone name | |
| status | cdr_pack_r | status | Workflow Status | |
| scenario | cdr_pack_r | scenario | VAT Scenario | |
| crt_user | cdr_pack_r | crt_user | User Name | |
| crt_date | ||||
| crt_time | ||||
| file_exist | cdr_pack_r | file_exist | Boolean Variable (X = True, - = False, Space = Unknown) | |
| lognumber | cdr_pack_r | lognumber | UUID | |
| basepack | cdr_pack_r | basepack | Base Package | |
| active | cdr_pack_r | active | Usage Active | |
| file_size | cdr_pack_r | file_size | Size/dim. | |
| scope_name | cdr_pack_r | scope_name | Scope Name | |
| crt_usalias | cdr_pack_r | crt_usalias | ||
| _PackageDetails | _PackageDetails | |||
| _PackageFiles | _PackageFiles | |||
| _PackageArcFiles | _PackageArcFiles | |||
| _ScopeMain | _ScopeMain |
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 CDR_I_PACKAGE_U.
-- 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: CDR_IPACK_U
CREATE VIEW CDR_I_PACKAGE_U AS
SELECT
Package.packid AS packid,
Package.name AS name,
Package.status AS status,
Package.scenario AS scenario,
Package.crt_user AS crt_user,
tstmp_to_dats( crt_timestamp, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) AS crt_date,
tstmp_to_tims( crt_timestamp, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) AS crt_time,
Package.file_exist AS file_exist,
Package.lognumber AS lognumber,
Package.basepack AS basepack,
Package.active AS active,
Package.file_size AS file_size,
Package.scope_name AS scope_name,
Package.crt_usalias AS crt_usalias
FROM cdr_pack_r AS Package
LEFT OUTER JOIN CDR_I_DOM_DESCR_U AS _DomainDescr ON _DomainDescr.domname = 'CDR_SCENARIO' AND _DomainDescr.domvalue_l = scenario -- association [1]
LEFT OUTER JOIN CDR_I_SCOPE_MAIN_U AS _ScopeMain ON _ScopeMain.ScopeName = scope_name -- association [1]
LEFT OUTER JOIN CDR_I_DETAILS_U AS _PackageDetails ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN CDR_I_PACKAGE_FILES_U AS _PackageFiles ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN CDR_I_FILE_ARC_U AS _PackageArcFiles ON /* condition not available in parsed metadata */ -- 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