FDM - Script

Hi Friends
We currently load data into essbase through FDM. After the data is loaded we are running the Essbase calc manually which we want to automate.
Can some one please help me with the script which can be incorporated within FDM which will call for the calc after the data is loaded.
Thanks in advance for your help.
Regards
Murali

Actually if you want to set off a calculation in Essbase using FDM, this is how you do it:
1. Under Integration settings enable consolidation
2. For Default Calculation Method under integration settings choose file
3. Create a validation entity for your Essbase location
4. Where it says Parent Entity put in the exact name of your calc script ie CalcDB
5. For Entity I always have put the top level member Entity
6. Check the consolidate box
7. Start period is 0
8. Type - All
9. Sequence 0
10. Assign this validation entity to your essbase location.

Similar Messages

  • FDM Script - Set to run at a specific time of day??

    Can you set an FDM script to run at a certain time of day (based on
    server time)? I've currently got a Custom/General script I'd like to
    run once a day at a set time.
    Thanks!

    You need the use task manager for that.
    I suggest you look in the admin guide for more info.
    If I’m not mistaken, you need to enable in the application setting and then you can use it from the tools menu in the Workbench.

  • FDM Scripting Query for last imported source file using Batch Processing

    Hi Experts,
    I'm currently in the processing of automating the FDM load process on our version of FDM 9.3.3 using batch processing and the FDM Task Manager. Most of the process works fine including an email alert which notifies users of when a data load has taken place.
    As part of that email alert I am trying to attach the source file that has been loaded in batch processing. I have managed to get an attachment using the following FDM Script Object of:
    "API.MaintenanceMgr.fPartLastFile(strLoc, True, False)".
    But have noticed that using this only attaches the last "manually" imported file rather than the last file imported using the batch processing.
    My question is: Is it possible for someone to steer me into the right direction of either a more appropriate API or if I have missed a step in my script.
    Any help as always would be much appreciated.
    Cheers
    Pip

    Unfortunately the batch process does not work the same way as on-line. I am assuming you are using the normal batch load and not Multiload (although the batch is simisar).
    the batch file name gets recorded on the tBatchContents table, and moved to the import/batches folder under the folder for the current batch run. However, if successful the file gets deleted (and from memory does not get archived). To add the import file to the e-mail, after a successful load, i think you will need to store a copy of it prior to importing the file.

  • FDM Script to import data

    Hi,
    I'm new to FDM scripting. So any pointers will be appreciated. I need to import a TB with the following format in exel file.
    row1 ***CostCenter Number***
    row2 ***TB name*
    row3 - Other parameters
    row4 - Blank
    row5 - Data headers
    row6 - Data begins - format given below -
    row7 - Account Desc Opening Bal Closing Bal
    I have created an import format with the 4 fields - CostCentre, Account,Desc and closing bal. Now my question is -
    1. How do i create script that picks the costcenter number from row1 ?
    Thanks in Advance!!

    That format will not work in an excel file, FDM requires a specific excel template, also the FDM excel templates do not use import scripts,so first convert to a csv file.
    You will then need to use a temporary variable for this e.g. RES.PvarTemp1 and create 2 import scripts
    Assuming that cost centre is the only value on line one of the file what you need to do is:
    Attach an Import script to the Amount entry in your import format and put in the following code (this assumes cost centre is always the first header line and your script is called GetCostCentre)
    If Not Len(RES.PvarTemp1) > 0 Then
    RES.PvarTemp1 = DW.Utilities.fParseString(strRecord,4,1,",")
    End If
    GetCostCentre = strField
    Attach an import script to the CostCentre entry in the import format called SetCostCentre, it will have one line
    SetCostCentre = RES.PvarTemp1
    There is a very similar example in the FDM admin guide Scripting cahpter which has a bit more description.
    Edited by: SH on Dec 7, 2012 11:17 AM

  • FDM script issue

    Hi,
    I'm trying FDM custom script to copy records from text file to oracle database.
    I've created 'sample' table in database.
    when I try to open table in script I get 'Arguments are of wrong type or out of acceptable range"
    Below is the statement where I am receiving error:
    *+Set rs = cnSS.OpenRecordSet("sample")+*
    Below is the logic:
    *+Set cnSS = CreateObject("ADODB.Connection")+*
    *+Set rs = CreateObject("ADODB.Recordset")+*
    *+strFile = "D:\Toload.txt"+*
    *+cnss.open "Provider=xxxxx;Data Source=xxxxx;User ID=xxxx;Password=xxxx"+*
    *+Set rs = cnSS.OpenRecordSet("sample")+*
    *+Set fso = CreateObject("Scripting.FileSystemObject")+*
    *+If fso.FileExists(strFile) Then+*
    *+Set Objfso = fso.OpenTextFile(strFile, 1, False)+*
    *+Do While Objfso.AtEndofStream <> True+*
    *+rs.Addnew+*
    *+For i = 0 To Objfso.Fields.Count - 1+*
    *+On Error Resume Next+*
    *+rs.Fields(i) = Objfso.Fields (i)+*
    *+Next+*
    *+rs.Update+*
    *+Objfso.MoveNext+*
    *+Loop+*
    *+Objfso.Close+*
    *+Set fso=Nothing+*
    *+End If+*
    Please let me know if I'm missing something.
    Thanks in advance
    Edited by: 995155 on Mar 29, 2013 10:43 AM
    Edited by: 995155 on Mar 29, 2013 10:44 AM

    I may be on the wrong trail here, but the method you are using i think is related to Microsoft DAO. However, you initial definitions relate to ADO.
    It is not a technique i have seen used with FDM as i am used to using ADO and using the standard SQL options such as Select, Insert etc.

  • FDM - scripting variable for reversing the account

    Is there somehow a possibility to tell if the account is intended to be reversed or not (e.g. change the type from revenue to expense). I'm looking for a specific variable that you can use in scripting. I looked through the API guide, but didn't find this information. I rather not look at the tables, but I will if I have to.
    I'm using the pull adapter G-3-J in FDM 11.1.1.1.0 and file I have data for multiple periods in the source. I'm storing some of the amounts into the user defined dimensions and I need to be able the change the sign on these if the account type is changed (e.g. from revenue to expense).

    Yes and I would like to reuse the information if the box is ticked or not in order to the change the sign for user defined dimensions 9 - 19, as explained in the first message.
    Is it somehow possible using predefined functions / scripts or do you have to make a custom script?

  • FDM - Scripting for exporting application

    Hi
    Can you please advise if it is possible to write a script to automate the FDM export (Application export, this would be for the locations, users, maps etc...)
    Regards
    Edited by: user12990175 on 2010/07/05 11:59 PM

    I have not seen any scripts be used to automate this process. Keep in mind that an application extract can only be loaded into a fresh FDM application, it cannot be used to merge metadata between two FDM applications. I don't really see much of a purpose to automate this process, it is something that normally should be done manually.

  • FDM Scripting  Question

    Hi
    I would like to know what is the easiest way to do the following:
    Source account - 123 ,if "+" import to HFM account ABC and if "-" import to account DEF
    Please help.

    The conditional mapping can only be done in between,in and like maps
    When using the "in" map
    Rule Name |Rule Description | Rule Definition |Target | - |Script
    Test|Test |Source member |#script | |If…
    The | is used to show the field/column breaks
    So in the example you will place the source member in the Rule definition field and the place #script in the target member field(The heading can be changed in dimension names) and place the script in the script field. Rule name has an impact on the order of execution, this is explained in the admin guide.
    The same can be done for the between and like maps.
    Hope this helps
    Wayne

  • FDM SCRIPTING - MID Function

    I need to trim the values of a column based on the position of characters like below.
    Original
    Trimed Output
    New York [1000]
    1000
    London [12001]
    12001
    Paris [45]
    45
    I use the below syntax.  But it gives me an error : 5 - Invalid procedure call or argument
    getProjetIDN =Mid(strField,InStr(strField,"[")+1,Len(strField)-1)
    It works fine if i remove the '-1' from len command. And it works for '+1 as well. Can anyone help me with a way around?
    getProjetIDN =Mid(strField,InStr(strField,"[")+1,Len(strField))       --> Works fine
    getProjetIDN =Mid(strField,InStr(strField,"[")+1,Len(strField)+1)        --> Works fine
    Somehow for  '-1' , it is giving me an error.
    Thank you.

    Thank you for your response
    I have made it this way. and it works fine.
    dim value1
    dim value2
    dim value3
    value1 =InStr(strField,"[")+1
    value2 =InStr(strField,"]")
    value3 =Mid(strField,value1,value2)
    getProjetIDN = DW.Utilities.fParseString(value3, 1, 1, "]")

  • How can I load data with Scripts on *FDM* to a HFM target System????

    Hi all!
    I need help because I can´t find a good guide about scripting on FDM. The problem I have is the next one.
    I have on mind to load my data with data load file in FDM to a HFM target system, but I would like to load an additional data using an event script, ie after validate. I would need any way to access to HFM system though FDM Scripts, is it possible??
    If so, It would be wonderful to get a data from HFM with any Point of View, reachable from FDM Scripts in order to load or getting any data.
    I´ve looking for a good guide about scripting in FDM but I couldn´t find any information about accessing data on HFM target system, does it really exist?
    Thanks for help

    Hi,
    Take a look at the LOAD Action scripts of your adapter. This might give you an idea.
    Theoretically it should be possible to load data in an additional load, but you need to be very careful. You don't want to corrupt any of the log and status information that is being stored during the load process. The audit trail is an important feature in many implementations. In this context it might not be a good idea to improve automation and risk compliance of your system.
    Regards,
    Matt

  • Where to find useful FDM documentation?

    Hello all,
    I really hate posting a question like this, but I'm at my wits end and need help...
    I'm trying to figure out how to use FDM to import, map, and export (i.e., load) into Essbase about as simple a comma-delimited text file as I can imagine. I have spent many, many hours reading the FDM Administrator's Guide and trying out different interpretations of the instructions presented in that guide, but I haven't been able to succeed with the most basic requirement of skipping certain records during the import.
    It's apparent from reading this forum that many people are utilizing core capabilities of FDM that aren't clearly documented, if at all, in the Administrator's Guide. So my question is where can I find additional documentation that goes beyond the Administrator's Guide to reveal the details of FDM?
    To cite one example of useful information that is not in the Administrator's Guide, one poster to this forum indicated that records such as these in an import file...
    !SCENARIO=ACTUAL
    !PERIOD=SEPTEMBER
    !YEAR=2008
    !VIEW=YTD
    !VALUE=USD
    !COLUMN_ORDER=ENTITY,ACCOUNT,ICP,CUSTOM1,CUSTOM2,CUSTOM3,CUSTOM4,AMOUNT
    !DATA
    ..."[tell] FDM to set those 5 dimensions to those values for all following records." Where is that kind of information about FDM documented?
    Regarding my specific problem, the Administrator's Guide suggests that I can easily skip records during import via the import format simply by specifying Skip for the Field Name and the text in the Expression field that I want to trigger skipping a record. I've tried a variety of skip expressions with my comma-delimited file, but it mostly doesn't work as I would expect. For example, I can successfully skip records containing "1234" in the fourth field with the skip expression "1234". However, if I change the skip expression to "12345" FDM does not skip records containing "12345" in the fourth field. What the heck is up with that? I certainly haven't seen anything in the Administrator's Guide that would lead me to believe "1234" would work but "12345" wouldn't!
    Any help that can be offered with either FDM documentation or my specific import problem will be much appreciated.
    Thanks.

    Thanks, JTF. It sounds like the FDM Administrator class may be essential to learning FDM and obtaining essential documentation.
    Thanks once again to this forum, I did find an FDM Scripting Fundamentals Guide, which might be the API document you're referring to.
    Another question for everyone...When I select Help from the menu in FDM Workbench, FDM tells me "4200 - The specified file was not found." Consequently, I'm unable to access any online help for the FDM Workbench. Does a help file for FDM Workbench even exist, but has somehow gone missing from my installation? If one does exist, does it contain any worthwhile information?
    If someone confirms that a useful help file exists, then I'll look into repairing my FDM installation and hopefully locating the help file.
    Thanks.

  • Validation errors in FDM

    Hi
    In FDQM, i have give the source and targets for mapping of a custom dimension.
    One of the source is getting calculated using FDM scripts as based on the data, it generates the metadata member at source.
    I can see a proper import happening and the script generating the required result.
    But while validating it shows an error. Even though the member is present in MAPS, it shows it as unmapped.
    If i use the "FIX" option in validation, i still end up getting the same error message (in addition the dimension member field now shows some additional characters!)
    Any one has faced this issue with FDM before?
    RegardS

    Re write the script and the issue got solved...... seems some charaters had entered in the FDM script

  • Import data to FDM fails for planning app

    Hi,
    I have a problem with importing data from oracle view using FDM script.
    I have to make 2 things:
    1. Import data to HFM app (it works fine)
    2. Import data to Planning
    First of all i have configured HFM integration and set up all necessary information - it works fine (I can simply import data to import view using FDM).
    In the next step I'm trying to do the same with Planning data.
    I have set up connection to Essbase (I have test it setting up period table where I set manualy period table by getting values from Essbase Period and Year dimensions)
    When running the import process I got message that import failed. And thats all - no more informations in logs.
    I have also checked that:
    Data are imported from oracle view to my repository (new table with data was created but there is a problem with "showing them" on the FDM import site.
    Can any body help me with this one?
    regards
    Karol

    Hi,
    I take it you are using a Integration script to load the data from the sql respository, are you using the example script in the documentation and updating it ?
    If you are using the example script make sure the line > SQLIntegration = True matches the name of the function, so if it was
    Function SqlDload(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    then it needs to be SqlLoad = True
    I have used the script to load data directly from a sql table into essbase so it does work in FDM
    If you are still having trouble then let me know further information or the script you are trying to run and I might be able to spot something.
    Cheers
    John

  • Extracting data from Oracle GL and importing to FDM using ERPI adapter

    Hi,
    I am also trying to use ERPI adapter to directly extract data from Oracle GL. I am not finding sufficient information on this. It would be great if anyone can help me in this.
    I have one more doubt: Can we call the stored procedures in the FDM custom scripts, If so can I get the syntax of the script...I really don't have idea on this FDM part. I was working till now with the Flatfile input, But my client wants to make this change in the existing system. Accessing/Extracting data from Oracle GL. Experts who knows it can pls guide me.
    I am using FDM 11.1.2 and ERPI associated with 11.1.2.
    Thanks in Advance.
    [email protected]

    Hi,
    Is it possible to execute the stored procedures in FDM. Currently we are extracting data from oracle GL using SQl procedures (constaller tool is user to create the inteface) and storing the required data in the intermediate table in oracle GL, From which we are extracting data into a flat file and then loading it to FDM.
    So my question: is it possible to invoke the stored procedure from FDM scripts, If so can you pls let me know how to do that...
    Thanks In Advance,
    [email protected]

  • Using HFM Client API from FDM

    Hi all,
    is it possible to use HFM CLient API libraries from FDM Scripts or just HFM Web API?
    Thanks

    "Unreadable" squares are probably an indication that you are seeing non-printable characters due to the fact that the data is in one format (i.e. Unicode) and you are attempting to treat it as a another data format (ASCII). You may need to instruct the function to return data in a particular type or cast the result so that you are processing it properly.
    In regards to the wrapper, I think he's referring to the fact that vbscript doesn't support UDT's. (User Defined Types more commonly referred to as structs) You don't really need to wrap the API itself, rather create a COM object (or other) that would expose a property for each struct field. In the vbscript you would then create an instance to the object and use that with the API call.
    In regards to webservices, HFM doesn't have much out of the box. The comment was to create your own, etc. About the only thing you have going for you OOTB is Smartview. Smartview doesn't technically have a web service; however, if you monitor the data that goes in and out of Smartview it is dirt simple. For more than one project, I've taken advantage of Smartview as a means to get quick and dirty data out of HFM.

Maybe you are looking for

  • Why doesn't a Popup Key LOV (named LOV) in a tabular form not display values in the popup?

    I have a tabular form and I'm setting one of the fields to a Popup Key LOV (named LOV). The named LOV is a static LOV. When the popup is displayed there are no values displayed. The same thing happens if I use a Popup LOV (named LOV). I created a sam

  • Subsitution rule not reflecting (profit centre)

    Hi I have to change the profit centre of accounting document at transaction MB03. I have to choose the Profit Centre from the Material Master assigned for the respective Plant of the Material. The profit centre is chosen from the WBS now. I created a

  • Showing junk characters at SQL Prompt.

    Hi All, I m a beginner in Oracle DBA. I have one problem, i m trying to make my database such that it will store HINDI characters. Got that i changed NLs parameters in PFILE,Session as per document given by the Oracle. I also installed HINDI unicode

  • Bug in Mac RDP App

    When asked about the untrusted app/certificate there is a checkbox to "always trust" and a dropdown to "always trust". Checking the box brigs up a system dialog asking for a password to confirm but the pointer turns into a spinning wheel and the syst

  • UseBean tag - question

    Hello to all, I want to ask if i use the tag bean and declare a class like this one : <jsp:useBean id="counter" scope="session" class="Chapter35.Counter"></jsp:useBean> it's work ok , i put the class Counter in the next path : \WEB-INF\classes\Chapte