SetReasonCodeToICTransactions
Sets the reason code for one or more intercompany transactions.
The intercompany transactions are identified by sequence IDs. The sequence IDs and the transactions’ members of the Entity and Intercompany Partner dimensions are passed in arrays that have a one-to-one correspondence.
Tip: | To obtains transactions’ sequence IDs and dimension members, use the HsvICTransactionsData object’s GetICTransactionData method. |
Syntax
<HsvICM>.SetReasonCodeToICTransactions(lScenario, lYear, lPeriod, lReasonCodeID, varalSeqIDs, varalEntities, varalICPs)
Argument | Description |
---|
lScenario | Long (ByVal). The member ID of the transactions’ Scenario dimension member. |
lYear | Long (ByVal). The member ID of the transactions’ Year dimension member. |
lPeriod | Long (ByVal). The member ID of the transactions’ Period dimension member. |
lReasonCodeID | Long (ByVal). The ID of the reason code to set. |
varalSeqIDs | Long array (ByVal). The transactions’ sequence IDs. |
varalEntities | Long array (ByVal). The member IDs of the transactions’ Entity dimension members. |
varalICPs | Long array (ByVal). The member IDs of the transactions’ Intercompany Partner dimension members. |
Return Value
String. Returns an XML string that describes the transactions for which the reason code was set. The following table describes the XML string.
Table 73. SetReasonCodeToICTransactions Return Value XML String
Element | Description |
---|
ictransactions | Root element, and contains one <transaction> per intercompany transaction. |
transaction | Represents an intercompany transaction, and contains the dimension member, ID, and HRESULT elements described in the following rows. |
entity | The label of the transaction’s Entity dimension member. |
partner | The label of the transaction’s Intercompany Partner dimension member. |
account | The label of the transaction’s Account dimension member. |
transid | The transaction’s Transaction ID. |
transsubid | The transaction’s Sub ID. |
hresult | The HRESULT associated with updating the transaction’s reason code. |