Can I create private class in ABAP?

Hi all,
Can I create private class in ABAP? Please reply me its interview question.
Thanks ,
Vishal
Moderator message : Interview type questions not allowed, read Forum Rules Of Engagement before posting.  Thread locked.
Edited by: Vinod Kumar on Jan 16, 2012 12:20 PM

Vishal , please read the rules of this forum.

Similar Messages

  • What is meant by Local Class and how we can create local classes in abap?

    Hi Friends
    what is meant by Local Class and how we can create local classes in abap?
    Regards,
    Sree

    Hi
    Local classes are the classes which we declare and use using the SE38 ABAP editor
    Global classes are the classes which we find in SE24 and call the methods of them into our program.
    see the sample code
    REPORT zs_class.
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS:p_var TYPE i,
    p_var1 TYPE i.
    SELECTION-SCREEN END OF BLOCK b1.
    CLASS d_class DEFINITION
    CLASS d_class DEFINITION.
    PUBLIC SECTION.
    METHODS:
    add,
    sub.
    PROTECTED SECTION.
    DATA : var2 TYPE i.
    ENDCLASS. "d_class DEFINITION
    CLASS d_class IMPLEMENTATION
    CLASS d_class IMPLEMENTATION.
    METHOD add.
    var2 = p_var + p_var1.
    WRITE:/ var2.
    ENDMETHOD. "add
    METHOD sub.
    var2 = p_var - p_var1.
    WRITE:/ var2.
    ENDMETHOD. "sub
    ENDCLASS. "d_class IMPLEMENTATION
    START-OF-SELECTION
    START-OF-SELECTION.
    DATA: obj TYPE REF TO d_class.
    CREATE OBJECT: obj .
    CALL METHOD: obj->add,
    Regards
    Anji

  • Can we create a Calender through abap in hr module

    Dear Freinds
                could any body let me know can we create a Calender  through abap .
    my requirement is user is asking me to create a calnder .....and give me him a tcode..........when we click on the calnder for him a rport should be displayed ........
    as he would like to place an object on each particular day........once he lick on that
    day and futher clicks on that object he should get details of the object.
    Please let me know..........as this little bit urgent.
    regards
    vams

    Dear Freinds
                could any body let me know can we create a Calender  through abap .
    my requirement is user is asking me to create a calnder .....and give me him a tcode..........when we click on the calnder for him a rport should be displayed ........
    as he would like to place an object on each particular day........once he lick on that
    day and futher clicks on that object he should get details of the object.
    Please let me know..........as this little bit urgent.
    regards
    vams

  • What is the use of feeder class ? & can we create feeder class ?

    i have the fpm developer guide , more detail of feeder class ?

    Dear Madhukar.
    Your can see class assinment for feeder in transaction POWL_TYPE.
    Of course, you can create feeder class by yourself and assign it to feeder.
    Your should to imlement IF_POWL_FEEDER interface in your class.
    The best way for feeder class creation is to find fider with close behavior in transaction POWL_TYPE and make copy.
    For FPM applications there is the separate forum in sdn called Floorplan Manager for WebDynpro Abap,
    your should post your question there/.

  • HT5557 Create Private Class Library in Ibooks?

    I am a teacher, and I have a class set of Ipads #2 (not siri).  I want the students to create books in ibooks, and I want them to publish them to ibooks.
    I want the students to be able to read each others' books on their own devices and at home or in the classroom.
    I do not want the general public to be able to access the books.
    How can I create a "private library" in ibooks for my students?
    Thank you for any help or suggestions.

    It is true that the .NET platform is doing away with DLLs and actually, it's doing away with tradition ActiveX also. It will be based on objects called Assemblies.
    If you have an actual ActiveX component, you can call this from both LabVIEW 6.1 and VB6. However, if the object that you have built was built in the .NET environment, then it is an Assembly object. And, since this technology was released after both VB6 and LabVIEW 6.1, neither platforms support .NET controls yet. VB6 will most likely never support Assemblies, although I assume LabVIEW will as future versions are released.
    J.R. Allen

  • Can't create a .class file

    Hello
    I am glade to know this forum, I bet it is muche better than my instructor, any how ..
    I am trying to do my first java program, the progam is working properly on netbeans 4.1 with jdk1.5.0, but when I go to the command prompt on windows XP it dose not work,
    other programs work in the command prompt but mine dose not
    what is good is that I know the problem, it is that I don't have the .class file I have the .java, and as I read it was supposed to be created automatically on neatbeans but unfortunatly it is not. can I creat it somehow ??!!
    any sugestions ??

    I did a google search and found this thread.
    Just to keep information at finger tips etc.
    I installed the recent JDK from JavaSun place for Windows (XP).
    I could not compile a class file from a java file in Netbeans.
    To compile a class file from a java file I needed to use javac.
    Using cmd prompt (Command prompt) I could not use Javac (I forgot about PATH vars).
    Right click my computer, properties in menu, advanced tab, Environment variables, Edit the path variable, add the directory c:\proram files\java\jdk????\bin\ (??? being the version of your jdk), then run cmd then javac works! (remembering of course to have ; seperator!)
    ADDTIONAL INFO:
    Should I set the PATH variable?
    Set the PATH variable if you want to be able to conveniently run the JDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. If you don't set the PATH variable, you need to specify the full path to the executable every time you run it, such as:
    C:> "\Program Files\Java\jdk1.6.0_<version>\bin\javac" MyClass.java
    It's useful to set the PATH permanently so it will persist after rebooting.
    How do I set the PATH permanently?
    To set the PATH permanently, add the full path of the jdk1.6.0_<version>\bin directory to the PATH variable. Typically this full path looks something like C:\Program Files\Java\jdk1.6.0_<version>\bin. Set the PATH as follows, according to whether you are on Microsoft Windows NT or 98/2000/ME.
    Message was edited by:
    g000we

  • Can I create a Class object without the VM?

    Using byte-code engineering, is it possible to create a class object?
    What about if I serialize a Class object to a file, can I byte-code engineer that and then reinstantiate it?

    Thanks I'll check it out. Basically I want to try it
    for fixing a problem of running two apps in the same
    VM.There's a world of problems when you try to run two programs within the same JVM. I wouldn't suggest even trying it unless it's a last resort. Why do you want to do that?

  • BUG??? Can't  create a class deriving from ActionForm using wizard

    Has anyone managed to create an class deriving from ActionForm class using the wizard in JDev 9033?
    When I try to do create a class by right-clicking.."New"..etc nothing happens!!

    Yeah. Same thing happens for me. I went to File->New->Web Tier->Struts->ActionForm. Can't get it to do anything.

  • How can we create forms in hr abap?

    like in abap scripts,
    how can we create the forms in Hr abap..?
    what is the Tcode for that..?
    regards
    satish.v

    Hi,
    We have different types of forms...
    one type form can be designed using transaction PE51 .....ABAP code cannot be written.
    HRFORMS is the tcode for another set of forms. Mostly Smartforms are associated with these forms. Standard forms can be copied into customized forms and can proceed with customization. This is because standard forms get the data into internal tables which can be used in smartforms to display.
    Apart from these, similar to ABAP, Smartforms and SAPScripts can be used to develop any custom forms.
    Hope this helps.
    Thanks,
    Haritha

  • Can we create system variables in abap

    can we create or modify the system variable in abap

    Hi praveen,
    1. We cannot create new system variable.
      Bcos who will fill data in that variable ?
      The system will not.
    2. For Modification,
       EVEN if we try to modify any system variable,
      eg.
      THEN, IT will GET BACK TO ORIGINAL,
       IMMEDIATELY AFTER THE EXECUTION
      of any NEXT abap statement.
      For some variables, it will not allow to change,
      in the program it self.
      for some we can change.
    4. to get a taste of it, just copy paste.
    5.
    REPORT ABC.
    *------- gets changed
    sy-datum = '99991231'.
    *----- this line will give error
    sy-repid = 'ab'.
    write sy-datum.
    write sy-repid.
      SY-DATUM = '20063112'.
    regards,
    amit m.

  • Can we create static class in actionscript 3.0

    Hi If yes please send me chunk of code .
    thanks

    Hi Prashanth,
    There is no specifically a Static class in Flex that you can declare it at the compile time. However you can have Static variables and methods in your class and you can call them using the class name itself without creating an instance of that class.
    Here is the chunk of code...
    package com.constants
    [Bindable]
    public class ConsumerMessageConstants
      public static const UNABLE_TO_ENROLL_PLANS_MESSAGE_ID:String = "10000";
      public static const MARITAL_STATUS_UPDATED_MESSAGE_ID:String = "10001";
      public static const ERROR_IN_EDITING_MARITALSTAUS_MESSAGE_ID:String = "10002";
      public static const SMOKER_STATUS_SAVED_SUCCESSFULLY_MESSAGE_ID:String = "10003";
      public static const PASSWORD_RESET_REQUIRED_MESSAGE_ID:String = "10004";
      public static const ADDRESS_UPDATED_SUCCESSFULLY_MESSAGE_ID:String = "10005";
      public static const UNABLE_TO_REMOVE_THIS_DEPENDENT_MESSAGE_ID:String = "10006";
      public static const EMPLOYEE_SALARY_UPDATED_SUCCESSFULLY_MESSAGE_ID:String = "10007";
      public static const ERROR_IN_EDITING_SALARY_MESSAGE_ID:String = "10008";
      public static const PLEASE_SELECT_A_CONSIDER_PLAN_MESSAGE_ID:String = "10009";
      public static const YOU_MUST_CHOOSE_A_PLAN_COVERAGE_LEVEL_MESSAGE_ID:String = "10010";
      public static const PLEASE_SELECT_PLAN_TO_LOCK_PORTFOLIO_MESSAGE_ID:String = "10011";
      public static const DEEPDIVE_INFORMATION_SAVED_SUCCESSFULLY_MESSAGE_ID:String = "10012";
      public static const NO_DATA_TO_DISPLAY_MESSAGE_ID:String = "10013";
      public static const NO_PLANS_AVAILABLE_TO_ENROLL_MESSAGE_ID:String = "10014";
      public static const NO_PLANS_TO_BE_ENROLLED_MESSAGE_ID:String = "10015";
      public static const PASSWORD_CHANGED_SUCCESSFULLY_MESSAGE_ID:String = "10016";
      public static const NEW_PASSWORD_AND_CONFIRM_PASSWORD_SAME_MESSAGE_ID:String = "10017";
      public static const YOUR_DATA_IS_UPDATED_SUCCESSFULLY_MESSAGE_ID:String = "10018";
      public static const HEALTH_PLAN_IS_UPDATED_SUCCESSFULLY_MESSAGE_ID:String = "10019";
      public static const HEALTH_PLAN_IS_ADDED_SUCCESSFULLY_MESSAGE_ID:String = "10020";
      public static const MONEY_PLAN_IS_UPDATED_SUCCESSFULLY_MESSAGE_ID:String = "10021";
      public static const MONEY_PLAN_IS_ADDED_SUCCESSFULLY_MESSAGE_ID:String = "10022";
      public static const PROTECTION_PLAN_IS_UPDATED_SUCCESSFULLY_MESSAGE_ID:String = "10023";
      public static const PROTECTION_PLAN_IS_ADDED_SUCCESSFULLY_MESSAGE_ID:String = "10024";
      public static const UNABLE_TO_RETRIEVE_PATHS_MESSAGE_ID:String = "10025";
      public static function func1():Void
      public static function func2():Void
      public function ConsumerMessageConstants()

  • Smart View - can't create private connection

    Hi,
    I'm trying to establish a private connection with SmartView to Essbase 11.1.2.0. Upon entering the URL (http://myhost.13080/aps/SmartView) I get to the next dialog displaying an empty server node upon clicking '+'!
    I've seen others running into the same issue in this forum but can't find the right solution for me. Have to say that I'm anything but an expert in this field, so I may be leaving out things.
    Here's what works:
    Essbase server is up and running. Administration Services Control works. Could create application. http://demo.us.oracle.com:13080/aps/APS comes back with "Hyperion Provider Services".
    Any help appreciated,
    Mike

    Hi,
    Please check your access first.
    go to Native directory and check for the user name and then see the groups that you are assigned to.
    For those groups i would suggest to check the provisioning and let me know.
    Also i would suggest you to Unregister Smartview addin and then register and see if it works.
    Thanks,
    KKT

  • Can I create a class and package for my inframe AS and access it global

    Ls,
    I made an app using only inframe actionscript in a .fla;
    transfrerring variables from frame 1 to frame 2 is unreliable.
    Some sources say the persist over frames but i found that not to be reliable.
    Arrays seem to be filled with the right values. Normal int vars declared in frame 1 fail some time.
    You should have used classes i hear you say,  and right you are.
    But I didnt.
    Now im using either reloading, re-initing and/or the sharedobject.
    Anyhoe..
    Question:
    If I declare a class for my main .fla file.,
    then declare, instantiate and load the globals i want in this main class,
    will I be able to acces these variables in my main .fla timeline script?
    If so, I could slowely reconstruct my .fla into smaller objects/classes and make it a real app.
    Just starting from scratch is. welll..i dont even want to think about that.
    Highest regards,
    Mac

    Yes! I got it to run as Mobile project.
    Now, how to test on my mobile thru USB.
    I'm more/only used to working from FLASH CS5.5
    Although I like the builder, it feels really flexible, it also seems more work(yeah still lazy).
    Is there an advantage to using the builder over Flash CS?
    Thank you.. again...again
    Mac

  • Using a dump how can i create a ER diagram

    Can any one tell me how can i draw a ER diagram automaticaly by using an existing Database.i mean i have a database with all the relationship,triggers and views now i want to make a ER diagram automaticaly by using this database ... is there any tool for this or is oracle provides any tool can any one help me out to solve this problem
    thx in advance....

    As you are asking on the Designer forum,I am assuming you have a Designer Repository set up. If this is the case,you can use Designer to capture the design of your schema and create a schema model. You can create an ERD from this schema model by using Designer's table to entity retrofit utility. Check out the Designer demos on this site for more. (http://www.oracle.com/technology/products/designer/demos.htm)
    If you do not have a Designer Repository setup, why not try JDeveloper? You can download the latest JDeveloper 10g Preview release from OTN and, using the connection node, connect to the required schema and pull the tables from your schema onto a Database diagram. JDeveloper allows you to quickly and easily review your schema model visually.
    You can also create UML Class models based on your schema.
    There are numerous demos on the JDeveloper area for the UML modeling JDeveloper offers. (http://www.oracle.com/technology/products/jdev/index.html)
    Regards
    Sue Harper

  • Help Needed in Creating Java Class and Java Stored Procedures

    Hi,
    Can anyone tell how can i create Java Class, Java Source and Java Resource in Oracle Database.
    I have seen the Documents. But i couldn't able to understand it correctly.
    I will be helpful when i get some Examples for creating a Java Class, Java Source and Stored Procedures with Java with details.
    Is that possible to Create a Java class in the oracle Database itself ?.
    Where are the files located for the existing Java Class ?..
    Help Needed Please.
    Thanks,
    Murali.v

    Hi Murali,
    Heres a thread which discussed uploading java source file instead of runnable code on to the database, which might be helpful :
    Configure deployment to a database to upload the java file instead of class
    The files for the java class you created in JDev project is located in the myworks folder in jdev, eg, <jdev_home>\jdev\mywork\Application1\Project1\src\project1
    Hope this helps,
    Sunil..

Maybe you are looking for