dbo.RPS_ZPrePropRPSReport
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:16.593 · modified 2026-04-14T23:20:45.303 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_PSessionContextSet | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueCurrent | TYPE | ||
| QBM_YPrepropHelper | TYPE | ||
| QBMDBQueueCurrent | OBJECT_OR_COLUMN | ||
| RPSReport | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGIPrepropConditionDeactiv | OBJECT_OR_COLUMN | |
| dbo | QBM_FGISessionContext | 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_ZPrePropRPSReport (@SlotNumber int ) as begin declare @GenProcID varchar(38) declare @GenProcID_R varchar(38) = dbo.QBM_FGISessionContext 2('') declare @DBQueueCurrent QBM_YDBQueueCurrent BEGIN TRY insert into @DBQueueCurrent(UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID) select 3 UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID from QBMDBQueueCurrent cu with (readpast) where cu.SlotNumber = @SlotNumber if @@rowcount 4 = 0 begin goto EndLabel end select @GenProcID = max(GenProcID) from @DBQueueCurrent where GenProcID > ' ' if isnull(@Genprocid, '') = '' begin select 5@GenProcID = newid() end declare @PrePropHelper QBM_YPrepropHelper insert into @PrePropHelper (uid_parameter , isDeactivatedPrior , IsDeactivated , GenProcID 6 , PreProcessorCondition, IsDeactivatedOld) select x.uid_parameter, 0, 0, x.GenProcID, isnull(c.PreProcessorCondition,N''), c.isDeactivatedByPreProcessor 7 from @DBQueueCurrent x join RPSReport c on x.uid_parameter = c.uid_RPSReport update @PrePropHelper set IsDeactivated = dbo.QBM_FGIPrepropConditionDeactiv 8(h.PreProcessorCondition) from @PrePropHelper h where h.PreProcessorCondition > ' ' and h.IsDeactivated = 0 exec QBM_PSessionContextSet 'GenProcID', @GenProcID 9 update RPSReport set IsDeactivatedByPreProcessor = x.isDeactivated, xdateupdated = GetUTCDate(), xuserupdated = 'DBScheduler' from RPSReport r join @PrePropHelper 10 x on r.UID_RPSReport = x.uid_parameter where r.IsDeactivatedByPreProcessor <> x.IsDeactivated END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR 11 ('', 18, 1) WITH NOWAIT END CATCH endLabel: exec QBM_PSessionContextSet 'GenProcID', @GenProcID_R return end 12
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.303
uses session context values has TRY/CATCH error handling
Summary: calls QBM_PSessionContextSet, QBM_PSessionErrorAdd; writes INSERT into, UPDATE RPSReport; reads/joins QBMDBQueueCurrent, RPSReport; uses session context GenProcID
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumber | int | input |
DML targets
INSERT into UPDATE RPSReportCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: GenProcID
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @SlotNumber @GenProcID @GenProcID_R @DBQueueCurrent @rowcount @Genprocid @PrePropHelper
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.