Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

AP5Wab

AP5Wab() --> lRet

Opens the historical email address book.

AP5WabAdvPL
01 · OVERVIEW

Overview

The official page describes an address-book maintenance window showing customers, suppliers, sales representatives and contacts according to user access. Its listed scope is Protheus 10 and 11. A .T. result indicates OK was clicked; it does not establish email sending or a completed business transaction. The page lists historical access codes 126, 127, 128 and 146, which require verification in the current environment. (TOTVS, n.d., ref. 1)

02 · SYNTAX

Syntax

AP5Wab() --> lRet

Return value

Logical: .T. when the user clicks OK, according to the historical page.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function EdAp5Wab()
    Local lConfirmed
    // Opens the interface under session permissions; sends no message.
    lConfirmed := AP5Wab()
    ConOut(cValToChar(lConfirmed))
Return Nil
Expected result

Proposes opening the window and logging only its answer; no address is logged. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Use test data and an authorized session. Distinguish AP5Wab from the Ap5WABbtn entry point; do not use it in jobs or REST.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. AP5Wab. TDN. Accessed on 2026-10-25.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha