I_Mpattachment

DDL: I_MPATTACHMENT SQL: IMPATTACHMENT Type: view BASIC

Master Project Attachment

I_Mpattachment is a Basic CDS View that provides data about "Master Project Attachment" in SAP S/4HANA. It reads from 5 data sources (/bobf/d_atf_do, /bobf/d_atf_rt, /cpd/d_mp_hdr, adrp, usr21) and exposes 15 fields with key field AttachmentDocumentUUID.

Data Sources (5)

SourceAliasJoin Type
/bobf/d_atf_do /bobf/d_atf_do inner
/bobf/d_atf_rt /bobf/d_atf_rt inner
/cpd/d_mp_hdr /cpd/d_mp_hdr from
adrp adrp inner
usr21 usr21 inner

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IMPATTACHMENT view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Master Project Attachment view
VDM.viewType #BASIC view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY AttachmentDocumentUUID /bobf/d_atf_do db_key UUID
MasterProjectUUID /bobf/d_atf_rt host_key UUID
CreationDateTime
CreatedByUser /bobf/d_atf_do user_id_cr Created By
FirstName adrp name_first First Name
LastName adrp name_last Last Name
PersonNumber adrp persnumber Person Number
MimeType /bobf/d_atf_do mimecode MIME type
FileName /bobf/d_atf_do name Zone name
DocumentTitle /bobf/d_atf_do description Well Code Des.
MasterProject /cpd/d_mp_hdr mp_id Cust Project ID
MasterProjectType /cpd/d_mp_hdr mp_type Mass Processing Type
MasterProjectOrganization /cpd/d_mp_hdr org_id Service Org.
MasterProjectIsConfidential
_BusinessPartner _BusinessPartner

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 I_Mpattachment.
-- 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: IMPATTACHMENT

CREATE VIEW I_Mpattachment AS
SELECT
  /bobf/d_atf_do.db_key AS AttachmentDocumentUUID,
  /bobf/d_atf_rt.host_key AS MasterProjectUUID,
  cast(/bobf/d_atf_do.datetime_cr as /cpd/cpm_createdon) AS CreationDateTime,
  /bobf/d_atf_do.user_id_cr AS CreatedByUser,
  adrp.name_first AS FirstName,
  adrp.name_last AS LastName,
  adrp.persnumber AS PersonNumber,
  /bobf/d_atf_do.mimecode AS MimeType,
  /bobf/d_atf_do.name AS FileName,
  /bobf/d_atf_do.description AS DocumentTitle,
  /cpd/d_mp_hdr.mp_id AS MasterProject,
  /cpd/d_mp_hdr.mp_type AS MasterProjectType,
  /cpd/d_mp_hdr.org_id AS MasterProjectOrganization,
  cast(/cpd/d_mp_hdr.confidential as /cpd/cpm_comlprojcofl) AS MasterProjectIsConfidential
FROM /cpd/d_mp_hdr
INNER JOIN /bobf/d_atf_rt ON /* join condition not captured in parsed metadata */
INNER JOIN /bobf/d_atf_do ON /* join condition not captured in parsed metadata */
INNER JOIN usr21 ON /* join condition not captured in parsed metadata */
INNER JOIN adrp ON /* join condition not captured in parsed metadata */
;