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

Similar Messages

  • Have an IMac 7.1, desktop system 10.4.11, 2.8 GHz, 4MB, 4GB.  what can I upgrade to?  What do I need to buy and how high can I go?

    Have an IMac 7.1, desktop system 10.4.11, 2.8 GHz, 4MB, 4GB.  what can I upgrade to?  What do I need to buy and how high can I go?

    You can replace one of the 2 GB RAM sticks with a 4 GB stick for a total max. RAM of 6 GBs.
    Here are the specs.
    Maximum Memory
    6.0 GB (Actual) 4.0 GB (Apple)
    Memory Slots
    2 - 200-pin PC2-5300 (667MHz) DDR2 SO-DIMM
    Purchase reliable Mac RAM from online vendors Crucial or OWC (Other World Computing).
    The highest OS X version you can go is OS X 10.8 Mountain Lion.
    First, though, you need to purchase a retail disc version of OS X 10.6 Snow Leopard in order to download upgrade to OS X 10.8.
    Purchase OS X 10.6 Snow Leopard here.
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    Use Software update, in OS X Preferences Pane to update to the latest version of OS X 10,6 Snow Leopard before upgrading OS to 10.8 Mountain Lion.
    OS X 10,6.8 will install the Mac App Store icon in OS X's Application Dock.
    From there, you can launch the Mac App Store and download and install OS X 10.8 Mountain Lion.
    Use Sofware Update again to update to the latest version of Mountain Lion.
    Be advised, you may want to play around in OS X 10.6 Snow Leopard before updating to OS X 10.8 Mt. Lion.
    Some users aren't happy with the Hybrid OS X/iOS functionality of OS X 10.8 Mounatin Lion.
    If you upgrade to OS X 10.8 Mountain Lion and aren't happy with it, the only way to return to OS X 10.6 Snow Leopard is wipe the internal drive, reformat it, then reinstall OS X 10.6 Snow Leopard.
    You might want to consider purchasing an external FireWire hard drive, format it so you can install OS X 10,6 Snow Leopard and all of its updates onto the internal drive, use a copying/cloning app like Carbon Copy Cloner or Super Duper to make a duplicate of your internal drive to the external FireWire drive as a backup that you can reinstall onto your internal drive just in case you find you are not happy with the look and functionality of OS X 10.8 Mountain Lion.
    Good Luck!

  • Can anyone explain what the 'other' storage consists of and how I can decrease the size please?

    Can anyone explain what the 'other' storage consists of and how I can decrease the size please?

    Welcome to Apple Support Communities
    "Other" refers to OS X files, caches, downloads, documents. See Other in this website > http://pondini.org/OSX/LionStorage.html
    I would not worry about Other because they contain files that you need, but if you want to decrease the size, start deleting downloads and documents

  • What is a Token Data String and how do I create one?

    How do I create local server scripts? I have read Chapter 2, what is a data string, how do I 'create' one and how can I 'pass' this off Apple, iTunes, whoever needs it? Chapter 2 doesn't say.
    Gateway   Windows XP Pro   Military

    I suggest that you grab a copy of Chapter 4 of the Admin document. It explains a lot. You should also grab a copy of Apple's sample scripts (you get some C code, Java, Perl, Python, and a shell script). They will give you some idea of how this works. The scripts are downloadable frmo the iTunes U support page.
    Basically, the token string contains a credential that says what access you'd like to have in iTunes U (you are an "Admin" user or a "Student" or an "Instructor" say). The credential encodes what you can view/edit in a standard way. The credential also includes some optional info (like your identity, e-mail address ... a "user identifier" which is typically a number ... say if you identify users by numbers and names ... and other stuff). You then slap on a timestamp on the credential and cryptographically encode it with that shared secret Apple sent you (when I say "you," I mean that funky CGI you've written ... your CGI does all the encoding). When you're done with the token string, you slap it on the end of a site URL (again, this is something Apple sent you) and send it to Apple. This way, you ('er, your CGI) does all the authentication for Apple (because you know how to authenticate your users better than Apple ever will).
    I confess I had to read Apple's documents, oh, like twenty times before I figured all this stuff out. Once you get it though, it will seem like a pretty cool system.
    MacBook Pro   Mac OS X (10.4.8)   I lied. I'm running Leopard

  • Hi can someone explain what the following error code mean and how i can recifty to download a copy of ebook purchase Error getting License. License Server Communication Problem: E_ACT_NOT_READY

    Hi can any one help
    I keep getting the following error code when I try and down a ebook which I have purchase
    Error getting License. License Server Communication Problem:
    E_ACT_NOT_READY
    can someone advise me what this means and how I recifty the problem to enable me to read the ebook purchase?
    Thanks

    I am having this exact issue. I just downloaded a book and went to open it and got this exact problem.
    I purchased he book through indigo/kobo edition and paid for it and immediately went to open it and am getting the same error
    Error getting License. License Server Communication Problem only mine says  Bad Device key after.
    Not sure why someone has not answered this question yet...i am using windows 7 and this is how i always do it. Never had this problem before when purchasing a book.
    i hope someone answers this soon.

  • Will someone tell me what happen to my play list and how I can restore or get it back!  Apparently, apple for the second time to screw up and delete all my music again!!!

    Will some explain why apple for the second time manage to screw up and delete "all my play lists and music again"!   How can I restore it or get my music back...  If I can't get my music back the way it was the last time I used itunes I will sale both my ipod touches!!!

    Just what were you doing when it happened?
    Just sync it from your iTunes library.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • What is meant by article grouping and site grouping and how to define

    what is meant by article grouping and site grouping and how to define in SAP.

    Hi Charan,
               Article Grouping in its broader sense  means grouping of Articles for ease of maintenance and business functions, either on the basis of Hierarchy or on the basis of Merchandise Category.Article Grouping is also primarily useful in promotions,wherein you can define a set of articles(which may not necessary fall under the same MC or Hierarchy) and club them together and assign them in a promotion.Txn codes used are : VBG1/2/3 - Create/Change/Display Article Group
    For more information refer the link below
    http://help.sap.com/saphelp_47x200/helpdata/en/12/08485c470311d1894a0000e8323352/frameset.htm
    Site Grouping is used for ease of maintenance by grouping the sites.It is also used to maintain the characteristics as well.This can also be used in Allocation Tables,promotion and Listing etc
    Some of the Txn codes -
    WB50 - Site Group,Create Alloc,.table
    Wb56 - Site Group, Alloc.table,Maintain Sites in Class
    WB60 - Site Group,Create Promotions
    WB64 - Site Group,Maintain SItes to Class
    Wb80 - Create Site Group Other
    For more information,refer the link below
    http://help.sap.com/saphelp_47x200/helpdata/en/12/08485c470311d1894a0000e8323352/frameset.htm
    Hope it helps
    Rgds,
    Aram K.
    For more information refer to the link below

  • What does it mean by Stream and how does it is different from Class?

    What does it mean by Stream and how does it is different from Class?

    www.dictionary.com does
    Stream: An abstraction referring to any flow of data from a source (or sender, producer) to a single sink (or
    receiver, consumer).
    Class:
    The prototype for an object in an
    object-oriented language; analogous to a derived type in a
    procedural language. A class may also be considered to be a
    set of objects which share a common structure and behaviour.
    The structure of a class is determined by the class
    variables which represent the state of an object of that
    class and the behaviour is given by a set of methods
    associated with the class.

  • What is inner class ,and how can I use it?thanks

    what is inner class ,and how can I use it?thanks

    Theres a whole chapter here http://developer.java.sun.com/developer/Books/certification/certbook.html (thanks to SSvetlana for pointing this one out).
    Col

  • What tools and how to remove the local saturation of a video?

    Pessoal Bom dia..! Alguém pode me ajudar com essa pergunta?
    Personal Good day ... Can anyone meajudar with this question?

    Tank you
    M@rkony
    Em Sábado, 30 de Agosto de 2014 13:43, Ann Bens <[email protected]> escreveu:
    What tools and how to remove the local saturation of a video? created by Ann Bens in Premiere Pro - View the full discussion

  • What kind of classes can be instantiated and how it can be done?

    Dear All,
    What kind of classes can be instantiated and how it can be done?
    Can you please explain me in brief and provide sample code for it?
    Thanks,
    Anup Garg

    Hi Anup,
    You can create instances of a Final class...its just that you cannot override its behaviour...
    btw...If you are coding the whole class, you can define a class as Final as below
    CLASS CLASS_NAME DEFINITION FINAL
    ENDCLASS
    Else, if you use the class builder (SE24), you just need to check the Final checkbox available in the Properties section of the class.
    ~ Piyush Patil

  • I have a first generation iPad and the screen went completely green on me and locked up.  I was able to unlock it, but now there's a green haze all over the screen.  Anyone know what the issue could be and how I can get it fixed?

    I have a first generation iPad and the screen went completely green on me and locked up.  I was able to unlock it, but now there's a green haze all over the screen.  Anyone know what the issue could be and how I can get it fixed?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Out-of-Warranty Service
         If you own an iPad that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will replace (Apple doesn't repair) your iPad with an iPad that is new or equivalent to new in both performance and reliability for the Out-of-Warranty Service fee listed below. (The replacement will most likely be a refurbished iPad in a brown box, however, it has a new screen, back and battery.)   
    iPad model
    Out-of-Warranty Service Fee
    iPad mini
    $219
    iPad 3rd, 4th generation
    $299
    iPad 2, iPad
    $249
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in US dollars and are subject to local tax.
    Certain damage is ineligible for out-of-warranty service, including catastrophic damage, such as the device separating into multiple pieces, and inoperability caused by unauthorized modifications. However, an iPad that has failed due to contact with liquid may be eligible for out-of-warranty service. See http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipad
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
    You may can get the iPad repaired at 3rd party repair sources for less $, however, any remaining Apple warranty will be voided.
    iPad Repair & Screen Replacement Services
    http://www.ifixyouri.com/16-ipad-repairs
    RepairZoom iPad Repair
    http://www.repairzoom.com/ipad-repair.html
    Mission Repair
    http://www.missionrepair.com/Apple_iPad_Repair_Services_s/431.htm
    iGadgetResQ
    http://www.igadgetresq.com/ipad-repair/
     Cheers, Tom

  • What is meant by change pointer and change request

    hi,
    what is meant by change pointer and change request in sap r3
    plz can u any one notes or link on this , or if possible briefly tell about this..
    i am looking for clear idea on this..
    thanks
    Ruban

    With respect to Dictionary Change pointers means all the changes done to dictionary objects.
    All the change logs with respect to tables are stored in CDHDR and CDPOS table
    Change Pointers in broad sense are used with respect to IDOC
    Change Pointers & Reduction of IDOCs.
    Applications, which write change documents, will also try to write change
    pointers for ALE operations. These are log entries to remember all modified
    data records relevant for ALE.
    Following Steps must be followed in case of Change Pointer.
    1) Goto Transaction BD60.
    Note down the Details of the Message Type for which change pointer has to activate. Details like Function Module, Classification Object, ALE object Type etc.
    E.g. ZDEBP3
    2) Next step is goto transaction BD53
    Click on change button.
    First select the segment for which the fields has to modified (either remove or
    add ).
    It will show the fields in a pop-up window where the user can select, deselect the respective fields.
    Save the settings for the Message type. Don’t forget to activate the change pointers by clicking Activate Change pointers button on the main screen.
    3) Once the activation is done system will reset the settings for the Message type in Change pointers (BD60). Maintained the old settings for the Message type.
    Check this FAQ
    . Do you really need change pointers?
    You need change pointers to distribute changes with the ALE SMD tool. If you do not use this tool, you do not need to write change pointers.
    You can deactivate change pointers and activate them again with the transaction BD61.
    2. Do you really need to activate change pointers for this messages type?
    If some messages types are no longer to be distributed by change pointers, you can deactivate change pointers for this messages type.
    You can deactivate change pointers for the message type
    and reactivate them again.
    For reduced message types, deactivate the change pointer with the
    Reduction tool (transaction BD53).
    3. Are there still too many change pointers to be processed?
    The change pointers are analyzed with the transaction BD21 or the report RBDMIDOC in ALE and flagged as processed. If the change pointers are created periodically, this report should also run periodically.
    4. Are no longer required change pointers reorganized in time?
    The report RBDCPCLR (transaction BD22) to reorganize the change pointer should run periodically. Depending on how many change pointers are created or processed, you can schedule the background job hourly, daily or weekly. You should delete all obsolete and processed change pointers. You can also use this report for specified message types.
    We come across change pointer technique while dealing with master data distribution thru ALE/IDOCs
    When we want to reflect changes made to master data(i.e customer master, vendor master, material master ...) visible to other clients listed in customer distribution model, we follow change pointer technique.
    What is customer distribution model?
    A customer model depicts various messages (master data, transactional data) exchanged between the systems and establishes a sender and receiver of data
    A customer model is always maintained on any system for the entire distributed network of SAP systems, so it must be distributed to various systems in the distributed network.
    These r some details regarding change pointer technique which u may find it usefull.............
    The change pointers technique is based on the change document technique, which tracks changes made to key documents in SAP, such as the material master, customer master, vendor master & sales orders. changes made to a document are recorded in the change document header table CHDHR, and additional change pointers are written in the BDCP table for changes relevant to ALE. BDCPS table stores the status of changed documents processed or not.
    The process for distributing master data using change pointers involves the following steps.
    The application writes change documents. SAP maintains change documents for
    several objects in the system, such as materials, customers, invoices, and bank data, to provide an audit trail for changes made to an object. A change document object represents a set of tables for which changes are recorded. For example, the change document for the material master is named MATERIAL and it contains the various tables of the material master object, such as MARA and MARC.
    When an application transaction makes changes to an object, the application writes change documents, which are stored in the CDHDR and CDPOS tables for each change made to an object.
    Tip
    Execute transaction SCDO to see a list of change document objects and
    their tables.
    The SMD (Shared Master Data) tool writes change pointers. When changes are made to an object, the SMD tool checks the ALE settings and consults the ALE distribution model to determine whether a receiver is interested in the object that was changed. If the system finds an appropriate receiver, the system creates change pointers in the BDCP table that point to change documents in the CDHDR table.
    The ALE programs analyze change pointers and generate IDocs. SAP provides
    standard function modules that read the change pointer table and generate IDocs for the objects that were changed. These programs are designed to ignore multiple changes and create only one IDoc. For example, if a material is changed four times before the function module is invoked, only one IDoc with the latest data from the material master data is created. The function modules are invoked by a standard report, RBDMIDOC. The selection parameters of this report allow you to specify the message type for which change pointers are to be analyzed. Configuration
    you must carry out the following configuration steps to enable master data
    distribution based on changes to the object.
    Step 1: Enable Change Pointers Globally
    Transaction: BD61
    This option enables the change pointer process globally. Make sure that the flag is checked.
    Step 2 :Enable Change Pointers for a Message Type
    Transaction: BD50
    This setting is required for activating change pointers for a specific message type.
    make sure that the Active flag is checked for your message type.
    Step 3 :Specify the Fields for Which Change Pointers Are to Be Written
    Transaction: BD52
    For standard master data objects such as the material, customer, and vendor objects, SAP already provides a list of fields for which change pointers are written. If you are satisfied with the standard set of fields, you can skip this step. If you want to add new fields, you must add entries for the required fields. If you are not interested in IDocs being generated for changes to a particular field, you can remove it from the list. For example, if you do not want to distribute the
    material master for changes made to the Catalog Profile (RBNRM) field, you can delete this entry from the table.
    Step 4: Changing a Field in the Master Data
    Change a field in the master data object for which the change pointer is enabled. For example, if you change the net weight of a material in the material master data, a change pointer is written.
    Tip : You can verify a change document and change pointer by viewing entries in
    tables CDHDR and BDCP, respectively.
    Step 5 :Executing Program RBDMIDOC to Process Change Pointers
    Execute program RBDMIDOC to initiate the process of generating an IDoc. On the selection screen, specify the message type. For example, you can specify MATMAS. After you execute the process, it displays the number of entries processed.
    Note :
    Normally, you schedule this program to run frequently and start IDoc
    generation for different message types.
    Step 6 : View the idocs in WE02/05

  • Hi my iph4s wont turn on or off and seems to be zoomed into a particular part of the screen, loads normally when rebooted the phone. what is wrong with it? and how would i go abouts fixing it?thanks

    hi my
    iph4s wont turn on or off and seems to be zoomed into a particular part of the screen, loads normally when rebooted the phone. what is wrong with it? and how would i go abouts fixing it?
    also recovery mode shows up as a red icon instead of a blue one, not jail broken or had any third party alterations
    thanks

    Reset the PRAM
    Reinstall the operating system from the dvd (you will not loose your data)

  • TS1436 I received this message twice on 2 new & separate attempts to burn a playlist to a NEW cd:  "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What is a "medium write error" and how can I deal with this?

    I received this message twice on 2 new & separate attempts to burn a playlist to a NEW cd:  "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What is a "medium write error" and how can I deal with this?

    Hello Pat,
    The following article provides troublehsooting steps and information that can help get iTunes burning discs again.
    Can't burn a CD in iTunes for Windows
    http://support.apple.com/kb/TS1436
    Cheers,
    Allen

Maybe you are looking for

  • How to get the range of a textbox in the footer of the 1st page ?

    Just like the problem says, how do I use VBA to get the range of the textbox in the footer of the 1st page?

  • How to find the infoobject in the multiprovider

    hi friends, i have a query, A query is developed on multiprovider having 20 cubes, now we want to find the infoobject(0doc_number), in which cube that object is used. actually, infoobject(0doc_number) is used in 11 cubes now how to find that query in

  • Could not load Display preference pane

    Display preference pane does not open with message "Could not load Display preference pane" Log says this: System Preferences[2132]: ### com.apple.preference.displays instantiatePrefPaneObject exception:Cannot lock focus on image <NSImage 0x608000272

  • IPod does not play songs in order

    When I drag songs to the iPod it adds them to the end of the list and then I sort by song name. When I play them on the iPod they are played at the end. When I hook up the iPod they are listed in the right order but that's not how they are played. Do

  • HP1000 PhotoSmart driver for Windows 7?

    Does anybody know of software for a Photo Smart P1000 that will work on my Dell Inspiron Laptop with Windows 7? I purchased my printer in 2000.  It still works great!