Hi Experts.
I'm having a problem with the rule to populate the Automated Consolidation Journals for all Elim. entries made during the HFM consolidation process.
My application is set to use Consolidation Rules and I have incorporated the standard consolidation rules and they are working fine.
An Oracle tutorial says to use the HS.Con "",vPCon,"text identifier").
I added this rule at the end of my consolidate section, and the Journals were getting generating at the "Elimination" value member, but the amounts were not the correct Elimination amounts we should be seeing.
' Call Hs.Con with Nature to track elims so that Automated Consolidation Journals can be generated.
Set vDataUnit = HS.OpenDataUnit("")
vPCon = HS.Node.PCon("")
vNumItems = vDataUnit.GetNumItems()
For i = 0 To vNumItems - 1
Call vDataUnit.GetItem(i, vAccount, vICP, vCustom1, vCustom2, vCustom3, vCustom4, dData)
If HS.Account.IsICP(vAccount) Then
Call HS.Con("V#[Elimination]", vPCon, "Elimination")
End If
Next
End Sub
So I then tried to integrate Oracle’s suggested rule HS.Con("", vPCon, "Elimination") right into the main consolidation script, but then we don’t get any parent level data when consolidating (like it breaks the consolidation before it can finish properly).
Should we be using a rule something like this to ensure we are grabbing the Elimination value member when running the Open Data Unit loop?
Set vDataUnit = HS.OpenDataUnit("")
vNumItems = vDataUnit.GetNumItems()
For i = 0 To vNumItems - 1
Call vDataUnit.GetItem(i, vAccount, vICP, vCustom1, vCustom2, vCustom3, vCustom4, dData)
If HS.Account.IsICP(vAccount) Then
povValue= "[Elimination]" or use a variable like Set vElim = HS.Account.Elimination
Call HS.Con (vElim,vpCon, "Elimination")
End If
Next
Do you have any suggestions for how to make the rule work to populate the journals with the data from the Elimination value member of each ICP account?
Thanks very much in advance.
Mark Smith
Here is the data I get in my journals:
Sample Report showing Elim Journals
Application: CENXTEST | Scenario: Actual |
User: cenxadmin@Native Directory | Year: 2018 |
Date: 5/28/2015 | Period: Feb |
Time: 11:28:06 AM | Value: [Elimination] |
Status Filter: Working,Submitted,Approved,Rejected,Posted |
Type Filter: Auto-Reversing,Regular,Auto-Reversal |
Balance Type Filter: Balanced,Balanced by Entity,Unbalanced |
Entity | Label | Description | Account | ICP | Debit | Credit |
TOT_OPS | CENX_CONS_TOT_OPS_Elimination | CENX_CONS.TOT_OPS | 1519200 | 0502 | |
0540 | |
NA_OPS_W_CORP | TOT_OPS_NA_OPS_W_CORP_Elimination | TOT_OPS.NA_OPS_W_CORP | 1519200 | 0502 | |
0540 | |
NA_OPS | NA_OPS_W_CORP_NA_OPS_Elimination | NA_OPS_W_CORP.NA_OPS | 1519200 | 0502 | |
0540 | |
CAKY | NA_OPS_CAKY_Elimination | NA_OPS.CAKY | 1519200 | 0540 | |
0502 | CAKY_0502_Elimination | - CAKY.0502
| 1519200 | 0540 | |
CASC | NA_OPS_CASC_Elimination | NA_OPS.CASC | 1519200 | 0502 | |
0540 | CASC_0540_Elimination | - CASC.0540
| 1519200 | 0502 | |
Total | | |
Here is another rule we tried but it didn’t work:
Dim vPCon
Dim vElim
Dim vNumItems
vPCon = HS.Node.PCon("")
Set vDataUnit = HS.OpenDataUnit("")
vNumItems = vDataUnit.GetNumItems()
For i = 0 To vNumItems - 1
Call vDataUnit.GetItem(i, vAccount, vICP, vCustom1, vCustom2, vCustom3, vCustom4, vData)
If HS.Account.IsICP(vAccount) Then
Set vElim =HS.Account.Elim(vAccount)
Call HS.Con(vElim, vPCon, "Elimination")
End If
Next