FDM - Import Format (Fixed Column Type - No Delimiter)
Hello,
Question on FDM. I've built an import format and successfully imported a Fixed Column type text file. Everything imports beautifully. FYI - The format of the file looks just like a Trial Balance with a column for Debits and one column for Credits. In the import format setup, I am using the DrCrSplit script. Weird thing here is that I noticed it just ignored any of the rows where the balance was over 1 million (but brought everything else in perfectly). I've played with the Start and Length fields to no avail.
Does anyone have any ideas?
Thanks,
James
Good day,
You can add a script as the last item to you amount import format, this will dump the values to a text file which may give you some idea of the issue. Open you file in a hex editor, there may be non printing characters.
Thanks
Function dumpamt(strField, strRecord)
'Declare Local Variables
Dim objFSAppend
Dim objFAppend
Dim strFileAppend
Dim blnCreate
'Initialize the file path
strFileAppend = "\\networkdirectoy\YourFileName.txt"
blnCreate = True
'Open the file system object and create the file
Set objFSAppend = CreateObject("Scripting.FileSystemObject")
Set objFAppend = objFSAppend.OpenTextFile(strFileAppend, 8, blnCreate)
'Append Data to File
objFAppend.WriteLine(strField)
'Close the objects
objFAppend.Close
Set objFAppend = Nothing
Set objFSAppend = Nothing
dumpamt = strField
End Function
Similar Messages
-
Hi,
I am working with a comma delimited file and would like to create an import format. Debit and Credit amounts appear in separate columns. Is it possible to use the DRCR Split expression with a delimited file? If not, can anyone suggest an alternative?
I look forward to hearing from you.
ThanksHello,
The DR/CR split is only for fixed formatted files.
You will need to use some custom scripting on the 'Amount' field to check for the value in the appropriate position and then import the desired value.
Thank you -
Multiple FDM Import Formats for One Location
I want to import trial balance data directly from the Oracle Financials database. I'm creating an import integration script to pull the ledgers directly via a SQL statement. My issue is that I also want to be able to write scripts to modify each individual field on the import, similar to a delimited import script where I can have a script for each dimension. Do you know if it's possible to combine import integration and delimited scripts in a single location? I'm guessing it may be a combination of the Import Format and Integration Options settings on the location, but I'm not sure which one should go where. Any help would be greatly appreciated.
This is not possible. Any adjustments to the data would need to be done within the integration script.
-
FDM Import Format Spec with multiple Amount Fields
Hello,
I'm in the process of setting up an Import specification for one of our sites and the source extract consists of the following fields:
Source Account Description BegBalDR BegBalCr YTDDR YTDCR
01-511-5110 Inventory Adjustment 1,754.00 0 0 14,844.76
I'm am trying to Import Field 5 & 6 and net them if necessary (example: YTDDR - YTDCR) and I continue to get an error. I have tried several diffrent ways but it seems that I can only import one or the other. After reading the FDM Admin guide I am wondering if I need to create a custom Script to accomplish this task.
Any advice would be appreciated.
Thank you,
TonyThis might be slightly complicated, but I think its the most direct solution ........
Step 1 -
In your Import Format, assign the Amount as :
FieldName, Start, Length, Expression
Amount, 1, 1, Script=NetAmounts5and6.uss
Step 2 -
Create an Import (DataPump) script called NetAmounts5and6 with the following code :
Function NetAmount5and6(strField, strRecord)
'Hyperion FDM DataPump Import Script:
'Created By: cbeyer
'Date Created: 2/13/2009 5:57:14 PM
'Purpose:
'Get the last two fields
Dim tmpRecord
Dim strCurrentChar
Dim strYTDCR
Dim strYTDDR
Dim x
'Initialize fields
tmpRecord = strRecord
'Ensure we have data
If Trim(tmpRecord) = "" Then Exit Function
strYTDCR = ""
strYTDDR = ""
'Get YTD CR
'One could use the replace command to change all spaces to a delimittable field and then
'split out the string into a one dimensional array using the split command; however,
'This would only work best if there is an exact number of spaces between the two numbers
'Since I do not know if this is true, instead i'm looking for numeric/numeric like characters
'and splitting based off of that.
For x = Len(tmpRecord) To 1 Step -1
strCurrentChar = Mid(tmpRecord,x,1)
If (IsNumeric(strCurrentChar) Or strCurrentChar = "$" Or strCurrentChar = "." Or strCurrentChar = "," ) Then
strYTDCR = strCurrentChar & strYTDCR
Else
Exit For
End If
Next
'Trim down temporary record holder to remove the previous found amount and white space at the end of the string
tmpRecord = RTrim(Left(tmpRecord,x)) 'Remove the first number from the string and white space
'Get YTD DR
For x = Len(tmpRecord) To 1 Step -1
strCurrentChar = Mid(tmpRecord,x,1)
If (IsNumeric(strCurrentChar) Or strCurrentChar = "$" Or strCurrentChar = "." Or strCurrentChar = "," ) Then
strYTDDR = strCurrentChar & strYTDDR
Else
Exit For
End If
Next
'do the math
If IsNumeric(strYTDCR) And IsNumeric(strYTDDR) Then
NetAmount5and6 = strYTDDR - strYTDCR
Else
NetAmount5and6 = 0 'This will cause the record to fail on import
End If
End Function -
FDM Import Format - field name list population
I am working with an Import Format definition. How can I control the list of possible names that are displayed in the Field Name drop down list box? The lists currently displayed are different from Import Format Group to Import Format Group.
Thank you.
GaryThe selections are controlled by the dimensions of the adaptor assigned to the location using the adaptor. The drop down list names are controlled by the dimension alias.
-
Import Format Amount Column Conditional on Account
We have a trial balance to Import into FDM. 4 columns tab delimited:- Account, Description, YTD movement, Balances
We need to load the Balance amount for specific accounts and the YTD movements amount for the remainder.
What is the best way of making this work?
Currently we are only able to get all Balances or all YTD movements.without touching the file, I would load it twice. One pass on column 3 as amount, the next on column 4 as amount. Set up conditionals and ignore the amount if it doesn't meet criteria. But I would modify the extract file first if there were opportunity.
but I must say your HFM design is atypical. Most configurations out there make use of a custom member to calculate YTD movement on the balance as loaded. Very simple to do and also allows for custom members that allow input for non cash adjustments for CF reporting purposes. -
Hi Everyone
We have a requirement our source file is CSV file ( Delimter file) in that we have below records
Account Currency Costcenter Amount
1001 USD C001 1000
1002 INR C002 2000
1003 EUR C003 3000
From the above data we want only USD data records to be imported in FDM .like this
1001 C001 1000
In import format i have used skip and i have written import script for Skip like this
Dim strAccount
'Store first value of account
strAccount = strField
'Check to see if value is empty
If strAccount = "INR","EUR' Then
'Skip Line
Res.PblnSkip=True
Else
AccountEmptySkip=strAccount
End if
End Function
When i am importing its importing all the records . its not skipping INR and EUR records
Can anyone help me in resolving thisThanks for the quick reply SH
We don't have currency dimension Filed in the import format. below are examples of our source file and import format
Currency column is in source file , but it will not be in import format
Account Currency Costcenter Amount
1001 USD C001 1000
1002 INR C002 2000
1003 EUR C003 3000
Field Name Field Number Numberof Fields Expression
Account 1 4
CostCenter 3 4
Amount 4 4
Skip 2 4 Script=Skip.uss
After your reply i have corrected my script and written below script
Dim strSkip
strSkip = strField
If strSkip = "INR" OR strAccount = "EUR' Then
SelectCADLines=strSkip
Else
Res.PblnSkip=True
End if
now also its importing all the records it not skipping INR AND USD records data
Can you please explain me now how to resolve this issue -
FDM Fixed-Width Import Format & Multiple Accounts/Periods Issue
Hi FDM experts,
I have an issue that I wanted to reach out to you on regarding fixed-width import formats and how to cater for my current scenario for export to Hyperion Planning.
I am working with a flat file (.txt) I need to import to FDM with the current format;
A
B
C
D
E
F
G
Z
Year
Channel
Product
Jan-MTD-Account 1
Jan-MTD-Account 2
Jan-YTD-Account1
Jan-YTD-Account2
Dec-YTD-Account2
2013
Channel_1
Product_1
1000
2000
1000
2000
10000
These are all fixed in width so the field lengths will need to be defined in the import format. The requirement for loading to the system is only a speciifc Month YTD value for both Account1 and Account 2.
If my chosen Month is 2013 Jan, I will only require columns F and G to be loaded. These are the issues I have identified;
Can a fixed width import format cater for loading to multiple accounts in the same file? Or would I need a separate import format per account?
Can a fixed width import format cater for loading to a variable Actual Month period? Or do I need 12 import formats/locations per month?
Your help is much appreciated!
Many thanks
AaronHi Aaron,
the solution you are looking for needs pivoting your source file.
Think that FDM, by default, only accepts files with one single column for amount. You have to pivot your file based on your logic and import the pivoted file.
For example:
Year Channel Product ... Jan-YTD-Acc1 Jan-YTD-Acc2 ...
2013 CH1 PR1 1000 2000
If your POV is Jan-2013, your data imported will look like:
Year Channel Produc Account Amount
2013 CH1 PR1 ACC1 1000
2013 CH1 PR1 ACC2 2000
All this process can be automated by playing with Import Scripts.
HTH -
Import Format for Separte Debit and Credit Columns (comma delimited file)
I have a file that is comma delimited with a sparate debit column and a separate credit column:
Sample:
Ent,Acct,description,Dr,Cr
,1000,test,100,
,110010,another test,,100
My import format is this:
Comma delimited
Field Number Number of Fields Expression
Entity 1 5 SGB_ABC
Account 2 5
Amount 5 5 Script=DRCRSplit_Comma_Del.uss
I've tried writing the following script to pull the amount from the debit column into the credit column but it just skips the lines with no amount in field 5.
'Declare Variables
Dim Field4
Dim Field5
'Retrieve Data
Field4 = DW.Utilities.fParseString(strRecord, 4, 4, ",")
Field5 = DW.Utilities.fParseString(strRecord, 5, 5, ",")
'If Field4 has a value then fld 5 is to equal fld 4.
If IsNumeric(Field5) Then
Field5 = Field5
Else
Field5 = Field4
End If
'Return Result into FDM
SQFLD5 = Field5
End Function
Can anyone tell me what I am doing wrong?
Thanks!I got it to work using this script:
Function DRCR_Comma_Del(strField, strRecord)
'Hyperion FDM DataPump Import Script:
'Created By: testuser
'Date Created: 7/22/2009 9:31:15 AM
'Purpose: If Amount is in the DR column move it to the CR amount column.
Dim DR
Dim CR
DR = DW.Utilities.fParseString(strRecord, 5, 4, ",")
CR = DW.Utilities.fParseString(strRecord, 5, 5, ",")
If IsNumeric(DR) Then
strField = DR
Else
strField = "-" & CR
End If
DRCR_Comma_Del = strField
End Function -
Option to read fixed-length format, EXCEL or ASCII TAB delimited
Hi Experts,
I have a requirement for giving an option to read fixed-length format, EXCEL or ASCII TAB delimited in the selection screen.Kindly help me how can i read the fixed length format?
Thanks,
AnkitaAs far as I could have understood your problem
You have to read the file with
Open dataset 'file path+name' FOR INPUT in text mode encoding default.
and move its contents to string type variable
Transfer to 'file path+name' to v_string.
Now as per your requirements you need to use Offsets to transfer the data into a work area.
For example
wa_task-year= v_string(4).
wa_task-month= v_string+4(2).
Please confirm if this is your requirement. -
Amount from 2 different columns. import format?
Hi all,
Im trying to import amounts from 2 different columns. If accounts are "123" or "234" or...etc
Then pull from column
else use column 9
can this be done in one import script? I want to know if I can assign import format amount to column 5 but only get the accounts asked for. else use column 9.
thanksI made something like this, and assigned it to an amount column with all the amounts. Does it make sense?
Function This_Code (strField, strRecord)
Dim Account
Dim Ammount
'Field instead of strRecord
account = DW.Utilities.fParseString(strField, 12, 5, ",")
Amount = DW.Utilities.fParseString(strField, 12, 11, ",")
If Account = "123" or Account = "456" Then
Amount = This_Code
End If
Edited by: tyson33 on Jun 28, 2012 10:11 AM -
I have a few questions around import formats as I have recently seen some new approached that I have not seen before:
Firstly are Import Formats auditable? Can the changes etc be tracked?
Secondly the formats I see are concatenating GL accounts and a few things from the GL to create a new "unique" account that is then mapped in FDM.
E.g.,
in the GL
GL Account
810000 - Revenue $10,000
GL Attribute1
BL - Blue
GL Attribute2
T1 - Dakota
FDM Import
Then creates a source GL Account of
810000BLT1
FDM mapping
810000BLT1 = TO_00001
HFM
TO_00001 $10,000
Has anyone seen this before, where effectively a new account is created from the import format ?1. I can't make a comment on FDMEE, but what is now 'classic' FDM does not audit the import format table. However if it is a requirement, then i am sure your DBA could sort something out
2. Yes, this is quite common, but perhaps more for the other dimensions rather than the account dimension. -
Multiple import formats in one FDM application....?
I wanted to know in my situation where there are 15 EBS Set of Books. whether it is possible to use only 1 FDM application to import all these data into my HFM application.
My ERPi application is like this :
1 source application that is EBS.
1 target application that is HFM.
15 EBS Set of books, for which i think i have to create 15 import formats in ERPi for each set of books. this also implies to the locations.
then I have to do the common period mapping and category mapping.
in the Data load Setup: I have to select each location and do the member mapping. create a data load rule for each location.
FDM Application:
i already have an FDM application which i am using to import data from EBS to HFM using ERPi, till now i have only used 1 set of books just to verify that everything is working fine. now as everything is working fine with the application, I want to add additional import formats in the existing FDM application to answer the import formats and locations created in the ERPi application.
Is it possible to do like this, if so then i need your assistance in achieving this task.
please put your comments in this regards.
Thanks,
Shantan KommeraYou can do this by specifiying the appropriate data load rule to be used by ERPi within Integration Option 1 in the location. This will kick off the data load rule you specify in ERPi that should be tied to the corresponding set of books in EBS.
-
FDM Assign import format to different locations
Dear All,
I have a request that we need assign a import format to 500+ FDM locations, is there a better way to do this ?
Thanks,Hello,
I did not get any response for this question, the detail for this item is as following.
We have created a FDM import group, we also create a import format under this import group, we already assign the import group to one FDM location.
Now we want to assign this import group to other FDM locations(more than 500), how can we do that easily ? Is there a way to batch load the import group to the FDM locations ?
Waiting for your suggestion,
Thank you so much -
How to copy FDM setting (import format, dimension mapping, control table)
Dear All,
How to copy FDM setting (import format, dimension mapping, control table) from application to another application.
I found that only dimension mapping can be imported. Is there any way to copy FDM application quickly?
Thanks your helpIf you get a chance try the following script, it's so simple and easy to extract all the map data to XML and will help in to import back through Import script.
Sub MapExtractor()
'UpStream WebLink Custom Script:
'Created By: SatyaK
'Date Created: 12/08/09
'Purpose: This Script will produce a Account Map File for
' the current location.
'Execute the export
strFilePath = API.IntBlockMgr.InterfaceMgr.fExportMapToXML("File Path", PPOVPeriod)
End Sub
-------------
Maybe you are looking for
-
Whenever I open PDF it informs me that Adobe Flash Player is not found. When I check the box to add it, I am taken to Firefox and given a choice to add it to Explorer or other systems. I have chosen both in the past and added it more than a few times
-
My Hp Pavilion x2 10-020nr is showing a "Battery Alert" and will not start.
I've recently purchased the Hp Pavilion x2 10-020nr about a week ago, and have used it moderately everyday since. I have not over-charged it or downloaded any malicious apps/software (as far as I know) but today I tried to turn it on after charging a
-
Using SAML policy while invoking a web service
I have to invoke a webservice which is secured using the policy wss10_saml_token_client_policy. In order to achieve the above i have creates a stub using JAX-WS and while invoking the web service I pass the policy as a SecurityFeature.Code snippet gi
-
At the end of my tether have had 6 engineer visits...
Hi - wondering if anyone here can help me or suggest who I can talk to to get some help. I have a recurring problem which happens a few times daily - my broadband will cut out and, at the same time, there will be crackling and hissing on the phone l
-
My 3rd generation nano is stuck in hold mode
My nano is stuck in lock/hold mode and the mode does not change once I toogle the stick. What should I do?