FDM Like Mapping Script for Account

I am using the following script as a "Like" map for the Account. The import file has account in this format: 123456-Description. I would like to remove everything after the "-" and set the result to just the account number; however, I keep getting an error saying Conditional Map Script Error: Expected 'End' at line(4)
sParse="-"
ipos=InStr(varValues(13),sParse)
If iPos=0 Then Result=varValues(13)
Else Result=Left(varValues(13),iPos-1)
End If
Anyone know how to resolve the error? I tried moving the End If up to line 4, but that didn't help.
Thanks.
Terri T.

The setting of the RESULT must be on its own line of the If statement as follows:
sParse="-"
ipos=InStr(varValues(13),sParse)
If iPos=0 Then
     RESULT=varValues(13)
Else
     RESULT=Left(varValues(13),iPos-1)
End If

Similar Messages

  • FDM Conditional Map Script Error

    Hi all,
    we trying importing data from EBS to HFM though ERPI by using FDM.
    We used conditional based scripts to importing data from ebs to FDM.
    this scripts used in FDM for ICP dimension between conditional mapping script.script logic is some particular account are related to Intercomapny transaction accounts we have to map to ICP member
    can anyone help me on this:
    this is error :
    ** Begin FDM Runtime Error Log Entry [2011-12-12 15:10:18] **
    ERROR:
    Code............................................. 1014
    Description...................................... Conditional Map Script Error: Expected 'End' at line(2)
    Script:
    If varValues(14)="113401" Then Result="21_ADNIP"
    Else Result="[ICP NONE]"
    End if
    Rule=I1
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 13888
    IDENTIFICATION:
    User............................................. admin
    Computer Name.................................... ADNIPHYPUAT01
    App Name......................................... FDMHFM
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... HYPUAT
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... HFMGLLOAD
    Location ID...................................... 750
    Location Seg..................................... 4
    Category......................................... WLCAT
    Category ID...................................... 12
    Period........................................... May - 2011
    Period ID........................................ 5/31/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    Thanks.
    Srini

    Hi, please try the mapping script again having the "Result=" statement on a separate line, like:
    If varValues(14)="113401" Then
    Result="21_ADNIP"
    Else
    Result="[ICP NONE]"
    End if
    Kind regards,
    Jeroen

  • VimNav - another vimperator-like navigation script for webkit browsers

    I wanted to use vimperator-like navigation for my Midori browser, so I did combine the functions of several scripts around, webkit user scripts and uzbl ones, and tweaked all to my liking. This turned out to a major rewrite and can be loaded from here.
    Note: This is currently tested for Midori only. Basically it is a greasemonkey script and should be useable with other (e.g. gecko-based) browsers as well. This will require some rewrite, however.
    To use the script with Midori, put it into ~/.local/share/midori/scripts/VimNav.user.js.
    I implemented several additional features and configuration possibilities for (my) convenience, mainly:
    - simple vim-like page scroll (defaults to "hjkl" row)
    - key bindings fully configurable
    - vimperator-like navigation by labeled hints
    - define special collateral sequences for labels display, e.g. "abc" instead of "123" or even let the script select an optimally short collateral sequence for the given page
    - use shortened labels for partially matched links (like uzbl "follow.js") or color-code remaing selection possibilities (like "KeyNav.user.js" from Userscripts.org)
    - scroll the page during label navigation
    - temporarily hide labels during label navigation
    - switch to a new page automatically as soon as a match was found or let the user confirm the selection (allows for label correction with backspace)
    - open new link in the current window or use another window (resp. tab) for it.
    For details read the configuration section at the beginning of the script.
    Have fun!
    Edit: Download location altered to point to the most recent version.
    Last edited by bernarcher (2010-05-29 14:18:15)

    Andrwe wrote:There is just one question for me:
    Is the leading 0 necessary for numeric hinting?
    Not necessarily so, but I wanted to implement autoselection in a more consistent way. For instance, if there is a series of hints numbered 1 through 35, and you want to select, say, label number 2. So you press the "2" and have labels "2" and, possibly somewhere elsewhere far out of sight, "20" through "29" to select from. As you do want the "2" you need to explicitely confirm, e.g. by pressing return.
    On the other hand, if there are leading zeros, you select each label in a consistent way starting at the most significant digit: "0", then only "0" trough "9", usually placed close together, remain. You press "2" and, voilá, (if autoselect is on) the browser navigates to where you want.
    So you don't really save a keystroke but can remain consistent. In fact, if you additionally use the "optimal" collateral sequence, hints seldomly need more than two (alphanumeric) digits, which makes navigation fast and efficient. The only cost there is that pages with a changing number of links (as this forum) occasionally switch between pure numerical and alphanumerical hint labels on subsequent calls. But this is something I easily can live with.

  • Flip sign in mapping script

    Hi All,
    is there a possibility to swith the sign in a mapping script.
    So my target for the like mapping = #Script and my script says
    If VarValues(9) < 0 then
    Result = "143100"
    Else
    Result = "222200"
    End if
    Is there a possibility to make the value multiplied by -1 for the first option?
    My other solution is to use 2 separate mappings but i would prefer to use only 1.
    Thanks in advance,
    Marc

    Also you will have to create a logic account to duplicate the source value for the data line in question or you will never hit the second mapping

  • Need help in doing FDM "Maps" (Not able to do a like mapping)

    Hi
    sub : Unable to do a like mapping in FDM
    I am new to FDM,here is what i am trying to do.
    I have a ODBC source table and the table struct is somthing like this.
    Accountcode1,Accountcode2,,,,YTD
    I have a Custom Import Script where i have done the column mapping as bellow
    source >to> Destination
    Accountcode1 >> Accounts
    Accountcode2 >> ICP
    ...>>.....
    YTD>>Actual values
    Destination is HFM
    with the above senario here is what i am trying to do.
    I am trying to apply the following logic
    If Accounts = "1050300" and ICP = "10909001" then the value should go to HFM account1
    else if If Accounts = "1050300" and ICP = "10909002" then the value should go to HFM account2
    and so on.
    the following are the questions i am not clear about while implementing the above logic.
    Should i be using the like mapping ??
    if yes then what should be in the "Rule Definition" and the "Script"
    since the source account values are the same should i be doing this like mapping in the ICP Dimension ??
    or is it a "reverse" in mapping ??
    any sort of help in getting me resolve this issue will be highly appreciated.
    Edited by: 845926 on Apr 3, 2011 8:11 AM
    Edited by: 845926 on Apr 3, 2011 8:12 AM
    Edited by: 845926 on Apr 3, 2011 8:13 AM

    Hi,
    there are two ways of solving this, the easy one without scripting is to combine in the import format account and custom1 for your account source. This will give you a longer mapping table but solves it without scripting..
    Otherwise you use the like mapping where your target is #script and you use varvalues in your if then else satement.
    Just look up varvalues in the FDM admin manual for a detailed description.

  • Login script not mapping drives for users

    I am in the process of configuring a new Windows 2008 terminal server in an existing Windows 2003 domain.  The TS is installed on a member server running Windows Server 2008 SP2.  The problem is that the domain login script (set in group policy) does not seem to be working for the users.  
    I have a special TS group policy for the new terminal server and have enabled loopback processing on the default domain policy. The only setting configured in the TS policy is the location of the user's terminal server roaming profile. This seems to be working.  Other than the login script, other elements of the domain-level group policy, such as folder redirection, seem to be working. When I run the GP result tool on the terminal server, it shows all of the appropriate group policies from both the TS policy and the domain-level policy, including the login script.  This login script is vital, since it does drive mapping for a bunch of resources on the domain that users need to run certain programs.  The odd thing is that the login script runs for the Administrator account, which uses a separate group policy that has inheritance blocked.
    Any help would be appreciated!
    Laurie

    I realize this is old, but for anyone who comes here after me, here goes.  What i found, is that instead of running a vbs script to map the drives, i run a vbs script to get the parameters i need, then i run a batch file from the vbs and pass it the
    parameters.  For some reason, when the logon script is run as a batch file, all of the drives map, even for users who are local admins.  It seems to run in the users current context, unlike a vbs script.  Here is an example :
    ' maps a shared documents folder "S:/" to the same folder as the OU that the user is in.
    Set objSysInfo = CreateObject("ADSystemInfo")
    strUser = objSysInfo.UserName
    Set objUser = GetObject("LDAP://" & strUser)
    strUserName = objUser.samAccountName
    strOUPath = objUser.Parent
    arrContainers = Split(strOUPath, ",")
    arrOU = Split(arrContainers(0), "=")
    strOU = arrOU(1)
    Set objShell = CreateObject("WScript.Shell")
    objShell.Run "\\domainname\NETLOGON\Login.bat """ & strOU & """", , TRUE
    And the batch file takes the parameters like so :
    :: Initialize variables
    set parentOU=%~1
    :: Delete all known shares
    net use s: /delete
    :: Map all known shares
    net use S: "\\domainname\mainshare\%parentOU%" /persistent:yes
    Make sure to use quotes around the variable in the vbs file, or your batch file will see it as two parameters.  Then make sure to use %~1 as the variable in the batch file to remove the quotes from the parameter that is passed.

  • Scripts for adding/deleting/modifying Open Directory accounts?

    I think I have searched high and low for an answer to this question, but if I missed it please point me in the right direction. Where can I find information on scripts for adding/deleting/modifying open directory accounts? At the very least, a command line utility with some syntax guidelines! Any help would be greatly appreciated.

    Hi
    I personally don't know if any scripts although you can use the command line to do pretty much anything you want with the Open Directory. Consult the manual: man dscl. If you launch terminal and issue dscl you should see something like this:
    my-Laptop:~ me$ dscl
    dscl (v20.4)
    usage: dscl [options] [<datasource> [<command>]]
    datasource:
    localhost (default) or
    <hostname> (requires DS proxy support, >= DS-158) or
    <nodename> (Directory Service style node name) or
    <domainname> (NetInfo style domain name)
    options:
    -u <user> authenticate as user (required when using DS Proxy)
    -P <password> authentication password
    -p prompt for password
    -raw don't strip off prefix from DS constants
    -url print record attribute values in URL-style encoding
    -q quiet - no interactive prompt
    commands:
    -read <path> [<key>...]
    -create <record path> [<key> [<val>...]]
    -delete <path> [<key> [<val>...]]
    -list <path> [<key>]
    -append <record path> <key> <val>...
    -merge <record path> <key> <val>...
    -change <record path> <key> <old value> <new value>
    -changei <record path> <key> <value index> <new value>
    -search <path> <key> <val>
    -auth [<user> [<password>]]
    -authonly [<user> [<password>]]
    -passwd <user path> [<new password> | <old password> <new password>]
    Entering interactive mode...
    The above is for 10.4 and should server equally as well for 10.5.
    Hope this helps, Tony

  • SAP Screen Personas problem in a script for FS00(G/L Account Display) screen

    We are facing a problem when we are developing a simple script for FS00(G/L Account Display) in SAP Screen Personas. Let me give you a brief of the problem:
    We have taken two text fields in the dashboard from which the values will be copied and will be pasted in corresponding text fields of G/L Account and Company Code in FS00 TCode.
    When we are giving both the values, then script is working fine and it will navigate to the customized Personas screen where all the details are shown.
    But when we are leaving any one/both fields blank and execute the script option, then the pop to enter G/L Account/Company Code is coming:
    If we are setting the basic FS00 TCode view as default then after the pop-up we are able to enter the respective G/L account number or company code and everything is running fine.
    If we are setting our customized personas screen as default screen, then the pop-up keeps on appearing and therefore we are not able to give the inputs (G/L account or company code).
    And even if somehow manage to get rid of the error and enter the correct GL account and Company Code then also the details are not displayed. The F4 search help to pick the G/L account number and company code is not working, somehow the Personas screen seems to be locked here.
    Please let us know if someone has already encountered this type of situation before and what should be the solution of this.

    Hi,
    You could ensure that both of the text fields are not empty on your 'dashboard' before executing the FS00 tcode. This would negate the popup from ever appearing.
    To do this you can use the "IF <text field control ID> Is Empty" statement in your script and then output a custom error message to another text box if the condition is true. then use an "IF <text field control ID> Is NOT Empty" statement to copy the value/s execute the FS00 tcode if the condition is true.
    Now if you're going to check multiple fields for entries before executing the FS00 you'll have to get a little more creative and do something like I did in one my scripts (thanks again to Steve Rumsby for the tips) and create a 'check field' where you can enter values for items checked successfully and then use a little bit of javascript to count up the checks and check the result before executing the next part of the script.
    Another idea is to check for the existence of the popup and navigate past it in your script, to do this you can use the "IF <control ID> control exists" statement.
    Either one should work.

  • I have one home computer and our household has 2 iphones. I am signed up on itunes and now my husband would like to have an account with itunes as well. Can there be two accounts for 2 users for itunes on one home computer? How do I add another account ?

    I have one home computer and our household has 2 iphones. I am signed up on itunes and now my husband would like to have an account with itunes as well. Can there be two accounts for 2 users for itunes on one home computer? How do I add another account ?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Script for adding a login item for all accounts in the system

    Hi,
    Thanks for reading this query. I am new to the mac environment. I have developed a java application and created an installer of this application for MAC system.I want to run this application on starting the system. So I have written an apple script for adding this application in login items and this script will run immediately after completing installation process. And the entire process is fine. But the problem is, the application is added to login items of only the user who installed the application. But I want to get available the application in the login list of all accounts created in the system. How can I achieve this? Once more thanks in advance. I am attaching my script below:
    +*tell application "System Events"*+
    +* make login item at end with properties {path:"/Applications/MyApplication.app", hidden:true}*+
    +*end tell*+

    Hi,
    Try to use tables RSOSFIELDMAP, RSDSSEGFD and RSTRAN
    Hope it helps
    bhaskar

  • I have a Adobe CC Photography plan and I would like to Upgrade for the Complete plan, What should I do? my account is Brazilian

    I have a Adobe CC Photography plan and I would like to Upgrade for the Complete plan, What should I do? my account is Brazilian

    Adobe only sell the latest version of Creative Suite which is CS6 so you can't buy CS5 anymore. Upgrades are also only available from CS5 to CS6 so CS3 wouldn't qualify anyway.
    I'm afraid you are out of luck.

  • FDM Mapping script produces result #script

    Hello,
    I am trying to use the following mapping script and instead of getting the result defined in the script it is producing the result #script. It is as if it is taking that as the target rather than processing the script. Has anyone else seen this behavior in FDM?
    strTrgAcct = varValues(14)
    Select Case strTrgAcct
    Case "100900","100925","101310","201690","201700"
    Result = "010"
    Case "104200", "104300", "104500", "104700", "104800", "104900", _
    "105000", "105200", "105300", "105450"
    Result = "060"
    Case "107300"
    Result = "210"
    Case Else
    Result = "[None]"
    End Select

    Hello,
    If you are sure that all the columns are filled out correctly and there is nothing in your user error log; I would then suggest you create an SR to have an engineer review it.
    Thank you,

  • Best Practices to update Cascading Picklist mapping for Account record type

    1. Most of the existing picklist values name in parent and related picklist has been modified in external app master list, so the same needs to be updated in CRMOD.
    2. If we need to update picklist value, do we need to DISABLE the existing value and CREATE a new picklist.
    3. Is there any Best Practices to avoid doing Manual Cascading picklist mapping for Account record type? because we have around 500 picklist values to be mapped with parent and related picklist.
    Thanks!

    Mahesh, I would recommend disabling the existing values and create new ones. This means manually remapping the cascading picklists.

  • I have 2 different iCloud accounts and would like to delete the account where I have purchased paid for extra iCloud data storage.  Can I transfer this additional storage over to my other account?

    I have 2 different iCloud accounts and would like to delete the account where I have paid for extra iCloud data storage.  Can I transfer the data storage over to my other account?  I am trying to get my iCloud and Apple account with same user name.

    You'll have to contact Apple about that.
    Their iCloud support page indicates you cannot merge or transfer iCloud accounts.
    What do you mean by, I am trying to get my iCloud and Apple account with same user name.

  • How can I view my photos within my iCloud account? I don't have an icon for that, like I do for Calendar, for instance.

    how can I view my photos within my iCloud account? I don't have an icon for that, like I do for Calendar, for instance.

    There is no "Online Gallery" feature in iCloud.
    You can use photostream instead to snyc your pictures across your devices, but not to the internet.

Maybe you are looking for

  • H.263/RTP payload

    As we know jmf can stream in h.263/rtp with payload 34. i am streaming h.263/rtp to a device which does not understand payload 34 rather payload 96 whihc is used by h.263-1998 and 2000 updated versions. Do anyone has any idea how can change payload f

  • The from line in Mail is missing

    I used to be able to set the From line in Mail to which ever alias I was using. But the From line suddenly disappeared and it's not listed in the little box where you can select which header lines you want. And long before it disappeared it would som

  • Retina MBP Repeatedly Crashing

    Hi all, have a new retina (1 month old) that's been constantly panicing on me. Panic report is below. Seems to crash more when I'm writing data to the drive (768 GB solid state). Although, it will go days without a panic and it will dump when doing s

  • Layers transparency appears as black in Photoshop CS4 extended

    My preferences are set up to display the layers transparency as grid size medium and grid colour light but when I use a layer the background is always solid black rather than the chequered design it is set up to be. I have tried altering the preferen

  • Multiple column pop-up menus

    I have a client with a long list of options that need to be added to a pop-up menu. On 800x600 monitors, the list runs off the bottom of the screen. Is there a way using Fireworks (or Dreamweaver) to automatically split the pop-up menu into columns s