Having problems  performing field mappings

Hi Experts...
I am trying map  werks field to another field of the same type .
However we are suppose to map the last two characters of source work field.
The source incoming data for werk can have 2 ,3 or 4 characters.
I have tried various combinations of if ....if without else ...length ...text functions
but they are not working.
can somebody tell me how to go about it using standard functions available .
Regards,
deepak

Hi Deepak -
Much easier with a very simple User Defined function (UDF).  Just create a simple UDF with one input parameter (call it 'a' which is default) and just put in the following and save:
   <i>return a.substring(a.length() - 2, a.length());</i>
Regards,
Jin

Similar Messages

  • Database Changes and Field Mappings

    My company has updated our databases from Oracle to SQL.  I'm now having issues with Field Mappings because some of the old tables are not the same in the new database. 
    For example:
    Old Table: CM3RM1, Old Field: FH_OUTAGE_REQUIRED
                                            is now
    New Table:  CM3RM2, Old Field: FH_OUTAGE_REQUIRED
    When I try to map the fields in the Map Fields dialog box in Crystal Reports 2008, it looks for the same table name in the new database so I'm not able to map all of the fields.
    Any suggestions on how to get the Map Fields dialog box to display multiple tables or a different method to convert these tables.
    Your help is greatly appreciated.
    - RJ

    I have gone through this proccess several times due to database upgrades and the worst was oracle to sql. Database mapping did not work for that one at all.
    I know you do not want to hear this but I added all the new tables to the report, replaced the fields & modified formulas, and then remove the old tables from the report, and in some cases I re-wrote the report from scratch.
    Debi

  • Problem having the cloumn fields in the heading(REP:1317)

    Hi
    I am having a problem having a column field in the Header.I followed the instructions in the help i.e creating a field and then referencing it with a boiler text(&<field name>).But When I run the report I get the error message
    "REP-1317: Boilerplate '<boilerplate name>' references field with source '<column name>' at wrong frequency."
    How do I set these two field in the same frequency.
    Can anybody help.
    Thanks

    Hi
    See my answer at YOUR topic "Unable to have the column fields in the header".
    Once more: the only way to solve the problem is to create in the Header the Repeating Frame linking with the group of "<field name>". Then it's possible to place Field to be referenced by "database_col" or boiler text such as "&<field name>".
    Andrew.

  • After performing a routine software update this week, I am having problems with both of my email accounts.  I am unable to "Reply" to any emails. Does anyone have a solution to this problem?

    After performing a routine software update this week, I am having problems with both of my email accounts.  I am unable to "Reply" to any emails. Does anyone have a solution to this problem?

    I am having the same problem also  Thought it was my network and reset everything including Apple TV but still the problem is there . I assume now it is down to iOS 8 prior to that was perfect

  • Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit

    Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit. What can be causing the issue?

    Hello, please checkout my post concerning lagging issues.
    I've also provided a link to a video I've recorded showing the Illustrator behavior on my iMac 27"
    Adobe Illustrator Cs6 Lagging Extremely Slow on Yosemite 27" iMac i7 late 2013

  • Is anyone else having major performance problems with FMLE since the upgrade to Mavericks

    OSX Mavericks seems to be having problems with streaming uploads in general, but in particular, I can not stream videos with FMLE at all. I tried it with my accounts at Ustream and Justin and they have the exact same results, with the stream pausing and going black after just a couple minutes. It doesn't seem to matter what my output settings are; this will happen even if it's set for extremely low bandwidth.
    This did not happen when I was using Mountain Lion. I am almost certain the new OS is causing the issues, but I am not sure how or why, and am having trouble finding others with this problem.
    Other programs I am using in conjunction with FMLE are CamTwist and Soundflower

    I have problem streaming to twitch/justin.tv using Mavericks.
    I've tried most of their FMS-servers without success. I get this loop:
    Wed Oct 30 2013 01:53:58 : Primary - Re-establishing connection, attempt 1
    Wed Oct 30 2013 01:53:59 : Primary - Reconnected to FMS/3,5,7,7009
    Wed Oct 30 2013 01:54:04 : Primary - Network Status: NetConnection.Connect.Closed status
    Wed Oct 30 2013 01:54:04 : Primary - Disconnected

  • Need the ability to export rule file field mappings

    Hi. I have a number of rule files that have a large number of field mappings (i.e. the Replace -> With options on the Global Properties tab). I was just wondering if anyone has found a way to export these to excel or similar.
    Thanks
    Sean
    Edited by: SeanO on 8/03/2010 15:38

    "The reason is due to bad print when having a view is shaded" Could you please explain?
    What are you planning to resolve? Which format has the printing issue?
    What other print options you want to use in addition to the forcetoblack?
    Please provide samples and steps to reproduce the problem. Thx
    Edited by: AutoVueAU_2 on Oct 27, 2012 9:43 PM

  • I am having problems opening pages in safari. the rotating wheel at the right end of the address window doesn't stop even after the page has filled up. then if i try to open other pages it gets stuck and won't open them.

    I started having problems opening pages today. When first open a page it seems to download the page OK, but the rotating wheel on the right-hand end of the address field keeps rotating after the page is completely filled up. Then if I try to open other pages it becomes slower and eventually stops filling-in the pages, while the rotating wheel keeps rotating.
    I wonder whether junk is being downloaded into my mac, or what is going on. Help will be geatly appreciated.

    When was the last time you emptied the Safari cache?
    From your Safari menu bar click Safari > Empty Cache
    If that didn't make a difference, go back to the menu bar click Safari > Reset Safari. Select the top 5 boxes then click Reset.
    And how much free space on the startup disk?
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure you always have a minimum of 15% free disk space. Freeing Up Hard Disk Space - Mac Guides
    If emptying cache or resetting didn't help and there's enough free space on the startup disk, login to another user account, launch Safari. Same problems there indicates a system wide problem. Log back into your admin account so you can check the startup disk.
    Launch Disk Utility. /Applications/Utilities
    Select MacintoshHD in the panel on the left then select the First Aid tab.
    Click: Verify Disk (not Verify Disk Permissions)
    If the startup disk needs repairing, follow the instructions for Using Disk Utility to verify or repair disks
    I wonder whether junk is being downloaded into my mac
    Nothing should "download" to your Mac unless you initiate the download yourself. You can check the Downloads folder from the Safari > Window menu or your Downloads folder in the Finder.

  • I'm having problems with my app, plants vs. zombies 2. It'll open and stay open for a few seconds then shut down. Help please.

    I'm having problems with my app, plants vs. zombies 2. It'll open and stay open for a few seconds then shut down. Help please.

    Check to see if there are Updates available... If already up to date...
    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • HOW DO YOU TURN OFF "FIREFOX PREVENTED THIS PAGE FROM AUTOMATICALLY RELOADING". I did the "see Advanced - General - Accessiblity. and still having problems

    HOW DO YOU TURN OFF "FIREFOX PREVENTED THIS PAGE FROM AUTOMATICALLY RELOADING". I did perform the "see Advanced - General - Accessibility. It worked for me and my "user" site (don't know how to say my site) and still having problems with my wife's. I have gone to OPTIONS → GONE TO → ADVANCE and CLICKED THE LINE → ""Warn me when websites try to redirect or reload the page…""
    This did not rememdy the problem. I did try to get on the other site suggested
    http://kb.mozillazine.org/Accessibility.blockautorefresh
    but got a 404 error...
    I have googled the "ff prevented...." and after a number of hours searching I still have not found a fix...
    REALLY HOPE SOMEONE CAN HELP ME....
    JM

    You should still disable this setting:
    *Firefox > Options/Preferences > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    What is the value of the <b>accessibility.blockautorefresh</b> pref on the <b>about:config</b> page?
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    If you have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • My macbook pro is suddenly having major performance issues

    Hi,
    I´ve been having some performance issues with my Macbook Pro (late 2006) and was hoping that someone here might be able to help me figure out what it is.
    It all started about a month ago with the disc utility giving me an error.
    The error said something about the amount of threads being wrong.
    I popped in the install dvd and fixed the problem. I also did a complete reinstall and upgraded from leopard to snow leopard.
    There was nothing wrong with the S.M.A.R.T.-status of the drive.
    At the same time the hardrive error came around my cpu started to choke. The cpu-problem didn´t go away after I repaired the disc and formatted the drive and installed 10.6.
    Now it feels like the cpu is running way below it´s capacity. Even the simplest of tasks make my computer choke.
    My audio applications are working at about half the speed of what they used to handle. Converting a wave file to mp3 takes about twice as long, and converting a video is even worse.
    I haven´t had any problems since I bought it in 2006. It is still running smooth - except for the lack of speed. It´s not really acting weird or being unstable, just slow. Way slower than it is supposed to be (and was before).
    And it happened overnight.
    I also had a kernel panic last week. But after restarting the system it went away and I haven´t seen it since.
    My specs are: C2D 2.16, 3GB RAM, 120GB 5400rpm hdd, OS 10.6.4...
    Would really appreciate help of any/every kind!
    I fear that this might be the end of my work horse

    Well, kind of a good news bad news situation for you.
    Bad news, is that your hard drive is dying. Make sure you back things up while you still can. Disk Utility's SMART status is generally just this side of useless I'm afraid. I've seen plenty of drives that are completely toast, that will show up as "Verified".
    Good news, is that as repairs go, this is close to as cheap as they get. It's up to you if you want to attempt doing it yourself, but be sure to look for some kind of take apart guide first. Look it over, and if you're even a little unsure, take it somewhere. Shortly after this model they started making it a lot easier to do HDD upgrades, not that it does you a lot of good.
    Anyway, even for a system as old as yours, this is a very cost effective repair if everything else is still working fine, and you're satisfied with the system. It's also a good opportunity to upgrade, give yourself a little extra space. No need to go overboard, but maybe a 250GB drive or so. A touch over 2X the space you had before, which can be had on the cheap. Just about any 2.5" SATA drive should work in that system.

  • Having trouble disabling fields form in LiveCycle 8.1.2

    Hello,
    I have been working with live cycle for 3 weeks now and I need to edit a form to be dynamic so that a user can select a check box and certain fields are available depending on what's selected.
    ex: is user checks oper_bird than txt field oper_secur_id is available to be written in.
    I have set the fields to "readOnly" initially and I am now having problems with JavaScript to disable the fields.
    I have read the documentation on the differences between AcroJS and XFA and I am still confused. The form is set to dynamic and
    Heres the code I'm trying to get to work (I am using it on a radio button to enable or disable a txt field for testing):
    // Function to enable form fields
    function EnableField(cFieldName)
    // First acquire the field to be enabled
    //var oFld = xfa.form.F.resolveNode("$.." + cFieldName)
    //if(event.target.rawVaule == 1)//oFld)
    //{ // Next acquire the hidden field with the normal colors
    popup()
    //var oNmlFld = xfa.form.F.resolveNode("$..NormalColorsFld")
    //if(oNmlFld)
    //{ // Make field interactive
    $oFld.access = "open";
    // Restore Normal Colors
    $oFld.fillColor = oNmlFld.fillColor;
    $oFld.borderColor = oNmlFld.borderColor;
    $oFld.fontColor = oNmlFld.fontColor;
    // Function to disable form fields
    function DisableField(cFieldName)
    // First acquire the field to be disabled
    var oFld = xfa.form.F.resolveNode("$.." + cFieldName)
    if(oFld)
    { // Make field Read- Only
    oFld.access = "readOnly";
    // Set Grayed out colors
    oFld.fillColor = "192, 192, 192";
    oFld.borderColor = "171, 171, 171";
    oFld.fontColor = "125, 125, 125";
    I removed some of the conditionals to see if the events were happening. The code is in "Init" and the functions are called respectively in the "mouseUp" for "enable" and "disable"
    Thanks for the Help

    Okay, heres where the problem stands now:
    I disabled the fields, made them "readonly", however I can not reactivate the Fields to bring them back into a "User Entered - ..." value after setting them to "readonly". I know I am getting the calculation script to work because I am changing the colors of the field depending upon input.
    WorkflowUser could you you still want to take a look at the script? if you want to of course.
    Thanks again.

  • If you're having problems updating firmware and have Windows Media Player 11 B

    I've seen a number of problems with people updating their firmware with WMP installed and it turns out that's the problem. WMP has a bug in it that will not allow the firmware update to recognize the player. So, here's what to do to roll back to a previous version:
    These instructions will only work for Windows XP
    You must be logged on as an administrator or a member of the Administrators group to perform the following procedure.
    . Disconnect any portable music or video devices that might be attached to your computer.
    2. Click Start, and then click Control Panel.
    3. In the Category View of Control Panel, click Add or Remove Programs, and then click Remove a program.
    4. Click Windows Media Player , and then click Remove.
    If Windows Media Player is not displayed in the list of currently installed programs, then try the following:
    . At the top of the list, select the Show updates check box.
    2. In the Windows XP - Software Updates section, click Windows Media Player , and then click Change/Remove.
    5. In each of the two confirmation dialog boxes that appear, click OK.
    6. When the rollback process is complete (it might take several minutes), click Restart.
    7. Click Start, and then click Control Panel.
    8. In the Category View of Control Panel, click Add or Remove Programs, and then click Remove a program.
    9. Click Windows Media Format Runtime, and then click Remove.
    If Windows Media Format Runtime is not displayed in the list of currently installed programs, then try the following:
    . At the top of the list, select the Show updates check box.
    2. In the Windows XP - Software Updates section, click Windows Media Format Runtime, and then click Change/Remove.
    If you installed a non-US English version of Windows Media Player , the instructions in the dialog boxes that are mentioned in steps 9, 0, and might appear in English.
    0. In the first confirmation dialog box that appears, click OK.
    . In the second confirmation dialog box that appears, select the Do you want to continue with the rollback? check box, and then click OK.
    2. When the rollback process is complete (it might take several minutes to complete), click Restart.
    3. Click Start, and then click Control Panel.
    4. In the Category View of Control Panel, click Add or Remove Programs, and then click Remove a program.
    5. Click Microsoft User-Mode Driver Framework Feature Pack .0.0, and then click Remove.
    6. Follow the instructions that appear in the Software Update Removal Wizard.
    If the Wudf0000 confirmation dialog box appears, click Yes to continue. When the software removal process is complete (it might take several minutes to complete), click Finish.
    If you are still having problems and all else fails, do a System Restore to before WMP was installed.
    *Note: If you remove Windows Media Player and the Windows Media Format Runtime, and then encounter error C00D27D ("A problem has occurred in the Digital Rights Management component. Contact Microsoft product support, you might be able to resolve the problem by installing the Windows Media Format 9.5 Runtime. For information about installing the Runtime, in the Microsoft Knowledge Base, see article 8922, "Update for Windows Media Digital Rights Management-enabled players."
    **You might not be able to roll back to a previous version of the Player if the hidden folder $NtUninstallwmp$ is deleted from your computer. Some non-Microsoft programs (such as CCleaner) delete this folder in an attempt to remove unwanted files from your computer.
    More information here:
    http://www.microsoft.com/windows/win...ionofthePlayer
    Some people have found these instructions to be a solution to the "Player Not Connected" Error when trying to update the firmware. (Your mileage may vary)
    Note to Mods: This would make a nice sticky

    OK. I've been having this problem and have probably read every post there is on the net concerning it. But it doesn't seem to be only a Media Player problem. I was only running Media Player 0 when it happened to me. I found the solution somewhere, I can't remember where, but it worked for me and it was easy.
    Here's what you do:
    . Download BOTH ZenXtra_PCFW_LA__20_08.exe and enXtraP4SAudible_PCFW_LB_2_0_03.exe
    2. Connect the Zen Xtra to your PC.
    3. Run ZenXtra_PCFW_LA__20_08.exe. When the window comes up and says that your device is not connected DON'T do ANYTHING! Just leave it there.
    4. Now run ZenXtraP4SAudible_PCFW_LB_2_0_03.exe
    5. It told me that I already had this version on my device did I still want to load it's I said yes and it went through the whole upgrade and now it works fine.

  • TS1717 Having problems lauching iTunes on my pc, dowloaded new version, getting error message that iTunes is not installed correctly or corrupted, reinstall. I'm afraid I will loose everything,tried to back up to earlier date,system diognosis said incompa

    Having problems launching iTunes on my pc. Had iTunes on this particular pc for over a year. Have downloaded all of the new updated versions. Now I get an error message saying "This copy of iTunes is corrupted or is not installed correctly. Please reinstall." I have backed up the pc to an earlier date when when the program was working, and also performed serveral system diagnosis all saying the program is incompatible. Searched for several compatible programs, none worked. All this happened several days after visiting iTunes.  I'm afraid that if I reinstall iTunes that I will loose everything and have to start all over. Eventhough everything is saved in an iCloud account and this particular pc. Never had a problem till now. Appreciate any help.   Thank you,   cld

    Let's try a repair install of iTunes first.
    Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", click "Change" and then click "Repair".
    Can you launch your iTunes now?

  • WebElements - Having problems putting CR report in WECollapsibleSection

    Hi there - 
    The user doc indicates putting a WEcontrol in a collaspible section  is possible - I am trying to put a CR report in the section and am having problems.
    Here's my code:
    WECollapsibleSection (ElementName, {@WE_OppListRiskReport}, OpenText, CloseText, Font, SectionWidth, SectionHeight)
    where {@WE_OppListRiskReport} is
    stringvar targetpath :=WETargetPath ("rpt","CUID" ,{@WE_OppListRiskPullCUID},"");
    (i've also tried other permutations of the placement of WETargetPath)...
    When I run my report with the collapsible section and click on the OpenText Link, the section appears, but what appears in it is the Opendoc URL:
    /OpenDocument/opendoc/openDocument.jsp?sType=rpt&sIDType=CUID&iDocID=ASHjBo78IzxEj_yzCRYc6uc
    I have used the target path to the same CR report in an iFrame and the report displays correctly so I know it can find the report correctly.
    Help!
    thanks!
    Pam
    PS.  Just into a week of using WE and loving it!!

    Hi Jamie -
    I have already encountered issues after I accidentlally copied/pasted code and left  2 physical webelements with the same name.    (hey!  why is that report loading in that frame??)   That wasn't the issue here, but your response made me go through my code with a fine tooth comb to verify that I hadn't done that.
    While I was double checking, I did some more experimenting and debugging.  This led me to an interesting discovery. 
    As a reminder, I am trying to 'load' crystal reports into iframes onto a Main 'portal' report.  My main report has iframes, collaspible sections, editbox controls and a flyout section with 5 elements.  Loading a report into a frame works fine for the 'independent ' iframes that are placed directly on my main report.   The expected report also loaded on the 'top' element of the FlyoutSection control.  (When I say 'works fine', I mean that the reports loaded into their respective iFrame controls when I open the Main 'portal' report)
    The 2 controls that I was having issues with were the CollapsibleSection and the  FlyoutSections (all but the top element.) . 
    In each case, I had defined iframes and targeted the iframes with Cystal reports within these controls.  When my main report loaded and I clicked on the 'Show Report' link to open the CollaspibleSection, I could see the outline of the iframe but within it,  was the never ending 'please wait ' window.  The report just never loaded.  I experienced the same thing when I put an iframe on the 2nd 'section' of a FlyoutSection control.   I knew that my code was correct because if I pulled the iframe code out of the control and put it directly on my Main 'portal' report, it worked like a charm.
    To me, it seemed as if, despite the 'please wait'  message, the iframe was NOT loading the report.   I was never prompted for parameters and the DB showed no I/O hits to indicate the report was hanging due to performance.      So just for the hell of it, I put a submit button within the content of the FlyoutSectionControl's second section (along with the existing iframe).  All the submit button did was force the report to be loaded into the same iFrame that was already there.  And, to my surprise, after pressing the button, the report loaded.
    I tried adding a submit button to the collaspible section as well and that seemed to force the report to load as well.
    Of course, this is really clugey.  My expectations are that when I click on the FlyingSectionControl's element headers, the reports wherein would load and, if I click on 'show report', the report will load as the collaspiblesection expands.  I think users will also have the same expections.  It's seems unnecessarily redundant to have a 'Show report' link open up and then the user have to click a button that says 'Do you really want to see the report' before the report will load.
    Fundamentally, these 2 controls differ from others because you need to 'click' on them to change their state.  Perhaps this 'click' is interfering with the report loading into the iframe?
    I'd love an explanation and also your input into how these controls could be 'preloaded' .
    thanks!
    -Pam
    Here's the code for my collaspible section (that finally worked)  - the only difference from the prior version is the addition of the WeSubmit(btn) function:
    stringvar item1:= WETargetPath ("rpt", "CUID", {@CUID_chart}, "weIframe=iframe5"  );
    stringvar OpenText:= "Show Chart";
    stringvar CloseText:= "HideChart";
    stringvar SectionWidth:= "3in";
    stringvar SectionHeight:= "2cm";
    stringvar insideframe :=WEIFrame ("iframe5", "item1", 400, 200, "yes") ;  <==if I leave out the target path here, the frame shows up empty at first (which is neater than seeing the 'please wait' message box))
    stringvar SectionElements:=   WESubmit("chartbtn","Button", "see chart",item1 , font)
    + WEBreak (2)+  insideframe;
    stringvar collaspiblegroup := WECollapsibleSection (ElementName, SectionElements, OpenText, CloseText, Font, SectionWidth, SectionHeight);
    collaspiblegroup + WEBuilder(collaspiblegroup,2);

Maybe you are looking for

  • LDAP/Authentication infinite loop

    My authentication provider uses an LDAP call to retrieve a data source via JNDI. The LDAP call apparently triggers a security check/login which then calls my getLoginModuleConfiguration() which again attempts to retrieve the data source. Infinite loo

  • How to ignore segment occurances in IDoc

    Hi I have a IDOC to file scenario. How do i ignore the first segment of a multiple accuring segment. For Example if the segment E1EDXX occurs 5 times in the IDOC i have to ignore only the first (segment)occurance and the remaining 4 (segment )occuran

  • Changing the partner role

    Hello guys! How are ya'? I need to change an actual Business Partner Role in my CRM 2007. I tried to execute a FM called BAPI_BUPA_ROLE_CHANGE but, it doesn't running. Anybody here know how can I to do this? Thanks in advance. Regards. Danilo Cardoso

  • Multiple RMI servers in single JVM

    Hi, I have a RMI server listening to requests from internal network as well as external network. RMI returns the hostname as part of the stub. So to ensure that the subsequent RMI calls work fine I need to ensure that jama.rmi.hostname is set to corr

  • Creating photo archive/catalog

    Using iPhoto 08 on a grant-funded Mac Book Pro to create an archive/catalog of historic photos for a garden conservancy. Probable outputs: to Power Point for presentations and website for display. 1) How to export "Description" data from iPhoto along