P_RU_ImportNotifHeaderWithBPG

DDL: P_RU_IMPORTNOTIFHEADERWITHBPG SQL: PRUIMPNOTIFHDRG Type: view COMPOSITE

P_RU_ImportNotifHeaderWithBPG is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_RU_ImportNotifHeaderWithBP) and exposes 23 fields with key field RU_ImprtNotifInternalNumber.

Data Sources (1)

SourceAliasJoin Type
P_RU_ImportNotifHeaderWithBP Header from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PRUIMPNOTIFHDRG view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY RU_ImprtNotifInternalNumber P_RU_ImportNotifHeaderWithBP RU_ImprtNotifInternalNumber
RU_ImprtNotifExternalNumber P_RU_ImportNotifHeaderWithBP RU_ImprtNotifExternalNumber
RU_ImprtNotifRegistrationDate P_RU_ImportNotifHeaderWithBP RU_ImprtNotifRegistrationDate
ExportConfirmationDate P_RU_ImportNotifHeaderWithBP ExportConfirmationDate
CompanyCode P_RU_ImportNotifHeaderWithBP CompanyCode Receiver Company Code
Customer P_RU_ImportNotifHeaderWithBP Customer Sold-to Party
Consignee P_RU_ImportNotifHeaderWithBP Consignee Customer
AssignmentReference P_RU_ImportNotifHeaderWithBP AssignmentReference Assignment Reference
RU_ImportNotificationIsMock P_RU_ImportNotifHeaderWithBP RU_ImportNotificationIsMock
RU_ImportNotifSellerSection P_RU_ImportNotifHeaderWithBP RU_ImportNotifSellerSection
CustomerCompanyAuthznGroup
CustomerAuthznGrp
ConsigneeAuthorizationGroup
CreatedByUserName P_RU_ImportNotifHeaderWithBP CreatedByUserName Person Resp.
CreationDateTime P_RU_ImportNotifHeaderWithBP CreationDateTime Timestamp
LastChangedByUserName P_RU_ImportNotifHeaderWithBP LastChangedByUserName User Name
ChangedDateTime P_RU_ImportNotifHeaderWithBP ChangedDateTime Time Stamp
CustomerCountry
RU_CustomerINN
CustomerName
RU_AgentOrganizationINN
ConsigneeName
ConsigneeCountry

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_RU_ImportNotifHeaderWithBPG.
-- 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: PRUIMPNOTIFHDRG

CREATE VIEW P_RU_ImportNotifHeaderWithBPG AS
SELECT
  Header.RU_ImprtNotifInternalNumber AS RU_ImprtNotifInternalNumber,
  Header.RU_ImprtNotifExternalNumber AS RU_ImprtNotifExternalNumber,
  Header.RU_ImprtNotifRegistrationDate AS RU_ImprtNotifRegistrationDate,
  Header.ExportConfirmationDate AS ExportConfirmationDate,
  Header.CompanyCode AS CompanyCode,
  Header.Customer AS Customer,
  Header.Consignee AS Consignee,
  Header.AssignmentReference AS AssignmentReference,
  Header.RU_ImportNotificationIsMock AS RU_ImportNotificationIsMock,
  Header.RU_ImportNotifSellerSection AS RU_ImportNotifSellerSection,
  cast(max(Header.CustomerCompanyAuthznGroup) as brgru ) AS CustomerCompanyAuthznGroup,
  cast(max(Header.CustomerAuthznGrp) as brgru ) AS CustomerAuthznGrp,
  cast(max(Header.ConsigneeAuthorizationGroup) as brgru ) AS ConsigneeAuthorizationGroup,
  Header.CreatedByUserName AS CreatedByUserName,
  Header.CreationDateTime AS CreationDateTime,
  Header.LastChangedByUserName AS LastChangedByUserName,
  Header.ChangedDateTime AS ChangedDateTime,
  cast(max(Header.CustomerCountry) as land1_gp) AS CustomerCountry,
  cast(max(Header.RU_CustomerINN) as firu_partner_inn) AS RU_CustomerINN,
  cast(max(Header.CustomerName) as md_customer_name) AS CustomerName,
  cast(max(Header.RU_AgentOrganizationINN) as firu_partner_inn) AS RU_AgentOrganizationINN,
  cast(max(Header.ConsigneeName) as md_customer_name) AS ConsigneeName,
  cast(max(Header.ConsigneeCountry) as land1_gp) AS ConsigneeCountry
FROM P_RU_ImportNotifHeaderWithBP AS Header
;