dbo.QER_FTPWOOrderPerson_000
SQL_INLINE_TABLE_VALUED_FUNCTION
Created 2026-04-14T23:17:27.370 · modified 2026-04-14T23:17:27.370 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@dummyUID_PersonOrdered | varchar | no |
@dummyUID_ITShopOrgPR | varchar | no |
@dummyUID_ACCProduct | varchar | no |
@ValidFrom | datetime | no |
@ValidUntil | datetime | no |
@CountRecords | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| AccProduct | OBJECT_OR_COLUMN | ||
| BaseTree | OBJECT_OR_COLUMN | ||
| BaseTreeAssign | OBJECT_OR_COLUMN | ||
| BaseTreeHasObject | OBJECT_OR_COLUMN | ||
| DialogTable | OBJECT_OR_COLUMN | ||
| PersonInBaseTree | OBJECT_OR_COLUMN | ||
| QERAssign | OBJECT_OR_COLUMN | ||
| dbo | QBM_FCVStringToInt | OBJECT_OR_COLUMN | |
| dbo | QBM_FGIConfigparmValue | OBJECT_OR_COLUMN | |
| dbo | QER_FGIPwoValidDateRangesExist | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1create function dbo.QER_FTPWOOrderPerson_000 (@dummyUID_PersonOrdered varchar(38) , @dummyUID_ITShopOrgPR varchar(38) , @dummyUID_ACCProduct varchar(38 2) , @ValidFrom 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 5 bo 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 join AccProduct a on pr.uid_accproduct 7 = a.uid_accproduct and a.IsInactive = 0 join BaseTreeAssign ba with (readpast) on ba.IsITShopEnabled = 1 join DialogTable t with (readpast) on ba.UID_DialogTableElement 8 = t.UID_DialogTable join BaseTreeHasObject bho on pr.UID_Org = bho.UID_Org and bho.InheritInfo = 1 and bho.ObjectKey like '<Key><T>' + t.TableName + 9'</T>%' left outer join QERAssign qa on bho.ObjectKey = qa.XObjectKey where 1 = case when @ValidFrom is null and @ValidUntil is null then 1 10 when ((sign(len(isnull(qa.ObjectKeyAssignTarget, ''))) ^1 ) & ba.IsReusePossible) = 1 and @ValidFrom is null and @ValidUntil is null then 1 when ((sign 11(len(isnull(qa.ObjectKeyAssignTarget, ''))) ^1 ) & ba.IsReusePossible) = 1 then dbo.QER_FGIPwoValidDateRangesExist(cum.UID_Person, pr.UID_Org, @ValidFrom 12, @ValidUntil) when dbo.QBM_FCVStringToInt(dbo.QBM_FGIConfigparmValue('QER\ITShop\GapBehavior\GapFitting'), 0) = 2 then 1 else dbo.QER_FGIPwoValidDateRangesExist 13(cum.UID_Person, 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.370
None extracted.
Summary: reads/joins BaseTree, PersonInBaseTree, AccProduct, BaseTreeAssign, DialogTable…; uses config QER\ITShop\GapBehavior\GapFitting
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@dummyUID_PersonOrdered | varchar(38) | input |
@dummyUID_ITShopOrgPR | varchar(38) | input |
@dummyUID_ACCProduct | varchar(38) | input |
@ValidFrom | datetime | input |
@ValidUntil | datetime | input |
@CountRecords | int | input |
DML targets
None extracted.Called routines
None extracted.
Read/join references
SQL dependency metadata
Config/session
Config: QER\ITShop\GapBehavior\GapFitting
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @dummyUID_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 object | Relation | Evidence |
|---|---|---|
| dbo.QER_FGIPWOOrderPerson | SQL expression dependency | dbo · OBJECT_OR_COLUMN |
| dbo.QER_FTPWOOrderPerson | SQL expression dependency | dbo · OBJECT_OR_COLUMN |
| dbo.QER_FGIPWOOrderPerson | source text reference | SQL_SCALAR_FUNCTION |
| dbo.QER_FTPWOOrderPerson | source text reference | SQL_TABLE_VALUED_FUNCTION |