Returns an intercompany transaction’s details, including the transaction’s amounts, currency, dimension members, and so on.
<HsvICTransactionsData>.GetICTransactionData lItem, plSequenceId, plEntity, plICP, plAccount, plCustom1, plCustom2, plCustom3, plCustom4, plTransactionCurrency, plPostStatus, plMatchStatus, plReasonCode, plType, pdModifiedDate, pdTransactionDate, pdAmount, pdLocalAmount, pdRate, pbstrUser, pbstrId, pbstrSubId, pbstrReferenceId, pbstrMatchCode, pbstrComment1, pbstrComment2
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. | |
Long. Returns the member ID of the transaction’s Entity dimension member. | |
Long. Returns the member ID of the transaction’s Intercompany Partner dimension member. | |
Long. Returns the member ID of the transaction’s Account dimension member. | |
Long. Returns the member ID of the transaction’s Custom 1 dimension member. | |
Long. Returns the member ID of the transaction’s Custom 2 dimension member. | |
Long. Returns the member ID of the transaction’s Custom 3 dimension member. | |
Long. Returns the member ID of the transaction’s Custom 4 dimension member. | |
Long. Returns the currency ID of the transaction’s currency. You can get the currency’s label by passing this ID to the HsvCurrencies method GetCurrencyLabel. | |
Long. Returns the transaction’s posting status. Valid values are represented by the HFMConstants type library constants listed in Posting Status Constants. | |
Long. Returns the transaction’s matching status. Valid values are represented by the HFMConstants type library constants listed in Matching Status Constants. | |
Long. Returns the ID of the transaction’s reason code. To get the reason code, pass this ID to the HsvICM method GetICReasonCodeLabel. | |
Double. Returns a timestamp that identifies when the transaction was last modified. The timestamp is formatted as a Double. | |
Double. Returns the conversion rate, which represents the transaction amount divided by the entity currency amount. | |
String. Returns the username of the user who last updated the transaction. | |
The following subroutine prints to Visual Basic’s Immediate window the Transaction ID, Sub ID, and hexadecimal HRESULT of the transactions contained by an HsvICTransactionsData instance. The subroutine’s arguments specify the transactions’ scenario, year, and period. GetErrorStatus obtains each transaction’s HRESULT.
Sub printTransErrs(lScen As Long, lYear As Long, lPer As Long) Dim cIcTransData As HsvICTransactionsData, cIcm As HsvICM, lItems As Long Dim lSeqId As Long, lEnt As Long, lIcp As Long, lAcct As Long Dim lCust1 As Long, lCust2 As Long, lCust3 As Long, lCust4 As Long Dim lCurr As Long, lPostStat As Long, lMatchStat As Long, lRCode As Long Dim lType As Long, dModDate As Double, dTrDate As Double, dAmt As Double Dim dLocAmt As Double, dRate As Double, sUser As String, lErr As Long Dim sTranId As String, sSubId As String, sRefId As String Dim sMatchCode As String, sComm1 As String, sComm2 As String Set cIcTransData = New HsvICTransactionsData 'g_cSession is an HsvSession object reference Set cIcm = g_cSession.ICM cIcTransData.Initialize lScen, lYear, lPer cIcm.GetICTransactions cIcTransData, True cIcTransData.BeginDataEnum lItems For i = 0 To lItems - 1 cIcTransData.GetErrorStatus i, lErr cIcTransData.GetICTransactionData i, lSeqId, lEnt, lIcp, lAcct, _ lCust1, lCust2, lCust3, lCust4, lCurr, lPostStat, lMatchStat, _ lRCode, lType, dModDate, dTrDate, dAmt, dLocAmt, dRate, sUser, _ sTranId, sSubId, sRefId, sMatchCode, sComm1, sComm2 Debug.Print sTranId & " - " & sSubId & ": " & Hex(lErr) Next i cIcTransData.EndDataEnum End Sub