Importing multiple amount columns from a single text file

I'm sure this question has been addressed many times. I have tried to search for an answer here and other areas, but I have not been able to find a clear answer yet. I am relatively new to HFM and FDM and thus do not have a lot of experience to fall back on. I am primarily a Planning/Essbase person. That being said, here is my question:
I have a data source (text file) containing two amount columns that I need to load to HFM via FDM. One amount column consists of Average Exchange Rates and the other amount column consists of Ending Exchange Rates. I have been asked to develop a process to load both columns of data to HFM using a single process (one Import Format). I've been told this is possible by writing an Import DataPump script. It seems that I would need to create a temporary record set based on the original source file and modify it so that it contained a duplicate set of records where the first set would be used for the Average Rate and the second set would be used for the Ending Rate. This would be a piece of cake using SQL against a relational source, but that's obviously not the case here. I do have some experience with writing FDM scripts but from an IF... Then... Else... standpoint based on metadata values.
If there is anyone out there that has time to help me with this, it would be most appreciated.
Thanks,

This is relatively easy to achieve with a single import script associated with the Account source field (assuming AverageRate and EndRate are accounts in your application) in your import format.
Essentially your first amount say AverageRate would be set as the default field for Amount and these values would be loaded as if it were a single value file. For the second value, EndRate you would have to insert the second value directly into the FDM work table which is the temporary table populated when data is imported from a file during the import process. The example code snippet below suld gve you guidance on how this is done
'Get name of temp import work table
strWorkTableName = RES.PstrWorkTable
'Create temp table trial balance recordset
Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
If IsNumeric(EndRateFieldValue Ref Goes Here) Then
          If EndRateFieldValue Ref Goes Here <> 0 Then
               ' Create a new record, and supply it with its field values
               rsAppend.AddNew
               rsAppend.Fields("DataView") = "YTD"
               rsAppend.Fields("PartitionKey") = RES.PlngLocKey
               rsAppend.Fields("CatKey") = RES.PlngCatKey
               rsAppend.Fields("PeriodKey") = RES.PdtePerKey
               rsAppend.Fields("CalcAcctType") = 9
               rsAppend.Fields("Account") = "EndRate"
               rsAppend.Fields("Amount") = EndRateFieldValue Ref
               rsAppend.Fields("Entity")=DW.Utilities.fParseString(strRecord, 16, 1, ",")
               rsAppend.Fields("UD1") = DW.Utilities.fParseString(strRecord, 16, 2, ",")
               rsAppend.Fields("UD2") = DW.Utilities.fParseString(strRecord, 16, 3, ",")
               rsAppend.Fields("UD3") = DW.Utilities.fParseString(strRecord, 16, 16, ",")
               'Append the record to the collection
               rsAppend.Update
          End If
End If
'Close recordset
rsAppend.close
In addition the return value of this Import Script should be "AverageRate" i.e. name of ht eaccount associated with the first value field. The NZP expression also needs to be put on the Amount field in the import format to ensure that the EndRate Field value is always processed even if the value of AverageRate is zero.

Similar Messages

  • Executing multiple sql statements from a single sql file

    Hi, I am Vijay Krishna.
    I want to drop user, drop tablespace, create tablespace and create user from a single executable file or a single sql file. The command should be in sequence. How can we achieve it? Can I anybody help me in this regard. I want this as soon as possible. It's urgent. Kindly post a reply.
    Also, how can we know the oracle home directory from a java program? The problem is we should know the Oracle home directory and use it for creating the tablespace. In the userinterface we will give just for a new database user creation. I will be really thankfull if anybody can help me in this regard.

    It is showing any error messages.
    I will diplay the entire batch file which we are using.
    sqlplus / as sysdba
    drop user examination cascade;
    drop tablespace examination;
    create tablespace examination
    datafile 'C:\oracle\product\10.1.0\oradata\orcl\examination.dbf'
    size 500M autoextend on;
    create user examination identified by examination
    default tablespace examination
    quota unlimited on examination;
    grant connect, resource to examination;
    exit;
    when i run the batch file from the DOS prompt it is entering into the sql prompt and coming out in a fraction of a second. We are just seeing a screen coming and going. But no error messages are being displayed.
    first we thought that as we are giving the create tablespace and create user in the same file we created another file and tried without having the create commands. Even then the user didn't get dropped.

  • Issue in FDM Import script for ading multiple amount columns.

    Hi,
    I am trying to import the Multiple amount columns to be addedd and imported as one amount column.Below is the script I am using for the same,script is getting verified in Script editor but When I am trying to Load the File I am gettig an error as below.
    ERROR
    Code............................................. 9
    Description...................................... Subscript out of range
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 8380
    Scirpt
    Function Import_YTD(strField, strRecord)
    'Set variables
    dim strCurmnth1
    dim strCurmnth2
    dim strCurmnth3
    dim strCurmnth4
    dim strCurmnth5
    dim strCurmnth6
    dim strCurmnth7
    dim strCurmnth8
    dim strCurmnth9
    dim strCurmnth10
    dim strCurmnth11
    dim strCurmnth12
    dim strCurAmount
    strCurmnth1 = Trim(DW.Utilities.fParseString(strRecord, 20, 9, ","))
    strCurmnth2 = Trim(DW.Utilities.fParseString(strRecord, 20, 10, ","))
    strCurmnth3 = Trim(DW.Utilities.fParseString(strRecord, 20, 11, ","))
    strCurmnth4 = Trim(DW.Utilities.fParseString(strRecord, 20, 12, ","))
    strCurmnth5 = Trim(DW.Utilities.fParseString(strRecord, 20, 13, ","))
    strCurmnth6 = Trim(DW.Utilities.fParseString(strRecord, 20, 14, ","))
    strCurmnth7 = Trim(DW.Utilities.fParseString(strRecord, 20, 15, ","))
    strCurmnth8 = Trim(DW.Utilities.fParseString(strRecord, 20, 16, ","))
    strCurmnth9 = Trim(DW.Utilities.fParseString(strRecord, 20, 17, ","))
    strCurmnth10 = Trim(DW.Utilities.fParseString(strRecord, 20, 18, ","))
    strCurmnth11 = Trim(DW.Utilities.fParseString(strRecord, 20, 19, ","))
    strCurmnth12 = Trim(DW.Utilities.fParseString(strRecord, 20, 20, ","))
    If strCurmnth1="" Then strCurmnth1="0" End If
    If strCurmnth2="" Then strCurmnth2="0" End If
    If strCurmnth3="" Then strCurmnth3="0" End If
    If strCurmnth4="" Then strCurmnth4="0" End If
    If strCurmnth5="" Then strCurmnth5="0" End If
    If strCurmnth6="" Then strCurmnth6="0" End If
    If strCurmnth7="" Then strCurmnth7="0" End If
    If strCurmnth8="" Then strCurmnth8="0" End If
    If strCurmnth9="" Then strCurmnth9="0" End If
    If strCurmnth10="" Then strCurmnth10="0" End If
    If strCurmnth11="" Then strCurmnth11="0" End If
    If strCurmnth12="" Then strCurmnth12="0" End If
    'Calculate the YTD Amount
    strCurAmount = CDbl(strCurmnth1) + CDbl(strCurmnth2) + CDbl(strCurmnth3) + CDbl(strCurmnth4) + CDbl(strCurmnth5) + CDbl(strCurmnth6) + CDbl(strCurmnth7) + CDbl(strCurmnth8) + CDbl(strCurmnth9) + CDbl(strCurmnth10) + CDbl(strCurmnth11) + CDbl(strCurmnth12)
    Import_YTD =strCurAmount
    End Function

    Hi,
    how many columns has your file?
    that error means you are trying to access an invalid position.
    Regards

  • Merge statement - update multiple columns from a single sub-select

    Is it possible to write in 10gR2, a MERGE statement, with UPDATE for multiple columns from a single sub_select?
    like this:
    MERGE INTO tableA
    using ( select * from temp) tmp
    on( tableA. col1 = tmp.col1)
    when matched then
    update set  ( tableA.col5,
                       tableA.col6,
                       tableA.col7) = ( select sum(col2), sum(col3), sum(col5)
                                                                                 from tableX
                                                                                where tableX.col1 = tableA.col1...)

    Hi,
    The USING clause is not a sub-query, so it can't reference columns from tables that are not in it.
    Include tableA in the USING clause if you really need to refer to it there. (It's not obvious that you do.)
    As always, it helps if you post:
    (1) The version of Oracle (and any other relevant software) you're using
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data (In the case of a DML statement, such as MERGE, this will be the state of the tables when everything is finished.)
    (4) Your best attempt so far (formatted)
    (5) The full error message (if any), including line number
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    If you can present your problem using commonly available tables (for example, tables in scott schema, or views in the data dictionary), then you can omit (2).
    Formatted tabular output is okay for (3).

  • Calling  multiple  script  logics from  a  single  package

    Team- How  do i  call multiple  script  logics  from a   single  DM  package...?
    I   know  its  possible  and  have seen  a  prototype  but  cant  recollect  or  find  it on sdn...
    Thanks  for  your  time.
    Vishal.

    Hi,
    You can create a master script logic which will include all the other script logics using the *INCLUDE command and call this master script through your DM package.
    Another way is to have multiple tasks in the process chain which is calling a script logic. You can pass separate script logics to each of the tasks.
    I would prefer the first option
    Hope this helps.

  • Generate multiple idoc's from the single application doc(Sales order)

    Hi All,
    Iam working on a requirement where i have to generate multiple idoc's from a single sales order based on sales org, division on header data and plant at item level, if somebody please let me know how to proceed with this requirement.
    Thanks
    Kashif

    Hi,
    You can create a Z-program and call Function Module  <b>MASTER_IDOC_DISTRIBUTE</b>.
    You can make a call to this FM to send the Idoc as many times as u have plants in your Sales Order.
    You can call FM <b>IDOC_OUTPUT_ORDRSP</b> to fill the IDoc structure.
    Then u can keep the materials of only that plant for which u want to pass on the information.
    Thanks,
    Utsah Garg.

  • Please help! I defragged my hard drive and now Illustrator CS6 is trying to open all of my complex Illustrator files with a "Text Import Options" box as if they are text files, and they are not opening!

    Please help! Illustrator CS6 started trying to open all of my complex.ai files with a "Text Import Options" box as if they were text files, and they are not opening!  Help!

    Hi Monika,
    I have spent the last two or three days trying to do what you suggested.  I uninstalled Adobe 6 from Windows.  Some files that CS6 placed on my system during installation remained, including fonts and .dll files.
    I had to abandon the Cleaner Tool you suggested because in one screen it allowed me to specify removing CS6 only, but on the following screen it only gave on option to remove ALL Adobe programs.  I could not do that because I didn't have the serial number handy for CS3 in case I want to reinstall it at some point.
    I tried to get technical help with the Cleaner Tool problem but no definitive help was available, so I reinstalled CS6 again without having the benefit of the Cleaner Tool.  I tried to get the serial number for CS3 so I could use the Cleaner Tool but spent 2 wasted hours in chat.  Even though I had a customer number, order number, order date, place of purchase, the email address used AND 16 digits of the serial number, in two hours the agent couldn't give me the serial number.  After two hours I had nothing but instructions to wait another 20 minutes for a case number.
    Illustrator CS6 is still trying to open some backups as Text and otherNone of the problems have been fixed.  I have tried to open/use the .ai files in CS6 installed on another system and am getting the same result, so I don't think the software was damaged by the cleaner.  The hard drive cleaner is well-known and I've run it many times without any problem to previous versions of Illustrator or any other programs.
    When I ordered, the sale rep promised good technical support and gave me an 800 number, but after I paid the $2000, I learned that the 800 number she gave me doesn't support CS6 and hangs up on me.  Adobe doesn't call it a current product even though they just sold it to me about 3 weeks ago.
    Would appreciate any help you experts can offer.  If I can't solve this, the last backup I can use was from June and I will have lost HUNDREDS of hours of work and assets that I cannot replace.
    Exhausted and still desperately in need of help...

  • Refresh cannel data from ever growing text-file

    (I previously mis-posted this in the general forum, sorry!)
    Hi,
    I have text files coming in, each to add 250 values to a channel every 30 seconds.  I am writing some code to massage the incoming data, and append the 4 channels to a single text file.
    So I have 4 channels in a text file which continues to grow.
    How do I make Diadem display all new data as the text file grows, to show analysis on the channel data in real-time?
    Thanks!
    My text file looks like this, and will grow by new lines as I receive them:
    height,width,length,volume
    15.00,13.460125,13.196651,12.123
    13.404634,13.545893,13.171975,12.234
    15.10,13.460125,13.196651,12.345
    13.404634,13.545893,13.171975,12.456

    Hi Dave,
    I thought you said in your other post that each quantity was in a file of its own? Well, if they're all in the same file that simplifies matters a bit. DIAdem does not have a built-in monitoring feature, but you could run a VBScript that re-loads the data up until now and runs the analysis and plots the report graphs, tables, etc. This would give you a periodically updating view into your ongoing data acquisition.
    Note that there is an issue with ever-growing ASCII data files-- they take longer and longer to read. How big might these data files get? 10 MB? 100MB? 1GB? Really, if they're going to get bigger than a few MB you ought to consider segmenting them-- as your other post indicates they are. Then if time becomes an issue, the VBScript could keep track of which data files it's already loaded and only load the new ones.
    Again, please send me the data files you have, and I'll make concrete suggestions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Import selected business area from an exported EUL file

    Hi,
    Iam using Oracle Business Intelligence Discoverer 10g Release 2 (10.1.2.1) , Is there a way to import selected business Area from an Exported EUL file into the Discoverer.
    Thanks,
    Krishna

    Hi Krishna,
    We cannot import a specific business area from the exported file as the file is combo of all BA's in .eex format.
    Instead before exporting process,i.e when going through the export wizard you can select specific business area required and then import it.Hope this helps you.
    Regards,
    Kranthi.

  • When I import IE8 bookmarks into Firefox Portable, the text files or downloaded Google searches or other downloaded websites that I saved and added to my various Favorites folders do not appear ... and (2) if I can get them to appear, will I continue to b

    When I import IE8 bookmarks into Firefox Portable, the text files or downloaded Google searches or other downloaded websites that I saved and added to my various IE8 Favorites folders do not appear ... and (2) if I can get them to appear, will I still be able to add text files to the Firefox Favorites folders ... and how.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    http://portableapps.com/forums/support/firefox_portable

  • Multiple columns within a single text frame

    Is it at all possible to make a single text frame containing first a single column followed by two columns?
    Why: I need to have my heading expanding across my two column body text. What's important is that I need the two column body text to automatically drop whenever I type (or paste) in more text in my heading. Like it would if the heading and body text was in a single column.
    My text frame options (I work in CS3) do not give me this option, I can only work in one "frame set". I have tried fixing this problem with combinations of tables, multiple text frames and text wrap, but nothing really works.

    Thank you Peter.
    Yes I did try it.
    InDesign CS3 just gives me this alert:
    I also tryed copying the files (HeadStraddler.jsx and HeadStraddler.indl) into a folder like you suggested.
    C:\Program Files\Adobe\Adobe InDesign CS3\Scripts\Scripts Panel\Version 4.0 Scripts\HeadStraddlerForCS2.
    But I just get the same alert.

  • Multiple Amount Columns

    I'm setting up an import format for a text file (to load data into Essbase) that has more than one column with an amount in it. e.g. column 1 is expense dollar amount, and column 5 is hours. the expense gets loaded to the account shown in column 2, and the hours in column 5 get loaded to an account called "Hours".
    I have another flat file, with about 12 amount columns, each loading to a different stat account. Same situation.
    (before you tell me that I should use a load rule and load to essbase, I know, but we're not doing it that way...)
    So my question is, how do I set up the import format to load more than one data column, where I know specifically what the account for the second columns is? I don't mind having to do some scripting, but I might need and example to follow.
    thanks.

    Awesome SH, Thanks.
    I did actually try the datapump approach and your thoughts agree with what I was thinking.
    The doc is a bit thin on the following, would you validate or correct me here?:
    I create a new datapump script "MyDataPump",
    The RES object (containing properties such as location key(PlngLocKey) and category key(PlngCatkey)) is valid in the context of the MyDataPump function
    The DW object from which I will access the table [DW.DataAccess.farsTable(strWorkTableName)] is valid in the contet oof the MyDataPump Function
    That all being ok, the one thing I still cannot figure out is where I get the name of the table where I'm loading the data (strWorkTableName)? Its passed as an arg in the Integration scripts, but not in the Datapump Script.
    Aslo, since I'm updating the table with the data for this extra amount field myself, what value do I return from MyDataPump, and how is it used by the import process that calls the script (IOW since I inserted the record myself, I don't really want FDM to do anything with this field after the script is run.

  • Provisioning multiple AD Groups from a Single Privilege

    Experts,
    We're encountering a situation here when we provision to multiple Active Directory groups from a single IDM Role.
    The scenario is this:
    We have a workflow that has multiple conditional and switch tasks that result in the provisioning of users to Active Directory 2008 (mixed mode) Our workflow uses the provisioning framework and all users have been granted the ONLY privilege for the system.
    The workflow will result in adding the users to multiple AD groups sometimes two AD groups that are associated with a single IDM role. The first assignment always works, the second does simply does not occur, no entry in the system or job log although IDM does show that the role has been assigned with an 'OK' status.
    We've accomplished a workaround by redesigning the workflow so that only single roles are assigned at a time and using chain result OK links to move from one provisioning activity to another, but frankly, we are unsatisfied with this.  IDM should be handling this much better through
    I'm wondering if we have a pending value floating out there and we should just be applying the pending value at the end of every AD group add.
    Any thoughts on this would be appreciated.
    Thanks,
    Matt

    Matt,
    In your post you mention "I'm wondering if we have a pending value floating out there and we should just be applying the pending value at the end of every AD group add"... I'm faced with a similar issue were I'm left pending values for privileges after the group is assigned.
    I've imported the AD groups as privileges. I assign them without issue. But when I review the assignments I can see that each corresponding privilege assignment now has a pending value. I can not remove the privilege from the user at this point.
    Have you seen this before? Any suggestions on how I can clean this up. BTW, I'm using the SAP PF basically unchanged...
    Thanks!

  • Multiple source columns from Oracle DB to Hyperion Essbase cube

    Hi Experts ,
    We have a Source as oracle table to the target Hyperion Essbase Cube(Planning) 11.1.2 using ODI 11g.
    Right now my issue is We need to map multiple columns from Oracle DB to One Dimension in Essbase (Planning).
    For example -> * In Oracle table i have columns as Name,Volume,unit and item *
    In Essbase the dimension called "*CatDefinition has lower level members as Name,Volume,unit and item * "
    Now using ODI ,* I want to map the oracle table columns(Multiple) to the dimension(Catdefinition) ? * Please suggest me with idea to achieve multiple column mapping to the single dimension in Essbase .
    Thanks in Advance !
    Keny Alex

    Do you even need FDM? You could build a load rule in Essbase directly. If you need to map, then you would register the Essbase target adapter.

  • How to expande multiple table row from a single button

    I am trying to create an expanding table that expands multiple rows when a single button is clicked.
    So far I have managed to create a table that expands a single row at a time using -
    click
    this.parent.parent.instanceManager.insertInstance();
    I also tried using the following code from an existing woking file that adds a column when a button is clicked -   
    Table1.HeaderRow._Col3SF.addInstance(0);
    Table1.Row1._Col3SF.addInstance(0);
    Table1.Row2._Col3SF.addInstance(0);
    Table1.Row3._Col3SF.addInstance(0);
    I adapted the code to suite my own file -
    click 
    form1.Sub1.Sub3.Table1.Row1.addInstance(0);
    form1.Sub1.Sub3.Table1.Row2.addInstance(0);
    form1.Sub1.Sub3.Table1.Row3.addInstance(0);
    form1.Sub1.Sub3.Table1.Row4.addInstance(0);
    form1.Sub1.Sub3.Table1.Row5.addInstance(0);
    However I receive the following error -
    click Invalid property get operation; subform doesn't have property 'addInstance'
    Regards Maxwell

    I managed to acheive what I needed to do using LCD's Action Builder.
    The Action builder makes it so easy to create advanced content.
    I selected my button obect for the list, then chose - create add a new instance,
    then chose my table from the list.
    I now have a table with multiple rows that expand when a single button is clicked, fantastic!
    Regards Maxwell

Maybe you are looking for

  • Unable to record audio

    I am trying to record audio into Logic through a electro-acoustic guitar and AKG microphone, which are both plugged into my Saffire 6 interface. Everytime I set up a new audio track and select the 'R' record button, a loud static noise plays through

  • Having a problem submitting a job in batch

    Im using thread and thread.start(). WHen sending an email I call thread.start to send so the user doesnt have to wait for the smtp server to respond and the email to be sent. Is this the correct way of doing it? All im looking to do is submit to batc

  • Why are external hard drives and similar continually self-ejecting under Yosemite?

    When are Apple going to sort out the problem of external hard disk drives and other similar devices continually self-ejecting under Yosemite. This is a problem I have had ever since I upgraded my 21.5" iMac from Mavericks to Yosemite last year, and I

  • Use iPhone 6 as your beard trimmer.

    Initially I thought people are just making up this .But when I experienced it myself then I am realizing it that it's happening in real. I bought this so called premium luxury device by paying a huge amount of money as I bought an unlocked contract f

  • How to verify that a host is having/running Exadata?

    Hi, How can I verify that a machine(unix/linux) has Exadata? Please help. Thanks