Changing mxml UIComponents with Actionscript

Hello,
i´m searching about a way to change the text of labels createtd with Designer by Actionscript. But i try to browse the entire collection to find all used UI-Components.
If i use the debugger, i can see  an mxmlContent Array with all Components but i can´t use theses in Actionscript.
Regards
Thomas

Hi David,
thanks for the reply, but that is not, what i want.
I´m searching about a solution to browse the complete mxml component list in Actionscript.
We will change the labels of all items by runtime with data from a cfc (Coldfusion component) without hard coding the labels in Actionscript. I need a readable collection of all UI-Components to read the id´s, comparinge these with the cfc datasource and change these with other data from this source.
As i say, the Applipcation.mxmlContent (or any Group.mxmlContent) has all these properties. Baut i can´t use mxmlContent in Flashbuilder because i got an error, that this property is not defined instead i can read that in the debugger.
Thomas

Similar Messages

  • Adding mxml form with actionscript

    In my application, I have a form that is generated with an
    accodion and a repeater. The repeater is used to generate the
    number of forms needed based on the number of children in the xml
    dataprovider. Now what I would like to do is to add new forms with
    actionscript and a button. Can this be done? Here's to code:
    <!--Create an accordion for Contacts-->
    <mx:Accordion width="360" height="610" x="837" y="10"
    backgroundColor="#FFD897" cornerRadius="5" borderThickness="3"
    id="contactAccordion" creationPolicy="auto">
    <mx:Repeater id="repeat"
    dataProvider="{populateContactXML}" >
    <mx:Form xmlns:mx="
    http://www.adobe.com/2006/mxml"
    id="contactForm" width="360" height="585" borderStyle="none"
    backgroundColor="#E1E1E1" cornerRadius="5" borderThickness="3"
    label=" >
    <mx:FormHeading id="contactHeading" label="Contact
    Information"/>
    <mx:FormItem label="Contact Type" width="290" x="790"
    y="10">
    <mx:FormItem id="address1Item" label="Address 1"
    width="290">
    <mx:TextInput id="address1" change="onChange(event,
    event.currentTarget.repeaterIndex, 'Address_1')" width="183"
    borderStyle="solid" cornerRadius="5"
    text="{repeat.currentItem.@Address_1}" >
    <mx:Script>
    <![CDATA[
    public function onChange(event:Event, idx:int,
    str:String):void
    populateContactXML[idx]["@" + str] =
    event.currentTarget.text;
    trace("index = ", idx);
    tmptxt3.text = "index = " +idx;
    ]]>
    </mx:Script>
    </mx:TextInput>
    </mx:FormItem>
    </mx:Form>
    </mx:Repeater>
    </mx:Accordion>

    Hi,
    All you need to do is add a node (XMLList) to your
    populateContactXML object (make sure populateContactXML is a
    XMLListCollection and not an XMLList so that binding works
    flawlessly) on the click of a button.

  • Change FPS rate with ActionScript?

    I need to speed up a section of movie clip to 30 fps but I can't figure out how to do this in ActionScript. I tried changing it from the fps thing at the bottom of the timeline while I was inside the movie clip but when I exited the movie clip the fps rate was 30 for the main timeline. I thought it would be as such but I tried it anyway.

    Learning how to find information is key to succeeding.
    You need to becomne familiar with the Flash Help documentation.  In the top toolbar under the Help selection choose "Flash Help".  If you are using CS4, I am not familiar with how accessing the Help docs works (they have them online instead of locally), but if they function anywhere near similar to older versions, you should be able to select the sections you want to search (AS3) and enter your search term (frameRate).
    Another excellent resource for Flash information is searching Google.  If you were to search Google using "AS3 frameRate" you might find someone has prepared a tutorial for you that shows up early in the search results.

  • Create remoteObject with ActionScript, not MXML

    I want to use remoteObject with ActionScript only, no MXML:
    private function initializeRemoteObject():void {
                _remote = new RemoteObject();
                _remote.source = "AMFProxyObject";
                _remote.endpoint = "http://localhost/linktoMyAMFServer";
                _remote.destination = "zend";
                _remote.showBusyCursor = true;
    public function getIAllData():void {
                initializeRemoteObject();
                var token:AsyncToken = _remote.getAllDataFromStoryTable();
                //token.result = getDataHandler;
    I am stuck here because I don't know the proper syntax to handle the result
    private function getDataHandler ()void
    ///////////////    I just want to convert the MXML code below to ActionScript   \\\\\\\\\\\\\\\\\\\\\\
    <mx:RemoteObject id="zendRemoteObject" destination="zend" source="AMFProxyObject"
            endpoint="http://localhost/linktoMyAMFServer"         
            result="resultHandler(event)">
            <mx:method name="getAllDataFromStoryTable" result="getDataHandler(event)"/>
            </mx:RemoteObject>
    Thanks very much. This is driving me nuts, particularly since I couldn't find any help online by googling.

    Try using a Responder, specifically an AsyncResponder.
       var token:AsyncToken = _remote.getAllDataFromStoryTable();
       var responder:AsyncResponder = new AsyncResponder( resultHandler, faultHandler );
       token.addResponder( responder );
       public function resultHandler( event:ResultEvent, token:Object=null ):void
          Alert.show( "RESULT: "+ event.result as String );
       public function faultHandler( event:FaultEvent, token:Object=null ):void
          Alert.show( "FAULT: " + event.fault.message );
    The following documentation may be helpful:
    http://www.flexafterdark.com/docs/ActionScript-Responder
    I hope that helps...
    Ben Edwards

  • Change the "Font size" in a TLF Textfield with actionscript?

    I could not realize how should I resize my TLF Textfiels in flash cs6 with actionscript??
    None of these worked:
    if (....)
         myTLFText.textSize++;
         myTLFText.fontSize++;
    Error: Access of possibly undefined property size through a reference with static type fl.text:TLFTextField.
    I appreciate your kind help please??

    Here is the part of code I am using to resize the textfield (and other elements).
    /******SET POSITION**********/
    function setPosition():void
          //Position appBG
          appBG.height = stage.stageHeight;
          appBG.width = appBG.height;
          //Fit the appTXT in middle of screen  (AppTXT is a MovieClip contains sourceText - RTLTextField)
          appTXT.sourceText.width = stage.stageWidth * 0.9;
          appTXT.sourceText.x = stage.stageWidth * 0.05;
          appTXT.sourceText.y = stage.stageHeight * 0.1;
          //Fit the maskText layer on top of text;
          maskText.width = appTXT.sourceText.width;
          maskText.height = stage.stageHeight * 0.8;
          maskText.x = stage.stageWidth * 0.05;
          maskText.y = stage.stageHeight * 0.1;
          //Set buttons in their proper position
          if (stage.stageWidth > stage.stageHeight)
                appBG.width = stage.stageWidth;
                appBG.height = appBG.width;
          appBG.x = stage.stageWidth / 2;
          appBG.y = stage.stageHeight / 2;
    Everything works fine, but when I install the apk on my Google nexus (800x1280), the font size looks VERY SMALL and I can hardly read it!
    If I increase the Font size pt (Red Arrow in above PrntScr) to 40. then it reads perfect on phones with 800x1280 screen size. Ok?  But then any OTHER smaller screen cell phones will see the font TOO BIG!
    So I need to set the Font size pt by CODE based on a percent of stageWidth to could solve this. thx.

  • Can't access object using "id" or "name" if created with actionscript

    How can you register an instance of an object with actionscript so that it's id or name value is accessible?
    I included a simple example where a Button is created using mxml and in the same way it is created using actionscript.  The actionscript object is inaccessible using it's "id" and "name" property.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)">
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    import spark.components.Button;
                    var asBtn:Button = new Button();
                    asBtn.label = "actionscript";
                    asBtn.x = 200;
                    asBtn.id = "asButton";
                    asBtn.name = "asButtonName";
                    addElement(asBtn);
                    trace("mxmlButton="+this["mxmlButton"].label); // returns: mxml  label
                    //trace("mxmlButton="+this["asButton"].label); // returns runtime error: ReferenceError: Error #1069: Property asButton not found on TestId and there is no default value.
                    //trace("mxmlButton="+this["asButtonName"].label); // returns runtime error: ReferenceError: Error #1069: Property asButtonName not found on TestId and there is no default value.
            ]]>
        </fx:Script>
        <s:Button
            id="mxmlButton"
            label="mxml label"
            alpha="0.8"/>
    </s:Application>

    Hi Dan,
    It is a very rare occurrence when I miss not being able to access an object (object property, really) using the ["name"] notation for objects created using actionscript.
    In MXML the compiler is conveniently adding an attribute to the class with the same name as the id, so you can conveniently refer to it using the [] notation. While we explicitly specify an application container to use, the MXML compiler creates a custom container which is a derivative of the base container and to that it adds properties for the children declared in MXML. I guess it also effectively calls "addElement" for us when  the container is being constructed.
    Your example assumes that using "addElement" to add the button to the application container is the same as declaring a variable (ie property ). It isn't, so there's no point in looking for an property of the name "as3Button" using the [] notation, because it doesn't exist. The container is managing a collection of children in it's display list and that's not the same as being accessible as properties of the container.
    Generally speaking, accessing properties using the ["name"] syntax isn't necessary.
    Paul
    [edit: you may wonder why "addElement" doesn't conveniently also add the "id" attribute to be an property of the container class. Unfortunately, it can't because the container class would need to be dynamic and it's not. A further complication would be that adding properties at runtime would invite naming clashes at runtime with associated mayhem. MXML can do this because the compiler generates the class and can trap name duplication at compile time.
    Great question, BTW.
    -last edit changed my "attributes" to be "properties" in line with Adobe's terminology]

  • Moving an image with actionscript

    I'm trying to move an image from position Y:0 to Y:-100 using
    actionscript when the .swf file loads, as this is smoother than
    conventional tweening??

    Well Sim-Enzo is almost correct. You will have some problems
    though because it is not really complete.
    When you want to do things over time (move, fade, scale,
    etc.) with actionscript you have two main choices –
    onEnterFrame and setInterval. For the example given by Sim-Enzo I
    would rewrite it like this:
    myImageClip.onEnterFrlame=function(){
    if(this._y>-100){
    this._y-=10;
    }else{
    delete this.onEnterFrame;
    this._y=-100
    Here are why I would make these changes.
    First the onEnterFrame is poorly named and confuses a lot of
    folks. So remember onEnterFrame means "do this next bit of code at
    the frame rate of the movie – even if the timeline is stopped
    or there is only one frame."
    Next. Each movie clip instance can only have one onEnterFrame
    handler defined for it. So it is a good idea to assign each one to
    an appropriate clip to avoid problems. By attaching this one to the
    clip you want to move, myImageClip, you will also be able to assign
    other ones to other clips and do whatever they need to do.
    Then inside the event handler, notice how I refer to the clip
    by "this" since the onEnterFrame is scoped to the myImageClip.
    Finally, and this is probably most important, I have added an
    else to the conditional. This makes sure that once your clip has
    move to where it is supposed to go that the onEnterFrame is
    stopped. Otherwise the onEnterFrame would just keep going –
    it wouldn't move the clip anymore, but it would be using up
    processor time. One errant onEnterFrame like this wouldn't probably
    bring down your swf, but if you didn't do it with many different
    ones you would notice.
    I also added a little bit there which put the clip exactly at
    the place I wanted. There are times in Flash where rounding errors
    or other issues can make for surprises. I think it is good practice
    to set the value to the exact required value.

  • Replacing mxml SWFLoader with AS

    Hi,
    I'm creating an SWFLoader instance on stage using mxml syntax. I'm using this swfLoader to display an MC from external .swf file. I need to be able to control MC's time line with 'start()' and 'stop()' commands. I read that the way to do this is by creating a MovieClip instance and assigning imported swf to it. So my code looks like this:
    MXML:
    <mx:SWFLoader id="myMC_3" source="{myMC_2}" />
    AS:
    [Embed(source="some_swf.swf", symbol="myMC_1")]
    [Bindable]
    private var myMC_2:Class;
    myMC_4 = myMC_3.content as MovieClip;
    And this works fine. But when I'm trying to create SWFLoader instance using only AS (without mxml) it doesn't work - an error appears telling me that 'myMC_1.content' is null.
    AS:
    [Embed(source="some_swf.swf", symbol="myMC_1")]
    [Bindable]
    private var myMC_2:Class;
    myMC_3 = new SWFLoader;
    myMC_3.source = "Embed(source='myMC_2')"
    myMC_4 = myMC_3.content as MovieClip;          //here it stops on an error telling me that
                                                   //I cannot assign null property
    Any ideas what's wrong or have You any proposition how to control external MC inside Flex with SWFLoader created only with AS (Without MXML)?

    The way to find out what the difference is between your AS and the mxml code is to compile the mxml file with -keep and look at the compiler generated actionscript code.
    -Darrell

  • Change stroke width with AS3?

    So, I have a movie clip which consists of a filled vector circle with a stroke. Is it possible to increase/decrease the stroke to a specific thickness in pixels with actionscript whilst the swf is playing?
    Thanks
    T

    If you draw a circle dynamically using graphics API then its possible to chage the stroke by using lineStyle method.
    But if that circle has already been drawn and placed in the stage, I don't think you can change it's stroke.
    Can I ask, why don't you draw it dynamically using actionscript. It's so easy.
    //make sure you import relavent apis
    import flash.display.LineScaleMode;
    import flash.display.CapsStyle;
    import flash.display.JointStyle;
    public var _cricleObj            :Sprite;
    public var _lineSize            :Number    = 1;
    //Now draw your circle
    _cricleObj = new Sprite();
    _cricleObj.graphics.lineStyle(_lineSize, 0xFFFF00, 1, false, LineScaleMode.VERTICAL, CapsStyle.NONE, JointStyle.MITER, 3);
    _cricleObj.graphics.beginFill(0xFF,1);
    _cricleObj.graphics.drawCircle(0,0,50);
    _cricleObj.graphics.endFill();
    _cricleObj.addEventListener(Event.ENTER_FRAME, reDrawCircle);
    public function reDrawCircle(e:Event):void
                _lineSize +=1;
                _cricleObj.graphics.clear();
                _cricleObj.graphics.lineStyle(_lineSize, 0xFFFF00, 1, false, LineScaleMode.VERTICAL, CapsStyle.NONE, JointStyle.MITER, 3);
                _cricleObj.graphics.beginFill(0xFF,1);
                _cricleObj.graphics.drawCircle(0,0,50);
                _cricleObj.graphics.endFill();
    thats all.

  • Painting with Actionscript

    Hi all,
    I have some pictures of the interior of a house and I want
    the user to change the color of the walls. When I try to fill some
    areas of the image with a specific color I get some "unreal"
    results, and the final picture is not neat. I wander if there is
    some clever way to change the color leaving the lighting, shadows
    etc as they are to have a more realistic result.
    I'll appreciate if someone have any useful links or
    guidelines for this, thanks in advance

    jgeorgiou,
    > there is an EXCELLENT desktop application I found in
    >
    http://www.crownpaint.co.uk/expcolour/create/
    following
    > the link "Dowload My Rooms in Colour Tool", but it's
    > not made with Flash.
    I didn't download the app, but I did watch the Flash
    demonstration.
    > Is it possible to have this result with ActionScript?
    The demo showed a user clicking around a photo to define
    anchor points,
    then filling the enclosed shape with a color. This sort of
    thing is indeed
    possible with ActionScript, and when combined with blend
    modes might give a
    reasonably "realistic" rendering.
    What you're after is a collection of MovieClip class methods
    known as
    the Drawing API. Look up MovieClip.lineTo() in the
    ActionScript 2.0
    Language Reference and you'll find the others. :)
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Moving symbol instances with actionscript

    I'm just looking for a primer of sorts... I want a symbol to
    slide around on the stage when various buttons are clicked.
    I know how to set new _x and _y values for it, but that will
    just make the instance jump across the stage. I want it to slide -
    even ease out of the slide as it ends it's motion... I know this
    can be done, but have no idea where to start looking in regards to
    "how".
    Thanks for you help - which can come in the form of a
    tutorial, tips, snippets of code, etc.
    later - Chris

    Well Sim-Enzo is almost correct. You will have some problems
    though because it is not really complete.
    When you want to do things over time (move, fade, scale,
    etc.) with actionscript you have two main choices –
    onEnterFrame and setInterval. For the example given by Sim-Enzo I
    would rewrite it like this:
    myImageClip.onEnterFrlame=function(){
    if(this._y>-100){
    this._y-=10;
    }else{
    delete this.onEnterFrame;
    this._y=-100
    Here are why I would make these changes.
    First the onEnterFrame is poorly named and confuses a lot of
    folks. So remember onEnterFrame means "do this next bit of code at
    the frame rate of the movie – even if the timeline is stopped
    or there is only one frame."
    Next. Each movie clip instance can only have one onEnterFrame
    handler defined for it. So it is a good idea to assign each one to
    an appropriate clip to avoid problems. By attaching this one to the
    clip you want to move, myImageClip, you will also be able to assign
    other ones to other clips and do whatever they need to do.
    Then inside the event handler, notice how I refer to the clip
    by "this" since the onEnterFrame is scoped to the myImageClip.
    Finally, and this is probably most important, I have added an
    else to the conditional. This makes sure that once your clip has
    move to where it is supposed to go that the onEnterFrame is
    stopped. Otherwise the onEnterFrame would just keep going –
    it wouldn't move the clip anymore, but it would be using up
    processor time. One errant onEnterFrame like this wouldn't probably
    bring down your swf, but if you didn't do it with many different
    ones you would notice.
    I also added a little bit there which put the clip exactly at
    the place I wanted. There are times in Flash where rounding errors
    or other issues can make for surprises. I think it is good practice
    to set the value to the exact required value.

  • Change file name with oreilly servlet

    I am using oreilly servlet package and I want to change the file name to the file I am uploading, is this possible ?
    How ?
    Thanks.
    here I post the servlet code:
    package com.reducativa.sitio.servlets;
    * DemoParserUploadServlet.java
    * Example servlet to handle file uploads using MultipartParser for
    * decoding the incoming multipart/form-data stream
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import com.oreilly.servlet.multipart.*;
    public class DemoParserUploadServlet extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    PrintWriter out = response.getWriter();
    response.setContentType("text/plain");
    out.println("Demo Parser Upload Servlet");
    File dir = new File("f:/");
    if (! dir.isDirectory()) {
    throw new ServletException("Supplied uploadDir " + "f:/ " +
    " is invalid");
    try {
    MultipartParser mp = new MultipartParser(request, 10*1024*1024); // 10MB
    Part part;
    while ((part = mp.readNextPart()) != null) {
    String name = part.getName();
    if (part.isParam()) {
    // it's a parameter part
    ParamPart paramPart = (ParamPart) part;
    String value = paramPart.getStringValue();
    out.println("param; name=" + name + ", value=" + value);
    else if (part.isFile()) {
    // it's a file part
    FilePart filePart = (FilePart) part;
    String fileName = filePart.getFileName();
    if (fileName != null) {
    // the part actually contained a file
    long size = filePart.writeTo(dir);
    out.println("file; name=" + name + "; filename=" + fileName +
    ", filePath=" + filePart.getFilePath() +
    ", content type=" + filePart.getContentType() +
    ", size=" + size);
    else {
    // the field did not contain a file
    out.println("file; name=" + name + "; EMPTY");
    out.flush();
    catch (IOException lEx) {
    this.getServletContext().log("error reading or saving file");
    }

    Hi there,
    I am facing the same problem that you have stated in your Feb 26, 2002 10:28 AM message regarding "change file name with oreilly servlet", I would like to change the file name to include a unique identifier upon upload, did you ever find a solution to your problem?
    Thanks!
    Todd
    [email protected]

  • Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    I guess I will wrap this up. I have abandoned iPhoto and viewing my Photo Streams using it and moved to Adobe products (Bridge + PS). So that's that.

  • Regarding passport registration issues, I need to have a letter from you including both the old and new imei numbers. Could you please send me an email mentioning that I have changed the phones with the given imei numbers?

    Regarding passport registration issues, I need to have a letter from you including both the old and new imei numbers. Could you please send me an email mentioning that I have changed the phones with the given imei numbers?

    You're not addressing Apple here. This is a user-to-user technical support forum. If you want to contact Apple, use the Contact Us link at the bottom right of every page for information on how to do so.
    Best of luck.

  • While trying to change a BOM with transaction CS02, a runtime error appears

    While trying to change a BOM with transaction CS02, a runtime error appears.
    In intial screen he entered material ,plant BOM usage and date valid from  after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
    Developer trace
    ABAP Program SAPLKED1_WRITE_CE4_BPS1                 .
    Source LKED1_WRITE_CE4_BPS1U01                  Line 30.
    Error Code SAPSQL_ARRAY_INSERT_DUPREC.
    Module  $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
    Function HandleRsqlErrors Line 775.
    RABAX: level LEV_RX_STDERR completed.
    RABAX: level LEV_RX_RFC_ERROR entered.
    RABAX: level LEV_RX_RFC_ERROR completed.
    RABAX: level LEV_RX_RFC_CLOSE entered.
    RABAX: level LEV_RX_RFC_CLOSE completed.
    RABAX: level LEV_RX_IMC_ERROR entered.
    RABAX: level LEV_RX_IMC_ERROR completed.
    RABAX: level LEV_RX_DATASET_CLOSE entered.
    RABAX: level LEV_RX_DATASET_CLOSE completed.
    RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    RABAX: level LEV_RX_RESET_SHMLOCKS completed.
    RABAX: level LEV_RX_ERROR_SAVE entered.
    RABAX: level LEV_RX_ERROR_SAVE completed.
    RABAX: level LEV_RX_ERROR_TPDA entered.
    RABAX: level LEV_RX_ERROR_TPDA completed.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    RABAX: level LEV_RX_END entered.
    RABAX: level LEV_RX_END completed.
    RABAX: end RX_RFC
    In sm21
    Perform rollback
    Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
         Short dump "090618 110101 donalda 11557 " generated
    Runtime Error          SAPSQL_ARRAY_INSERT_DUPREC
    Exception              CX_SY_OPEN_SQL_DB
           Occurred on     18.06.2009 at   11:01:01
    The ABAP/4 Open SQL array insert results in duplicate database records.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
    one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "RKE_WRITE_CE4__BPS1" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    How to correct the error
    The exception must either be prevented, caught within the procedure
    "RKE_WRITE_CE4__BPS1"
    "(FUNCTION)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    Use an ABAP/4 Open SQL array insert only if you are sure that none of
    the records passed already exists in the database.
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
    "SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
    "RKE_WRITE_CE4__BPS1"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.

    Hi ,
    you are getting beacuse u are trying to do mass update to database.
    Please check that below note are applicable to your system.
    Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
    Note 869534 - AFS MRP doesn't work properly with all BOM item categories
    Thanks Rishi Abrol

Maybe you are looking for

  • XML 3.10 - OB - Error While Sending Batch

    Olá pessoal boa tarde a todos, Estou com alguns problemas nos cenários de outbound do XML 3.10, sp16. Quando está no processo de envio do lote a SEFAZ, todos os lotes ficam travados com erro abaixo: Verificando a msg dentro do PI - está com rejeição

  • Newsstand app - how to make it?

    Hello, I have a big problem with our first app for newsstand in iTunes Connect. The app is a multi-issue app and the magazine should be published every three month for free. I hope somebody can give me a step-by-step introduction, because in the iTun

  • JDBC logging mechanism in oracle 8i

    I want to know if there is a means to generate the log files for JDBC driver transactions similar to sqlnet.log file which gets created when the OCI connection is used between the client and server. Where should this be done - on the client/server si

  • Material Determination use stock of discontinued material

    I am trying to determine if there is a way in R/3 to have a material replace an older material but as sales orders are entered take into consideration any inventory that might still remain of the discontinued material. Here is an example. 1.) We have

  • Mouse motion listener for JTable with JScrollpane

    Hi All, I have added mouse motion listener for JTable which is added in JScrollPane. But if i move the mouse, over the vertical/horizontal scroll bars, mouse motion listener doesn't works. So it it required to add mousemotionlistener for JTable, JScr