P_LDC_DATA

DDL: P_LDC_DATA SQL: PLDCDATA Type: view BASIC

P_LDC_DATA is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (/accgo/t_uisevnt, /accgo/t_uishdr) and exposes 84 fields with key fields mandt, uis_key, uis_evnt_key.

Data Sources (2)

SourceAliasJoin Type
/accgo/t_uisevnt evnt inner
/accgo/t_uishdr hdr from

Parameters (1)

NameTypeDefault
iv_prefix abap.char( 2 )

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PLDCDATA 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 (84)

KeyFieldSource TableSource FieldDescription
KEY mandt /accgo/t_uishdr mandt Editing Client
KEY uis_key /accgo/t_uishdr uis_key LDC Key
KEY uis_evnt_key /accgo/t_uisevnt uis_evnt_key LDC Key
uis_id /accgo/t_uishdr uis_id LDC ID
uis_type /accgo/t_uishdr uis_type LDC Type
group_id /accgo/t_uishdr group_id UUID
vendor /accgo/t_uishdr vendor Vendor
customer /accgo/t_uishdr customer Sold-to Party
gs_addr_flag /accgo/t_uishdr gs_addr_flag New Address
merge_key /accgo/t_uishdr merge_key LDC Key
scalp_rel /accgo/t_uishdr scalp_rel Back-to-Back?
block_vsplt /accgo/t_uishdr block_vsplt Checkbox
ext_uis_id /accgo/t_uishdr ext_uis_id External ID
hdr_crt_by /accgo/t_uishdr created_by Version Created By
hdr_crt_on
hdr_chg_by /accgo/t_uishdr changed_by User Name
hdr_chg_on
merge_id /accgo/t_uishdr merge_id Space Merge ID
parent_key /accgo/t_uisevnt parent_key UUID
event_type /accgo/t_uisevnt event_type Type of Event
purchase_org /accgo/t_uisevnt purchase_org Purchasing Org.
material /accgo/t_uisevnt material Vehicle Model
trace_id /accgo/t_uisevnt trace_id Trace ID
ticket /accgo/t_uisevnt ticket Ticket type
ticket_rc /accgo/t_uisevnt ticket_rc Return code
evnt_loc_typ /accgo/t_uisevnt evnt_loc_typ Location type
evnt_loc /accgo/t_uisevnt evnt_loc Event Location
rec_loc_typ /accgo/t_uisevnt rec_loc_typ Location type
rec_loc /accgo/t_uisevnt rec_loc Rec Location
appl_instr /accgo/t_uisevnt appl_instr Application Instr.
on_acc_of /accgo/t_uisevnt on_acc_of Supplier
tc_id /accgo/t_uisevnt tc_id Trading Contract
tc_item /accgo/t_uisevnt tc_item Item Number
po_id /accgo/t_uisevnt po_id Purchasing Doc.
po_item /accgo/t_uisevnt po_item PO Item
sto_id /accgo/t_uisevnt sto_id Purchasing Doc.
sto_item /accgo/t_uisevnt sto_item STO Item
so_id /accgo/t_uisevnt so_id Sales Order ID
so_item /accgo/t_uisevnt so_item Sales Order Item
del_id /accgo/t_uisevnt del_id Delivery
del_item /accgo/t_uisevnt del_item Item
bol /accgo/t_uisevnt bol Bill of Lading
bol_date /accgo/t_uisevnt bol_date Document Date
nom_key /accgo/t_uisevnt nom_key Nomination key
nom_id /accgo/t_uisevnt nom_id Nomination no.
nom_item /accgo/t_uisevnt nom_item Nomination Relevant
mot /accgo/t_uisevnt mot TrM
trnsp_grp /accgo/t_uisevnt trnsp_grp Trans. Group
driver_id /accgo/t_uisevnt driver_id Driver Name
license /accgo/t_uisevnt license License
vehicle_id /accgo/t_uisevnt vehicle_id Vehicle No.
lead_car_no /accgo/t_uisevnt lead_car_no Lead Car No.
no_of_cars /accgo/t_uisevnt no_of_cars No. of Cars
barge_id /accgo/t_uisevnt barge_id Veh. ID
vessel_id /accgo/t_uisevnt vessel_id Vessel Name
booking_no /accgo/t_uisevnt booking_no Booking No.
descr /accgo/t_uisevnt descr WSS Profile
load_rt /accgo/t_uisevnt load_rt Load Rate
dis_rt /accgo/t_uisevnt dis_rt Discharge Rate
del_period /accgo/t_uisevnt del_period Delivery Period
source_loc /accgo/t_uisevnt source_loc Source Location
load_rt_qty /accgo/t_uisevnt load_rt_qty Load Rate Quantity
load_rt_tim /accgo/t_uisevnt load_rt_tim Ld Rt Time UOM
del_pd_uom /accgo/t_uisevnt del_pd_uom Del Pd Time UOM
dis_rt_qty /accgo/t_uisevnt dis_rt_qty Dis Rate Qty
dis_rt_tim /accgo/t_uisevnt dis_rt_tim Discharge Rate Tim
vktra /accgo/t_uisevnt vktra Single-Character Flag
means_trnspt /accgo/t_uisevnt means_trnspt Means of Transport
inco_terms /accgo/t_uisevnt inco_terms Incoterms
ev_action /accgo/t_uisevnt ev_action Evnt Rel. Action
ev_bin /accgo/t_uisevnt ev_bin Storage Bin
ev_storage /accgo/t_uisevnt ev_storage Location
comments /accgo/t_uisevnt comments User Notes
released_by /accgo/t_uisevnt released_by User Name
posting_date /accgo/t_uisevnt posting_date Posting Date
dpa_number /accgo/t_uisevnt dpa_number Del&Pay.Auth Number
werks /accgo/t_uisevnt werks Receiving Plant
created_by /accgo/t_uisevnt created_by Version Created By
created_on
changed_by /accgo/t_uisevnt changed_by User Name
changed_on
item /accgo/t_uisevnt item Task ID
objnr
LDCIsMultipleBuySellRelevant mbs_rel Multiple Buy Sell

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_LDC_DATA.
-- 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: PLDCDATA
-- Parameters: iv_prefix : abap.char( 2 )

CREATE VIEW P_LDC_DATA AS
SELECT
  hdr.mandt AS mandt,
  hdr.uis_key AS uis_key,
  evnt.uis_evnt_key AS uis_evnt_key,
  hdr.uis_id AS uis_id,
  hdr.uis_type AS uis_type,
  hdr.group_id AS group_id,
  hdr.vendor AS vendor,
  hdr.customer AS customer,
  hdr.gs_addr_flag AS gs_addr_flag,
  hdr.merge_key AS merge_key,
  hdr.scalp_rel AS scalp_rel,
  hdr.block_vsplt AS block_vsplt,
  hdr.ext_uis_id AS ext_uis_id,
  hdr.created_by AS hdr_crt_by,
  cast(hdr.created_on as /accgo/e_change_timestamp preserving type) AS hdr_crt_on,
  hdr.changed_by AS hdr_chg_by,
  cast(hdr.changed_on as /accgo/e_change_timestamp preserving type) AS hdr_chg_on,
  hdr.merge_id AS merge_id,
  evnt.parent_key AS parent_key,
  evnt.event_type AS event_type,
  evnt.purchase_org AS purchase_org,
  evnt.material AS material,
  evnt.trace_id AS trace_id,
  evnt.ticket AS ticket,
  evnt.ticket_rc AS ticket_rc,
  evnt.evnt_loc_typ AS evnt_loc_typ,
  evnt.evnt_loc AS evnt_loc,
  evnt.rec_loc_typ AS rec_loc_typ,
  evnt.rec_loc AS rec_loc,
  evnt.appl_instr AS appl_instr,
  evnt.on_acc_of AS on_acc_of,
  evnt.tc_id AS tc_id,
  evnt.tc_item AS tc_item,
  evnt.po_id AS po_id,
  evnt.po_item AS po_item,
  evnt.sto_id AS sto_id,
  evnt.sto_item AS sto_item,
  evnt.so_id AS so_id,
  evnt.so_item AS so_item,
  evnt.del_id AS del_id,
  evnt.del_item AS del_item,
  evnt.bol AS bol,
  evnt.bol_date AS bol_date,
  evnt.nom_key AS nom_key,
  evnt.nom_id AS nom_id,
  evnt.nom_item AS nom_item,
  evnt.mot AS mot,
  evnt.trnsp_grp AS trnsp_grp,
  evnt.driver_id AS driver_id,
  evnt.license AS license,
  evnt.vehicle_id AS vehicle_id,
  evnt.lead_car_no AS lead_car_no,
  evnt.no_of_cars AS no_of_cars,
  evnt.barge_id AS barge_id,
  evnt.vessel_id AS vessel_id,
  evnt.booking_no AS booking_no,
  evnt.descr AS descr,
  evnt.load_rt AS load_rt,
  evnt.dis_rt AS dis_rt,
  evnt.del_period AS del_period,
  evnt.source_loc AS source_loc,
  evnt.load_rt_qty AS load_rt_qty,
  evnt.load_rt_tim AS load_rt_tim,
  evnt.del_pd_uom AS del_pd_uom,
  evnt.dis_rt_qty AS dis_rt_qty,
  evnt.dis_rt_tim AS dis_rt_tim,
  evnt.vktra AS vktra,
  evnt.means_trnspt AS means_trnspt,
  evnt.inco_terms AS inco_terms,
  evnt.ev_action AS ev_action,
  evnt.ev_bin AS ev_bin,
  evnt.ev_storage AS ev_storage,
  evnt.comments AS comments,
  evnt.released_by AS released_by,
  evnt.posting_date AS posting_date,
  evnt.dpa_number AS dpa_number,
  evnt.werks AS werks,
  evnt.created_by AS created_by,
  cast(evnt.created_on as /accgo/e_change_timestamp preserving type) AS created_on,
  evnt.changed_by AS changed_by,
  cast(evnt.changed_on as /accgo/e_change_timestamp preserving type) AS changed_on,
  evnt.item AS item,
  concat($parameters.iv_prefix,concat(hdr.uis_id,evnt.item)) AS objnr,
  mbs_rel AS LDCIsMultipleBuySellRelevant
FROM /accgo/t_uishdr AS hdr
INNER JOIN /accgo/t_uisevnt AS evnt ON /* join condition not captured in parsed metadata */
;