aRotinaGlobal variable exposed by MenuDef. It receives additional menu options and is not a formal MTA103MNU parameter.
AdvPL GuideUser Function MTA103MNU()Adds custom options to the MATA103 Incoming Document aRotina menu array.
MTA103MNU runs in MenuDef while the Incoming Document menu is being assembled. It receives no formal parameters: the customization appends items to the global aRotina array, usually with AAdd(). The official page consulted lists Protheus 10 and 11; confirm availability and the expected menu structure in the release you use.
User Function MTA103MNU()aRotinaGlobal variable exposed by MenuDef. It receives additional menu options and is not a formal MTA103MNU parameter.
No return value is documented. The customization directly changes the global aRotina array.
#Include "TOTVS.ch"
User Function MTA103MNU()
Local aNewOption := { ;
"Additional inquiry", ;
"U_InputInquiry", ;
0, ;
2, ;
0, ;
.F. ;
}
AAdd(aRotina, aNewOption)
Return
User Function InputInquiry()
MsgInfo("Additional inquiry for the incoming document.", "MATA103")
ReturnWhile building the MATA103 menu, Protheus adds “Additional inquiry” and runs U_InputInquiry when it is selected. Validate the historical array positions in the release in use.
© 2026 Usina.BR. Todos os direitos reservados. TOTVS, Protheus, Microsiga e seus respectivos logotipos são marcas de titularidade da TOTVS S.A. AdvPL é uma linguagem de programação desenvolvida pela TOTVS. O AdvPL Guia é um projeto independente, sem vínculo, representação, patrocínio ou afiliação com a TOTVS S.A., suas franquias ou representantes.