FDM Import Format DR CR
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.
Thanks
Hello,
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
Similar Messages
-
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 (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,
JamesGood 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 -
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 - 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.
-
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 -
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
------------- -
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 -
FDM import script with selectable source file
Hi All,
I would like to build an import script attached to an import format that imports a text file with multiple value columns.
Source file:
Entity, Detail, Account 1, Account 2
E_abc, D_abc, 100, 200
In FDM this needs to be:
Entity, Detail, Account, Amount
E_abc, D_abc, Account 1, 100
E_abc, D_abc, Account 2, 200
So i need to loop through the file.
My biggest challenge is that when i attach a script to an import format in the import process i cannot select a file from inbox anymore, it has to be a pre-defined file.
Has someone an example or solution how to make a script-import format and enable the select file from inbox?
And if possible has someone an example script of the issue stated above?
Thanks in advance,
MarcHi Wayne..
Thanks for your reply (and sorry for the delay in mine).
Could you tell me what script to use to open the file in the befImport script, or how to rename the file in memory to a new one?
So i write a script that rewrites the file to a new file in the inbox but i need to tell FDM that it needs to process this new file.
Thanks,
Marc -
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 Import: create 4 fields from single chartfield in source file
Hi Experts ,
In my requirement, i have single member in Source file which i have to split into 4 filds (Target dimension)
ex "1234 44 55555 456" , this string should be "1234" "44" "55555" "456" to represent 4 dimension members in Essbase.
I tried puttig following FDM code in a import script through import format for one of the target field but after i import that column is showing "required field missing" error. Any suggestion please ?
'Declare local variables
Dim lngStartPositionMid
Dim lngCharCountMid
Dim strValueMid
'Get Mid N Characters
lngStartPositionMid = 9
lngCharCountMid = 5
'Get the string
strValueMid = Mid(strField, lngStartPositionMid, lngCharCountMid)
End Function
ThanksThis is done.
I am new to FDM and VB so realised it later that actually , Script name is the VB Functiona name and thats where Value should be returned.
If my scrip tname is Entity
Entity = Mid( strField,9,5)
Thanks
Vivek -
Excel Expression in Import Format
Hi,
Has anyone used Excel Expression in Import Format? Trying to figure out how it works, appreciate any help.
Thanks.The Expression Field of the import format is limited to one of the built in FDM Expressions such as (FILL=EurotoUS), a hard coded value, or a import script name
Maybe you are looking for
-
Return Sales order from PM notification
Hi, While creating a return sales order for a equipment which has service item from PM service notification . System is showing an error message while saving service notification instead of careting a return sales order. The error message a
-
I downloaded a rar. file of gradients how do I install it in illustrator to use it.
-
In my TDS Certificate Report takes more time in fetching the data from bseg
only i am checking mblnr and company code.
-
How to create a customer return?
Hi, this is my code for creating a customer return document. Im getting an error "No matching records found", Im guessing this has something to do with what batch numbers the customer has been sold, and from which warehouse where issued. I need to re
-
EOS 5D MarkII Raw won't open "Unsupported format"
I have downloaded the trial Aperture 2.1.4 and also downloaded and installed the latest RAW 2.6 update. I'm running OS 10.5.4. As far as I read here unless I'm shooting sRaw my photos should open, But no luck. Sometimes I get the "unsupported format"