GetAccessRights

Gets the user’s read and write access rights to an intercompany transaction.

Syntax

<HsvICTransactionsData>.GetAccessRights lItem, pvbReadAccess, plWriteAccess

Argument

Description

lItem

Long (ByVal). The index of the transaction in the HsvICTransactionsData instance’s array of intercompany transactions.

You can get the upper bounds of the index by subtracting one from the count of transactions returned by BeginDataEnum.

pvbReadAccess

Boolean. Returns the user’s read access rights. TRUE indicates that the user has read access.

plWriteAccess

Long. Returns the user’s write access rights. The following list describes the valid values:

  • 0 = Read-only access.

  • 1 = User is allowed to specify reason codes for the Intercompany Partner transactions even if the user lacks write access to those transactions.

  • 2 = Write access.