SetAccessRights

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

Note:

If you remove a user’s access rights to a transaction, the transaction remains in the HsvICTransactionsData instance’s array of transactions. However, attempting to access the transaction would cause an error.

Syntax

<HsvICTransactionsData>.SetAccessRights lItem, vbReadAccess, lWriteAccess

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.

vbReadAccess

Boolean (ByVal). A flag that specifies the user’s read access rights. Pass TRUE to grant read access rights, FALSE to remove them.

lWriteAccess

Long (ByVal). A flag that specifies the user’s write access rights. Pass one of the following values:

  • 0 = Read-only access.

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

  • 2 = Write access.