dbo.QER_FTPWOOrderPerson_100

SQL_INLINE_TABLE_VALUED_FUNCTION

Created 2026-04-14T23:17:27.400 · modified 2026-04-14T23:17:27.400 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@UID_PersonOrderedvarcharno
@dummyUID_ITShopOrgPRvarcharno
@dummyUID_ACCProductvarcharno
@ValidFromdatetimeno
@ValidUntildatetimeno
@CountRecordsintno

Referenced objects

SchemaObjectColumn/minorClass
AccProductOBJECT_OR_COLUMN
BaseTreeOBJECT_OR_COLUMN
BaseTreeAssignOBJECT_OR_COLUMN
BaseTreeHasObjectOBJECT_OR_COLUMN
DialogTableOBJECT_OR_COLUMN
PersonInBaseTreeOBJECT_OR_COLUMN
QERAssignOBJECT_OR_COLUMN
dboQBM_FCVStringToIntOBJECT_OR_COLUMN
dboQBM_FGIConfigparmValueOBJECT_OR_COLUMN
dboQER_FGIPwoValidDateRangesExistOBJECT_OR_COLUMN

Source excerpt

First extracted SQL definition lines from the exported source. Use the full source page for complete context.

Open full formatted source

1create function dbo.QER_FTPWOOrderPerson_100 (@UID_PersonOrdered varchar(38) , @dummyUID_ITShopOrgPR varchar(38) , @dummyUID_ACCProduct varchar(38) , @ValidFrom
2 datetime , @ValidUntil datetime , @CountRecords int ) returns table as return ( select distinct top (@CountRecords) cum.UID_Person as UID_PersonOrdered
3 , pr.UID_Org as UID_ITShopOrgPR , bo.UID_Org as UID_ITShopOrgBO , bo.UID_ParentOrg as UID_ITShopOrgSH , a.UID_AccProduct as UID_AccProduct , ba.IsReusePossible
4 , a.Ident_AccProduct as Ident_AccProduct , a.Description as Description , a.UID_AccProductGroup as UID_AccProductGroup from BaseTree pr join BaseTree 
5bo on bo.ITShopInfo = 'BO' and bo.uid_Org = pr.UID_ParentOrg and pr.uid_PWODecisionMethod > ' ' and pr.ITShopInfo = 'PR'     join BaseTree cu on bo.UID_ParentOrg
6 = cu.UID_ParentOrg and cu.ITShopInfo = 'CU' join PersonInBaseTree cum on cu.uid_org = cum.uid_org and cum.XOrigin > 0 and cum.UID_Person = @UID_PersonOrdered
7 join AccProduct a on pr.uid_accproduct = a.uid_accproduct and a.IsInactive = 0     join BaseTreeAssign ba with (readpast) on ba.IsITShopEnabled = 1 join
8 DialogTable t with (readpast) on ba.UID_DialogTableElement = t.UID_DialogTable join BaseTreeHasObject bho on pr.UID_Org = bho.UID_Org and bho.InheritInfo
9 = 1  and bho.ObjectKey like '<Key><T>' + t.TableName + '</T>%'  left outer join QERAssign qa on bho.ObjectKey = qa.XObjectKey where 1 = case   when ((sign
10(len(isnull(qa.ObjectKeyAssignTarget, ''))) ^1 ) & ba.IsReusePossible) = 1 and @ValidFrom is null and @ValidUntil is null then 1 when ((sign(len(isnull
11(qa.ObjectKeyAssignTarget, ''))) ^1 ) & ba.IsReusePossible) = 1 then dbo.QER_FGIPwoValidDateRangesExist(@UID_PersonOrdered, pr.UID_Org, @ValidFrom, @ValidUntil
12) when dbo.QBM_FCVStringToInt(dbo.QBM_FGIConfigparmValue('QER\ITShop\GapBehavior\GapFitting'), 0) = 2 then 1  else dbo.QER_FGIPwoValidDateRangesExist(@UID_PersonOrdered
13, pr.UID_Org, @ValidFrom, @ValidUntil) end ) 
14

Module relation graph

Loading module relation graph…

Source-derived context

Generated from exported SQL module definitions plus read-only sandbox sys.objects/sys.parameters/sys.sql_expression_dependencies metadata. This is factual source evidence, not a semantic guess.

provenance: SQL definition export provenance: sandbox DB metadata modified: 2026-04-14T23:17:27.400

None extracted.

Summary: reads/joins BaseTree, PersonInBaseTree, AccProduct, BaseTreeAssign, DialogTable…; uses config QER\ITShop\GapBehavior\GapFitting

Declared parameters

ParameterTypeDirection
@UID_PersonOrderedvarchar(38)input
@dummyUID_ITShopOrgPRvarchar(38)input
@dummyUID_ACCProductvarchar(38)input
@ValidFromdatetimeinput
@ValidUntildatetimeinput
@CountRecordsintinput

DML targets

None extracted.

Called routines

None extracted.

Config/session

Config: QER\ITShop\GapBehavior\GapFitting

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: None extracted.

Variables: @UID_PersonOrdered @dummyUID_ITShopOrgPR @dummyUID_ACCProduct @ValidFrom @ValidUntil @CountRecords

Referenced by / reverse dependencies

Generated from live DB metadata, FK rows, and exported SQL dependency/source extraction. This is factual linkage evidence, not inferred behavior.

Referencing objectRelationEvidence
dbo.QER_FGIPWOOrderPersonSQL expression dependencydbo · OBJECT_OR_COLUMN
dbo.QER_FTPWOOrderPersonSQL expression dependencydbo · OBJECT_OR_COLUMN
dbo.QER_FGIPWOOrderPersonsource text referenceSQL_SCALAR_FUNCTION
dbo.QER_FTPWOOrderPersonsource text referenceSQL_TABLE_VALUED_FUNCTION