dbo.QER_FTPWOOrderPerson_010

SQL_INLINE_TABLE_VALUED_FUNCTION

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

Open formatted source/search result

Parameters

NameTypeOutput
@dummyUID_PersonOrderedvarcharno
@UID_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_010 (@dummyUID_PersonOrdered varchar(38) , @UID_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' and pr.UID_Org = @UID_ITShopOrgPR
6 join BaseTree cu on bo.UID_ParentOrg = cu.UID_ParentOrg and cu.ITShopInfo = 'CU' join PersonInBaseTree cum on cu.uid_org = cum.uid_org and cum.XOrigin
7 > 0     join AccProduct a on pr.uid_accproduct = a.uid_accproduct and a.IsInactive = 0     join BaseTreeAssign ba with (readpast) on ba.IsITShopEnabled
8 = 1 join DialogTable t with (readpast) on ba.UID_DialogTableElement = t.UID_DialogTable join BaseTreeHasObject bho on bho.UID_Org = @UID_ITShopOrgPR and
9 bho.InheritInfo = 1  and bho.ObjectKey like '<Key><T>' + t.TableName + '</T>%'  left outer join QERAssign qa on bho.ObjectKey = qa.XObjectKey where 1 
10= case when  @ValidFrom is null and @ValidUntil is null then 1 when ((sign(len(isnull(qa.ObjectKeyAssignTarget, ''))) ^1 ) & ba.IsReusePossible) = 1 then
11 dbo.QER_FGIPwoValidDateRangesExist(cum.UID_Person, @UID_ITShopOrgPR, @ValidFrom, @ValidUntil) when dbo.QBM_FCVStringToInt(dbo.QBM_FGIConfigparmValue('QER\ITShop\GapBehavior\GapFitting'
12), 0) = 2 then 1  else dbo.QER_FGIPwoValidDateRangesExist(cum.UID_Person, @UID_ITShopOrgPR, @ValidFrom, @ValidUntil) end ) 
13

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.387

None extracted.

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

Declared parameters

ParameterTypeDirection
@dummyUID_PersonOrderedvarchar(38)input
@UID_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: @dummyUID_PersonOrdered @UID_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