Using classes inside of classes

I have created a custom sound class called MySoundClass that
extends the Sound class... it is declared as class
com.stickyMatters.WineGlassPiano.MySoundClass. I also have another
class called SongPlayer that is declared as
com.stickyMatters.WineGlassPaino.SongPlayer... my question is.. how
do i use the MySoundClass inside of the SongPlayer class... when I
try to import it says I cannot use the import statement inside of a
class file. I know in AS3 you can use the package keyword to create
packages and do that... but as far as I can see there is no package
keyword in AS2... because I tried, and it just tells me htere is a
syntax error on the line with the package declaration... can you
use one custom class inside another? and if so... how?
P.S. just to be sure... i am using flash CS3 and writing AS2
files. Thanks!

ack!!! thank you...I actually tried that and it didn't
work... but when I went back after you said it and tried it again,
it did work... so I guess I just had a misspelling or something
before. ugh! Thanks for the reply!

Similar Messages

  • How to access var in outter class inside inner class

    I've problem with this, how to access var number1 and number2 at outter class inside inner class? what statement do i have to use to access it ? i tried with " int number1 = Kalkulator1.this.number1; " but there no value at class option var y when the program was running...
    import java.io.*;
    public class Kalkulator1{
    int number1,number2,x;
    /* The short way to create instance object for input console*/
    private static BufferedReader stdin =
    new BufferedReader( new InputStreamReader( System.in ) );
    public static void main(String[] args)throws IOException {
    System.out.println("---------------------------------------");
    System.out.println("Kalkulator Sayur by Cumi ");
    System.out.println("---------------------------------------");
    System.out.println("Tentukan jenis operasi bilangan [0-4] ");
    System.out.println(" 1. Penjumlahan ");
    System.out.println(" 2. Pengurangan ");
    System.out.println(" 3. Perkalian ");
    System.out.println(" 4. Pembagian ");
    System.out.println("---------------------------------------");
    System.out.print(" Masukan jenis operasi : ");
    String ops = stdin.readLine();
         int numberops = Integer.parseInt( ops );
    System.out.print("Masukan Bilangan ke-1 : ");
    String input1 = stdin.readLine();
    int number1 = Integer.parseInt( input1 );
    System.out.print("Masukan Bilangan ke-2 : ");
    String input2 = stdin.readLine();
    int number2 = Integer.parseInt( input2 );     
         Kalkulator1 op = new Kalkulator1();
    Kalkulator1.option b = op.new option();
         b.pilihan(numberops);
    System.out.println("Bilangan yang dimasukkan adalah = " + number1 +" dan "+ number2 );
    class option{
    int x,y;
         int number1 = Kalkulator1.this.number1;
         int number2 = Kalkulator1.this.number2;
    void pilihan(int x) {
    if (x == 1)
    {System.out.println("Operasi yang digunakan adalah Penjumlahan");
            int y = (number1+number2);
            System.out.println("Hasil dari operasi adalah = " + y);}
    else
    {if (x == 2) {System.out.println("Operasi yang digunakan adalah Pengurangan");
             int y = (number1-number2);
             System.out.println("Hasil dari operasi adalah = " + y);}
    else
    {if (x == 3) {System.out.println("Operasi yang digunakan adalah Perkalian");
             int y = (number1*number2);
             System.out.println("Hasil dari operasi adalah = " + y);}
    else
    {if (x == 4) {System.out.println("Operasi yang digunakan adalah Pembagian ");
             int y = (number1/number2);
             System.out.println("Hasil dari operasi adalah =" + y);}
    else {System.out.println( "Operasi yang digunakan adalah Pembagian ");
    }

    Delete the variables number1 and number2 from your inner class. Your inner class can access the variables in the outer class directly. Unless you need the inner and outer class variables to hold different values then you can give them different names.
    In future place code tags around your code to make it retain formatting. Highlight code and click code button.

  • OnEnterFrame inside a class

    I don't have a problem as much as just a lack of
    understanding:
    Question: Will I run into any problems using onEnterFrame
    inside a class? I know that onEnterFrame events can overwrite each
    other if they are written dynamically, but I'm not sure how this
    effects classes...
    Also, onEnterFrame is an event of the movie clip class right?
    ...does that even matter...? What happens if I declare an
    onEnterFrame event inside a method inside my class: will it even
    work? will it effect the movie clip from which the class.method is
    being called?
    Sigh... Hopefully you get the idea of what I'm having trouble
    grasping. Please explain any concepts you think I appear to be
    missing. I'm new to classes - thanks for your help.

    >>Question: Will I run into any problems using
    onEnterFrame inside a class?
    No.
    >>Also, onEnterFrame is an event of the movie clip
    class right? ...does that even matter...?
    No. Here is a brief explanation how it works.
    First of all, a class is a custom object. Don't think of a
    class as a bunch of code, it's a custom object with its own
    properties and methods. So when you say: "What happens if I declare
    an onEnterFrame event inside a method inside my class: will it even
    work?" you are thinking: "there is no timeline". Yes, there is.
    When you declare:
    private var my_mc:MovieClip;
    you are saving the functionality of the MovieClip Class in
    my_mc. Therefore, my_mc will have a timeline and all other
    properties and methods of the MovieClip Class. (By comparison:
    usually you don't need all the functionality of the MovieClip
    Class, so AS3 offers us the Sprite Class which is a basic
    implementation of a movieclip and that saves overhead).
    In a method you can use:
    private function mover(target:MovieClip):Void{
    target.onEnterFrame=function():Void{
    this._x+=2;
    passing the my_mc to function mover as a parameter. If at
    some time you want to stop the onEnterFrame you delete it just as
    you would using it in code on the timeline.
    Again. The most important thing to understand is that a class
    is not a bunch of code, it's a (custom) object with its own
    properties and methods.

  • To get all the objects that are used inside the class

    Hi All,
    All i wanna know is to get all the objects that are used inside the class.
    Ex :
    Class A{
    Emp e;
    public add(Dept d){
    e.deptid = d.deptId;
    in this class i have two objects, one Emp obj and another Dept object.
    I wanna get the details abt this class Emp and Dept by simply parsing the file and by not loading this class in JVM.
    Could any pls hel me out.??
    thx.

    I wanna get the details abt this class Emp and Dept
    by simply parsing the file and by not loading this
    class in JVM.Your problem statement is vague and the constraint is IMO hypothetical.

  • Reg : BDC issue while updating infotype 40 inside BADI class method

    Hi Friends,
         Actually in my badi class, there is a method where i need to save the infotype fields including comment fields.. So with BDC recording i recorded screen fields and passing the pernr internal table values to recorded pernr values.. by doing this im getting error and so BDC is not upadting the data.. moreover if i pass directly pernr number within single quotes, BDC is working fine and data is getting updated..
    bdc_field        'RP50G-PERNR'   pernr.  --> Error Message while calling transaction through BDC
    bdc_field        'RP50G-PERNR'   '00001234'  ---> updating successfully..
    1. Tell me whether the issue is with BADI or wat ? means we cant able to use BDC inside badi ?
    2. I also tried changing my internal table value of pernr to type 'C' of length 8.. eventhough its showing error..
    Please tell me what i need to do .... ?

    Hi  Dilek Ersoz Adak ,
      I also tried with that, but getting same error..  Below is my error im getting while updating BDC through call transaction,
    1     PA30     SAPMP50A     1000     E     K     PBAS_SERVICE     001     HRADMIN     EPPRELE 00000121     HRAdministrator          CTU     RP50G-PERNR
              Person is treated already by the HR Administrator

  • How do i create a single instance of a class inside a servlet ?

    how do i create a single instance of a class inside a servlet ?
    public void doGet(HttpServletRequest request,HttpServletResponseresponse) throws ServletException, IOException {
    // call a class here. this class should create only single instance, //though we know servlet are multithreaded. if, at any time 10 user comes //and access this servlet still there would one and only one instance of //that class.
    How do i make my class ? class is supposed to write some info to text file.

    i have a class MyClass. this class creates a thread.
    i just want to run MyClass only once in my servlet. i am afriad, if there are 10 users access this servlet ,then 10 Myclass instance wouldbe created. i just want to avoid this. i want to make only one instance of this class.
    How do i do ?
    they have this code in the link you provided.
    public class SingletonObject
      private SingletonObject()
        // no code req'd
      public static SingletonObject getSingletonObject()
        if (ref == null)
            // it's ok, we can call this constructor
            ref = new SingletonObject();          
        return ref;
      public Object clone()
         throws CloneNotSupportedException
        throw new CloneNotSupportedException();
        // that'll teach 'em
      private static SingletonObject ref;
    }i see, they are using clone !, i dont need this. do i ? shouldi delete that method ?
    where do i put my thread's run method in this snippet ?

  • Foreground color change from inside a class

    Hey,
    For a project I'm working on, I wrote a class that extends awt.Label. In this new class, I had to override the paramString() method to return what I wanted it to. This all works great. What I was wondering, is whether or not it was possible to change the foreGround color of the label from inside the class decleration. I was thinking maybe whenever the paramString() method was called. Any help would be appreciated.
    Thanks,
    Jarrod

    Gday,
    I you use the mothed setForeground(Color c) it should set the foreground colour (color for you Americans) to what you would like.
    see for more info
    http://java.sun.com/j2se/1.3/docs/api/java/awt/Component.html#setForeground(java.awt.Color)
    or
    http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html#setForeground(java.awt.Color)
    if you have jdk1.4
    You dont need to make this method in your class just call it when you want. ie
    setForground(Color.RED);
    or
    Color c = new Color(255, 0, 0);
    setForeground(c);
    Good luck,
    Jack 573

  • How to call a function inside a class? 

    Hello, i am trying to fire a function onPress .. this
    function is inside a class.
    In this function i refer to another function inside the calss
    to call a Tween. It never arrives in the second function.
    I tried to make an example.
    In the fla file i have:
    var test:makeMovie = new makeMovie(this);
    You will see a red squere and you can press on it. It should
    run the tween class. Am i using the delegate class wrong?

    I always have to use test movie and trace a couple of times
    each time I start to use Delegate.
    It wraps function.apply I think, which I tend to use more
    often.
    try using:
    Container.onPress = Delegate.create(this,setAlpha);
    and then just
    setTween()
    inside your setAlpha....
    That's conceptually how I think I would try it above if I was
    doing something similar.
    I'm not sure it would have the desired effect even if the
    delegate was executed as you have it coded. Unless you want
    setTween's execution scope to be the Container clip in which case
    you might need to do what kglad said and change the Container
    reference to 'this'.
    The way you have it at the moment inside setAlpha the
    Delegate.create is simply creating a function...and not excuting
    it.
    its like : function something(){trace('what')}
    and not like : something();
    Below is some quick code that helps show how things work.
    Notice that I assigned the delegate function to mainFunc....so that
    along with the last example might provide a clue. Just paste it on
    a frame and take a look at what's happening.

  • "this." inside as2 classes

    Can any one say, if i should use "this." inside my classes to
    refer class
    variables and methods? What is its advantage and
    disadvantage? Does this
    help compiler/flash player in any way.
    please provide some useful links which explain more.
    Cheers,
    Sajeev

    when it's appropriate you can use "this". so, if you've just
    created a movieclip and you're defining a mouse handler for it,
    it's appropriate to use this within the handler's scope.
    but to refer to a class member, i use a private variable in
    the constructor function to use throughout the class so i don't
    have scope issues outside the constructor function.

  • Shouldn't all methods pertaining to an object be defined inside that class?

    I am trying to understand if I am missing something basic java-wise (I come from other oop environments) or am I facing an ide-style/problem, or maybe I HAVE NO problem.
    The way I always had it, was to place all code (functions/procedures/properties) INSIDE the class that it was meant for. But jDev does not do this, and again maybe its Java I'm up against, but then maybe not. Here is a clear example of what I mean. (All SWING.)
    On a new jFrame, define a container, and inside the container a jComboBox and a jtextfield. The objective is to ADD ITEMS to the combobox, then upon a trigger event, specifically item_changed (when the user chooses an option from the item list), display a message to the jTextfield. (This differs from the tutorial sample requiring a button.) The purpose of jPanel is to tie the combobox and textfield via delegation. Ultimately we want an extended jPanel that I can (drag and drop) import into any project and drop it onto any jframe.
    We have two distinct custom-operations/extensions, 1) is to add_items, and 2) is to talk to another object to display text. First the add_items; ideally I should be able to (if I want to) add_items inside an extended jCombobox and reuse it. Why put the add_items on the jFrame??? jFrame has NOTHING to do here with my little extended-jPanel. I SHOULD be able to choose if to put it into the extended jPanel, as well. (Since this jPanel is built with the purpose of serving a micro-framework for the two objects it contains.)
    Similarly with 2, display the text message. I should be able to define the trigger event message to send upon item_change inside the jComboBox class. jPanel would then receive the message via delegation and take care of sending the message to jTextfield, also preferably to an extended jTextfield. But AT THE LEAST, all methods/properties should be within the extended jPanel. (Again, which I want to simply import and reuse.) Why does the ide put this code at the jFrame level? (By the way, if I copy/paste this jPanel, the ide does NOT add the appropriate imports (for the events) to the target jFrame, and neither does it copy the methods that are triggered. This seems like a bug, but I couldn't care less if I can accomplish what I described here.)
    Having said all this I am ready (and hoping) for an answer that I am missing something basic in Java.
    Thank you all
    -Nat

    In fact, you don't even need the jbInit() method if you're just using the component as a bean in other components.Cool.
    For the component to display properly in the UI editor, it should be a descendent of Component.ok. Does this mean that you can have a component (if not extending jComponent) that does not display properly in the ui editor, and still be properly maintained by the ide? That would be very nice, as long as the ui editor displays a mnemonic/icon instead of that component. I don't [always] NEED the
    cutsy picture displayed, but I DO need to know that a component so-and-so is located 'here'.
    AS a matter of a fact, I would love to have a pseudo-ui mode in jDev where you can build/maintain a frame with panels and icons representing components, where you can visualize the hierarchy, change the layout via drag-drop of the icons, and drill down. I have a gut feeling that people would use this mode more than the full ui mode we have now. Also, performance wise, jDev would be happier. This view allows one to get a clear wide-angle 'picture' of the layout (and delegation paths) of the classes. Coupled with 'drill down' to allow inserting/maintaining components within others, you have a winner!
    Wadda you think? Am I nuts or something?
    Come to think of it, it should not be tough for the jDev team to do this, since jDev is already doing something much more complex in the ui_editor. Instead of drawing pictures, when a bean is dropped, simply leave the icon as-is. 9.0.3??<g>
    WE developers know that sometimes you can add tremendous functionality (especially from a marketing point of view) to a system, with minimal amount of work.
    Sheesh, I forgot what put soapbox mode 'on'. I still would like to know how jDev would currently treat a bean that is not a sub-classed jComponent.
    Thanks
    -Nat

  • Calling a private function when inside another class?

    Can't help it but im curious how classes seem to be able to
    call private functions inside other classes. I'm mainly thinking
    about the addEventListener() here. When adding a listening function
    to a class, that function can be private, and yet it seems to be
    called magically somehow. Or maybe its all internal? I dunno.
    Anyone? :D

    Hi Kenchu1,
    You can grab a copy of the open source API here:
    http://www.baynewmedia.com/download/BNMAPI10.zip
    (feel free to drop by
    the main site for documentation as well :) ). The main class
    is the
    Events class, "broadcast" method. This method broadcasts
    events in a
    decoupled fashion, meaning that listeners can listen to
    messages that
    aren't bound to a specific sender. The AS3 version works in
    much the
    same way except that I still haven't fully fleshed out the
    cross-SWF
    communication that this version can do (broadcast across all
    movies on
    the same computer using LocalConnection).
    Basically, the broadcaster works like this:
    1. Add event listener and bind to function A (called from
    within the
    class so the reference is available)
    2. Event listener pushes this into the listener array. It was
    provided
    by the class so the reference is valid and is now a part of
    the events
    class as well.
    3. Broadcast runs through all associated events when it comes
    time to
    broadcast and calls the function by using the array
    reference:
    this.listeners[message].call(classInstance,someParameter);
    In other words, the class that adds the listener "allows"
    the event
    broadcaster to use the reference because it passes it out.
    You can do
    the same thing by calling:
    someOtherclass.functionRef=this.privateFunction
    someOtherClass is the class that will store the private
    reference,
    functionRef is some variable to hold the reference, and
    privateFunction
    is the private function. Then, in someOtherClass, you can
    call:
    this.fuctionRef(someParameter);
    Hope this helps.
    Patrick
    Kenchu1 wrote:
    > Patrick B,
    > exactly! Something like that is what im looking for. I
    have my own rather
    > simple system right now with listeners and classes
    calling these, but since i
    > dont know how to call a private function, i had to make
    all the listening
    > classes functions public - something id rather avoid.
    Exactly how did your
    > event broadcasting system work? Oh, and we're talking
    AS3 btw.
    >
    > How do i call a function via a reference? (to the
    function? To what?)
    >
    http://www.baynewmedia.com
    Faster, easier, better...ActionScript development taken to
    new heights.
    Download the BNMAPI today. You'll wonder how you ever did
    without it!
    Available for ActionScript 2.0/3.0.

  • Servicegen for sub-class inside vector variable of Super

    java.lang.NoSuchMethodError
    at com.netsboss.WSBE.model.QueryItemCodec.typedInvokeGetter(QueryItemCod
    ec.java:87)
    at com.netsboss.WSBE.model.QueryItemCodec.invokeGetter(QueryItemCodec.ja
    va:56)
    at weblogic.xml.schema.binding.BeanCodecBase.gatherContents(BeanCodecBas
    e.java:295)
    at weblogic.xml.schema.binding.CodecBase.serializeFill(CodecBase.java:25
    3)
    at weblogic.xml.schema.binding.CodecBase.serialize(CodecBase.java:195)
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
    ls.java:184)loop
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
    ls.java:170)
    QueryItem {
    private Vector airItiners;
    public Vector getAirItiners() {
    return airItiners;
    public class AirItinerary implements Serializable{}
    QueryItem is my return class. The return result will include sub class AirItinerary
    in QueryItem's Vector. I notice servicegen will only generate stub and web.xml
    for QueryItem.
    I get above error, when the result return to client. How to generate necessary
    sub-class inside a vector variable of Super class?
    Stephen

    Hi Stephen,
    write my own ser/deser? Any other quick way?Our excellent support group ([email protected]) may be able to help with
    an alternative solution. If you could create a small reproducer, then
    this will help them with a clear picture of your goal.
    One more problem, wls deloy my WSBE.ear as a war correctly. But error show noDouble check the console log for any messages. Also try:
    http://[host]:[port]/[contextURI]/[serviceURI]
    See: http://edocs.bea.com/wls/docs70/webserv/client.html#1051033 and
    also check the console to verify the app is or is not deployed. See:
    http://edocs.bea.com/wls/docs70/programming/deploying.html
    HTHs,
    Bruce
    Stephen Zeng wrote:
    >
    Hi Bruce:
    Our company use wsl7.0. We are not able to update to wls8 in this project. Do
    I have to
    write my own ser/deser? Any other quick way?
    sub class variable:
    public class AirItinerary implements Serializable{
    private String air;
    private Vector flightItem; //sub class of AirItineray
    One more problem, wls deloy my WSBE.ear as a war correctly. But error show no
    deloyment found. web-services.xml has been generated by servicegen under web-inf
    path. Thanks Bruce.
    Stephen
    Bruce Stephens <[email protected]> wrote:
    Hi Stephen,
    The java.util.vector should be converted to a SOAP Array, see:
    http://edocs.bea.com/wls/docs81/webserv/assemble.html#1060696 however
    the issue of the sub-class is most likely the problem. Can you simplify
    the data types? You may just have to write your own ser/deser, see:
    http://edocs.bea.com/wls/docs81/webserv/customdata.html#1060764
    This is with WLS 8.1, right?
    Thanks,
    Bruce
    Stephen Zeng wrote:
    java.lang.NoSuchMethodError
    at com.netsboss.WSBE.model.QueryItemCodec.typedInvokeGetter(QueryItemCod
    ec.java:87)
    at com.netsboss.WSBE.model.QueryItemCodec.invokeGetter(QueryItemCodec.ja
    va:56)
    at weblogic.xml.schema.binding.BeanCodecBase.gatherContents(BeanCodecBas
    e.java:295)
    at weblogic.xml.schema.binding.CodecBase.serializeFill(CodecBase.java:25
    3)
    at weblogic.xml.schema.binding.CodecBase.serialize(CodecBase.java:195)
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
    ls.java:184)loop
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
    ls.java:170)
    QueryItem {
    private Vector airItiners;
    public Vector getAirItiners() {
    return airItiners;
    public class AirItinerary implements Serializable{}
    QueryItem is my return class. The return result will include sub classAirItinerary
    in QueryItem's Vector. I notice servicegen will only generate stuband web.xml
    for QueryItem.
    I get above error, when the result return to client. How to generatenecessary
    sub-class inside a vector variable of Super class?
    Stephen

  • Extend a Java Class Inside a JSP Page?

    Hello all. I'm not sure if I am thinking about this right. But what I have is a BaseClass that all of my other classes Extend. I'm inside a JSP page and want to use all of the functionality of that BaseClass. Is there anyway I can EXTEND A CLASS INSIDE A JSP PAGE or am I smoking crack?

    Its an attribute of the page directive
    "extends="package.class"
    The fully qualified name of the superclass of the Java class this JSP page will be compiled to. Use this attribute cautiously, as it can limit the JSP container's ability to provide a specialized superclass that improves the quality of the compiled class. "
    http://java.sun.com/products/jsp/tags/12/syntaxref1210.html#15653

  • Native methods inside C++ class

    Hey all,
    Tried posting this already but it didn't appear in the forums. So apologies if this appears twice on same forum :o)
    Want to wrap my native methods inside a C++ class but get UnsatisfiedLinkerError when I do. Is it possible to do this? Do I have to change some method signatures or what?
    I want something like :
    public class A
    native void doSomething();
    class B
    public:
    JNIEXPORT void JNI Java_A_doSomething() { ... } /* or whatever */
    It works ok outside of a C++ class but I'd prefer to contain my methods inside a class. Any help?
    Cheers,
    Conor

    Java needs to find your functions in the DLL or SO. But the names are "mangled" if you declare the function inside a class - even declaring the function "static" does not help. For instance, using the Microsoft C++ compiler:
    class B
    public:
    static JNIEXPORT void JNI Java_A_doSomething() { ... }
    };the name is mangled to ?Java_A_doSomething@B@@SAXXZ
    But Java tries to locate the entry _Java_A_doSomething@0 in the DLL.
    You can write the global functions as:
    JNIEXPORT void JNI Java_A_doSomething() {
        B::doSomething();
    }and implement your functions in the class B. The advantage of this approach is that you can write all bookkeeping work of converting Java data to C++ data in the global function, and leave the real work to the function declared in the C++ class.

  • Creation of class inside Method

    Hi Forums,
            I am new to WebDynpro-Abap and i am trying to practice WebDynpro-Abap with the help of  standard Tutorial avl in the SDN.
            In the Tutorial 4, i am getting the following error,
    The type <b>CL_WDABAP_FLIGHT_MODEL=>get_bookings is unknown or not found</b>
            but in that tutorial,they specify the  encounter of  the above error like
    <u>Simply create a ZCL_WDABAP_FLIGHT_MODEL class in your get_bookings method.</u>
           But  i don't know,where  to  Create the class  inside the get_bookings method
    can any body  tell me the steps to create  ZCL_WDABAP_FLIGHT_MODEL class in the get_bookings method and the remaining steps to execute the particular application.
    Thanks in Advance,
    Ashok

    Hi Ashok,
    Follow the steps for creation of Class and the method,
    STEPS TO CREATE CLASS:
    1) CREATE ZIT_FLIGHTTAB(AN INTERNAL TABLE) IN SE11 UNDER DATA TYPE->TABLE TYPE.
    2) GIVE LINE TYPE AS SFLIGHT. SAVE,CHECK AND ACTIVATE THE INTERNAL TABLE.
    3) CREATE GLOBAL CLASS ZNET_NET310_FLIGHTMODEL_## USING TRANSACTION CODE SE24.
    4) IN THE ATTRIBUTES TAB, ENTER AS FOLLOWS,
        ATTRIBUTE          LEVEL          VISIBILITY     TYPING          ASSOCIATED TYPE
        TY_FLIGHTS        STATIC ATTRIBUTE       PUBLIC     TYPE             SFLIGHT
        ZIT_OUTTAB        STATIC ATTRIBUTE       PUBLIC     TYPE             TY_FLIGHTS
    5) IN THE METHODS TAB, ENTER AS FOLLOWS,
          METHOD          LEVEL          VISIBILITY     DESCRIPTION
       READ_FLIGHTS          STATIC METHOD        PUBLIC     READ FLIGHT DATA
    6) CLICK ON PARAMETERS, ENTER AS FOLLOWS,
          PARAMETER          TYPE          TYPING METHOD     ASSOCIATED TYPE          
          I_CARRID           IMPORTING             TYPE          SFLIGHT-CARRID
          I_CONNID           IMPORTING             TYPE         SFLIGHT-CONNID
          E_FLIGHTS           EXPORTING            TYPE         ZIT_FLIGHTTAB
    7) DOUBLE CLICK ON METHOD:READ_FLIGHTS AND ENTER FOLLOWING SORCE CODE IN BETWEEN METHOD AND ENDMETHOD.
         SELECT * FROM SFLIGHT INTO TABLE ZIT_OUTTAB WHERE CARRID = I_CARRID AND CONNID = I_CONNID.
          E_FLIGHTS[] = ZIT_OUTTAB[].
    8) SAVE CHECK AND ACTIVATE CLASS.
    NOTE :
    PLEASE FOLLOW SAME STEPS FOR OTHER METHODS THAT COMES IN FOLLOWING EXCERCISE IN SAME CLASS i.e ZCL_NET310_FLIGHTMODEL_##.
    In next few tutorials you will need to create more methods. Follow steps to add new methods as and when required.
    Regards,
    Achyut

Maybe you are looking for

  • BAPIs and JAVA , method setValue() is giving error ???

    Hello all I havea bapi ,which i m calling from my java application using JCO , The function module : 'ZBAPINEW1' Import parameter : IN1 type ZBAPI_NEW1 ( ZBAPI_NEW1 is a structure having 'CARRID' as the only field inside ) now the code inside the jav

  • Get a test credit card for testing purposes?

    Hi everyone, this is Robin from Germany. I work for HUGO BOSS and I currently evaluate Apple Pay for our company-owned stores. We are thinking of upgrading our stores with NFC POS Terminals in order to accept Apple Pay. Unfortunately, since our depar

  • Can't import (to Win) what I exported (from Mac)

    Alas, I must return to intel and native windows again... oh the shame. Anyway, in prep for the move I think I did as instructed... I 'selected' ALL of my songs and 'exported' them to / as a 'data DVD'. So now I have 180 some mpeg-4 files on a DVD, wi

  • VersionCue.dll missing in CS4

    Hello, I'm a brand new Adobe user who just purchased CS4 Production Premium. I wanted to batch process a bunch of jpegs using a custom action I created in Photoshop. I created an action to change the brightness/contrast to 20/100 respectively. I then

  • Math symbols not displaying in browser

    I'm attempting to study for CLEP exams on Instacert's website and have encountered a problem with the math symbols not displaying correctly.  I did the recommendations by the webmaster and tried Google Chrome, then Safari instead of Mozilla's Firefox