ADVPL Field Impact Analyzer

•
13
•

Analyzes and maps the full impact chain of Protheus SX3 fields across source code, validations, triggers, and parameters.

The ADVPL Impact Analyzer is a specialized tool for Protheus ERP developers that provides deep visibility into how specific database fields (SX3) are utilized throughout an entire project. It indexes metadata into a local SQLite database to perform lightning-fast cross-referencing, identifying every instance where a field appears in ADVPL/TLPP source code, SX3 validations (X3_VALID, X3_WHEN), SX7 trigger chains, and SX1 parameters. This is an essential utility for refactoring legacy code and performing risk assessments before making structural changes to the Protheus environment.

주요 기능

01Identifies SX3 field validations including X3_VALID, X3_WHEN, X3_VLDUSER, and X3_RELACAO.
02Maps complex SX7 trigger chains (origin and destination) up to three levels deep.
0313 GitHub stars
04Utilizes SQLite + FTS5 for high-performance metadata querying without high token costs.
05Traces field usage in ADVPL/TLPP source files using optimized substring matching.
06Scans SX1 parameter groups to find references in question definitions and validations.

사용 사례

01Debugging complex SX7 trigger cascades to identify the source of unexpected data updates.
02Performing impact analysis before changing field types or lengths in the Protheus Dictionary.
03Auditing legacy source code for hardcoded references to specific ERP table fields.