Documented APIHas public documentation covering purpose, syntax, parameters, return value and usage conditions. It should be the first choice for customizations.
AdvPL GuideDocumented API → public contract | Internal resource → no compatibility guaranteeGuide decisions about internal Protheus functions, classes and variables without presenting undocumented resources as recommended APIs.
This page does not recommend using internal resources. Its purpose is to support risk analysis when an identifier appears in legacy code, old examples, third-party sources, include files, standard routines or historical documentation. Not every technically available resource is a public API. TOTVS warns that internal or undocumented functions, classes and variables are outside standard support, may change behavior and may be blocked or discontinued without notice. The safest decision is to prefer documented APIs, record exceptions and review internal dependencies before release upgrades.
Documented API → public contract | Internal resource → no compatibility guaranteeDocumented APIHas public documentation covering purpose, syntax, parameters, return value and usage conditions. It should be the first choice for customizations.
Internal resourceExists for product use, may depend on implicit context and provides no public compatibility contract.
Legacy resourceMay appear in old sources or materials, but must be confirmed for the current release before reuse.
Controlled exceptionTemporary documented use with owner, reason, evaluated alternative, tests, accepted risk and replacement plan.
The page guides a technical decision: use a documented resource, replace the internal dependency, isolate a temporary exception or submit the requirement through official channels.
#Include "TOTVS.ch"
User Function ExTechnicalDecision()
Local cMessage := "Processing completed"
// Prefer public and documented resources.
MsgInfo(cMessage, "Result")
ReturnThe example uses a documented public function. In a real migration, replace the internal call with an equivalent official API or with your own tested implementation.
// Antes de usar:
// 1. Existe documentação oficial?
// 2. A documentação vale para a release usada?
// 3. Há API pública equivalente?
// 4. A rotina roda em interface, job ou serviço?
// 5. O risco foi registrado?
// 6. Existe teste de regressão?
// 7. Há plano de substituição?If the answers are unclear, avoid the use or treat it as a temporary technical exception.
Recurso: <identificador>
Motivo: <necessidade atendida>
Alternativa avaliada: <API pública ou implementação própria>
Release testada: <versão>
Responsável: <nome/área>
Evidência: <teste, chamado, homologação>
Revisar em: <data>Document the resource, reason, evaluated alternative, expected impact, owner, tested version, validation evidence and review date.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.