Protheus ADVPL Trigger Analyzer
Traces and visualizes the SX7 trigger cascade for Protheus ERP fields to identify side effects and calculation chains.
The gatilho skill is a specialized tool for Protheus ERP developers that maps out the complex web of field triggers within the SX7 system table. It allows users to visualize how changing a specific field (SX3) impacts other fields across the system, performing a Breadth-First Search (BFS) up to three levels deep. By surfacing the ADVPL rules, sequences, and trigger types (Primary or Secondary), it eliminates the need for manual metadata lookups and helps developers predict the ripple effects of data changes or debug unintended recalculations within the Protheus environment.
Key Features
0113 GitHub stars
02Supports Breadth-First Search (BFS) up to 3 levels of depth
03Displays the exact ADVPL rule (X7_REGRA) executed for each trigger
04Distinguishes between Primary (P) and Secondary (S) trigger types
05Provides a clear visual path of origin-to-destination field updates
06Maps SX7 trigger chains starting from any SX3 field
Use Cases
01Auditing complex business logic dependencies during Protheus environment customization
02Investigating unintended field updates when a specific ERP field value is changed
03Mapping data recalculation flows for technical documentation or troubleshooting