HFM_LoadDimTables

Hello

I would like to retrieve the attribute IsICP of the accounts of HFM in FDM.

The HFM_LoadDimTables does the work for the account and description, but I was not able to change or add a parameter for the isICP. A column already exists in the FDM table, but the code is very advanced and beyond my coding skills...

below the part that I think should be changed. Any help appreciated

and sorry I posted this in the forum consolidation by mistake...

' Declare local variables

Dim objBP

Dim session.contents.Count

I have Sun

Dim varList

Dim rsAppend

Dim strMessage

' Intiialize processor block (API Active Pass & Script object references)

Set objBP = CreateObject ("upsWBlockProcessorDM.clsBlockProcessor")

objBP.Initialize API, SCRIPTENG

'Call the Action to connect to the active integration block '.

API set. IntBlockMgr.IntegrationMgr.PobjIntegrate = objBP.ActConnect ("GetDimensionMembers")

"Check the connection and start checking the intersections"

If API. So IntBlockMgr.IntegrationMgr.PobjIntegrate.intResult

'Delete any existing values '.

If API. DataWindow.DataManipulation.fExecuteDML("DELETE FROM tDimAccount", True) then

' Open the target account table to append

Set rsAppend = API. DataWindow.DataAccess.farsTableAppend ("tDimAccount")

' Execute method and assign the return value

varList = API. IntBlockMgr.IntegrationMgr.PobjIntegrate.varCon.fListAccounts (False)

For LBound(varList,2) to UBound(varList,2) = session.contents.Count

rsAppend.addnew

rsAppend.Fields ("TargAcctKey"). Value = varList(0,lngCount)

If InStr (1, varList(1,lngCount), "[" "]") > 1 Then

rsAppend.Fields ("TargAcctDesc"). Value = Trim (Left (Left (varList(1,lngCount), InStr (1, varList(1,lngCount), "[" "]")-1), 50))

If InStr (InStr (1, varList(1,lngCount), "[" "]"), varList(1,lngCount), ",") > 0 Then

rsAppend.Fields ("TargAcctType"). Value = Mid (varList(1,lngCount), InStr (1, varList(1,lngCount), "[" "]") + 1, InStr (InStr (1, varList(1,lngCount), "[" "]"), varList(1,lngCount), ",")-InStr (1, varList(1,lngCount), "[" "]")-1)

On the other

rsAppend.Fields ("TargAcctType"). Value = Mid (varList(1,lngCount), InStr (1, varList(1,lngCount), "[" "]") + 1, InStr (InStr (1, varList(1,lngCount), "[" "]"), varList(1,lngCount),"]" ")-InStr (1, varList(1,lngCount)," [""] ")-1)

End If

On the other

rsAppend.Fields ("TargAcctDesc"). Value = Trim (Left (varList(1,lngCount), 50))

rsAppend.Fields ("TargAcctType"). Value = "no Type of".

End If

rsAppend.Fields ("TargAcctIndex"). Value = session.contents.Count '

rsAppend.Fields ("TargAcctGroup"). Value = 'account '.

rsAppend.Update

Next

rsAppend.Close

Set rsAppend = Nothing

End If

Hello

Function fListAccounts returns a matrix with Codes of account - account Descriptionts (varList)

varList(0,i) = member account

varList(1,i) = account description

This function returns any other information.

If you want to get the ISICP property, you can adjust the script to include lack of columns:

rsAppend.Fields ("TargAcctISICP"). Value = API. IntBlockMgr.IntegrationMgr.PobjIntegrate.varCon.fIsAccountICP (varList(0,lngCount))

Tags: Business Intelligence

Similar Questions

  • FDMEE - how to get the CustomXTopMember of account

    Hello

    IM on a Migration FDMEE and facing some challenging subjects, I could solve of FDM in time, but where im struggling right now.

    To check if the target account has a certain Member of Top Custom3 I used in the BefImportScript the following function:

    ******************************************************************************************************************************************************************************

    «Get the imported data to the work table»

    Set rs = DW. DataAccess.farsTable (API. ArchiveMgr.State.GstrActiveWorkTableName)

    If it is rs.bof and not rs.eof then

    While Not rs.eof

    strTAcc = rs. Fields ("ACCOUNTX")

    strC3TM = UCase (HFM.fGetCustomTopMember (strTAcc, 10))

    strC3 = rs. Fields ("UD3")

    If Left(strC3,4) = "DISP" then

    vLH = 'DISP '.

    On the other

    vLH = 'ADD '.

    End If

    Select the strC3TM box

    Case "AS_TABLE".

    strC3Target = vLH & "_COST.

    Case "BS".

    strC3Target = "[NONE]".

    Case "BS_INVENTORY".

    strC3Target = "[NONE]".

    Case "EKINV".

    strC3Target = vLH & "_EK".

    Case "PROV.

    strC3Target = vLH & "_PROV".

    Case 'MOVE_SEC', 'MOVE_SEC_BS '.

    strC3Target = vLH & "_SEC.

    Case Else

    strC3Target = "Custom3 unmapped upper limb - BefProcMap.

    Select end

    RS. Fields ("UD3X") = strC3Target

    ************************************************************************************************************************************************************************************

    Now I need to to that as well in the FDMEE and im struggeling to find the same functions.

    Any help on this? If I can do it in the map that would be ok as well.

    ########

    Update: I used as well the 'HFM_LoadDimTables' function in the environment of FDM to grap denunciations of the application of HFM to the internal Table of FDM. It was that already contains a lot of information that I could then recover for my purpose.

    I found on the FDMEE Database Table AIF_HS_DIM_Member, which seems to be a good table with interesting information about the target member and their settings. But now it is empty. Any of you know how to fill this table? is there as it was in FDM a default Script that would do that? THX

    #######

    see you soon

    Are what version of FDMEE you?

    My suggestion is always to have a SQL view on top of HFM account metadata. You can then query this view easily from scripts.

    Concerning

  • Stale members names / descriptions in tdimUD2 table in MDF

    Hello

    I'm under custom reports of FDM and join on the table of tDimUD2 to pull in the description of the Member, but note that the table is not updated.  Is there another table that I use or y at - it a way to refresh these dimension tables?  I'm on 11.1.2.3.500

    Thanks in advance.

    Mark

    I found the solution in another forum.  All I had to do was executed the script HFM_LoadDimTables in FDM just in case someone else needs to know.

  • How can I shoot target entity default currency of HFM

    Hi all

    I saw in FDM there is the possibility to fill a tDimEntity table that includes a field for the currency of target feature so that I can do a test that import data is in good currency for entities of the target, but at the moment I can't work a 'dynamic' way to populate this table. The script FDM sent to pull metadata HFM in tDim MDF tables does not seem to fire member name and alias for the entities (HFM_LoadDimTables).

    Concerning
    Stuart

    There is not a direct relationship between the ID in the currency table and the ID of stored value to represent the default currency. A calculation must be performed using the ID in the table VALUEITEM. This is because data can be stored against any of the value of currency entiity triplet. That's why derive your currency by default of your currency, you must do the following calculation (currency default entity ID - ID) / 3 = currency code

Maybe you are looking for

  • iPad Mini is Malfuntioning...

    Hello, I am using ipad mini wifi. I used a day before and it worked perfectly... The next day; It presents the series of questions; 1. the battery is stuck at 49%. His power not detect (not load) or its been detected by the PC. 2 safari does not open

  • Stopping ANNOYING ads

    How can I stop them altogether? If you can't do it I'll just uninstall Skype.

  • HP 6500 e709a CB815A Officejet: print emails * no room company

    Things were going well until this week. When I tried to print an e-mail message and the left side of the message has been cut. About a quarter to a half inch is not printed. Wife's computer is on the same network, connected to the same printer. His c

  • SPA8000 GPON sip GPON del oneway speech

    I have SPA8000 with 6 SIP PBX lines. Call SIP GPON to speech always way Del GPON. So that SIP SIP, SIP to PSTN, everything ok. This problem is on version 6.1.10 while 5.10.1 is ok. PL inform what establishes the difference between these two versions.

  • The music changes when I 'publish '.

    I made a movie & trimmed a clip of music because I don't want the music to start until the chorus, t begins in the perfect location and I've recorded.But when I published the film music is different and he's starting to halfway through the first vers