P_ACCGO_STOR_DTLS
P_ACCGO_STOR_DTLS is a Basic CDS View in SAP S/4HANA. It reads from 8 data sources and exposes 50 fields with key fields appldoc, item, side, sub_item.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| /accgo/t_cas_cab | appl_bus | inner |
| /accgo/t_cas_cah | appl_hdr | inner |
| p_accgo_app_stor | appl_item | inner |
| p_prasp_distr | assgmt_data | left_outer |
| p_cont_data | contract_dtls | from |
| jest | status | inner |
| /accgo/t_cmn_stm | stl_status | inner |
| p_stor_stl_dtls | stlmt_data | left_outer |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | P_ACCGO_STOR_DTL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (50)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | appldoc | p_accgo_app_stor | appldoc | Appl. Document No. |
| KEY | item | p_accgo_app_stor | item | Task ID |
| KEY | side | p_accgo_app_stor | side | Side |
| KEY | sub_item | p_accgo_app_stor | sub_item | SubItemNumber |
| appldoc_type | ||||
| contract | p_accgo_app_stor | strg_agreement | Stor. Agreement | |
| contract_itm | p_accgo_app_stor | strg_agreement_item | Strg Agr Item | |
| appl_status | ||||
| uis_evnt_id | p_accgo_app_stor | uis_id | LDC ID | |
| OB_delivery | p_accgo_app_stor | pred_doc2 | Reference Doc 2 | |
| order_type | p_accgo_app_stor | pred_doc_type3 | Document Type3 | |
| order_no | p_accgo_app_stor | pred_doc3 | Reference Doc 3 | |
| order_itm | p_accgo_app_stor | pred_item3 | Item Number3 | |
| order_side | p_accgo_app_stor | pred_side3 | Side From3 | |
| item_qty | p_accgo_app_stor | item_qty | Appdoc Item Qty | |
| item_uom | p_accgo_app_stor | item_uom | ItemUoM | |
| adjusted_qty | p_accgo_app_stor | adjusted_qty | Adjust. Qty Raw | |
| adjusted_uom | p_accgo_app_stor | adjusted_uom | Base Unit | |
| material | p_accgo_app_stor | matnr | Vehicle Model | |
| created_by | p_accgo_app_stor | created_by | Version Created By | |
| created_on | p_accgo_app_stor | created_on | Variant created on | |
| changed_by | p_accgo_app_stor | changed_by | User Name | |
| changed_on | p_accgo_app_stor | changed_on | Variant Changed on | |
| plant | p_accgo_app_stor | werks | Receiving Plant | |
| company_code | p_cont_data | company_code | Company Code | |
| sales_org | ||||
| purch_org | p_cont_data | purch_org | Purchasing Org. | |
| dist_chnl | p_cont_data | dist_chnl | Distribution Channel | |
| division | p_cont_data | division | Internal Division ID | |
| purch_grp | p_cont_data | purch_grp | Purch. Group | |
| supplier | p_accgo_app_stor | lifnr | Vendor no. | |
| nomtk | p_accgo_app_stor | nomtk | Nomination key | |
| nomnr | p_accgo_app_stor | nomnr | Single-Character Flag | |
| nomit | p_accgo_app_stor | nomit | Nom. key item | |
| qrep_guid | p_accgo_app_stor | qrep_guid | QRep GUID | |
| qrep_version | p_accgo_app_stor | qrep_version | QRep Version | |
| assgmt_guid | p_prasp_distr | a_guid | Assignment GUID | |
| settl_doc | p_stor_stl_dtls | settl_doc | Settlement Unit | |
| settl_yr | p_stor_stl_dtls | settl_yr | Setl Unit Year | |
| settl_cat | p_stor_stl_dtls | settl_cat | Document Category | |
| settl_type | p_stor_stl_dtls | settl_type | Settlement Type | |
| settl_side | p_stor_stl_dtls | settl_side | Side | |
| doc_typ | p_stor_stl_dtls | doc_typ | Document Class | |
| settl_item | p_stor_stl_dtls | settl_item | Settl. Item | |
| adj_uom | p_stor_stl_dtls | adj_uom | Per Unit | |
| unit_uom | p_stor_stl_dtls | unit_uom | Per Unit UoM | |
| contract_qty | p_stor_stl_dtls | contract_qty | Qty in Contract UoM | |
| contract_uom | p_stor_stl_dtls | contract_uom | Contract UoM | |
| document_qty | p_stor_stl_dtls | document_qty | Quantity in Doc UoM | |
| document_uom | p_stor_stl_dtls | document_uom | Document UoM |
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_ACCGO_STOR_DTLS.
-- 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: P_ACCGO_STOR_DTL
CREATE VIEW P_ACCGO_STOR_DTLS AS
SELECT
appl_item.appldoc AS appldoc,
appl_item.item AS item,
appl_item.side AS side,
appl_item.sub_item AS sub_item,
'ZA' AS appldoc_type,
appl_item.strg_agreement AS contract,
appl_item.strg_agreement_item AS contract_itm,
'' AS appl_status,
appl_item.uis_id AS uis_evnt_id,
appl_item.pred_doc2 AS OB_delivery,
appl_item.pred_doc_type3 AS order_type,
appl_item.pred_doc3 AS order_no,
appl_item.pred_item3 AS order_itm,
appl_item.pred_side3 AS order_side,
appl_item.item_qty AS item_qty,
appl_item.item_uom AS item_uom,
appl_item.adjusted_qty AS adjusted_qty,
appl_item.adjusted_uom AS adjusted_uom,
appl_item.matnr AS material,
appl_item.created_by AS created_by,
appl_item.created_on AS created_on,
appl_item.changed_by AS changed_by,
appl_item.changed_on AS changed_on,
appl_item.werks AS plant,
contract_dtls.company_code AS company_code,
contract_dtls. sales_org AS sales_org,
contract_dtls.purch_org AS purch_org,
contract_dtls.dist_chnl AS dist_chnl,
contract_dtls.division AS division,
contract_dtls.purch_grp AS purch_grp,
appl_item.lifnr AS supplier,
appl_item.nomtk AS nomtk,
appl_item.nomnr AS nomnr,
appl_item.nomit AS nomit,
appl_item.qrep_guid AS qrep_guid,
appl_item.qrep_version AS qrep_version,
assgmt_data.a_guid AS assgmt_guid,
stlmt_data.settl_doc AS settl_doc,
stlmt_data.settl_yr AS settl_yr,
stlmt_data.settl_cat AS settl_cat,
stlmt_data.settl_type AS settl_type,
stlmt_data.settl_side AS settl_side,
stlmt_data.doc_typ AS doc_typ,
stlmt_data.settl_item AS settl_item,
stlmt_data.adj_uom AS adj_uom,
stlmt_data.unit_uom AS unit_uom,
stlmt_data.contract_qty AS contract_qty,
stlmt_data.contract_uom AS contract_uom,
stlmt_data.document_qty AS document_qty,
stlmt_data.document_uom AS document_uom
FROM p_cont_data AS contract_dtls
INNER JOIN p_accgo_app_stor AS appl_item ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN p_prasp_distr AS assgmt_data ON /* join condition not captured in parsed metadata */
INNER JOIN /accgo/t_cas_cab AS appl_bus ON /* join condition not captured in parsed metadata */
INNER JOIN /accgo/t_cas_cah AS appl_hdr ON /* join condition not captured in parsed metadata */
INNER JOIN jest AS status ON /* join condition not captured in parsed metadata */
INNER JOIN /accgo/t_cmn_stm AS stl_status ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN p_stor_stl_dtls AS stlmt_data ON /* join condition not captured in parsed metadata */
;
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