Can we assign "Arrays" as class properties??

Hi there!
Is that possible we assign an array as the class properties?
Code:
package
          import flash.net.URLLoader;
          import flash.net.URLRequest;
          import flash.events.Event;
          import flash.events.EventDispatcher;
          public class TextToArray
     public var urlLoader:URLLoader = new URLLoader();
     public var dataArray:Array = new Array();
     public var textURL:String = "";
     public var seperator:String = "";
     public function TextToArray(textURL:String,seperator:String)
        this.textURL = textURL;
        this.seperator = seperator;
        urlLoader.load(new URLRequest(textURL));//URL to the text file we need to import to Flash
        urlLoader.addEventListener(Event.COMPLETE, dataArrayLoaded);
     public function dataArrayLoaded(e:Event):void
       this.dataArray = e.target.data.split(seperator);//the seperator such as "\n"
       urlLoader.removeEventListener(Event.COMPLETE, dataArrayLoaded);
       trace(this.dataArray[2]);  // corret Data
     public function getArray():Array{
       trace(this.dataArray[2]);  // undefined
       trace(textURL); // correct Data
       return dataArray;
     public function getArrayLength():int{
        return dataArray.length;
What am I doing wrong?
Thanks for your time.

thanks a lot for your prompt reply! I have called it in another class (Main.as) like this:
package
          import TextToArray;
          import VerseID;
          import flash.display.MovieClip;
          public class Main extends MovieClip
      var textToArray:TextToArray = new TextToArray("data/connection.txt","\n");
      var quranData:Array = new Array();
                    public function Main()
      this.quranData = textToArray.getArray();
      trace(this.quranData[2]); // undefined

Similar Messages

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  •       Specifying class properties in MXML elements instead of attributes (e.g. DataGridColumns)

    Hi there,
    In all the examples I've seen so far, specifying the columns
    for a
    DataGrid is done as follows:
    <mx:DataGrid>
    <mx:columns>
    <mx:DataGridColumn />
    <mx:DataGridColumn />
    <mx:columns>
    </mx:DataGrid>
    However, I'm wonder whether there's a way to express the data
    grid
    columns simply as an _attribute_ value on the
    <mx:DataGrid> element?
    If not, does anybody know of an explanation of the syntax for
    setting
    class properties when they are not set as attributes?
    For example, since "columns" is a property of the DataGrid
    class, but
    it is set via an XML element, and not via an XML attribute, I
    would
    assume you can do something similar for other properties.
    However, I
    can't seem to find official documentation on this in the Flex
    3
    Language Reference.
    Joubert

    This works:
    <mx:Array id="theMXMLColumns">
    <mx:DataGridColumn headerText="Column 1" />
    <mx:DataGridColumn headerText="Column 2" />
    </mx:Array>
    <mx:DataGrid id="dg2" columns="{theMXMLColumns}" />
    However, the "columns" property of DataGrid must be an array,
    and arrays are not bindable, so ActionScript updates to the array
    would not be shown. e.g. This will not work:
    <mx:Script>
    <![CDATA[
    import mx.collections.*;
    import mx.controls.dataGridClasses.*;
    private var theASColumns:Array;
    private function doCreationComplete():void{
    var dgc:DataGridColumn;
    theASColumns = new Array();
    dgc = new DataGridColumn();
    dgc.headerText = "Column 1";
    theASColumns.push(dgc);
    dgc = new DataGridColumn();
    dgc.headerText = "Column 2";
    theASColumns.push(dgc);
    ]]>
    </mx:Script>
    <mx:DataGrid id="dg" columns="{theASColumns}" />

  • Exception occurred which is assigned to the class 'CX_SY_OPEN_SQL_DB',

    hi experts
    can u help me for this regording shortdump issue
    ". The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', wa
    neither caught nor passed along using a RAISING clause, in the procedure
    "UPLOAD_TABLES " "(Form)"
    .Since the caller of the procedure could not have expected this exceptio
    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.""

    Hi
    Refer this link
    http://www.sapnet.ru/abap_docu/ABENSTRINGS_IN_OPEN_SQL.htm
    Regards
    Shiva

  • Java - Instance variable that can reference an array of integers?

    Hello,
    I have the following question in my assignment:
    Your first task is to declare a private instance variable called cGroups that can
    reference an array of integers. You should then write a constructor for GameN. This should
    take a suitable array as its argument which should be used to initialise cGroups.
    In order to test your code for declaring and initialising cGroups, you should execute
    the following code
    int[] coin = {2, 8, 5};
    GameN aGame;
    aGame = new GameN(coins);
    and I have complete the code below but it's not working. maybe I'm reading it wrong or
    not understandin something. Could someone correct it? or put me on the right lines
    private int[] cGroups = new int[]
    public GameN(int group1, int group2, int group3)
    super();
    this.cGroups = {group1, group2, group3};
    }

    ShockUK wrote:
    I've changed it to
    private int[] coinGroups = new int[] {1};
    public Nim(int group1, int group2, int group3)
    super();
    int[] coinGroups = {group1, group2, group3};
    }But I still get the same error "Constructor error: Can't find constructor: Nim( [I ) in class: Nim"
    Look at the line that error is pointing at. You're trying to use a constructor that doesn't exist. This is not a problem with creating an array.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can we assign a different scope of planning in MTO scenario?

    Hi,
    We are using MTO scenario. In this case, during sales order creation checking control AE is getting triggered. We want to use a different scenario during rescheduling transaction. But as per my analysis, V_V2 is also calling the same AE checking control eventhough we assigned a different checking control for Back order processing.
    In this case, can we assign a different checking control (scope of check) for back order processing?
    Regards.

    Let me explain my requirement here....
    This is a kind of trading or sub-contracting. Initially we will give the forecast to vendor...but Vendor will start the finished product production only after getting the confirmed order from us. Hence we thought to use strategy 50. So we will create a PO to Vendor only after getting a confirmed sales order from customer.
    But in strategy 50 ATP confirmation is based on PIR. Hence we created a new requirement class (copy of 45 with ATP active). So in this new strategy ATP is against actual receipts instead of PIRs.
    But sometimes Vendor may not be able to supply as per lead-time...and he may postpone the delivery date. In this case we are getting exception message 10 for the PO...even though PO is specific to a sales order. Still rescheduling job (V_V2) is not populating the new confirmation date as it is referring to the TRLT.
    Hence we want to use ATP based on TRLT during sales order creation. And during rescheduling we want to use a different scope of check ('without TRLT' and with 'No storage location check'). Hence we created a new checking rule for rescheduling and this we assigned for that specific plant.
    As per my observation, rescheduling job is not picking the scope of check that is assigned for rescheduling....it is calling the same checking rule AE during rescheduling also.
    So my question here is... can we call a different scope of check during rescheduling run while using make to order strategy?
    Regards.

  • ERROR:can't find native registration class while J2EE Engine startup

    Hi
    Iam trying to integrate a Java Profiler application which contains a native library(namely ProfilerDLL.dll) with the J2EE Server.Here are the steps which i had followed
    1. Added the following Java option through the config tool of WebAS.<b> -XrunProfilerDLL</b>.
    2.Restarted the server.
    Server does not starup and throws a error with exit
    code -1 .
    Here is the log
    JStartupIReadSection: read node properties [ID7217950]
    -> node name       : server0
    -> node type       : server
    -> java path       : C:\j2sdk1.4.2_04
    -> java parameters : -Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy -Djava.library.path=/usr/sap/J2E/JC00/j2ee/os_libs -XX:NewSize=32m -XX:MaxNewSize=64m -XX:NewRatio=3 -XX:+DisableExplicitGC -XX:MaxPermSize=128m -XrunProfilerDLL:1 -Xbootclasspath/a:jakarta-regexp.jar;profiler_trace.jar;commons-lang.jar -D__PROFILER_PACKAGE_FILTER=__A__com.sap.engine.boot.Start;__M__sun.;__M__com.sun.;__M__java.;__M__javax.; -D__PROFILER_TIMING_METHOD=1 -Drdbms.driverLocation=C:/sapdb/programs/runtime/jar/sapdbc.jar -Dsys.global.dir=C:/usr/sap/J2E/SYS/global/
    -> java vm version : 1.4.2_04-b05
    -> java vm vendor  : Java HotSpot(TM) Server VM (Sun Microsystems Inc.)
    -> java vm type    : server
    -> java vm cpu     : x86
    -> heap size       : 256M
    -> init heap size  : 128M
    -> root path       : C:\usr\sap\J2E\JC00\j2ee\cluster\server0
    -> class path      : .\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.
    -> OS libs path    : C:\usr\sap\J2E\JC00\j2ee\os_libs
    -> main class      : com.sap.engine.boot.Start
    -> framework class : com.sap.bc.proj.jstartup.JStartupFramework
    -> registr. class  : com.sap.bc.proj.jstartup.JStartupNatives
    -> framework path  : C:\usr\sap\J2E\JC00\j2ee\os_libs\jstartup.jar
    -> shutdown class  : com.sap.engine.boot.Start
    -> parameters      :
    -> debuggable      : no
    -> debug mode      : no
    -> debug port      : 1024
    -> shutdown timeout: 120000
    [Thr 420] JLaunchISetDebugMode: set debug mode [no]
    [Thr 5780] JLaunchIStartFunc: Thread 5780 started as Java VM thread.
    JHVM_LoadJavaVM: VM Arguments of node [server0]
    -> stack   : 262144 Bytes
    -> arg[  0]: exit
    -> arg[  1]: abort
    -> arg[  2]: -Denv.class.path=;C:\D\vim\Intellisense\javaft.jar;C:\j2sdk1.4.2_04\lib\tools.jar
    -> arg[  3]: -Djava.security.policy=./java.policy
    -> arg[  4]: -Djava.security.egd=file:/dev/urandom
    -> arg[  5]: -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy
    -> arg[  6]: -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy
    -> arg[  7]: -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy
    -> arg[  8]: -Djava.library.path=/usr/sap/J2E/JC00/j2ee/os_libs
    -> arg[  9]: -XX:NewSize=32m
    -> arg[ 10]: -XX:MaxNewSize=64m
    -> arg[ 11]: -XX:NewRatio=3
    -> arg[ 12]: -XX:+DisableExplicitGC
    -> arg[ 13]: -XX:MaxPermSize=128m
    -> arg[ 14]: -XrunProfilerDLL:1
    -> arg[ 15]: -Xbootclasspath/a:jakarta-regexp.jar;profiler_trace.jar;commons-lang.jar
    -> arg[ 16]: -D__PROFILER_PACKAGE_FILTER=__A__com.sap.engine.boot.Start;__M__sun.;__M__com.sun.;__M__java.;__M__javax.;
    -> arg[ 17]: -D__PROFILER_TIMING_METHOD=1
    -> arg[ 18]: -Drdbms.driverLocation=C:/sapdb/programs/runtime/jar/sapdbc.jar
    -> arg[ 19]: -Dsys.global.dir=C:/usr/sap/J2E/SYS/global/
    -> arg[ 20]: -Dsys.global.dir=C:\usr\sap\J2E\SYS\global
    -> arg[ 21]: -Dapplication.home=C:\usr\sap\J2E\JC00\j2ee\os_libs
    -> arg[ 22]: -Djava.class.path=C:\usr\sap\J2E\JC00\j2ee\os_libs\jstartup.jar;.\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.
    -> arg[ 23]: -Djava.library.path=C:\j2sdk1.4.2_04\jre\bin\server;C:\j2sdk1.4.2_04\jre\bin;C:\j2sdk1.4.2_04\bin;C:\usr\sap\J2E\JC00\j2ee\os_libs;c:\sapdb\programs\bin;c:\sapdb\programs\pgm;C:\PROGRA1\SECUDE\SECUDE1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;c:\progra~1\ixos\bin;C:\j2sdk1.4.2_04\bin;C:\j2sdk1.4.2_04\jre\bin\server;C:\j2sdk1.4.2_04\lib\tools.jar;C:\Program Files\JProbe Profiler 5.2.1\bin;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\sherlok;C:\cygwin\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\JVMStatAnalysis\jvmstat\bat;;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    -> arg[ 24]: -Dmemory.manager=256M
    -> arg[ 25]: -Xmx256M
    -> arg[ 26]: -Xms128M
    -> arg[ 27]: -DLoadBalanceRestricted=no
    -> arg[ 28]: -Djstartup.mode=JCONTROL
    -> arg[ 29]: -Djstartup.ownProcessId=1740
    -> arg[ 30]: -Djstartup.ownHardwareId=I1361390454
    -> arg[ 31]: -Djstartup.whoami=server
    -> arg[ 32]: -Djstartup.debuggable=no
    -> arg[ 33]: -DSAPINFO=J2E_00_server
    -> arg[ 34]: -DSAPSTARTUP=1
    -> arg[ 35]: -DSAPSYSTEM=00
    -> arg[ 36]: -DSAPSYSTEMNAME=J2E
    -> arg[ 37]: -DSAPMYNAME=INLD50035793_J2E_00
    -> arg[ 38]: -DSAPDBHOST=
    -> arg[ 39]: -Dj2ee.dbhost=INLD50035793
    [Thr 5780] Wed Sep 22 15:30:06 2004
    [Thr 5780] JHVM_LoadJavaVM: Java VM created OK.
    <u>[Thr 5780] ***ERROR => can't find native registration class [com.sap.bc.proj.jstartup.JStartupNatives] [jhvmxx.c     417]
    [Thr 5780] JLaunchCloseProgram: good bye (exitcode=-1)</u>
    Any ideas how to fix this problem?
    Thanks
    S.Shylaja

    Btw: I get the warning starting IIS - It seems to me that IIS tries to load Tomcat on-the-fly. The Tomcat load the fails and IIS continues to load successfully.
    The beginning of the IIS Event log outputs this:
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (340)]: vm.detach() ok
    Apache Jakarta Connector2, Warning, Error: [jk_worker_jni.c (308)]: Can't find class org/apache/jk/apr/AprImpl
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (297)]: Loaded org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, None, Debug: [jk_vm_default.c (302)]: vm.attach() allready attached
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (252)]: jni.validate() class= org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (607)]: vm.open2() done
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (500)]: vm.init(): Jni lib: C:\wwwapps\j2sdk1.4.2_01\jre\bin\client\jvm.dll
    /watson

  • How to insert values into an array of class

    Hello everyone,
    I need help in inserting values into an array of class, which i have read from a file.
    Length of the array is 5. I should insert values one by one into that array.
    If the array is full (if count = 5), then I should split the array into 2 arrays
    and adjust the values to left and right with median.
    I'm getting an ArrayBoundException .. can anybody help me out ?
    Thanks in advance
    Here is my code..........
    import java.util.*;
    import java.io.*;
    public class Tree
         static String second;
         static String first;
         static int count = 5;
         public void insert(int f1,int s1, int c)
              if(c!=0)
                   Record[] rec = new Record[4];
                   for (int i = 0; i < 5; i++)
                          rec[i] = new Record(); 
                   for(int i = 0; i<=4;i++)
                        rec.x = f1;
                        rec[i].y = s1;
              else
                   System.out.println("yes");
         public static void main(String[] args)
              Tree t = new Tree();
              try
                   FileReader fr = new FileReader("output.txt");           // open file
                   BufferedReader br = new BufferedReader(fr);
                   String s;
                   while((s = br.readLine()) != null)
                        StringTokenizer st = new StringTokenizer(s);
                        while(st.hasMoreTokens())
                             first = st.nextToken();
                             second = st.nextToken();
                        //     System.out.println("First-->"+first+" "+"Second-->"+second);
                        int fir = Integer.parseInt(first);
                        int sec = Integer.parseInt(second);
                        t.insert(fir, sec, count);                    
                   fr.close(); // close file           
              catch (IOException e)
    System.out.println("Can't read file");
    class Record
         public int x,y;

    Hi qwedwe.
    Record[] rec = new Record[4];
                   for (int i = 0; i < 5; i++)
                          rec[i] = new Record(); 
                     }Here is your error: you have an array of 4 Records, but you create and (try to) insert 5 Record-instances.... try:
    Record[] rec = new Record[c];
                   for (int i = 0; i < c; i++)
                          rec[i] = new Record(); 
                     }Regards,
    Norman

  • Error *Chart of dep-dependent assignment to asset class 100306 not possible

    Dear All
    I got error Chart of dep - dependent assignment to asset class 100306 not possible
    Diagnosis
        You tried to assign chart-of-depreciation-dependent data to asset class
        100306.
    System Response
        The assignment is not allowed.
    Procedure
        In order to be able to assign chart-of-depreciation-dependent data to
        asset class 100306, the following conditions have to be met. You have to
        have already
        1.  Defined at least two active charts of depreciation
        2.  Assigned asset class 100306 to more than one chart of depreciation
        However, at the moment this asset class is only assigned to chart of
        depreciation 1.
    I already checked following this but I didn't found the mistake (already assign COD to company code).
    Please anyone help me to solved this.
    Thanks in advance.
    Best Regards,
    Utarat.P

    Hi Utarat,
    whenever you create an asset the system checks first the table ANKP.  If you have chart-of-depreciation-dependend account determination, than  an entry in the table ANKP is made. If you than make a copy from such  a asset class in the asset class there is another account  determination than in the table ANKP and the system takes the account determination from the table ANKP and not from the asset class.                                                                               
    Normally you can't define chart-of-depreciation-dependent assignments  (with transaction ANK1) if there is only one chart of depreciation. As a result you'll get error AC012. So, I think there was a  second chart which was deleted.                                                                               
    If you'd like to change (or delete) this assignments you can use            
    the following workaround:                                                   
        SM34 -> View ANKA_ALL -> Maintain                                       
           - select asset class ART (for example)                               
           - then click in the left column on "Chart of dep - dep data"      
    Regards Bernhard

  • Can i assign a child state to a movie clip that is already placed on stage

    Hello
    Is it possible to add a child state to a movie clip that is
    already placed on stage,
    i need to do this so i can move the movieclip to the top of
    the display list.
    thanks for the help
    mt

    "The objects i want it to appear above are loaded swf's onto
    the same main stage."
    Aha, this is where things can get confusing. The terminology
    between the Flash Authoring tool and ActionScript is not
    consistent.
    In ActionScript, the Stage is the top most DisplayObject. You
    probably get that.
    In Flash, the canvas that is often referred to as "the stage"
    is not the Stage object of ActionScript, rather the Flash stage is
    a DisplayObject class called MainTimeline (or if you assign a
    document class, it's that class), which is the first and only child
    of the ActionScript Stage object. It's the only child unless, of
    course, you add something else to the ActionScript Stage object at
    runtime... like a loaded swf. ;)
    So in other words, if you are doing anything like this:
    stage.addChild(myLoadedSWF)
    You are actually putting myLoadedSWF above the MainTimeline
    object, which is the entire Flash timeline. There's nothing wrong
    with that, but in this case it means changing the depth of things
    inside the MainTimeline is not going to change the fact that the
    MainTimeline itself is below myLoadedSWF.
    Most likely the simplest solution is to add your loaded SWFs
    to the property "root", not stage. root can refer to different
    things in different places, but most of the time it refers to the
    MainTimeline, and if I had to guess I would say it almost certainly
    does in your case. Note that the "root" property is typed as a
    DisplayObject, not a DisplayObjectContainer, so addChild (which is
    a DisplayObjectContainer method) will not be recognized unless you
    typecast to DisplayObjectContainer or a subclass of
    DisplayObjectContainer, like Sprite or MovieClip:
    MovieClip(root).addChild(myLoadedSWF)
    Also note that, unlike AS2, in AS3 it's very easy to simply
    add your loaded SWF below existing objects you create in Flash. You
    can use addChildAt(obj,0) for instance to add it to the very
    bottom.

  • Assigning the base class

    I have a bunch of DefaultMutableTreeNodes already created and I
    want to convert them all to myTreeNode objects which extends
    DefaultMutableTreeNode. Is there an easy way for assigning the super class of myClass which is DefaultMutableTreeNode.
    I know this doesn't work but what I want to do is something like
    setting the super class= passed in DMTN.
    I know I could create the original node1,node2 as myTreeNodes instead but these nodes are created in a bunch of different places and I would prefer not having to modify that code.
    node1 = new DefaultMutableTreeNode();
    node2 = new DefaultMutableTreeNode();
    new myTreeNode(node1);
    class myTreeNode extends DefaultMutableTreeNode{
    boolean isSelected;
    public myTreeNode(DefaultMutable TreeNode node){
    super = node.clone(); }
    }

    So you're saying you have this code:
    node1 = new DefaultMutableTreeNode();but you want to arrange things so that when it runs, it actually creates an object of some subclass of DMTN?
    No can do. While you're changing all the instances of that code, think about refactoring your application so that you don't have so many instances of it.

  • Mm:can we assign movement type to different g/l acc.

    dear gurus.
    please help me out.
    can we assign movement type to different g/l acc.
    if yes how?
    thanks
    piyush singh

    Its depends , if the valuation class, plant is different, yes you can define diff G/L acc, but if all criteria in the same, then you can copy the mov,type and then define your own account modification then assign the diff G/L acc in OBYC.
    Please also check this link:
    Movement Type 261 - Different G/L account to get debited for same Movement

  • Can I assign a task based on information from another column?

    For example:
    Let's say I have a column called "Question Type" and this column has multiple checkbox choice, those being:
         Math
         Science
         History
         English
         Other
    I want to allow users to be able to select multpile catagories for the question, like making one both math and science (which right now is completely possible)
    I then want another column that says who the problem is assigned to. Bob is good at math, Joe at science, Jill at histroy, Jenn at English, and Billy handles everything else.
    1) Is there a way that the task can be automatically assigned to my math expert Bob when I specify that the item I am adding is a math problem?
    2) If I make a problem both math and science, can the task be assigned to both Bob and Joe?
    Thanks in advance!

    Hi,
    According to your post, my understanding is that you wanted to assign a task based on information from another column.
    To assign task to multiple users, you need to:
    Create a workflow and add action: Start Approval Process.
    Click these user, select the Group, change One or a time(serial) to
    All at onec(paralle).
    Right click the action, select Properties, click ExpandGroups, change No to
    Yes.
    Then you can assign task to each member of the group.
    I recommend to follow the steps as below to achieve what you want:
    Create a custom list, add columns: Question Type(Choice); Assigned to(Person or Group).
    Create a workflow associated the list.
    Add conditions and action as below:
    Then the task can be automatically assigned to 123 when the item is a math problem.
    In addition, if you make a problem both math and science, the task can be assigned to both 456 and 789.
    You can add other conditions to satisfy all the requirements.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Can i use array.count in line?

    All,
    I have one small oracle program that take a ',' separated string as an input
    and assigns the individual string to a nested table.
    I am wondering if I can directly use array.count in my sql below
    instead of assigning the count of the array 1st and then
    using it.
    l_cause_codes_array := util_pkg.tokenize_string(p_cause_codes_csv, ',');
    l_count := l_cause_codes_array.count;
    My current sql:
    delete from po_complaint_cause p
    where p.po_number = p_po_number
    and p.comp_code = p_comp_code
    and l_count > 1;
    I would like to do something like:
    delete from po_complaint_cause p
    where p.po_number = p_po_number
    and p.comp_code = p_comp_code
    and l_l_cause_codes_array.count> 1;
    I just want to reduce one context switch if possible.
    Thanks.

    Hi,
    did it give an error? Did you try? But it is possible.
    But why not the next code:
      l_cause_codes_array := util_pkg.tokenize_string(p_cause_codes_csv, ',');
      if l_cause_codes_array.count >1
      then
        delete from po_complaint_cause p
        where p.po_number = p_po_number
        and p.comp_code = p_comp_code
      end if;Do only the delete if it is bigger than 1, that is I think the fastest switch.
    Herald ten Dam
    http://htendam.wordpress.com

  • Please tell me how can  declare an array of object.

    how to create a two dimentional array object of a class.
    let,
    class abc{
    abc(){
    is it posible--
    abc ss=new abc[10][10]
    please tell me how can declare an array object.

    then always use String and don't consider
    StringBuffer at the outset. 'best practices' need not
    be seen as premature optimization. besides, if it is
    abstracted, does not matter how it is stored
    internallyNot sure I would agree with this example - a String is immutable, if I want to change the object then using a StringBuffer makes sense (conveys the intend, yada, yada, yada).
    Although, I do agree with you that some optimizations are best practices and should be used. I also come from the old days when optimization was always on our mind. Also, I would not expect someone to do something like re-calculate a value every time it is needed instead of storing the value in a variable, just to avoid optimization.
    I just think that the example of using a 1-dimensional array when a 2-dimentional array is a better representaion of the "real world" will both obscure the intention and compicate the code.

Maybe you are looking for

  • How do I add my phone number to my iPad 2 so that I can use iMessage?

    I have an iPad 2 and I want to receive my iPhone messages on it like I do on my computer.  Is there somewhere that I can add my number so that I can receive them?  It is running on iOS 5.1.1 and I've tried updating it but it says that there are no ne

  • Reason behind the usage of Infosources in BI 7.0 versus BW3.5

    Hi Expert, As a general understanding, Infosources are very well required in BW 3.5 wherein we have to assign datasources. But in BI 7.0, transformation & DTP concepts have replaced the above old concept. But in my current project, we are using Infos

  • How to get default values while using the transaction "BP"

    Hi Group, I have a query on how to get default values while using the transaction <b>BP</b>? The thing is: when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen. how can I achieve this? So

  • ATV doesn't show up in iTunes...and I have a PC

    I am reposting a common question, only b/c the other posts seem to deal with ATV to Mac issues. I have had ATV for about 1 yr and I have been able to use it fine. Until recently! I have a Hewlett Packard PC with a Linksys wireless router. I have a WP

  • Looking for a soundmax that supports my computer hardware...

    Like the title says, I turned on my computer this morning and a message popped out that my Soundmax didn't load properly and needed to reinstall it. So I go to unistall a program in control panel and in my lack of knowledge in computers made me unins