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,
Tony

This 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

Similar Messages

  • 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

  • Is it possible to create a form with multiple form fields on a single line?

    Is it possible to create a form with multiple form fields on a single line?  I can't find anything in the documentation or a template that does this.
    I am trying to create a "documents received" checklist with a check box on the left margin, a date-received field to the right of the check box and and a description of the document (Formatted Text) on the far right.
    In the past I have entered the Fixed Text with a word processor, published it to a PDF file, then added the check box and date fields with the Acrobat Forms editor.  I would prefer to use FormsCentral if it is possible.

    We now support multiple fields on one line. This post provides a brief overview.
    Give it a try and send us your feedback.
    Sorry it took so long.
    Randy

  • Selectively Format Groups with Multiple Columns

    I have a bit of an obscure task I've been trying to hammer out to no avail.  I've searched quite a bit but can't seem to find anyone else who has attempted this.  I have two group by statements, one is a category and the other is a rank.  What I'm trying to do is organize the report so that there are category rows and below each category row is a set of columns for each rank with their associated values as such:
    category1
    rank1     rank2     rank3     rank4
    value1   value1    value1   value1
    value2   value2    value2   value2
    category2
    rank1     rank2     rank3
    value1   value1    value1
    value2   value2    value2
    I've tried using details>Section Expert>>Layout>Format Groups with multiple column.  Unfortunately, this applies to both groups putting the categories into columns instead of rows, making a mess.  Does anyone know of a way to selectively put groups into columns and ensure alignment?  In the above example the user would be able to compare rank values from multiple categories since they all line up.  Any help with this would be very much appreciated.

    Hi,
    Have you tried using a crosstab? Give this a shot:
    1) Group the report on Category
    2) Create a new group header section. Group Header b
    3) Place a crosstab in this section
    4) The columns would be the Rank field, I'm not sure about what you would like to show in the rows
    5) The summarized field would be the Value field ofcourse
    Let me know how this goes.
    -Abhilash

  • Best Solution for Creating an Onlne Purchase order form with multiple calculation fields

    I am a bit confused.  Our school has a Forms Central account which works great for our registration forms but I need to find a solution for creating an online purchase form with multiple calculation fields - I know that forms central does not support calculation fields (too bad) but I know that Acrobat Pro does... soooo...
    Can you create the forms in Acrobat and then somehow integrate the advanced features into forms central?  Do they talk to each other?  Is this easy to do? .... I guess another way to putting it is can you create the forms in Acrobat including all of the advanced features for payment calculation and then host it online using Forms Central to manage and collect the data? (I guess that really is my question)
    Thanks (how does this compare to a solution like Formstack?)

    Hi, thanks.
    The naming convention was the consistant up until a point when I read that you need a '.' syntax (?!) - does anyone know if this is true?
    Attached is a version with Bernd Alheit's suggestion and with all the naming of the fields being consistant. It's still not working for me though after doing this and I'm stuck as to why, because I think it should work. I've also tried writing the calcualting line of code in the same manner that Bernd Alheit suggests before I came on here, and it wouldn't work then.
    As with any coding, it must be something to which I have done, but I can't see it anywhere
    Any ideas? Thanks for helping me
    Cheers

  • Importing an album with multiple artists

    When I import an album with multiple artists (ie Absolute Music x) all the songs are given a seperate album symbol. How do I get them all to be listed under the same album name in Cover Flow view?
    PS I mostly have this problem with downloaded albums....
    Message was edited by: younso

    If you get stuck in future see http://samsoft.org.uk/iTunes/grouping.asp for hints on how to work around the more obscure causes of multiple covers.
    tt2

  • How to import a album with multiple artists in the one album?

    How do I import a album with multiple artists as the one album.  Everytime I try to do this it does not collate it into one album, the other artists come up seperatley, also if this is possible can you set so that it works automatically everytime?
    Hope someone can help.
    Cheers,
    Fuzzi G.

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • 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.
    Gary

    The 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.

  • 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 (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

  • 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

  • How to create a group with multiple data fields

    Post Author: RichS
    CA Forum: Formula
    Using CR XI.  Using CSV input from ODBC text driver.  No problems here.
    There are 3 fields that I want the same group by action.  Is this possible?) 
    If any one of these 3 fields change I want some header information and column fieldnames to display.  The header information I only want displayed on the first page (on the change) and the column fieldnames to display on every page.  I have played around with things like "InRepeatedGroupHeader" and "report group header on each page".  I am not getting all the results that I am looking for though.
    I want report to look like:
    Page header stuff  (to display on every page)  This data consists of some fields that will have static data and will display on every page.  And it consists of 3 non-static fields that I want to group on. 
    Group header stuff that I only want displayed on the first page on a change from one of the 3 fields mentioned above.
    Column headings that I want displayed on every page.
    Details data
    Group footer stuff (details not important for this)
    I get the expected output (column headings displayed on every page, and group header stuff display on the first page on each group change) with one group field.  But I want the group change to happen for all 3 fields.
    It seems simple but I can't find a way to create a "group" so if "field1 or field2 or field3" change, I get the same "group by" action.  I just need to know how to get the expected action.
    I expect that I might have some terms mixed up and/or some important information that would aide you in helping me.  If that is the case please re-post and I will add any missing or mis-stated information.
    Thanks,

    Post Author: V361
    CA Forum: Formula
    I am slightly confused, but perhaps you can create a formula
    Then group on the formula.  If this is not what you want, could you post some sample data, with the desired results.

  • Problem Importing XML Issue with FLAT MultiValued Field.

    I'm importing parts to my repository with a number of fields. This import is used to both UPDATE existing parts as well as add new parts to the catalogs. We want the fields in the import to be updated. There is one flat MultiValued Field that we need to hold just the value that we're adding in the XML. This should overwrite the others. I have tried many different configurations. I want to know how to make this change happen without overwriting fields that are no contained in the XML.

    Hi,
    Map the multivalued field with the source field, then right click on the maultivalued field at destination side, right click on it and set Multi-Valued Update = Replace . By default this property is set to Append which simply append the values from the source field.
    Kindly update us...
    Regards,
    Jitesh Talreja

  • Import Illustrator File with multiple layers and sublayers as composition retaining all layers and sublayers

    I have drawn a country map with multiple layers and sublayers including streets, cities, rail lines, ...
    Now I want to create a template for my collegues in After Effects.
    For this I want to import the .ai file into After Effects retaining all sublayers and layers in compositions and subcompositions.
    When I do that, I get the first couple of layers correctly, the other ones comes in one merged composition.
    What can I do, to get all layers each as a layer in After Effects?
    Yours, Raphael

    Illustrator only imports the first level of layers. If you have groups or paths below you need to release the groups to layers. The layers will then be stacked in order as sub layers. Then you need to move them up.
    The steps are to select a layer in the Illustrator layer panel, then without selecting any specific element in the layer click on the menu in the top right corner and select release to layers. All a elements in that layer will be converted to layers. Now select them all and drag them up above the original layer. This will leave the original layer empty and put all elements in new layers.
    Here's a tutorial I did a zillion years ago which uses this technique to turn a blend into a morph.
    Morphing With Adobe Illustrator. I hope this helps.

  • UME user search with multiple search fields (AND / OR search)

    Hi,
    I'm struggling with a UME user search problem. I have multiple search fields: lastname, firstname, department
    Searching in this fields is working with the default IPrincipalSearchFilter.SEARCHMETHOD_AND (default)
    <a href="http://help.sap.com/javadocs/NW04/current/um/com/sap/security/api/IPrincipalSearchFilter.html#setSearchMethod(int)">JavaDocs SearchMethod_AND</a>
    Now I would like to add an additional search field for searching in telephone, cellphone as well. BUT searching for a phone number with searching for one of the other fields should not be a AND search. Is this possible?
    Here is the actual non-working code:
         Vector retVector = new Vector();
         //get Userdata with IUserFactory
         IResourceFactory resourceFactory = ResourceFactory.getInstance();
         IURLGeneratorService urlGen = (IURLGeneratorService)resourceFactory.getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
         IUserFactory userFac = UMFactory.getUserFactory();                    
         IUserSearchFilter srcFilter = null;          
         try
              srcFilter = userFac.getUserSearchFilter();
         } catch (UMException e)
              // TODO Auto-generated catch block
              e.printStackTrace();
         if(lastName.length() > 0)
              srcFilter.setLastName(lastName + "*",ISearchAttribute.LIKE_OPERATOR, false);
         if(firstName.length() > 0)
              srcFilter.setFirstName(firstName + "*",ISearchAttribute.LIKE_OPERATOR, false);
         if(department.length() > 0)
              srcFilter.setDepartment(department + "*", ISearchAttribute.LIKE_OPERATOR, false);
    //Here I need help!!!!!!! Please advice!!!
         if(telephone.length() > 0)
              srcFilter.setTelephone("*" + telephone, ISearchAttribute.LIKE_OPERATOR, false);
              srcFilter.setCellPhone("*" + telephone, ISearchAttribute.LIKE_OPERATOR, false);
         //if(mobil.length() > 0)
         //     srcFilter.setCellPhone("*" + mobil, ISearchAttribute.LIKE_OPERATOR, false);
         //Set maxium value for Result and thus limit the static variable SIZE_LIMIT_EXCEEDED
         //This method can only be used, if only one search attribute is specified -> thanks SAP
         if(srcFilter.getElementSize() <= 1)
              srcFilter.setMaxSearchResultSize(300);
         ISearchResult srcResult = null;
         try
              srcResult = userFac.searchUsers(srcFilter);
         } catch (UMException e1)
              // TODO Auto-generated catch block
              e1.printStackTrace();
    Thanks for any help...
    Stefan

    Hello,
    I could still need some help. Is there no one who could give me a tip? Could I explain my problem clearly enough or do you need some more information about my problem?
    Or is the search topic with searchFilter not a very common used thing?
    Is there a possibility to do a search in the received search result? Can anyone explain how this would work?
    Any ideas are welcome.
    Regards,
    Stefan

Maybe you are looking for

  • MacBook Pro randomly shuts off and restarts a few seconds later

    I brought my computer to the Apple store a couple months ago because the USB port was broken and my computer would randomly shut off. Long story short, they fixed the USB port, deleted all my files, and reinstalled Leopard. The random shut off proble

  • Special Characters shown as question marks

    Hi everyone. I have an iPhone 4 since December 2010 but im having a problem, everytime i recieve or send a text message with special characters such as: ñ á é ç ó etc... i recieve this characters with question mark (?) i called IUSACELL which is my c

  • Metronome with live guitar?

    I tried recording with my electric guitar on Garageband for the first time last night- it worked fine, except that I couldn't get the metronome to work. I want to synch up to Garageband's timeline, adding beats & whatnot, so I really need to follow t

  • Enter your system lock pin code to unlock this mac

    I just traded my Macbook Pro for a 27" Core i5 iMac. I wiped the iMac when I traded and I brought it home to do a full reinstall. I booted holding the Option key down and noticed this iMac had a recovery partition I opted to use the recovery partitio

  • Can't login to hp eprint: eprint forwards to hpconnected forwards to eprint...

    I can't login to eprint anymore. Which means I can't change my eprint settings, authorized email Adresses, check my printers - I'm simply looked out. So the "service" is funamentaly broken to me. The reason? eprint is now hp connected for some reason