aRotinaGlobal variable assembled 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 the MenuDef function of the Incoming Document routine while the aRotina array is being assembled. It receives no formal parameters: the customization changes the global aRotina array, usually with AAdd(), to insert new menu options. The official TDN page consulted lists Microsiga Protheus 10 and 11; confirm availability, contract and expected menu structure in the release you use.
User Function MTA103MNU()aRotinaGlobal variable assembled by MenuDef. It receives additional menu options and is not a formal MTA103MNU parameter.
Source programMATA103.PRW — Incoming Document routine.
Documented scopeMicrosiga Protheus 10 and Microsiga Protheus 11, according to the TDN page consulted.
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. The numeric and logical values follow the format shown in the historical TDN documentation and must be validated in the release in use.
© 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.