Movieclip.x movement using keyboard event

Hi, im working on a game project and i have a question about movie clip movement using keyboard event.
Basicly i have a character on screen and it can move on the x axis using the left and right buttons.
Im making my charater move by changing the x value of the character movieclip but i find very it laggy and not smooth and if im going point by point
then it's too slow.
Whats the best way to make the character move so that the transition will be smooth.

Ok obviously you've left out where you add your eventListener, i'll assume that's a KEY_DOWN event. When the user holds down a key, that key event is triggered once immediately and then after a pause it is triggered at regular intervals. Check this out by holding down the up/down arrow and watching this browser window scroll.
That's not the movement you'd be looking for when moving a character in a game. Instead, you'd be setting a variable on KEY_DOWN to indicate the character direction - it could be an integer for example that you increase by 1 if the user pressed RIGHT or decrease by 1 if the user pressed LEFT.
In addition to your KEY_DOWN eventListener, you could have an ENTER_FRAME and  KEY_UP eventListeners set up:
The enterFrame event handler could move the character in the direction specified in your direction variable. This is where you might ensure your character doesn't go beyond its limits in both directions.
In the keyUp event handler, you could do the converse of what you did in the keyDown handler(increase by 1 if the user released LEFT, decrease by 1 if the user released RIGHT).

Similar Messages

  • More explanation about Keyboard Events

    Someone can help me giving me more explanation about how to use Keyboard events inside a textFlow...
    Or maybe show me some example, I try to do something like detect which key is pressed in textFlow.
    I read about: keyDownHandler and manageTabKey, but I still without a clear idea...
    Can you give me a hand please...?

    To filter the keys I'd suggest subclassing ContainerController and overriding keyDownHandler.
    Another approach would be to add your own listeners to the containers and call preventDefault to cancel the event.
    manageTabKey lets you tell TLF to treat a TAB as an insert of a TAB character and to call preventDefault.  Unfortunately that doesn't always prevent the browser from also handling TAB.  Not a problem in an AIR App though.
    Hope that helps,
    rRichard

  • Using keyboard commands to move an object

    Hello, I am trying to make a quasi-asteroids program. I'm trying to move a ship around using keyboard commands. If I put the keyboard commands in the same class as the ship it does fine. Now I'm trying to put all the keyboard commands in their own class. This is where I am starting to have trouble. Here's the code for the commands class and ship class.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Ship implements KeyListener
         ImageIcon ship;
         final int WIDTH = 300;
         final int HEIGHT = 225;     
         final int JUMP = 5;
         private int     x,y;          
         private int iWidth, iHeight;
         public boolean movingLeft,movingRight,movingUp,movingDown;
         public Ship ()
              ship = new ImageIcon ("ship.gif");
              iWidth = ship.getIconWidth();
              iHeight = ship.getIconHeight();
              x = WIDTH/2-10;
              y = HEIGHT/2;
         public void move ()
              if (movingLeft)
                   x -= JUMP;
              if (movingRight)
                   x += JUMP;
              if (movingUp)
                   y -= JUMP;
              if (movingDown)
                   y += JUMP;
         public void draw (Graphics page)
              page.drawImage (ship.getImage(),x,y,null);
    import java.awt.*;
    import java.awt.event.*;
    public class DirectionListener implements KeyListener
         private Ship s1;
         public DirectionListener ()
              s1 = new Ship ();
         public void keyPressed (KeyEvent event)
              switch (event.getKeyCode())
                   case KeyEvent.VK_DOWN:
                        s1.movingDown=true;
                        break;
                   case KeyEvent.VK_UP:
                        s1.movingUp=true;
                        break;
                   case KeyEvent.VK_LEFT:
                        s1.movingLeft=true;
                        break;
                   case KeyEvent.VK_RIGHT:
                        s1.movingRight=true;
                        break;
         public void keyReleased (KeyEvent event)
              switch (event.getKeyCode())
                   case KeyEvent.VK_DOWN:
                        s1.movingDown=false;
                        break;
                   case KeyEvent.VK_UP:
                        s1.movingUp=false;
                        break;
                   case KeyEvent.VK_LEFT:
                        s1.movingLeft=false;
                        break;
                   case KeyEvent.VK_RIGHT:
                        s1.movingRight=false;
                        break;
         public void keyTyped (KeyEvent event) {}
    The problem is obviously trying to communicate between the classes. Why can I not assign the boolean variables in the Ship class from the DirectionListener class? Thanks in advance.

    A program is worth a thousand words, er a ... well whatever ...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Ship extends JFrame {
      ImageIcon ship;
      final int WIDTH = 300;
      final int HEIGHT = 225;
      final int JUMP = 5;
      private int x,y;
      private int iWidth, iHeight;
      private boolean movingLeft,movingRight,movingUp,movingDown;
      public Ship() {
        ship = new ImageIcon ("ship.gif");
        iWidth = ship.getIconWidth();
        iHeight = ship.getIconHeight();
        x = WIDTH/2-10;
        y = HEIGHT/2;
        this.getContentPane().addKeyListener( new DirectionListener() );
        // You'd add the DirectionListener to whatever component you want.
      public void move() {
        if (movingLeft)  x -= JUMP;
        if (movingRight) x += JUMP;
        if (movingUp)    y -= JUMP;
        if (movingDown)  y += JUMP;
      public void draw (Graphics page) {
        page.drawImage (ship.getImage(),x,y,null);
      class DirectionListener implements KeyListener {
        public DirectionListener() {
        public void keyPressed(KeyEvent event) {
          switch (event.getKeyCode()) {
            case KeyEvent.VK_DOWN:
              movingDown=true;
              break;
            case KeyEvent.VK_UP:
              movingUp=true;
              break;
            case KeyEvent.VK_LEFT:
              movingLeft=true;
              break;
            case KeyEvent.VK_RIGHT:
              movingRight=true;
              break;
            default: break;
        public void keyReleased(KeyEvent event) {
          switch (event.getKeyCode()) {
            case KeyEvent.VK_DOWN:
              movingDown=false;
              break;
            case KeyEvent.VK_UP:
              movingUp=false;
              break;
            case KeyEvent.VK_LEFT:
              movingLeft=false;
              break;
            case KeyEvent.VK_RIGHT:
              movingRight=false;
              break;
            default: break;
        public void keyTyped(KeyEvent event) {
      public static void main(String[] argv) {
        new Ship();
    }... I made it an inner class, because you want to do very program specific stuff. I don't know really if I like this approach either, but I can't see what else you'd mean to do with the code you posted, what with the DirectionListener class doing such specific kinds of things.
    Some general critique: You forgot to add the 'default' keyword to your switch statements; and you really don't want to make the booleans public.
    ~Bill

  • Capture keyboard events using c# in SBO

    How do I capture keyboard events(especially those with Control like CTRL-R) in SBO using C#??

    Payal,
    You will want to look at the UI API Help in the SDK Help Center and specifically look at the "SendKeys" method.  This will allow you to send keyboard key strokes to the UI.
    Your post is related to the Business One SDK.  That forum for questions and answers for the Business One SDK is located on the SAP Business One page on SDN and then under the SAP Business One Discussion Forum.  This forum is for the SAP Business One Integration Technology.
    HTH,
    Eddy

  • Flash player on the new mac sarafi can't use keyboard and event listener

    flash player on the new mac sarafi can't use keyboard and event listener
    cn:英文有些差不好意思,附上中文说明:在flash player web 开发时,我在最新版本的sarafi上,目前出现不能响应键盘事件bug,为了验证是不是我本地问题,我也用在多款别的网页游戏上进行测试,全有这个bug,另外,有时还有那个fp弹出本地 缓存提示设置窗口也点不了“允许或拒绝“那些按钮

    Now after 5 weeks, you have always not resolved this very important and urgent issue. It seems that Adobe has realy abandonned the actionscript / flash player projects. Why not simply discontinue flash player on desktops too ? Or even better remove or block "automaticaly" all flash players with the final update. That could create a serious issue on the Internet for few weeks but at least that will be honorable end like a Samurai's Seppuku...

  • I have been transfeing my DVD footage to I movie using handbreak and the spinning wheel of death has arrived and locked up I movie as I tried to import footage.  The message says, "Optimizing movies, processing event DVD" but I can't get out of it.

    I have been transfeing my DVD footage to I movie using handbreak and the spinning wheel of death has arrived and locked up I movie as I tried to import footage.  The message says, "Optimizing movies, processing event DVD" but I can't get out of it.

    Yes I held them down till the apple logo appears, then spinning wheel and repeated boot up process. I only knew it was going round in circles because the charging sound kept repeating every so many seconds.
    I am downloading iOS.5.0.1 now to do a complete factory restore. I hope this works. I have been looking online for hours for fixes and I have very little batter on it as its been spinning for hours now.
    Why do things like this happen? I am sat there watching tv and one minute the settings folder is there then its not! How does that happen? It just disappear? I hadn't moved it to another folder or deleted it, it just.... went!

  • Using Multiple Event Listeners

    Hi,
    I have a movielcip (A) class in which I have used a Tween class effect on a child movieclip (B) scrollRect. The (B) Movieclip in turn has several movieclips whose have tween class effect being executed on thier child movieclips.
    the tweens are all unique to each movieclip
    and the event listeners are taken off once completed.
    This works all well and good in FLASH IDE...
    My problem arises when I try to view this in a browser on a Windows XP
    it doesnt work in
    Opera Version 9.63
    Firefox 2.0
    and Google Chrome 2.0
    The only browser it works fluently in is
    Internet Explorer 7.0.5
    What is happening in most cases it that the animation appears to "stick" but i think what may be happening is the listening or removal of the event listeners. The animations are left incompleted.
    Is there any rule of thumb when using multiple event listeners?
    here is a snippet of some of my code
    on click event from movieclip (A)
    private function scrollToSlidePrev(e:MouseEvent) {
                   if (((slideIndex - 1) >= 0)) {
                        nextButton.mouseEnabled = nextButton.enabled = previousButton.enabled = previousButton.mouseEnabled = false;
                        var position:Number = 0-SLIDEAREA.width;
                        var slide1:TileListSlide = slides[slideIndex] as TileListSlide;
                        var slide2:TileListSlide = slides[--slideIndex] as TileListSlide;
                        scrollSlide(position,slide1,slide2);
    tween animation in movieclip (A) on (B)
    private function scrollSlide(pos:int,slide1:TileListSlide,slide2:TileListSlide) {
                   slide1.resizeSlideTo(0.6); // execute tween on child movie clips in B
                   slide2.resizeSlideTo(1); // same as above;
                   var rect:Rectangle = sliderMc.scrollRect;
                   var tween1:Tween = new Tween(rect,"x",Regular.easeOut,rect.x,rect.x + pos,3,true);
                   tween1.addEventListener(TweenEvent.MOTION_CHANGE,setSliderScroll,false,4);
                   tween1.addEventListener(TweenEvent.MOTION_FINISH,toggleButtonEnabled,false,3);
    tween animation in movieclip (B) children
    public function resizeSlideTo(sc) {
                   var m:Matrix = tileList.transform.matrix as Matrix;
                   var p:Point = new Point (m.a, 0);
                   var tween2:Tween = new Tween(p,"x",Regular.easeOut,p.x,sc,3,true);
                   if (numericStepper != null) {
                        if (sc != 1) {
                             numericStepper.visible = false;
                             tween2.removeEventListener(TweenEvent.MOTION_FINISH,showStepper);
                        if (sc === 1) {
                             tween2.addEventListener(TweenEvent.MOTION_FINISH,showStepper,false,2);
                   tween2.addEventListener(TweenEvent.MOTION_CHANGE,setScaleOnScroll,false,3);
    here is the link
    http://visual_admin.web.aplus.net/ticker/ticker_widget.html
    the effect disables and re-enables the buttons when its done.... then the listeners are removed.
    each one with the exception cretes its own unique tween (obviously this is a custom class built as each clip)
    i really don't know what to make of it guys         

    apparantly making the tween a property of the class rather than a random variable in a function worked.....go figure

  • How to switch frames using keyboard

    Hi,
    I'm new to Actionscript. Now using Actionscript 3.0
    I have to switch next or previous frame in timeline using
    keyboard. I wrote
    ======================================================================================
    stage.addEventListener(KeyboardEvent.KEY_DOWN, goTimeline);
    function goTimeline(event:KeyboardEvent):void
    nextFrame();
    ======================================================================================
    How can I assign arrow keys to switch frames...
    Regards,
    Shaji T.U

    Here's a simple class that moves a circle with the key
    arrows...
    Take a look at how it works and edit it so it suits your
    needs.
    Good luck.

  • In Flashplayer, I can crossover mouse and keyboard events. In IrfanView I cannot. Can this be fixed?

    My client uses IrfanView to play SWF files. Unfortunately, he does not use Flashplayer. In Flashplayer, I can crossover mouse and keyboard events with no problem. In IrfanView, the second I click a button, the keyboard events are disabled. Is there a fix?

    Hi Ned. I may have posted this issue a bit early, but this problem is also happening in Flashplayer 10. It's not exclusive to IrfanView.
    Here is something that I encountered during my testing, when I jump to scene 6 using the menu button, I have a play button to jump from one frame to the next frame that stops -- the keyboard events start working. But if all I am doing is jumping scene to scene with the mouse button, the keyboard events are disabled.
    I feel as if the keyboard events only work if I am playing frames in the scene. And if all I am doing is jumping scene to scene using the buttons, the keys will disable.
    I set up the mouse buttons inside a movieclip that all the scenes share. The mouse actionscript is in the movieclip. On the main timeline of each scene is an actionscript for the keyboard events, even though I had to change each function name.
    I feel the actionscript is setup pretty simple. I just wish clicking the buttons would not disable the keyboard events. This may sound redundant, but the keyboard events do the same thing if you use the mouse buttons. It's just preference for the client even though he will need to understand that using the mouse buttons override the keyboard events. He doesn't really lose functionality.
    Keyboard actionscripting below:
    import flash.events.KeyboardEvent;
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyEvent);
    function onKeyEvent(e:KeyboardEvent):void {
    var character:String=String.fromCharCode(e.charCode);
    if (e.keyCode==72) {
      gotoAndStop(1,"master");
    if (e.charCode==49) {
      gotoAndPlay(1,"Distributor");
    if (e.charCode==50) {
      gotoAndPlay(1,"Mirka");
    if (e.charCode==51) {
      gotoAndPlay(1,"Farm");
    if (e.charCode==52) {
      gotoAndPlay(1,"Check2");
    if (e.charCode==53) {
      gotoAndPlay(1,"Check3");
    if (e.charCode==54) {
      gotoAndPlay(1,"Scene2");
    if (e.charCode==55) {
      gotoAndPlay(1,"Scene1");

  • Mouse/keyboard events lost during sound events

    I have a new MacbookPro (October 2011, MacBookPro8,2) with 4Gb RAM running latest 10.6.8, and I am extremely frustrated by periodic loss of mouse events (movement freezes, then jumps) and keyboard events (loss of keystrokes) whenever a sound alert is made. Am I the only person experiencing this?

    I should also add a related behavior, repeated keypresses. I do a lot of work on connected unix/linux machines using terminal. Sometimes I will be navigating directories and hit <tab> for command completion, and unexpectedly get the screen scrolling as if I had typed it 100 times!

  • Keyboard events and scenes problem

    I have 2 scenes. In both scenes, I have a movie clip that moves via keyboard control.  If the goto next scene is triggered by the movie clip in the first scene the keyboard control works in the second.  However, if I use a button to move to the next scene then there isn't any control over the movieclip in that scene.  I've traced the keyCode in the second scene and it is picked up but the switch statement doesn't run. I'm migrating to Actionscript 3.0 and updating something I created in 2.0.  I would like to do it without writing a class.
    Scene 1 code:
    stop();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, doKeyDown);
    function doKeyDown(e:KeyboardEvent):void {
    switch (e.keyCode) {
      case Keyboard.LEFT :
       b1_mc.x-=5;
       break;
      case Keyboard.RIGHT :
       b1_mc.x+=5;
       if (b1_mc.x>350) {
        stage.removeEventListener(KeyboardEvent.KEY_DOWN,doKeyDown);
        gotoAndPlay(1,"Scene 2");
       break;
    next_btn.addEventListener(MouseEvent.CLICK, goNextScene);
    function goNextScene(e:MouseEvent):void {
    stage.removeEventListener(KeyboardEvent.KEY_DOWN,doKeyDown);
    gotoAndPlay(1,"Scene 2");
    Scene 2 code:
    stop();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, doKeyDown2);
    function doKeyDown2(e:KeyboardEvent):void {
    switch (e.keyCode) {
      case Keyboard.LEFT :
       b2_mc.x -= 5;
       break;
      case Keyboard.RIGHT :
       b2_mc.x += 5;
       break;

    does it work the same if you use the following?  if yes, there's something other than the code you're showing that's causing the problem.
    Scene 1 code:
    stop();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, doKeyDown);
    function doKeyDown(e:KeyboardEvent):void {
    switch (e.keyCode) {
      case Keyboard.LEFT :
       b1_mc.x-=5;
       break;
      case Keyboard.RIGHT :
       b1_mc.x+=5;
       if (b1_mc.x>350) {
    goNextScene(null);
       break;
    next_btn.addEventListener(MouseEvent.CLICK, goNextScene);
    function goNextScene(e:MouseEvent):void {
    stage.removeEventListener(KeyboardEvent.KEY_DOWN,doKeyDown);
    gotoAndPlay(1,"Scene 2");
    Scene 2 code:
    stop();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, doKeyDown2);
    function doKeyDown2(e:KeyboardEvent):void {
    switch (e.keyCode) {
      case Keyboard.LEFT :
       b2_mc.x -= 5;
       break;
      case Keyboard.RIGHT :
       b2_mc.x += 5;
       break;

  • Keyboard events in Flex mobile

    I have a desktop application where I handle autocomplete and some other checks using the Keyboard events. Now porting the same app to Mobile devices but I am not able to get the Keyboard events. How can I get those or are there any alternatives for Keyboard events on Mobile devices?

    Hi there,
    If you are recording in Training mode then by default Captivate should include click boxes in your slides. You can assign keyboard shortcuts to those click boxes by carrying out the following steps:
    1. Double-click on one of your Click Boxes.
    2. In the Click Box section of the dialog box click the Select Keys... button.
    3. Select the option Attach a shortcut
    4. To perform an Undo choose Ctrl and then from the Letter menu choose
    Note: To get the learner to Shift + Click, select the option SHIFT
    5. Click OK to Close the Shortkey dialog box.
    To simulate an Undo you would then need to branch to a slide where the original action was performed. Here you can either use the On success options Go to Previous Slide or Jump to Slide and then specify the slide number.
    As for simulating selecting multiple items, again you would carry out similar steps. Depending on how your project has been setup you would either set the On success action to Continue or to  Go to next slide.
    The way I tend to work is that I have each of items I want to select on separate slides and then add a click box with the keyboard shortcut Shift attached. When the learner clicks on the first click box I then move to the next slide and so on. Naturally, this does not account for allowing the learner to randomly select the items. To accomplish that, you would need to set up some pretty complex branching.
    HTH
    Best - Mark
    Visit the macrofireball blog

  • Keyboard Events in Training record

    Hello all
    How can I record keyboard events such as Ctrl+Z to Undo and Shift+ Click to select multiple items in training mode.
    Users have to do this action to countinue slides.
    appreciate you.

    Hi there,
    If you are recording in Training mode then by default Captivate should include click boxes in your slides. You can assign keyboard shortcuts to those click boxes by carrying out the following steps:
    1. Double-click on one of your Click Boxes.
    2. In the Click Box section of the dialog box click the Select Keys... button.
    3. Select the option Attach a shortcut
    4. To perform an Undo choose Ctrl and then from the Letter menu choose
    Note: To get the learner to Shift + Click, select the option SHIFT
    5. Click OK to Close the Shortkey dialog box.
    To simulate an Undo you would then need to branch to a slide where the original action was performed. Here you can either use the On success options Go to Previous Slide or Jump to Slide and then specify the slide number.
    As for simulating selecting multiple items, again you would carry out similar steps. Depending on how your project has been setup you would either set the On success action to Continue or to  Go to next slide.
    The way I tend to work is that I have each of items I want to select on separate slides and then add a click box with the keyboard shortcut Shift attached. When the learner clicks on the first click box I then move to the next slide and so on. Naturally, this does not account for allowing the learner to randomly select the items. To accomplish that, you would need to set up some pretty complex branching.
    HTH
    Best - Mark
    Visit the macrofireball blog

  • Help with possible mouseEvent/Keyboard Event problem

    Hi guys, I am having trouble with a game I am creating right now.  The problem seems to lie on mouse / Keyboard event.
    Basically, I have a character that the player can control using the  keyboard arrow keys and it works perfectly fine on its own.  Whenever the game starts,  the player can control the character instantly with the keyboard. Here's the problem now, after I added another page (at frame 1) and created a start game button, those keyboard events  won't start immediately anymore.  The player must click on the stage  again before it works.  Is there any method to solve this?
    Right now, here is my Start button page.
    var start_btn:Start_btn = new Start_btn;
    start_btn.addEventListener (MouseEvent.CLICK, goGame);
    function goGame(event:MouseEvent) {
    gotoAndStop("game"); //The game's frame
    this.removeEventListener(MouseEvent.CLICK,goGame);
    Here's some code for the actual game part.
    stage.addEventListener(KeyboardEvent.KEY_DOWN,keyP  ressed);
    function keyPressed (e:KeyboardEvent) :void {
    //character movement code...like charcter.x++, x-- etc
    Thanks in advance

    How about trying:
         stage.focus = stage;
    in goGame().

  • Error in updating 311 movement using BAPI_GOODSMVT_CREATE

    Hi All,
    I need hlep to understand the problem in doing a transfer.
    SAP MII is doing a 311 type movement using BAPI_GOODSMVT_CREATE. BAPI is returning the response back to MII. Once the BAPI is commited it shall make transfer inside SAP. But it does not reflect the movement while checking under HUMO.
    under SM13 it say " SSFCOMPOSER 323"  error in address output (name not filled)
    MII is getting this reponse back as a result of BAPI execution.
    <?xml version="1.0" encoding="UTF-8"?>
    <BAPI_GOODSMVT_CREATE>
    <INPUT><GOODSMVT_CODE><GM_CODE>04</GM_CODE></GOODSMVT_CODE><GOODSMVT_HEADER><PSTNG_DATE>2010-07-03</PSTNG_DATE><DOC_DATE>2010-07-03</DOC_DATE><REF_DOC_NO/><BILL_OF_LADING/><GR_GI_SLIP_NO/><PR_UNAME/><HEADER_TXT/><VER_GR_GI_SLIP/><VER_GR_GI_SLIPX/><EXT_WMS/><REF_DOC_NO_LONG/><BILL_OF_LADING_LONG/><BAR_CODE/></GOODSMVT_HEADER><GOODSMVT_REF_EWM><REF_DOC_EWM/><LOGSYS/><GTS_SCRAP_NO/></GOODSMVT_REF_EWM><TESTRUN/></INPUT>
    <OUTPUT><GOODSMVT_HEADRET><MAT_DOC/><DOC_YEAR>0000</DOC_YEAR></GOODSMVT_HEADRET><MATDOCUMENTYEAR>0000</MATDOCUMENTYEAR><MATERIALDOCUMENT/></OUTPUT>
    <TABLES><EXTENSIONIN/><GOODSMVT_ITEM><item><MATERIAL>130116</MATERIAL><PLANT>2715</PLANT><STGE_LOC>LINE</STGE_LOC><BATCH>96</BATCH><MOVE_TYPE>311</MOVE_TYPE><STCK_TYPE/><SPEC_STOCK/><VENDOR/><CUSTOMER/><SALES_ORD/><S_ORD_ITEM>000000</S_ORD_ITEM><SCHED_LINE>0000</SCHED_LINE><VAL_TYPE/><ENTRY_QNT>96.000</ENTRY_QNT><ENTRY_UOM/><ENTRY_UOM_ISO/><PO_PR_QNT>0</PO_PR_QNT><ORDERPR_UN/><ORDERPR_UN_ISO/><PO_NUMBER/><PO_ITEM>00000</PO_ITEM><SHIPPING/><COMP_SHIP/><NO_MORE_GR/><ITEM_TEXT/><GR_RCPT/><UNLOAD_PT/><COSTCENTER/><ORDERID/><ORDER_ITNO>0000</ORDER_ITNO><CALC_MOTIVE/><ASSET_NO/><SUB_NUMBER/><RESERV_NO>0000000000</RESERV_NO><RES_ITEM>0000</RES_ITEM><RES_TYPE/><WITHDRAWN/><MOVE_MAT/><MOVE_PLANT>2715</MOVE_PLANT><MOVE_STLOC>J01</MOVE_STLOC><MOVE_BATCH>96</MOVE_BATCH><MOVE_VAL_TYPE/><MVT_IND/><MOVE_REAS>0000</MOVE_REAS><RL_EST_KEY/><REF_DATE>0000-00-00</REF_DATE><COST_OBJ/><PROFIT_SEGM_NO>0000000000</PROFIT_SEGM_NO><PROFIT_CTR/><WBS_ELEM/><NETWORK/><ACTIVITY/><PART_ACCT/><AMOUNT_LC>0</AMOUNT_LC><AMOUNT_SV>0</AMOUNT_SV><REF_DOC_YR>0000</REF_DOC_YR><REF_DOC/><REF_DOC_IT>0000</REF_DOC_IT><EXPIRYDATE>0000-00-00</EXPIRYDATE><PROD_DATE>0000-00-00</PROD_DATE><FUND/><FUNDS_CTR/><CMMT_ITEM/><VAL_SALES_ORD/><VAL_S_ORD_ITEM>000000</VAL_S_ORD_ITEM><VAL_WBS_ELEM/><GL_ACCOUNT/><IND_PROPOSE_QUANX/><XSTOB/><EAN_UPC/><DELIV_NUMB_TO_SEARCH/><DELIV_ITEM_TO_SEARCH>000000</DELIV_ITEM_TO_SEARCH><SERIALNO_AUTO_NUMBERASSIGNMENT/><VENDRBATCH/><STGE_TYPE/><STGE_BIN/><SU_PL_STCK_1>0</SU_PL_STCK_1><ST_UN_QTYY_1>0</ST_UN_QTYY_1><ST_UN_QTYY_1_ISO/><UNITTYPE_1/><SU_PL_STCK_2>0</SU_PL_STCK_2><ST_UN_QTYY_2>0</ST_UN_QTYY_2><ST_UN_QTYY_2_ISO/><UNITTYPE_2/><STGE_TYPE_PC/><STGE_BIN_PC/><NO_PST_CHGNT/><GR_NUMBER/><STGE_TYPE_ST/><STGE_BIN_ST/><MATDOC_TR_CANCEL/><MATITEM_TR_CANCEL>0000</MATITEM_TR_CANCEL><MATYEAR_TR_CANCEL>0000</MATYEAR_TR_CANCEL><NO_TRANSFER_REQ/><CO_BUSPROC/><ACTTYPE/><SUPPL_VEND/><MATERIAL_EXTERNAL/><MATERIAL_GUID/><MATERIAL_VERSION/><MOVE_MAT_EXTERNAL/><MOVE_MAT_GUID/><MOVE_MAT_VERSION/><FUNC_AREA/><TR_PART_BA/><PAR_COMPCO/><DELIV_NUMB/><DELIV_ITEM>000000</DELIV_ITEM><NB_SLIPS>000</NB_SLIPS><NB_SLIPSX/><GR_RCPTX/><UNLOAD_PTX/><SPEC_MVMT/><GRANT_NBR/><CMMT_ITEM_LONG/><FUNC_AREA_LONG/><LINE_ID>000000</LINE_ID><PARENT_ID>000000</PARENT_ID><LINE_DEPTH>00</LINE_DEPTH><QUANTITY>0</QUANTITY><BASE_UOM/><LONGNUM/></item></GOODSMVT_ITEM><GOODSMVT_SERIALNUMBER/><GOODSMVT_SERV_PART_DATA><item><LINE_ID>000000</LINE_ID><RET_AUTH_NUMBER/><DELIV_NUMBER/><DELIV_ITEM>000000</DELIV_ITEM><HU_NUMBER>115934300024</HU_NUMBER><INSPOUT_GUID/><EVENT/><DATE>0000-00-00</DATE><TIME>00:00:00</TIME><ZONLO/><TIMESTAMP>0</TIMESTAMP><SCRAP_INDICATOR/><KEEP_QUANTITY>0</KEEP_QUANTITY><GTS_STOCK_TYPE/><MOVE_GTS_STOCK_TYPE/></item></GOODSMVT_SERV_PART_DATA><RETURN><item><TYPE>S</TYPE><ID>L9</ID><NUMBER>514</NUMBER><MESSAGE>Delivery 80817129 created</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1>80817129</MESSAGE_V1><MESSAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER>GOODSMVT_HEADER</PARAMETER><ROW>0</ROW><FIELD/><SYSTEM>SP1330</SYSTEM></item></RETURN></TABLES>
    </BAPI_GOODSMVT_CREATE>

    PL Stock in transit exceeded by 200 UNT : 10000000125 3065 0005"
    the code does not matter, it is the process and the stock situation that does not allow the creation of the movement.
    you cannot receive e.g. 200 from in-transit stock  if you only have nothing in transit.
    First the goods issue has to be  performed in the shipping plant.

Maybe you are looking for

  • Manual Series numbering

    Hi, I am not sure if I have just missed something here but can you set the 'Manual' Numbering series on a AP Invoice to be the default? Thanks Mark

  • WMI filter query of the last GPO in an OU fails

    Hi, I've noticed an interesting issue: Server 2012 R2, Windows 7. GPO's. WMI Filters. I've linked some GPOs to a specific OU (which exclusively contains users). For example, there are three objects which configure Word, Excel and PowerPoint 2010. I'v

  • Bug - liquify tool panel displayes images as opaque bright blue layers

    Running on a HP Pavillion dv6, ATI radeon graphics with 6 gb ram Info----------------------------- Adobe Photoshop Version: 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00) x64 Operating System: Windows 7 64-bit Version: 6.1 Service Pack 1 System archi

  • Dev/UAT/Production Publishing for content within Sharepoint online

    Dear All, we have created dev tenant, QA tenant and production tenant in sharepoint online. i want to know what is best practices to publish changed site content/stucture etc from Dev tenant to QA tenant to prod tenant. Regards Kaps    

  • Service Release (SR) - which Support Package Levels?

    Hello, I have a general question in terms of Service Releases of a SAP solution: Is there an easy way to find out on which Support Package Level (or Support Package Stack) a Service Release (SR) of a SAP Solution (or NetWeaver itself) is based? Can I