CRMS4V_PS_PREQ_I

DDL: CRMS4V_PS_PREQ_I SQL: CRMS4VPSPREQI Type: view

Payment Request Item

CRMS4V_PS_PREQ_I is a CDS View that provides data about "Payment Request Item" in SAP S/4HANA. It reads from 1 data source (crms4d_preq_i) and exposes 33 fields with key fields client, object_type, object_id, number_int. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
crms4d_preq_i _PREQI from

Associations (3)

CardinalityTargetAliasCondition
[0..1] but000 _bene _PREQI.beneficiary = _bene.partner
[0..1] but000 _payr _PREQI.payment_recipient = _payr.partner
[0..1] CRMS4V_PS_SOAL_STATUS _actv _PREQI.stat_activation_h = _actv.domvalue_l

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CRMS4VPSPREQI view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Payment Request Item view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY client crms4d_preq_i client Workflow definition: Client
KEY object_type crms4d_preq_i objtype_h Trans. Cat.
KEY object_id crms4d_preq_i object_id Transaction ID
KEY number_int crms4d_preq_i number_int Item Number in Doc.
item_guid crms4d_preq_i item_guid Push ItemGU
created_at_i crms4d_preq_i created_at_i Created On
created_by_i crms4d_preq_i created_by_i Created By
changed_at_i crms4d_preq_i changed_at_i Changed On
changed_by_i crms4d_preq_i changed_by_i Changed By
objtype_i crms4d_preq_i objtype_i Object Type
header_guid crms4d_preq_i header_guid Unique Identifier
parent crms4d_preq_i parent UUID
alternative crms4d_preq_i alternative Usage
product crms4d_preq_i product Product Sold
product_id crms4d_preq_i ordered_prod Product
partner_prod crms4d_preq_i partner_prod Partner Product
description crms4d_preq_i description_i Short Text
itm_language crms4d_preq_i itm_language Language
number_ext crms4d_preq_i number_ext Ext. Item No.
item_type crms4d_preq_i itm_type Item Category
order_date crms4d_preq_i order_date Posting Date
itm_usage crms4d_preq_i itm_usage Usage HL Item
product_kind crms4d_preq_i product_kind Prod. Tech. Typ
revacc_refid crms4d_preq_i revacc_refid Rev.Acc. Ref ID
process_type crms4d_preq_i process_type Type of Data
clientNULLasheader_valid_from
clientNULLasheader_valid_to
item_no_appt crms4d_preq_i item_no_appt Item Number in Doc.
clientNULLasvalid_from
clientNULLasvalid_to
beneficiary crms4d_preq_i beneficiary Beneficiary
BENEFICIARY_LIST
PAYM_RECIPIENT_LIST

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 CRMS4V_PS_PREQ_I.
-- 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: CRMS4VPSPREQI

CREATE VIEW CRMS4V_PS_PREQ_I AS
SELECT
  _PREQI.client AS client,
  _PREQI.objtype_h AS object_type,
  _PREQI.object_id AS object_id,
  _PREQI.number_int AS number_int,
  _PREQI.item_guid AS item_guid,
  _PREQI.created_at_i AS created_at_i,
  _PREQI.created_by_i AS created_by_i,
  _PREQI.changed_at_i AS changed_at_i,
  _PREQI.changed_by_i AS changed_by_i,
  _PREQI.objtype_i AS objtype_i,
  _PREQI.header_guid AS header_guid,
  _PREQI.parent AS parent,
  _PREQI.alternative AS alternative,
  _PREQI.product AS product,
  _PREQI.ordered_prod AS product_id,
  _PREQI.partner_prod AS partner_prod,
  _PREQI.description_i AS description,
  _PREQI.itm_language AS itm_language,
  _PREQI.number_ext AS number_ext,
  _PREQI.itm_type AS item_type,
  _PREQI.order_date AS order_date,
  _PREQI.itm_usage AS itm_usage,
  _PREQI.product_kind AS product_kind,
  _PREQI.revacc_refid AS revacc_refid,
  _PREQI.process_type AS process_type,
  tstmp_to_dats(_PREQI.contstart_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as header_valid_from AS clientNULLasheader_valid_from,
  tstmp_to_dats( _PREQI.contend_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as header_valid_to AS clientNULLasheader_valid_to,
  _PREQI.item_no_appt AS item_no_appt,
  tstmp_to_dats(_PREQI.contstart_i, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as valid_from AS clientNULLasvalid_from,
  tstmp_to_dats( _PREQI.contend_i, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as valid_to AS clientNULLasvalid_to,
  _PREQI.beneficiary AS beneficiary,
  CONCAT_WITH_SPACE( _bene.mc_name2, _bene.mc_name1, 1 ) AS BENEFICIARY_LIST,
  CONCAT_WITH_SPACE( _payr.mc_name2, _payr.mc_name1, 1 ) AS PAYM_RECIPIENT_LIST
FROM crms4d_preq_i AS _PREQI
LEFT OUTER JOIN but000 AS _bene ON _PREQI.beneficiary = _bene.partner  -- association [0..1]
LEFT OUTER JOIN but000 AS _payr ON _PREQI.payment_recipient = _payr.partner  -- association [0..1]
LEFT OUTER JOIN CRMS4V_PS_SOAL_STATUS AS _actv ON _PREQI.stat_activation_h = _actv.domvalue_l  -- association [0..1]
;