P_ACCGO_APPDOC_DTLS
P_ACCGO_APPDOC_DTLS is a Basic CDS View in SAP S/4HANA. It reads from 10 data sources and exposes 55 fields with key fields appldoc, item, side, sub_item.
Data Sources (10)
| Source | Alias | Join Type |
|---|---|---|
| /accgo/t_cas_cab | appl_bus | inner |
| /accgo/t_cas_cah | appl_hdr | inner |
| /accgo/t_cas_cai | appl_item | inner |
| /accgo/t_appdata | appldata | from |
| p_prasp_distr | assgmt_data | left_outer |
| p_cont_data | contract_dtls | inner |
| P_AssignedDocument | ppmg_data | left_outer |
| jest | status | inner |
| /accgo/t_cmn_stm | stl_status | inner |
| p_stl_doc_dtls | stlmt_data | left_outer |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | P_APPLDOC_DATA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | appldoc | /accgo/t_cas_cai | appldoc | Appl. Document No. |
| KEY | item | /accgo/t_cas_cai | item | Task ID |
| KEY | side | /accgo/t_cas_cai | side | Side |
| KEY | sub_item | /accgo/t_cas_cai | sub_item | SubItemNumber |
| appldoc_type | /accgo/t_appdata | refdoc_type | Document Type | |
| contract | /accgo/t_appdata | contract_num | Trading Contract | |
| contract_itm | /accgo/t_appdata | contract_item | Item Number | |
| appl_status | /accgo/t_appdata | appl_status | Application Status | |
| REF_APP_DOC | /accgo/t_cas_cah | ref_app_doc | Appl. Document No. | |
| REF_APP_DOC_TYP | /accgo/t_cas_cah | ref_app_doc_typ | App. Doc. Type | |
| uis_evnt_id | /accgo/t_cas_cai | uis_id | LDC ID | |
| OB_delivery | /accgo/t_cas_cai | pred_doc2 | Reference Doc 2 | |
| order_type | /accgo/t_cas_cai | pred_doc_type3 | Document Type3 | |
| order_no | /accgo/t_cas_cai | pred_doc3 | Reference Doc 3 | |
| order_itm | /accgo/t_cas_cai | pred_item3 | Item Number3 | |
| order_side | /accgo/t_cas_cai | pred_side3 | Side From3 | |
| item_qty | /accgo/t_cas_cai | item_qty | Appdoc Item Qty | |
| item_uom | /accgo/t_cas_cai | item_uom | ItemUoM | |
| appl_uom | /accgo/t_cas_cai | appl_uom | Applied Qty UoM | |
| material | /accgo/t_cas_cai | matnr | Vehicle Model | |
| created_by | /accgo/t_cas_cai | created_by | Version Created By | |
| created_on | /accgo/t_cas_cai | created_on | Variant created on | |
| changed_by | /accgo/t_cas_cai | changed_by | User Name | |
| changed_on | /accgo/t_cas_cai | changed_on | Variant Changed on | |
| plant | /accgo/t_cas_cai | 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 | /accgo/t_cas_cai | lifnr | Vendor no. | |
| nomtk | /accgo/t_cas_cai | nomtk | Nomination key | |
| nomnr | /accgo/t_cas_cai | nomnr | Single-Character Flag | |
| nomit | /accgo/t_cas_cai | nomit | Nom. key item | |
| qrep_guid | /accgo/t_cas_cai | qrep_guid | QRep GUID | |
| qrep_version | /accgo/t_cas_cai | qrep_version | QRep Version | |
| assgmt_guid | p_prasp_distr | a_guid | Assignment GUID | |
| settl_doc | p_stl_doc_dtls | settl_doc | Settlement Unit | |
| settl_yr | p_stl_doc_dtls | settl_yr | Setl Unit Year | |
| settl_cat | p_stl_doc_dtls | settl_cat | Document Category | |
| settl_type | p_stl_doc_dtls | settl_type | Settlement Type | |
| settl_side | p_stl_doc_dtls | settl_side | Side | |
| doc_typ | p_stl_doc_dtls | doc_typ | Document Class | |
| settl_item | p_stl_doc_dtls | settl_item | Settl. Item | |
| adj_uom | p_stl_doc_dtls | adj_uom | Per Unit | |
| doc_curr | p_stl_doc_dtls | doc_curr | Doc. Currency | |
| unit_uom | p_stl_doc_dtls | unit_uom | Per Unit UoM | |
| contract_qty | p_stl_doc_dtls | contract_qty | Qty in Contract UoM | |
| contract_uom | p_stl_doc_dtls | contract_uom | Contract UoM | |
| document_qty | p_stl_doc_dtls | document_qty | Quantity in Doc UoM | |
| document_uom | p_stl_doc_dtls | document_uom | Document UoM | |
| DocNumberasPrepaymentAgreement | ||||
| PrepaymentAgrmtRefDocument | P_AssignedDocument | PrepaymentAgrmtRefDocument | Linking Document No. | |
| PrepaymentAgrmtRefDocItem | P_AssignedDocument | PrepaymentAgrmtRefDocItem | Linking Docu No. Itm |
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_APPDOC_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_APPLDOC_DATA
CREATE VIEW P_ACCGO_APPDOC_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,
appldata.refdoc_type AS appldoc_type,
appldata.contract_num AS contract,
appldata.contract_item AS contract_itm,
appldata.appl_status AS appl_status,
appl_hdr.ref_app_doc AS REF_APP_DOC,
appl_hdr.ref_app_doc_typ AS REF_APP_DOC_TYP,
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.appl_uom AS appl_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.doc_curr AS doc_curr,
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,
ppmg_data.PrepaymentAgrmtRefDocument AS PrepaymentAgrmtRefDocument,
ppmg_data.PrepaymentAgrmtRefDocItem AS PrepaymentAgrmtRefDocItem
FROM /accgo/t_appdata AS appldata
INNER JOIN p_cont_data AS contract_dtls ON /* join condition not captured in parsed metadata */
INNER JOIN /accgo/t_cas_cai 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_stl_doc_dtls AS stlmt_data ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_AssignedDocument AS ppmg_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