Script import of the FDM for amount

This excerpt from the ERP, they have a separate column showing "S" or "H" to indicate if the amount is a debit or a credit.

It seems that I won't be able to use this column to attach to the amount field (only accepted numbers?)

No idea how I can do this job? Any help would be appreciated! Thank you.

Answer to myself. I already found the path. Here is the script I used. It is relatively simple, but it did not work because the amount script will be applied to the header row, that generated the error. Then I had to add a dumpster in the import format.

Function AddAmount (strField, strRecord)

Dim Amount2

Amount2 = DW.utilities.fparsestring(strRecord,33,25,",")

If Amount2 = 'H' Then

AddAmount = StrField *-1

On the other

AddAmount = StrField

End If

End Function

Tags: Business Intelligence

Similar Questions

  • Script to change the settings for security vSwith

    We need a script to change the settings for security vSwitch.

    To change the below: -.

    Mac changes Accept Reject

    Forged pass Accept Reject

    The two parameters above must change on all the vSwitch in vcenter.

    Altogether. Pass an argument to Get-VMHost

    If you pass the complete hostname (as he shows in vCenter), it will act on the single host:

    Get-VMHost MYESXi01.mydomain.com

    or if you want to do more, you can pass a joker:

    Get-VMHost MYESXi*.mydomain .com

    FWIW, I think that should do the same thing on a single line, if you like this better

    Get-VMhost|%{$hv=Get-View $_.ID;$ns=$hv.ConfigManager.NetworkSystem;($hv.Config.Network.Vswitch)|%{$vs=$_.Spec;$vs.Policy.Security.AllowPromiscuous=$false;$vs.Policy.Security.ForgedTransmits=$false; $vs.Policy.Security.MacChanges=$false;$ns.UpdateVirtualSwitch($_.Name,$vs)}}

    Doug

  • Script to distribute the object for the page, margin, or the spread?

    I see I can create shortcuts to align objects to the page, margin, and the spread, but I can't specify to what I want to distribute an item! I went through the list in the Shortcuts dialog keyboard again and again, I don't couldn't find it! Why is this omitted? Is this an oversight?

    And my main question: how is this possible? There the script to achieve this goal?

    Thanks in advance!

    Well, in general is not a good idea for the scripts modify the user's selection. Unless the purpose of the script is that the user sees that other things are selected.

    You can get an array of all the objects on the current dotted with app.activeWindow.activeSpread.allPageItems but that will include the internal elements of groups. If you want the elements of higher level (including groups), use () .getElements () app.activeWindow.activeSpread.pageItems.everyItem.

    So to do what you asked, you can select all with:

    app.select(app.activeWindow.activeSpread.pageItems.everyItem().getElements());
    

    But if your goal is to distribute to each of them, use:

    app.activeDocument.distribute(
      app.activeWindow.activeSpread.pageItems.everyItem().getElements(),
      DistributeOptions.HORIZONTAL_CENTERS,
      AlignDistributeBounds.SPREAD_BOUNDS);
    
  • Why were labels in iPhoto do not transferred when photos have been imported to the Photos for Mac?

    I've had the label of photos in iPhoto, but these were not imported when I installed pictures.  How can I get these labels in Photos?

    Thanks for your help

    Vernon

    This defines how metadata is transferred - How Photos handles content and metadata for iPhoto and Aperture - Apple Support

    However, there is no field in iPhoto pictures or named 'Label' - what are you exactly talking (there are descriptions, keywords, filenames, titles, places, faces, etc. - but not of "labels")

    and there is no import in question - you are migrating towards Photos iPhoto libraries - do not import anything

    LN

  • script photoshop at the exit for devices of different screen sizes

    Does anyone know of a script that will display photos from Photoshop to difference for various devices screen sizes?

    Image Processor Pro can save various documents of sizes at the same time.

    http://russellbrown.com/scripts.html

  • PowerCli script to generate the report for the VM and ESXi model

    Hello

    I'm trying to generate a report for the virtual machines to a domain controller that includes the operating system, Cluster and host of brand and model of ESXi, but for some reason any the ESXi info does not come through. Any help is greatly appreciated.

    Get-data center 'TEST ' |

    Get - vm |

    WHERE-object {$_.} PowerState - eq "Receptor"} |

    Select Name, @{N = "OS"; e = {$_.}} Extensiondata.Guest.GuestFullName}},

    @{N = "Cluster"; E={$_. VMHost.Parent}},

    @{N = 'Esxi model'; E = {Get-VMHost - VM $_.} VM | {{Select model}}

    The virtual machine has the properties of the host.  For your information "Model ESXi" use $_. VMhost.Model, $_ is the current information for pipeline for the virtual machine.  You did for the section "cluster".

  • FDM Import (integration) Script - import failed

    Good day, colleagues.

    That we encountered the following problem. On the 11.1.1.3 integration script import of the system we run of FDM (called "SQLIntegration") Administrator's Guide, it is done properly (in the window pop up the message "Import SQL successful!"), but FDM lance error message "error: failed to import" and no data is loaded. Log file is empty.

    Please, share your experience.

    Did you put the function = true at the end?

  • Export the spreads for printing French fold

    Hello, I have a book in InDesign I want to print french fold. I put it in place in a traditional way, as follows:

    Scan4.jpeg

    But I would like to be able to export as spreads. as follows:

    Scan4 2.jpeg

    (Rather than the traditional pasta spread that would be page 1 by itself, then pages 2 and 3 together.)

    I know if my paper was that of 6 pages, simply unlock all master items and move all pages second to do the plan would work, but my book is about 250 pages, not 6).

    Does anyone know of a simple way to do this? Or a script that reorganizes the "spreads" for you? Or a plugin for this?

    Thank you!

    Create a new document and use the file > options show and the Place to import all the pages - then place the pages where you want.

  • Script to change the key of win8 silently

    I need a script to change the key for win8 silently, there are hundreds of systems whose key is goinng expires soon, so I need a script that can the key Active silently without user interaction. Planning to deply the script using SCCM, any suggestions would be helpful. Thanks in advance...

    Since this isn't a scenario of domestic consumption current, you'll get best advice of experts of INFORMATICS:

    http://forums.technet.Microsoft.com

  • How to enable the CACHE for all LOB data

    Hello

    I want to activate the CACHE for all LOB in my database - 10.2.0.4

    Does anyone has generic script to activate the cache for all TRADES

    Thank you

    You should be able to write some dynamic SQL code. This will set each BUSINESS in the current schema CACHE

    DECLARE
      l_sql_stmt VARCHAR2(4000);
    BEGIN
      FOR lobs IN (SELECT * FROM user_lobs)
      LOOP
        l_sql_stmt :=
          'ALTER TABLE ' || lobs.table_name ||
          ' MODIFY LOB( ' || lobs.column_name || ' ) (cache)';
        execute immediate l_sql_stmt;
      END LOOP;
    END;
    

    Justin

  • Gives the Script import FDM of oracle RDB to import - import has failed. Data not valid or empty content.

    Hi all

    I create an FDM interface to extract data from Oracle RDB and onto an essbase database. I feel that if you have to shoot the script import data of RDB, you must create an integration. So I created a script to import integration based on the example given in the FDM Document admin.

    The Script is as below:

    Function PSIP_TEST (lngCatKey, dblPerKey, strLoc, strWorkTableName)

    '------------------------------------------------------------------

    "Import oracle Hyperion FDM integration script:

    '

    ' Created By: admin

    "Creation date: 18/02/2014-18:00:33.

    '

    ' Object:

    '

    '------------------------------------------------------------------

    Dim cnSS ' ADODB. Connection

    Dim strSQL ' SQL string

    Dim rs ' Recordset

    Dim rsAppend ' tTB table add rs object

    'Initialize objects.

    Define the cnSS = CreateObject ("ADODB. Connection")

    Set rs = CreateObject ("ADODB. Recordset')

    Set rsAppend = DW. DataAccess.farsTableAppend (strWorkTableName)

    "To connect to the Oracle database

    CNSS. Open "Provider = OraOLEDB.Oracle.1; Password = PSIP_TST; Persist Security Info = True; User ID = PSIP_TST; Data Source = PSIP.

    ' Create the query string

    strSQL = "SELECT YEAR, COST_CENTRE, PROGRAMME_CODE, PROJECT_CODE, ACCOUNTS, AMOUNT FROM VW_PSIP_EBUDGET_ESTIMATES.

    «Get data»

    RS. Open strSQL, cnSS

    "Locate the data.

    If rs.bof and rs.eof then

    RES. PlngActionType = 2

    RES. PstrActionValue = "no records to load!

    Exit Function

    End If

    ' Loop through records and add table APCs to place DB

    If it is rs.bof and not rs.eof then

    While Not rs.eof

    rsAppend.AddNew

    rsAppend.Fields ("PartitionKey") = RES. PlngLocKey

    rsAppend.Fields ("CatKey") = RES. PlngCatKey

    rsAppend.Fields ("PeriodKey") = RES. PdtePerKey

    rsAppend.Fields ("DataView") = "CDA".

    rsAppend.Fields ("CalcAcctType") = 9

    rsAppend.Fields ("Account") = rs.fields ("ACCOUNTS"). Value

    rsAppend.Fields ("Entity") = rs.fields ("COST_CENTRE"). Value

    rsAppend.Fields ("UD1") = rs.fields ("COST_CENTRE"). Value

    rsAppend.Fields ("node2") = rs.fields ("PROGRAMME_CODE"). Value

    rsAppend.Fields ("UD3") = rs.fields ("PROJECT_CODE"). Value

    rsAppend.Fields ("Amount") = rs.fields ("Amount"). Value

    rsAppend.Update

    RS. MoveNext

    Loop

    End If

    "Loaded files

    RES. PlngActionType = 6

    RES. PstrActionValue = "import successfully!

    'Assign the return value.

    SQLIntegration = True

    End Function

    When I run the Script in the Script Editor, I get the following error:

    Error: An error occurred while running the script:

    -2147467259-data access error.

    Online: 19

    If I see in the error log, it is as follows:

    ERROR:

    Code... - 2147467259

    Description... ORA-00903: invalid table name

    Process... clsDataAccess.farsTableAppend

    The component... upsWDataWindowDM

    Version.......................................... 1112

    Thread........................................... 41900

    Nude of the line. 19 is as follows: Set rsAppend = DW. DataAccess.farsTableAppend (strWorkTableName) and, therefore, I thought that perhaps this is when I run the script in the Script Editor, perhaps that the value of the variable "strWorkTableName" does not get filled it is why it gives an error.

    So I ran the import stage in the Workflow, and Got the following error:

    Error: Failed to import. Data not valid or empty content.

    and there is no entry in the error log.

    I'm lost, need your help please.

    One last thing, I would like to ask is kindly please post if my connection string is correct, either:

    CNSS. Open "Provider = OraOLEDB.Oracle.1; Password = PSIP_TST; Persist Security Info = True; User ID = PSIP_TST; Data Source = PSIP.

    I read that FDM is a 32-bit product and will require a connection 32-bit oledb provider.

    FDM here is installed on a 64-bit computer and the provider that is used here in the connection string is 64-bit.


    Please help, my work here came to a fixed support. Kindly help

    That would mean that your 32-bit TNSNAMES. ORA file does not have a good connect descriptor for what you provide in the UDL file.

    Check your TNSNAMES 32bits. ORA file and make sure you have a good connect descriptor for the Oracle database.

  • Amount import the script based on the entity

    I have a data file of local currency with all my features in there. However, because of the way that SAP stores one of the currencies that I need several amounts for a single entity by 100. I have attached the script below in the field amount in the import format, but I'm not having any luck. I know there is not something which only escapes me on the StrEntity variable. Any help would be greatly appreciated.


    Function XAFcurrency (strField, strRecord)

    If StrEntity = "7771.

    XAFcurrency = StrField * 100

    On the other

    XAFcurrency - StrField

    End If
    End Function

    You must analyze the strRecord with the fParseString command or split command before testing the value of the entity.

    For example, your files contain 12 fields delimited by tabs and 10 is the field of the entity. You can then use the following:

    If DW. Utilities.fParseString (strRecord, 12, 10, vbTab) = "7771" Then
    XAFcurrency = StrField * 100
    On the other
    XAFcurrency = - StrField
    End If

  • FDM hangs on the screen for editing during import stage

    When users try to import files via FDM, they see on the "Processing" screen... "and it seems to be time or something because it will stay on the screen until the user does something to refresh the screen. He also seems to be a problem when a user attempts to export a map to Excel, the screen for editing also blocks and I see on the side server that the file is created, but the user never receives a prompt to open or save the file locally. I tried both of these processes on the server and this problem does not exist.

    Data sheet: Win server 2008 R2, SQL Server 2008 R2, IE 8

    I already tried the following:

    Checking the settings IE timeout in the registry
    Verified that smart was not installed on the server of web app/FDM
    Verified users are using the correct URL: \\fdmwebserver\hyperionfdm

    Any suggestions?

    Check whether the Antivirus Firewall is activated on the workstation as Symantec or Mcaffee

  • Encryption of password for the FDM script

    I am currently on Hyperion 11.1.2.1 which runs on Windows 2008 Server SP1 and uses Oracle Database 10 G as a backend.

    Currently, I have a script within the application of FDM which pulls data from database and load in the table of the application of the FDM.
    It works all fine and does the job as expected.

    But the only problem with this script, it's that the passwords are in a readable format that is specified in the parameters of connection as below

    Code snippet:

    Dim connectionString

    ' * Create the connection
    Sun connection: connection = CreateObject ("ADODB. Connection")
    Dim lines: set lines = CreateObject ("ADODB. Recordset')
    connectionString = "Provider = msdaora; Data Source = TestRdbms; User Id = Testuser; Password = password567; »


    ' * Open connection
    ConnectionString Connection.Open


    Is there a way to make sure that this password is encrypted or not read by the user/admin.?
    Please give your suggestions on this.

    To use the udl from inside your script just to replace your line

    connectionString = "Provider = msdaora; Data Source = TestRdbms; User Id = Testuser; Password = password567; »

    with

    connectionString = "File Name=C:\Path\To\Your\SourceDB.UDL";

  • 12.2.4 WebADI - Integrator custom fails to cleanup script is triggered when the import returns the error lines

    Hi, hoping for help because it is not very useful detailed documentation on this topic here.

    I built a custom WebADI that uses custom procedures to validate and download the date in a custom table.  I then called an importer script that checks the balance of files (and other things) and mark the lines that do not reach a State of error.  I also managed to get these errors to be selected by the definition of error line and message error search section and everything is right with the world.

    Except that when imported and reports to hide the sad faces appear in the worksheet, I expect the cleanup script then learn to delete the records so that when the errors are corrected in the spreadsheet we don't get the lines in double... and is not.  No amount of tweaking, etc. application errors will result in cleaning the fire.

    Can someone tell me what I need to import of PL/SQL program to do when it detects a mistake for execution of the cleaning procedure?

    Thanks in advance

    Mike

    IT FIXED myself.

    The downloaded must be a function and return an error message of VARCHAR2.  If you return NULL - then the cleaning is not called as expected. If you return to any string, then cleanup is called.

Maybe you are looking for

  • Satellite 2430 DVD drive problem

    HelloMy Satellite 2430 has had a strange DVD problem and may not know what is all about. All started when I tried to make a full recovery. The unit was not able to boot from the DVD. I checked the DVD player with different bootable disk, but still no

  • Ringtones/notifications

    Where are the notifications/ringtones stocks? Calendar and Contacts show me a list of files that I copied to/storage/emulated/0/Ringtones, but they don't show any of the pre-installed sound files. Notification of calendar is actually still on "Defaul

  • album art is displayed

    the album art for mp3 files are is not displayed in the Solution Explorer, thumbnail display... it will display, but a few weeks back, I changed a few settings that stopped the album art of projection, I think that Help, please

  • My computer freezes constantly!

    I have windows vista 32 byt, and for the first year, it was beautiful.  Now, my computer crashes on my daily life.  I do maintenance scheduled, defragment and all that stuff and I'll be in the middle of something and don't move the mouse.  I manually

  • New computer without OS. Have Win98 OEM, upgrade XP Home Edition, and upgrade Vista Home Premium software.

    I entered the confusion there is trying to install the software above in the obviously logical order of about 18 months. I was puzzled by the comment of the information for the purpose (I don't remember exactly) that Vista could not be installed beca