@netoalmanca/advpl-sensei 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/changelog-generator.md +63 -0
- package/agents/code-generator.md +215 -0
- package/agents/code-reviewer.md +145 -0
- package/agents/debugger.md +83 -0
- package/agents/doc-generator.md +67 -0
- package/agents/docs-reference.md +86 -0
- package/agents/migrator.md +84 -0
- package/agents/process-consultant.md +97 -0
- package/agents/refactorer.md +75 -0
- package/agents/sx-configurator.md +67 -0
- package/commands/changelog.md +66 -0
- package/commands/diagnose.md +67 -0
- package/commands/docs.md +81 -0
- package/commands/document.md +67 -0
- package/commands/explain.md +60 -0
- package/commands/generate.md +111 -0
- package/commands/migrate.md +81 -0
- package/commands/process.md +111 -0
- package/commands/refactor.md +65 -0
- package/commands/review.md +60 -0
- package/commands/sxgen.md +98 -0
- package/commands/test.md +103 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +143 -0
- package/dist/index.js.map +1 -0
- package/package.json +30 -0
- package/skills/advpl-code-generation/SKILL.md +163 -0
- package/skills/advpl-code-generation/patterns-fwformbrowse.md +485 -0
- package/skills/advpl-code-generation/patterns-jobs.md +519 -0
- package/skills/advpl-code-generation/patterns-mvc.md +765 -0
- package/skills/advpl-code-generation/patterns-pontos-entrada.md +708 -0
- package/skills/advpl-code-generation/patterns-rest.md +974 -0
- package/skills/advpl-code-generation/patterns-soap.md +639 -0
- package/skills/advpl-code-generation/patterns-treport.md +481 -0
- package/skills/advpl-code-generation/patterns-workflow.md +779 -0
- package/skills/advpl-code-generation/templates-classes.md +1096 -0
- package/skills/advpl-code-review/SKILL.md +72 -0
- package/skills/advpl-code-review/rules-best-practices.md +444 -0
- package/skills/advpl-code-review/rules-modernization.md +290 -0
- package/skills/advpl-code-review/rules-performance.md +333 -0
- package/skills/advpl-code-review/rules-security.md +302 -0
- package/skills/advpl-debugging/SKILL.md +265 -0
- package/skills/advpl-debugging/common-errors.md +1124 -0
- package/skills/advpl-debugging/performance-tips.md +768 -0
- package/skills/advpl-refactoring/SKILL.md +139 -0
- package/skills/advpl-to-tlpp-migration/SKILL.md +293 -0
- package/skills/advpl-to-tlpp-migration/migration-checklist.md +122 -0
- package/skills/advpl-to-tlpp-migration/migration-rules.md +265 -0
- package/skills/changelog-patterns/SKILL.md +99 -0
- package/skills/code-explanation/SKILL.md +66 -0
- package/skills/documentation-patterns/SKILL.md +172 -0
- package/skills/embedded-sql/SKILL.md +379 -0
- package/skills/probat-testing/SKILL.md +226 -0
- package/skills/probat-testing/patterns-unit-tests.md +614 -0
- package/skills/protheus-business/SKILL.md +92 -0
- package/skills/protheus-business/modulo-compras.md +780 -0
- package/skills/protheus-business/modulo-contabilidade.md +874 -0
- package/skills/protheus-business/modulo-estoque.md +876 -0
- package/skills/protheus-business/modulo-faturamento.md +800 -0
- package/skills/protheus-business/modulo-financeiro.md +1015 -0
- package/skills/protheus-business/modulo-fiscal.md +749 -0
- package/skills/protheus-business/modulo-manutencao.md +848 -0
- package/skills/protheus-business/modulo-pcp.md +743 -0
- package/skills/protheus-reference/SKILL.md +119 -0
- package/skills/protheus-reference/native-functions.md +7029 -0
- package/skills/protheus-reference/rest-api-reference.md +1758 -0
- package/skills/protheus-reference/restricted-functions.md +265 -0
- package/skills/protheus-reference/sx-dictionary.md +854 -0
- package/skills/sx-configuration/SKILL.md +184 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
# TOTVS Restricted Functions, Classes, and Variables
|
|
2
|
+
|
|
3
|
+
> **Source:** https://centraldeatendimento.totvs.com/hc/pt-br/articles/360016461772
|
|
4
|
+
>
|
|
5
|
+
> These functions, classes, and variables are TOTVS internal property. They are NOT documented, NOT supported, and may be altered or removed without prior notice. Using them in custom code is NOT recommended and may cause compilation failures, runtime errors, or unpredictable behavior after updates.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Compilation BLOCKED (since release 12.1.33)
|
|
10
|
+
|
|
11
|
+
These functions **WILL NOT COMPILE** on Protheus 12.1.33 and later:
|
|
12
|
+
|
|
13
|
+
| # | Function | Alternative |
|
|
14
|
+
|---|----------|-------------|
|
|
15
|
+
| 1 | `StaticCall()` | Use public `User Function` or TLPP namespaced calls |
|
|
16
|
+
| 2 | `PTInternal()` | Redesign the logic without internal calls |
|
|
17
|
+
|
|
18
|
+
**References:**
|
|
19
|
+
- [StaticCall replacement](https://centraldeatendimento.totvs.com/hc/pt-br/articles/4411463269911)
|
|
20
|
+
- [PTInternal replacement](https://centraldeatendimento.totvs.com/hc/pt-br/articles/4411463486871)
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Restricted Functions (NOT supported, may change without notice)
|
|
25
|
+
|
|
26
|
+
These functions compile but are NOT supported. They may be altered or removed in future releases.
|
|
27
|
+
|
|
28
|
+
| # | Function/Class | Category |
|
|
29
|
+
|---|----------------|----------|
|
|
30
|
+
| 1 | VALIDAAUTONFE | Fiscal/NF-e |
|
|
31
|
+
| 2 | MA410IMPOS | Faturamento |
|
|
32
|
+
| 3 | MALIBDOFAT | Faturamento |
|
|
33
|
+
| 4 | TFONTEX | UI/Report |
|
|
34
|
+
| 5 | NFEPROCNFE | Fiscal/NF-e |
|
|
35
|
+
| 6 | AVCPYFILE | File I/O |
|
|
36
|
+
| 7 | F_OPCOES | UI |
|
|
37
|
+
| 8 | AUTONFEENV | Fiscal/NF-e |
|
|
38
|
+
| 9 | MASAPREREQ | Faturamento |
|
|
39
|
+
| 10 | FTVDVENDA | Vendas |
|
|
40
|
+
| 11 | MAALCDOC | Faturamento |
|
|
41
|
+
| 12 | FISA022TRS | Fiscal |
|
|
42
|
+
| 13 | FGX_STATF2 | Fiscal |
|
|
43
|
+
| 14 | NG400TAR | Manutencao |
|
|
44
|
+
| 15 | CODSITRI | Fiscal |
|
|
45
|
+
| 16 | IW_MULTILINE | UI |
|
|
46
|
+
| 17 | FWCHKFUNCACCESS | Framework |
|
|
47
|
+
| 18 | WSNFESBRA | WebService NF-e |
|
|
48
|
+
| 19 | SPEDDANFE | Fiscal/SPED |
|
|
49
|
+
| 20 | SPEDPEXP | Fiscal/SPED |
|
|
50
|
+
| 21 | WebService NFESBra | WebService NF-e |
|
|
51
|
+
| 22 | CBGrvEti | Codigo de Barras |
|
|
52
|
+
| 23 | A460ESTORNA | Faturamento |
|
|
53
|
+
| 24 | GETNUMSC7 | Compras |
|
|
54
|
+
| 25 | ISCAIXALOJA | Loja |
|
|
55
|
+
| 26 | XNUMCAIXA | Loja |
|
|
56
|
+
| 27 | CALCEST / CALCESTL | Estoque |
|
|
57
|
+
| 28 | FRTGERASL | Frete |
|
|
58
|
+
| 29 | MSCLEARBUFFER | Framework |
|
|
59
|
+
| 30 | CA100INCL | Ativo Fixo |
|
|
60
|
+
| 31 | SPEDNFERE2 | Fiscal/SPED |
|
|
61
|
+
| 32 | FCARRTAB | Frete |
|
|
62
|
+
| 33 | SALDOTERC | Estoque |
|
|
63
|
+
| 34 | FABAIXACR | Financeiro |
|
|
64
|
+
| 35 | A093PROD | Compras |
|
|
65
|
+
| 36 | OOBJ:GETDATA | Framework |
|
|
66
|
+
| 37 | AVSTACTION | Vendas |
|
|
67
|
+
| 38 | VTGETSENHA | Vendas |
|
|
68
|
+
| 39 | A450GRAVA | Faturamento |
|
|
69
|
+
| 40 | OPENSXS | Framework |
|
|
70
|
+
| 41 | FINA110 | Financeiro |
|
|
71
|
+
| 42 | A410INCLUI | Faturamento |
|
|
72
|
+
| 43 | FP_CODFOL | RH |
|
|
73
|
+
| 44 | NFECABDOC | Fiscal/NF-e |
|
|
74
|
+
| 45 | OPENSRC | Framework |
|
|
75
|
+
| 46 | EXTRACT | Framework |
|
|
76
|
+
| 47 | INCNOTA | Faturamento |
|
|
77
|
+
| 48 | MOVIMENTO | Estoque |
|
|
78
|
+
| 49 | ATFA050 | Ativo Fixo |
|
|
79
|
+
| 50 | PLSQUERY | Saude |
|
|
80
|
+
| 51 | PROXNUM | Framework |
|
|
81
|
+
| 52 | FILE2PRINTER | File I/O |
|
|
82
|
+
| 53 | SPF_SEEK | Framework |
|
|
83
|
+
| 54 | SPF_UPDATE | Framework |
|
|
84
|
+
| 55 | FWSQLUsrFilial | Framework |
|
|
85
|
+
| 56 | APPEND FROM | Database |
|
|
86
|
+
| 57 | ACPORET | Compras |
|
|
87
|
+
| 58 | FBUSCACPO | Framework |
|
|
88
|
+
| 59 | LASTKEY | UI |
|
|
89
|
+
| 60 | RPCSETYPE | Framework |
|
|
90
|
+
| 61 | WFPREPENV | Workflow |
|
|
91
|
+
| 62 | SALDOB2 | Estoque |
|
|
92
|
+
| 63 | TMSA050EDI | EDI |
|
|
93
|
+
| 64 | GERATMP | Framework |
|
|
94
|
+
| 65 | A103ATUSE2 | Faturamento |
|
|
95
|
+
| 66 | CTBANFS | Contabilidade |
|
|
96
|
+
| 67 | WAITRUNSRV | Framework |
|
|
97
|
+
| 68 | A103CONSNFESEF | Fiscal/NF-e |
|
|
98
|
+
| 69 | SPDCRIATRB | Fiscal/SPED |
|
|
99
|
+
| 70 | A103NFISCAL | Faturamento |
|
|
100
|
+
| 71 | TTPVIEWER | UI |
|
|
101
|
+
| 72 | MACANDELF2 | Faturamento |
|
|
102
|
+
| 73 | MADELNFS | Faturamento |
|
|
103
|
+
| 74 | RET_CBARRA | Codigo de Barras |
|
|
104
|
+
| 75 | A440LIBERA | Faturamento |
|
|
105
|
+
| 76 | RFMASHUPS | Framework |
|
|
106
|
+
| 77 | FWJWT2BEAR | Framework/Auth |
|
|
107
|
+
| 78 | CTGERPLAN | Contabilidade |
|
|
108
|
+
| 79 | NXTSX5NOTA | Fiscal |
|
|
109
|
+
| 80 | FMONTA_TPR | Framework |
|
|
110
|
+
| 81 | COPY TO | Database |
|
|
111
|
+
| 82 | FDIASAFASPERIODO | RH |
|
|
112
|
+
| 83 | CBCHKTEMPLATE | Codigo de Barras |
|
|
113
|
+
| 84 | MsExcel | UI/Report |
|
|
114
|
+
| 85 | ENGSX3117 | Engenharia |
|
|
115
|
+
| 86 | FWLOOKUP | Framework |
|
|
116
|
+
| 87 | FRETAFASBRA | RH |
|
|
117
|
+
| 88 | FWMVCROTAUTO | Framework/MVC |
|
|
118
|
+
| 89 | MontaBlock | Framework |
|
|
119
|
+
| 90 | A94EXLIBER | Compras |
|
|
120
|
+
| 91 | ESTRUT | Engenharia |
|
|
121
|
+
| 92 | A030ALTERA | Cadastros |
|
|
122
|
+
| 93 | MSFCREATE | Framework |
|
|
123
|
+
| 94 | TMSA200PRC | EDI |
|
|
124
|
+
| 95 | HEADPROVA | Framework |
|
|
125
|
+
| 96 | DETPROVA | Framework |
|
|
126
|
+
| 97 | PARAMBOX | UI |
|
|
127
|
+
| 98 | FWUIWORKSHEET | UI |
|
|
128
|
+
| 99 | CrdXTitAtr | Financeiro |
|
|
129
|
+
| 100 | MA410RODAP | Faturamento |
|
|
130
|
+
| 101 | WRITEPROFDEF | Framework |
|
|
131
|
+
| 102 | FINDPROFDEF | Framework |
|
|
132
|
+
| 103 | CBOPENPORT | Codigo de Barras |
|
|
133
|
+
| 104 | FATATUEMPN | Faturamento |
|
|
134
|
+
| 105 | MAAVALSC9 | Faturamento |
|
|
135
|
+
| 106 | VLDLOCALIZ | Estoque |
|
|
136
|
+
| 107 | A410MultT | Faturamento |
|
|
137
|
+
| 108 | PivotTable | UI |
|
|
138
|
+
| 109 | A381Manut | Compras |
|
|
139
|
+
| 110 | MATXFIS | Fiscal |
|
|
140
|
+
| 111 | MaFisAdd | Fiscal |
|
|
141
|
+
| 112 | CTGercomp | Contabilidade |
|
|
142
|
+
| 113 | WFNotifyAdmin | Workflow |
|
|
143
|
+
| 114 | a260Processa | Compras |
|
|
144
|
+
| 115 | a415Tabela | Faturamento |
|
|
145
|
+
| 116 | MaAvalCred | Faturamento |
|
|
146
|
+
| 117 | A100Distri | Compras |
|
|
147
|
+
| 118 | __SaveParam() | Framework |
|
|
148
|
+
| 119 | A110APROV | Compras |
|
|
149
|
+
| 120 | MDeMata103 | Faturamento |
|
|
150
|
+
| 121 | BuscaTaxa() | Financeiro |
|
|
151
|
+
| 122 | CriaVar | Framework |
|
|
152
|
+
| 123 | E_FIELD | Framework |
|
|
153
|
+
| 124 | ApOleClient | OLE/COM |
|
|
154
|
+
| 125 | GetServerPort | Framework |
|
|
155
|
+
| 126 | CheckStation | Framework |
|
|
156
|
+
| 127 | CTBAFIN | Contabilidade |
|
|
157
|
+
| 128 | A415DESCAB | Faturamento |
|
|
158
|
+
| 129 | A410RECALC | Faturamento |
|
|
159
|
+
| 130 | X31UPDTABLE | Framework |
|
|
160
|
+
| 131 | FA050Venc | Faturamento |
|
|
161
|
+
| 132 | A097ProcLib | Compras |
|
|
162
|
+
| 133 | MaAvLibPed | Faturamento |
|
|
163
|
+
| 134 | A120Pedido | Compras |
|
|
164
|
+
| 135 | LoadLayout() | Framework |
|
|
165
|
+
| 136 | FtNfDevol | Faturamento |
|
|
166
|
+
| 137 | FtNfVendas | Faturamento |
|
|
167
|
+
| 138 | TK271CallCenter | Call Center |
|
|
168
|
+
| 139 | LJ7VENDA | Loja |
|
|
169
|
+
| 140 | MA020PcCgc | Cadastros |
|
|
170
|
+
| 141 | A140NFiscal | Compras |
|
|
171
|
+
| 142 | procMonitorDoc | Framework |
|
|
172
|
+
| 143 | ProxDoc | Framework |
|
|
173
|
+
| 144 | PutMarcacoes | Framework |
|
|
174
|
+
| 145 | Fa050Visua | Faturamento |
|
|
175
|
+
| 146 | SaldoCt7 | Contabilidade |
|
|
176
|
+
| 147 | F4LOTE | Estoque |
|
|
177
|
+
| 148 | CBRetEtiEan | Codigo de Barras |
|
|
178
|
+
| 149 | RetSldEnd | Estoque |
|
|
179
|
+
| 150 | A310Proc | Compras |
|
|
180
|
+
| 151 | SpedNFeTrf | Fiscal/SPED |
|
|
181
|
+
| 152 | SetPrvt | Framework |
|
|
182
|
+
| 153 | TK273GRVPTC | Call Center |
|
|
183
|
+
| 154 | APPEXCEL | UI/Report |
|
|
184
|
+
| 155 | VTNewEmpr | Vendas |
|
|
185
|
+
| 156 | TWFMAIL | Workflow |
|
|
186
|
+
| 157 | MaColsToFis | Fiscal |
|
|
187
|
+
| 158 | FWAUTHUSER | Framework/Auth |
|
|
188
|
+
| 159 | fBuscaSal | RH |
|
|
189
|
+
| 160 | XFUNWizard | Framework |
|
|
190
|
+
| 161 | A410Altera | Faturamento |
|
|
191
|
+
| 162 | MC050CON | PCP |
|
|
192
|
+
| 163 | AVGXML2DBF | XML |
|
|
193
|
+
| 164 | MaLiberOk | Faturamento |
|
|
194
|
+
| 165 | MaRgrDesc | Faturamento |
|
|
195
|
+
| 166 | ApiForCli | API |
|
|
196
|
+
| 167 | A415Baixa | Faturamento |
|
|
197
|
+
| 168 | INFImpBMP | Report |
|
|
198
|
+
| 169 | STBCalcSald | Estoque |
|
|
199
|
+
| 170 | FVALBENNIF | Fiscal |
|
|
200
|
+
| 171 | A450F4Con | Faturamento |
|
|
201
|
+
| 172 | EECView | Framework |
|
|
202
|
+
| 173 | CALLPROC | Framework |
|
|
203
|
+
| 174 | TWorkspace | Framework |
|
|
204
|
+
| 175 | TWorkspaceFolder | Framework |
|
|
205
|
+
| 176 | ExplEstr | Engenharia |
|
|
206
|
+
| 177 | RetFldProd | Estoque |
|
|
207
|
+
| 178 | STWMANAGREPORTPRINT | Report |
|
|
208
|
+
| 179 | CN300VlCli | Contratos |
|
|
209
|
+
| 180 | OpenFile | File I/O |
|
|
210
|
+
| 181 | __CopyFile | File I/O |
|
|
211
|
+
| 182 | MATFilCalc | Fiscal |
|
|
212
|
+
| 183 | A161MapCot | Compras |
|
|
213
|
+
| 184 | INFCodeBare | Report |
|
|
214
|
+
| 185 | INFTexto | Report |
|
|
215
|
+
| 186 | CallRM | Integracao |
|
|
216
|
+
| 187 | DistanciaGPS | GPS |
|
|
217
|
+
| 188 | TECGtCoord | GPS |
|
|
218
|
+
| 189 | NG420GRAVA | Manutencao |
|
|
219
|
+
| 190 | RetSem | Framework |
|
|
220
|
+
| 191 | nBIWeekOfYear | BI |
|
|
221
|
+
| 192 | TAvPrinter | Report |
|
|
222
|
+
| 193 | CTGerComp | Contabilidade |
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Common Alternatives
|
|
227
|
+
|
|
228
|
+
| Restricted | Supported Alternative |
|
|
229
|
+
|------------|----------------------|
|
|
230
|
+
| `StaticCall()` | `User Function` (public scope) or TLPP namespace |
|
|
231
|
+
| `PTInternal()` | Redesign logic |
|
|
232
|
+
| `PARAMBOX` | `Pergunte()` with SX1 or `FWInputDialog()` |
|
|
233
|
+
| `MsExcel` | `FWMsExcel` class |
|
|
234
|
+
| `CriaVar` | `FWCriaVar()` |
|
|
235
|
+
| `LASTKEY` | Specific navigation control |
|
|
236
|
+
| `SetPrvt` | Declare `Private` variables explicitly |
|
|
237
|
+
| `MontaBlock` | Build code blocks with `{|| ... }` |
|
|
238
|
+
| `FWMVCROTAUTO` | `FWExecView()` for MVC routine automation |
|
|
239
|
+
| `FWLOOKUP` | `FWInputDialog()` or standard F3 lookup |
|
|
240
|
+
| `OPENSXS` | Framework opens tables automatically |
|
|
241
|
+
| `APPEND FROM` | `RecLock` + field-by-field copy |
|
|
242
|
+
| `COPY TO` | `RecLock` + field-by-field copy |
|
|
243
|
+
| `LoadLayout()` | `FWLoadLayout()` |
|
|
244
|
+
| `PivotTable` | `FWPivotTable` |
|
|
245
|
+
| `ApOleClient` | `FWMsExcel` for Excel operations |
|
|
246
|
+
| `FWAUTHUSER` | Proper REST authentication mechanisms |
|
|
247
|
+
| `E_FIELD` | `GetSx3Cache()` or `TamSx3()` |
|
|
248
|
+
| `APPEXCEL` | `FWMsExcel` class |
|
|
249
|
+
| `FWJWT2BEAR` | Standard JWT/OAuth implementations |
|
|
250
|
+
| `OpenFile` | `FT_FUse()` / `FOpen()` / `FRead()` |
|
|
251
|
+
| `__CopyFile` | `CpyS2T()` or `FWFileCopy()` |
|
|
252
|
+
| `__SaveParam()` | `PutMV()` or custom save logic |
|
|
253
|
+
| `PROXNUM` | `GetSXENum()` for automatic numbering |
|
|
254
|
+
| `FILE2PRINTER` | `FWMsPrinter` class |
|
|
255
|
+
| `GERATMP` | `CriaTrab()` for temporary tables |
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## Important Notes
|
|
260
|
+
|
|
261
|
+
1. **No support:** TOTVS support does NOT assist with issues caused by restricted function usage.
|
|
262
|
+
2. **No notice:** These functions may be altered or removed in any release without prior notice.
|
|
263
|
+
3. **Updates break code:** After Protheus updates, code using restricted functions may silently fail or produce incorrect results.
|
|
264
|
+
4. **Compilation block:** The list of blocked functions may grow in future releases.
|
|
265
|
+
5. **Alternatives exist:** For every restricted function, there is a supported alternative. If unsure, consult TDN or open a request in the Central Colaborativa.
|