Issue with variable, need to remove characters

Hi Team,
i have one problem regarding the variable.
i have some variable for example 'MALT011000012345MTLCAST001SMT84'.
in the above variable i need to replace the value of M with say 5, value of A with 9 and so on .
like i want to repalce each character with number field.
can you please share your ideas that how can i resolve this issue in PL/SQL?

Hi,
Here's one way:
str := TRANSLATE ( str
                 , 'MA'
                 , '59'
                 );where str is any string, such as 'MALT011000012345MTLCAST001SMT84'.
The 2nd and 3rd arguments to TRANSLATE can be any length (1 or more); I just included the 2 character pairs that you mentioned. The n-th character of the 2nd argument will be replaced with the n-th character of the 3rd argument.
I hope this answers your question.
If not, please post a little sample data (that is, strings that contain 'M''s, 'A's, and/or the other characters you need to replace) and what you want all those strings turned into. Post the sample data as CREATE TABLE and INSERT statements so we can test them all in one query.

Similar Messages

  • Having issue with variable after upgrade in bi7.0

    Hi,
    I have issue with variable
    For example Plant info object has attributes country, company code, storage location
    etc.
    When I run the report. If I click on plant variable it is showing me the all the data for all country , compony code , storage location. I donot want this.
    I just want only plant input values on variable screen
    Thanks,
    Naman Shah

    Naman,
    What is your SP level ?
    Also the characteristics mentioned - are they compounding attributes ? if yes then tey will come in your variable entry.

  • Powershell Issue with Variable and Equal Signs

    I should have been using $line.grade, but your syntax worked so thanks!

    I've been running a powershell script to create active directory accounts at our school from a csv file. I'm needing to have users placed in a specific OU based on what grade level they are in, which is a field in the csv file and I have passed into the description field in AD. To keep from writing a bunch of if statements, I thought I might could pass the description variable into my organizational unit path, but I'm having syntax issues.Here is the specific line I have issues with.Powershell'ou' = "OU=$line.description, OU=LESStudents,OU=LES,DC=school,DC=k12,DC=state,DC=us"I've tried the single quote, double quotes, escaping the equal sign and some other methods I've seen online, but haven't quite gotten it right. It just isn't recognizing OU=$line.description as a variable.
    Disclaimer - I'm not a programmer and most of this was built...
    This topic first appeared in the Spiceworks Community

  • Issue with Variable Personalisation in Bex Report

    Hi Gurus,
    I'm facing a typical problem with Variable presonalisation in the Report.
    I've executed a BEX Report and filtered data on some characteristics and used SAVE AS Button on the Portal to save the resultset. When I'm trying to use the variants, again say after  2 or 3 days i couldn't find updated data for particular variants upon using the same variants rather its refelecting the old data. Further more when I execute the report and try filtering on the same criteria altogether, I'm able to see updated result set.
    Is there any setting to be enabled when we personalise variants or variants are dependent on the data or the date on which they are created. Not sure why the reports are behaving this way. Or Do I need to create variants time and again.
    Any pointers would be of great help.
    Regard,
    Yaseen

    Hello,
    In the BEx report, when you get the variable selection screen there input your selection and at the bottom you have the option of saving them as a variant.
    Now in future when you run the report simply use this variant and execute the report. It should work fine.
    Also remember date selection can be tricky. If you input todays date in the variant, it wil consider the same date in further references. So do a check on that too.
    Regards,
    Shashank

  • Issue with Variable Entry in BI 7.0

    Hi,
    I am having an issue with the variable entry in BI 7.0 Version. Here is a brief background.
    --- In BW 3.x, when we define a variable with <b>Single Value Option</b>, you can enter the value manually in the pop-up selection screen or select from the dropdown of possible values.
    ---But in 7.0 when i try to enter the value manually in the selection screen its opening the dropdown list, and is not giving me the option to enter a value manually. I am entering a valid single value in selection.
    Is this a bug or do i have to make any specific settings to correct my issue?

    When the selection screen pops up choose the KEY only function on the TOOLS on the top right corner of the screen. Then you will be able to enter the values manually.
    Hope this helps.

  • Issue with @variable('DOCNAME')

    I added a where clause using the BO designer that uses @variable ('DOCNAME') and it work perfect when running webi reports. But I also have some crystal reports that are using the universe and they suddenly stopped working. Does the variable 'DOCNAME' have an issue with cyrstal reports??
    Even if I just create an object that simply displays the @variable ('DOCNAME'), I still run into the same problem.
    I have another query that uses @variable ('BOUSER') and that one works fine on both webi and crystal reports.

    Nevermind, I may have found an answer. Based on what the article below states, it looks like the only variable that is supported in Crystal Reports is 'BOUSER'.
    [https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/20984c2b-17f1-2b10-1091-d18977f7cd8f|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/20984c2b-17f1-2b10-1091-d18977f7cd8f]

  • Audio sync issues with variable frame rates as well as .ts files

    I'm using Premiere Pro CS6 and CC, in Windows 8.
    I bought an AverMedia Live Gamer HD card to capture 1080p footage with, and the the videos it produces work perfectly during playback. No sync issues whatsoever. I'm saving them as MP4 at 30fps.
    The problem is when I import them into Premiere Pro, the audio loses sync at certain points. After a bit of digging, I've discovered that the videos have a variable frame rate, which Premiere Pro does not support. I don't know why, considering competing products that are significantly cheaper can handle them with a problem, but oh well. The capture card can also save videos in .TS format, which produces a constant frame rate, however when I import them into Premire Pro the sync is immediately off by a second or more. I assume this is for an entirely different reason. Again, they play back normally without a problem. Upon emailing AverMedia, I was told this was Adobe's problem and there was nothing they could do about it.
    What I'm wondering is if there is any sort of realistic solution to this as of now. Is there any way that Premiere can work properly with files that have a variable frame rate? If not, is this being worked on?
    Or maybe there's a way to get the .TS files back in sync, that way the variable frame rate issue doesn't matter anyway.
    Converting the files is not a long term solution. I'm working with hours and hours of HD video, and it would take way too much time to do this.
    Manually resyncing the audio is also not a solution. Again, this would just be way too much wasted time with each project.
    The only solution I see as of now is to switch to Sony Vegas until this problem is resolved in Premiere, if it ever is. I'm really hoping there is some other way, so if anyone has an idea as to how to fix this, I'd really appreciate it.
    Thank you.
    tl/dr:
    Is there any way to get around Premiere Pro not working with variable framerates? My .TS files are also out of sync, is there any way to fix that? Without converting or manually resyncing.

    >If not, is this being worked on?
    Discussed many times before... never a "yes" answer to your question... tell Adobe what YOU want at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    If enough people make a request, Adobe MAY add the feature (I don't work for Adobe, so no guarantee of anything)

  • Issue with usb flash and removable hard drives in Lion. (also an install tip)

    Having an issue with my usb flash and removable hard drives.  I plug them in and Lion does not display all my files/folders, I take it out and plug it into my snow leopard machine and all the files/folders are there, does anyone have this issue?
    It does it on my macbook pro which was a snow leopard upgrade to Lion and it does it on my macbook which was a clean install of Lion via a bootable flash drive.
    The computers both work great in all other aspects, so there were no errors on installation. It's plain and simple, some files/folders are not showing up that are present on the drives and viewable on all other non-lion OS's mac and PC.
    Also a word on installs, I highly suggest doing a clean install (delete and reformat drive them install Lion vs a snow leopard ugrade) my machine that was a clean install (macbook) runs 50% faster and smoother than the upgraded one (macbook pro).

    Yes, you can use your backup disk drives in the manner you describe, but Apple provides conflicting information on the subject.
    From Mac Basics: Time Machine
    Time Machine can’t backup to an external drive that's connected to an AirPort Extreme, Time Capsule, or a drive formatted for Microsoft Windows ...
    From Time Machine doesn't back up to AirPort Extreme AirPort Disks
    Time Machine in Mac OS X v10.5 or later can be used to back up to many kinds of Mac OS Extended-formatted drives, but you cannot choose an AirPort Extreme 802.11n's AirPort Disk as a Time Machine backup volume.
    However, you can choose Time Capsule AirPort Disks or internal disks as a Time Machine backup volume.
    They have yet to resolve this discrepancy.
    All other available technical details regarding Time Machine's use seem to indicate that a USB HD connected to Time Capsule should meet Time Machine's requirements. For what it's worth I have been using an external HDD connected to the Time Capsule's USB port and it seems to function just fine.

  • Issues With Variables

    First, let me send a thanks to PBrock and Cotton for their help with my last issue I had with a program. You guys helped tremendously!
    Now onto the latest issue with my code I compile this and get two error messages saying that the variables (again) and (exit) cannot be found. I have a sneaky suspicion that once I figure these two errors out that I'm going to get slammed with a bunch more but I do have my fingers crossed on this one.
    Here's the code
    //=====================================
    // OpSpecs5.java    Author: Michael Barry
    //=====================================
    import java.math.*;
    public class OpSpecs5
      //Random generator = new Random (50);
      private int num1, num2;
      public OpSpec5()
        num1 = (int) (Math.random()*50) +1;
        num2 = (int) (Math.random()*50) +1;
      public int ActionPerformed (String sign)
        if (sign equals(a))
          return num1 + num2;
        else if (sign equals(s))
          return num1-num2;
        else if (sign equals(d))
          return num1/num2;
        else (sign equals (p))
          return num1 * num2;
    }  And here is the other file:
    //=====================================
    // OpSpecs5.java    Author: Michael Barry
    //=====================================
    import java.math.*;
    public class OpSpecs5
      //Random generator = new Random (50);
      private int num1, num2;
      public OpSpec5()
        num1 = (int) (Math.random()*50) +1;
        num2 = (int) (Math.random()*50) +1;
      public int ActionPerformed (String sign)
        if (sign equals(a))
          return num1 + num2;
        else if (sign equals(s))
          return num1-num2;
        else if (sign equals(d))
          return num1/num2;
        else (sign equals (p))
          return num1 * num2;
      Thnx in advance!!!!!!!!!

    Sorry about that.
    Here they both are this time
    //===========================
    // ExampleMathOps5.java
    //=========================
    import javax.swing.JOptionPane;
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    public class ExampleMathOps5
    public static void main(String[] args)
         ExampleMathOps5 MyOps;
         String numStr, result;
          int sum;
        int difference;
        int division;
        int product;
        int again;
        int exit;
        MyOps = new ExampleOpSpecs5 (); // Instantiation of OpSpecs5 file.
        do
                     sum = MyOps.ActionPerformed("a"); // "a" represents addition.
                     MyOps = JOptionPane.showInputDialog ("Enter your answer:"); // Prints sum of equation.
            sum = Integer.parseInt(numStr);
          result = "The correct answer is: " + ((num1+num2 == 0) ? "correct" : "incorrect"); 
          JOptionPane.ShowMessageDialog (null, result);
          again = JOptionPane.showConfirmDialog (null, "Try again?");
                     difference = MyOps.ActionPerformed("s"); // "s" represents subtraction.
                     MyOps = JOptionPane.showInputDialog ("Enter your answer:"); // Prints difference of equation.
                     difference = Integer.parseInt(numStr);
          result = "The correct answer is:" + ((num2-num1 == 0) ? "correct" : "incorrect");
          JOptionPane.showMessageDialog (null, result);
          again = JOptionPane.showConfirmDialog (null, "Try again?");
          division = MyOps.ActionPerformed("d"); // "d" represents division.
                     MyOps = JOptionPane.showInputDialog("Enter your answer:"); // Prints result of equation.
                     division = Integer.parseInt(numStr);
          result = "The correct answer is:" + ((num2/num1 == 0) ? "correct" : "incorrect");
          JOptionPane.showMessageDialog (null, result);
          again = JOptionPane.showConfirmDialog (null, "Try Again?");     
                     product = MyOps.ActionPerformed("p");  // "p" represents multiplication.
                     MyOps = JOptionPane.showInputDialog ("Enter your answer:"); // Prints product of equation.
            product = Integer.parseInt(numStr);
          result = "The correct answer is:" + ((num1*num2 == 0) ? "correct" : "incorrect");
          JOptionPane.showMessageDialog (null, result);
          again = JOptionPane.showConfirmDialog (null, "Try again?"); 
                    while (again == JOptionPane.YES_OPTION);
    }And here is the other file:
    //=====================================
    // ExampleOpSpecs5.java    Author:
    //=====================================
    import java.math.*;
    public class ExampleOpSpecs5
      //Random generator = new Random (50);
      private int num1, num2;
      public ExampleOpSpecs5()
        num1 = (int) (Math.random()*50) +1;
        num2 = (int) (Math.random()*50) +1;
      public int ActionPerformed (String sign)
        if (sign == "a")
          return num1 + num2;
        else if (sign == "s")
          return num1-num2;
        else if (sign == "d")
          return num1/num2;
        else if (sign == "p")
          return num1*num2;     
         else if (sign == null)
         return again;
      else
    return exit;
     

  • Issue with Variable on 0FISCPER

    Hi,
    I am using a single value/ mandatory variable on 0FISCPER in my queries. It has been working fine till now but when i click on the drill down of that variable in the selection screen, it gives me a 500 INTERNAL SERVER ERROR (java.lang.NullPointerException). IF i enter a value manually without clicking on the drop down, it is working fine and the query is getting executed. How can i resolve this problem.
    Thanks
    Rashmi.

    Hi,
    Search in SDN, I don't think that is problem with Variable..
    http://help.sap.com/saphelp_nw04s/helpdata/en/7b/f89f3f12e1eb0ce10000000a114084/frameset.htm
    File Sender java.lang.NullPointerException
    Re: File Sender java.lang.NullPointerException
    500 Internal server error
    Thanks
    Reddy

  • Automator : issue with variable and path to folder

    I created a simple Automator Workflow with: A variable "Document Folder" and an action "Run shell script" with this command:
    "rsync -E -a -v -z --delete $@ /Volumes/MyBook/Backup/"
    I tested this command, It works very well in the terminal. But return me an error with Automator.
    "$@" is replaced by the Path when running, I guess my issue is that the content of the variable is " ~/Documents " . When it pass to the script it become "/Users/login/~/Documents".
    That can't works.
    A solution would be to put in the script the full path instead of "$@" but I would liketo understand why this error occur.
    Thanks.

    Automator actions return their results as a list of items. If you want your shell script to use the result of an action (for example Ask for Finder Items) as arguments, you need to set the Pass input: as arguments option, and place your statement in the for loop:
    for f in "$@"
    do
          /usr/bin/rsync -E -a -v -z --delete "$f" /Volumes/MyBook/Backup/
    done

  • Issue with variable while in a PSSession connected to an end point

    Ok so Ive put together a simple script that will allow our helpdesk to look at permissions on a specified folder or share adn display in a nice html page.  I need it to run under different credentials so I set up an endpoint which I can connect to remotely
    and run the script.  The issue is in the variable that needs to get set.  It prompts for the folder location and once you put it in, it just freezes up.  If I run the script locally its fine and works perfectly.  but running it in the remote
    session connected to an end point, it just doesnt do anything once you put in the information after it prompts you.  For testing also I set the $folderpath to a specific path  and it does run fine through a remote session so its just an issue passing
    that input back to the variable while in the remote session.  Any idea?
    $a = "<style>"
    $a = $a + "BODY{background-color:peachpuff;}"
    $a = $a + "TABLE{border-width: 0px;border-style: solid;border-color: black;border-collapse: collapse;}"
    $a = $a + "TD{border-width: 3px;padding: 5px;border-style: solid;border-color: black;background-color:PaleGoldenrod}"
    $a = $a + "</style>"
    $folderpath = Read-Host -Prompt "Enter full folder path here"
    $cname ="Permissions for $folderpath : "
    Get-Acl $folderpath | select access -ExpandProperty access| select identityReference | ConvertTo-HTML -head $a -body "<H2>$CNAME</H2>"  | Out-File \\server\PermReports\perms.html

    Here's some napkin code, FWIW
    On the user side:
    $Session = New-PSSession -ComputerName remoteservername -ConfigurationName checkperms
    $ADIdentityReference =
    #Coax an AD identity reference out of the button monkey
    Invoke-Command -ScriptBlock { .\PermissionsScript.ps1 } -Session $session -Argumentlist $ADIdentityReference |
    ForEach-Object {
    #Ask for more input, or quit
    Remove-PSSession $Session
    and on the remote end:
    Param ($IdentityReference)
    Try {
    Get-ADSomething -Identity $IdentityReference -EA Stop |
    foreach-object {
    Do-SomeStuff
    Catch {
    #Return validation fail message
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Slideshow issues with variable time for each picture

    Hi all,
    I've migrated from AS1 to AS3, and boy, a lot has changed...
    Anyhow, to learn and understand AS3, I'm modifying a slideshow I found through thetechlabs. I want it to play SWF as well as JPG. These files are passed through an XML file. I added an element called <delaytime> to the XML file that replaces the standard time a photo is shown in the slideshow.
    I modified the onSlideFadeIn() function as follows:
    function onSlideFadeIn():void {
         slideTimer.removeEventListener(TimerEvent.TIMER, nextSlide);
         slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         if(bolPlaying && !slideTimer.running)
         slideTimer.start();
    However, when I run it, I get this error message:
    ## [Tweener] Error: [object Sprite] raised an error while executing the 'onComplete'handler.
    TypeError: Error #1010: A term is undefined and has no properties.
    at slideshow_fla::MainTimeline/onSlideFadeIn()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/::updateTweenByIndex()
    at caurina.transitions::Tweener$/::updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()
    It stops at the first picture of my slideshow. When I push the 'next' button it displays the next pic, but I get the same error message again.
    When I comment out this line:
    slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
    the slideshow runs OK, but without the delaytime specified in the XML file.
    I'm lost here, what am I missing?
    Any help to get me back on track is highly appreciated!
    Thanks a bunch in advance,
    Dirk
    Here is the complete AS, should you need it:
    // import tweener
    import caurina.transitions.Tweener;
    // delay between slides
    const TIMER_DELAY:int = 5000;
    // fade time between slides
    const FADE_TIME:Number = 1;
    // flag for knowing if slideshow is playing
    var bolPlaying:Boolean = true;
    // reference to the current slider container
    var currentContainer:Sprite;
    // index of the current slide
    var intCurrentSlide:int = -1;
    // total slides
    var intSlideCount:int;
    // timer for switching slides
    var slideTimer:Timer;
    // slides holder
    var sprContainer1:Sprite;
    var sprContainer2:Sprite;
    // slides loader
    var slideLoader:Loader;
    // current slide link
    var strLink:String = "";
    // current slide link target
    var strTarget:String = "";
    // url to slideshow xml
    var strXMLPath:String = "slideshow-data2.xml";
    // slideshow xml loader
    var xmlLoader:URLLoader;
    // slideshow xml
    var xmlSlideshow:XML;
    function initSlideshow():void {
         // hide buttons, labels and link
         mcInfo.visible = false;
         btnLink.visible = false;
         // create new urlloader for xml file
         xmlLoader = new URLLoader();
         // add listener for complete event
         xmlLoader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
         // load xml file
         xmlLoader.load(new URLRequest(strXMLPath));
         // create new timer with delay from constant
         slideTimer = new Timer(TIMER_DELAY);
         // add event listener for timer event
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         // create 2 container sprite which will hold the slides and
         // add them to the masked movieclip
         sprContainer1 = new Sprite();
         sprContainer2 = new Sprite();
         mcSlideHolder.addChild(sprContainer1);
         mcSlideHolder.addChild(sprContainer2);
         // keep a reference of the container which is currently
         // in the front
         currentContainer = sprContainer2;
         // add event listeners for buttons
         btnLink.addEventListener(MouseEvent.CLICK, goToWebsite);
         btnLink.addEventListener(MouseEvent.ROLL_OVER, showDescription);
         btnLink.addEventListener(MouseEvent.ROLL_OUT, hideDescription);
         mcInfo.btnPlay.addEventListener(MouseEvent.CLICK, togglePause);
         mcInfo.btnPause.addEventListener(MouseEvent.CLICK, togglePause);
         mcInfo.btnNext.addEventListener(MouseEvent.CLICK, nextSlide);
         mcInfo.btnPrevious.addEventListener(MouseEvent.CLICK, previousSlide);
         // hide play button
         mcInfo.btnPlay.visible = false;
    function onXMLLoadComplete(e:Event):void {
         // show buttons, labels and link
         mcInfo.visible = true;
         btnLink.visible = true;
         // create new xml with the received data
         xmlSlideshow = new XML(e.target.data);
         // get total slide count
         intSlideCount = xmlSlideshow..image.length();
         // switch the first slide without a delay
         switchSlide(0);
    function fadeSlideIn(e:Event):void {
         // add loaded slide from slide loader to the
         // current container
         addSlideContent();
         // clear preloader text
         mcInfo.lbl_loading.text = "";
         // check if the slideshow is currently playing
         // if so, show time to the next slide. If not, show
         // a status message
         if(bolPlaying) {
              mcInfo.lbl_loading.text = "Next slide in " + TIMER_DELAY / 1000 + " sec.";
         } else {
              mcInfo.lbl_loading.text = "Slideshow paused";
         // fade the current container in and start the slide timer
         // when the tween is finished
         Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME, onComplete:onSlideFadeIn});
    function onSlideFadeIn():void {
         slideTimer.removeEventListener(TimerEvent.TIMER, nextSlide);
         slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         if(bolPlaying && !slideTimer.running)
         slideTimer.start();
    function togglePause(e:MouseEvent):void {
         // check if the slideshow is currently playing
         if(bolPlaying) {
              // show play button
              mcInfo.btnPlay.visible = true;
              mcInfo.btnPause.visible = false;
              // set playing flag to false
              bolPlaying = false;
              // set status message
              mcInfo.lbl_loading.text = "Slideshow paused";
              // stop the timer
              slideTimer.stop();
         } else {
              // show pause button
              mcInfo.btnPlay.visible = false;
              mcInfo.btnPause.visible = true;
              // set playing flag to true
              bolPlaying = true;
              // show time to next slide
              mcInfo.lbl_loading.text = "Next slide in " + TIMER_DELAY / 1000 + " sec.";
              // reset and start timer
              slideTimer.reset();
              slideTimer.start();
    function switchSlide(intSlide:int):void {
         // check if the last slide is still fading in
         if(!Tweener.isTweening(currentContainer)) {
              // check, if the timer is running (needed for the
              // very first switch of the slide)
              if(slideTimer.running)
              slideTimer.stop();
              // change slide index
              intCurrentSlide = intSlide;
              // check which container is currently in the front and
              // assign currentContainer to the one that's in the back with
              // the old slide
              if(currentContainer == sprContainer2)
              currentContainer = sprContainer1;
              else
              currentContainer = sprContainer2;
              // hide the old slide
              currentContainer.alpha = 0;
              // bring the old slide to the front
              mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
              //Van hier
              if (currentContainer.numChildren > 0) {
                   var slideObjRef:DisplayObject = currentContainer.getChildAt(0);
                   currentContainer.removeChildAt(0);
                   slideObjRef = null;
              //Tot hier
              // delete loaded content
              clearLoader();
              // create a new loader for the slide
              slideLoader = new Loader();
              // add event listener when slide is loaded
              slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
              // add event listener for the progress
              slideLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
              // load the next slide
              slideLoader.load(new URLRequest(xmlSlideshow..image[intCurrentSlide].@src));
              // show description of the next slide
              mcInfo.lbl_description.text = xmlSlideshow..image[intCurrentSlide].@title;
              // set link and link target variable of the slide
              strLink = xmlSlideshow..image[intCurrentSlide].@link;
              strTarget = xmlSlideshow..image[intCurrentSlide].@target;
              mcInfo.mcDescription.lbl_description.htmlText = xmlSlideshow..image[intCurrentSlide].@desc;
              // show current slide and total slides
              mcInfo.lbl_count.text = (intCurrentSlide + 1) + " / " + intSlideCount + " Slides";
    function showProgress(e:ProgressEvent):void {
         // show percentage of the bytes loaded from the current slide
         mcInfo.lbl_loading.text = "Loading..." + Math.ceil(e.bytesLoaded * 100 / e.bytesTotal) + "%";
    function goToWebsite(e:MouseEvent):void {
         // check if the strLink is not empty and open the link in the
         // defined target window
         if(strLink != "" && strLink != null) {
              navigateToURL(new URLRequest(strLink), strTarget);
    function nextSlide(e:Event = null):void {
         // check, if there are any slides left, if so, increment slide
         // index
         if(intCurrentSlide + 1 < intSlideCount)
         switchSlide(intCurrentSlide + 1);
         // if not, start slideshow from beginning
         else
         switchSlide(0);
    function previousSlide(e:Event = null):void {
         // check, if there are any slides left, if so, decrement slide
         // index
         if(intCurrentSlide - 1 >= 0)
         switchSlide(intCurrentSlide - 1);
         // if not, start slideshow from the last slide
         else
         switchSlide(intSlideCount - 1);
    function showDescription(e:MouseEvent):void {
         // remove tweens
         Tweener.removeTweens(mcInfo.mcDescription);
         // fade in the description
         Tweener.addTween(mcInfo

    Thanks, but no luck so far...
    With the debugging publish setting on, I get the following error message:
    TypeError: Error #1009: Cannot access a property  or method of a null object reference.
    at  slideshow_fla::MainTimeline/slideshow_fla::frame1()[slideshow_fla.MainTimeline::frame1:12 3]
    Line 123 says:
    trace(xmlSlideshow..file[intCurrentSlide].@time);
    However, when I comment out the trace() line it gives another error  message:
    ## [Tweener] Error: [object Sprite] raised an  error while executing the 'onComplete'handler.
    TypeError: Error #1010: A  term is undefined and has no properties.
    at  slideshow_fla::MainTimeline/onSlideFadeIn()[slideshow_fla.MainTimeline::frame1:118]
    Where line 118 is:
    slideTimer = new  Timer(Number(xmlSlideshow..file[intCurrentSlide].@time));
    Now, according to my Flash manual I bought, I need to 'instanciate' things.  Did I forget this?
    Just can't get my head around this OOP stuff...
    Thanks a bunch for helping me!

  • Issue with Variable Substitution

    Hi,
    We have a scenario where we need to use the data from Payload for further processcing of the messeges.The payload looks like the one given below.
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:MT_NOTIFICATION xmlns:ns1="http://WM_ERRHAND"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <PROXYRESPONSE>
      <STATUS>YES</STATUS>
      <NAMESPACE>WM_INVOICE</NAMESPACE>
      <INTERFACENAME>MI_INVOICE_MOORE_ACK_IN</INTERFACENAME>
      <PROXYNAME>ZXIII_MI_INVOICE_MOORE_ACK_IN</PROXYNAME>
      </PROXYRESPONSE>
      </ns1:MT_NOTIFICATION>
    In adapter, for variable substitution we have specified as below:
    payload:MT_NOTIFICATION,1,PROXYRESPONSE,1,NAMESPACE,1
    but getting an error "Message processing failed: Error during variable substitution: java.text.ParseException: Variable 'namespace' not found in variable substitution table"
    Is the variable that we have declared is right or is there anything we have missed out. Any helpful answers will be rewarded
    Thanks and regards,
    Ram.

    Hi Ram,
    The substitution looks fine.
    Did you read this,
    <i>To disable the check the adapter performs for the element data, set the Disable Security Checks indicator.
    Otherwise, the adapter checks whether the element data contains characters that could lead to security risks in the file system environment. The check includes the characters “/“, “\“, and “..“.</i>
    Try seleting this option and checking the same.
    Regards,
    Bhavesh

  • Urgent: Issue with variable exit

    Hi All,
    We are having a requirement where in we need to populate the value of calday as the first day of the month that the user selects in the variable. For that, this is what i did:
    1. Created a variable for 0CALDAY as ZDAT1 and made it as "Processing Type --> SAP exit"
    2. Then i went to transaction SMOD and went to the enhancement RSR00001
    3. And then went to the exit EXIT_SAPLRRS0_001 and wrote the logic for the requirement,in the INCLUDE ZXRSRU01.
    4. Activated the include and exit
    However, after that when i executed the query i got an error saying that the Exit RSVAREXIT_ZDAT1 for variable ZDAT1 either does not exists or is inactive. For this reason I went to se37 and found that RSVAREXIT_ZDAT1 exit was inactive (I didnot manually create RSVAREXIT_ZDAT1, guess it was system created), so i put my piece of coding in it with the mandatory import and export parameters.However,  after that, the code was not getting called after the user enters the input, even if i put I_STEP =2. Can you please point out as to where i went wrong.
    Best Regards,
    Debashree.

    Hi Debashree,
    you should create the variable for processing type as 'customer exit' not SAP exit.
    hope this helps.

Maybe you are looking for