HsvICTransactionsData Object Methods

The HsvICTransactionsData object provides methods for working with intercompany transactions. An HsvICTransactionsData instance contains an array of intercompany transactions for a given scenario, year, and period, and enables you to access specific transactions and to process all of the array’s transactions.

The HsvICTransactionsData object supplements the intercompany transaction features exposed by the HsvICM object. For example, you can use the HsvICTransactionsData object to get the details of an existing intercompany transaction.

To use the HsvICTransactionsData object, you must call certain methods in the sequence described in the following steps.

  To use the HsvICTransactionsData object:

  1. Set an HsvICTransactionsData object reference using the Set and New keywords as shown below:

    Dim cIcTransData As HsvICTransactionsData
    Set cIcTransData = New HsvICTransactionsData
  2. Call Initialize to specify the scenario, year, and period for the transactions.

  3. Perform one of the following steps:

    1. If you are processing all transactions for a scenario, year, and period, pass the object reference to HsvICM.ProcessAllICTrans.

    2. If you are working with given transactions, pass the HsvICTransactionsData object reference to HsvICM.GetICTransactions and then take the following steps:

      1. Begin the enumeration of the array by calling BeginDataEnum, which returns the number of transactions added to the array.

      2. Work with the transactions, which are identified by index. This is a zero-based index. You can obtain the upper bounds of the index by subtracting one from the count returned by BeginDataEnum.

      3. After you have finished with the transactions, clean up by calling EndDataEnum.

For an code snippet that demonstrates these steps, see the examples for the HsvICM methods HsvICM.ProcessAllICTrans and GetICTransactionData.

The HsvICTransactionsData object’s methods are summarized in HsvICTransactionsData Object Overview, and are described in detail in the following topics.