ADVPL to TLPP Migration

•
63
•

Automates the systematic conversion of legacy ADVPL procedural code into modern TLPP object-oriented structures for TOTVS Protheus development.

This skill provides a comprehensive framework for modernizing Protheus codebases by refactoring legacy .prw procedural files into .tlpp object-oriented classes. It intelligently handles the transition from User Functions to class methods, manages namespace declarations according to official TOTVS standards, and converts variable scoping from Private/Public to class properties. By generating backward-compatibility wrappers, it ensures that modernized code remains accessible to existing system callers while benefiting from the scalability and maintainability of TLPP.

Key Features

01Maps legacy variable scoping (Private/Public) to modern class data properties
02Generates backward-compatibility wrappers to prevent breaking existing code integrations
03Converts procedural ADVPL functions into object-oriented classes and methods
0463 GitHub stars
05Updates include directives from legacy .ch headers to modern .th core files
06Automates namespace generation based on official TOTVS product and custom segments

Use Cases

01Transitioning from procedural error handling to structured class-based logging
02Refactoring legacy custom Protheus modules into maintainable object-oriented services
03Modernizing large-scale ADVPL libraries to utilize TLPP namespaces and classes