dbo.RPS_ZAllForOneRPSReport
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:16.527 · modified 2026-04-14T23:20:45.237 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
@uid_RPSReport | varchar | no |
@dummy | varchar | no |
@GenProcID | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| BaseTreeCollection | OBJECT_OR_COLUMN | ||
| BaseTreeHasRPSReport | OBJECT_OR_COLUMN | ||
| HelperPersonOrg | OBJECT_OR_COLUMN | ||
| PersonHasRPSReport | OBJECT_OR_COLUMN | ||
| PersonInBaseTree | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Bulk | OBJECT_OR_COLUMN | ||
| QBM_PJournal | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueRaw | TYPE | ||
| RPSReport | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create procedure RPS_ZAllForOneRPSReport (@SlotNumber int , @uid_RPSReport varchar(38) , @dummy varchar(38) , @GenProcID varchar(38) ) as 2 begin declare @MsgTxt nvarchar(1024) declare @DebugLevel char(1) = 'W' BEGIN TRY if not exists (select top 1 1 from RPSReport where uid_RPSReport = isnull 3(@uid_RPSReport,'')) begin select @MsgTxt = N'RPSReport ' + rtrim(@uid_RPSReport) + ' not exists, Job ALLFORONERPSReport was killed' exec QBM_PJournal 4@MsgTxt, @@procid, 'D', @DebugLevel goto ende end declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid 5) select x.uid, null, @GenProcID from ( select co.UID_Org as uid from BaseTreeHasRPSReport bhr join BaseTreeCollection co on bhr.UID_Org = co.UID_ParentOrg 6 where bhr.UID_RPSReport = @uid_RPSReport and bhr.XOrigin > 0 ) as x exec QBM_PDBQueueInsert_Bulk 'RPS-K-OrgHasRPSReport', @DBQueueElements_01 declare 7 @DBQueueElements_02 QBM_YDBQueueRaw insert into @DBQueueElements_02 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uid_person 8 as uid from PersonHasRPSReport where uid_RPSReport = @uid_RPSReport and XOrigin > 0 union select pio.UID_Person from BaseTreeHasRPSReport bhr join PersonInBaseTree 9 pio on bhr.UID_Org = pio.UID_Org and bhr.XOrigin > 0 where bhr.UID_RPSReport = @uid_RPSReport union select pio.UID_Person from BaseTreeHasRPSReport bhr 10 join HelperPersonOrg pio on bhr.UID_Org = pio.UID_Org and bhr.XOrigin > 0 where bhr.UID_RPSReport = @uid_RPSReport ) as x exec QBM_PDBQueueInsert_Bulk 11 'RPS-K-PersonHasRPSReport', @DBQueueElements_02 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: 12 return 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:20:45.237
inserts DBQueue tasks has TRY/CATCH error handling
Summary: calls QBM_PJournal, QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into; reads/joins RPSReport, BaseTreeHasRPSReport, BaseTreeCollection, PersonHasRPSReport, PersonInBaseTree…
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumber | int | input |
@uid_RPSReport | varchar(38) | input |
@dummy | varchar(38) | input |
@GenProcID | varchar(38) | input |
DML targets
INSERT intoCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
RPS-K-OrgHasRPSReport RPS-K-PersonHasRPSReportTemp tables / referenced variables
Temp: None extracted.
Variables: @SlotNumber @uid_RPSReport @dummy @GenProcID @MsgTxt @DebugLevel @procid @DBQueueElements_01 @DBQueueElements_02
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.
No reverse dependencies extracted.