Right way to create method?

Task - The Game class has two elds representing Player one and Player two.
The constructor for this class has two parameters which are the names of the two players. The
constructor will initialise the two fields.
The Game class has a single method called play which has no parameters and does not return
a value. This method should print out a suitable introduction and then:
*1. Instruct player one to play first. The instruction should give the name of player one.*
*2. Invoke the play method of Player one.*
*3. Announce the score for Player one.*
*4. Instruct player two to play next. The instuction should give the name of player two.*
*5. Announce the score for Player Two*
*6. Print message naming the winning player or annoucing a draw depending on the scores of the two players.*
private void play()
printWelcome();
player1.getName();
System.out.println("You're player one, its your turn first");
player1.play();
player1.getScore();
player2.getName();
System.out.println("You're player two, its your turn next");
player2.getScore();
}am i headed in the right direction with this?

import java.util.ArrayList;
import java.util.Random;
public class PackOfCards
    private ArrayList<Card> cards;
    private Random rnd;
     * Constructor for objects of class PackOfCards
    public PackOfCards()
        // initialise instance variables
        cards = new ArrayList<Card>();
        rnd = new Random();
        fillPack();
    private void fillPack() {
        for (int i=0; i<52; i++) {
            cards.add(new Card(i));
     * Select a card at random from the pack
     * @return     the card that was selected, or null if the pack is empty
    public Card selectCard()
        if (cards.size() > 0) {
            return cards.remove(rnd.nextInt(cards.size()));
        } else {
            return null;
* This class models a player.
public class Player
    private String name;
    private Card[] card = new Card[5];
    private int score = 0;
     * Contructor for objects of class Player.
     * @param A String which initialises the name of the player.
    public Player(String name)
        this.name = name;
     * Gets the score of the player.
     * @return An integer value representing the score of the player.
    public int getScore()
        return score;
     * Gets the name of the player.
     * @return A String representing the name of the player.
    public String getName()
        return name;
     * Gives the player 5 cards from the pack.
    private void fill()
        PackOfCards deck = new PackOfCards();
        int i = 0;
        while(i < card.length) {
            card[i] = deck.selectCard();
            i++;
     * Calls the fill() method and creates the method to enable the player to play the game.
    public void play()
        fill();
        Reader reader = new Reader();
        boolean stillPlaying = true;
        System.out.println(card[0].toString());
        int index = 1;
        while(stillPlaying = true) {
            if(reader.equals("higher") /*&& is correct*/) {
               if (card[index].getRank() > card[index-1].getRank())
                    score++;
                    index++;
                    System.out.println(card[index].toString());
            if(reader.equals("higher") /*&& is wrong*/) {
                    score = 0;
                    index++;
                    System.out.println(card[index].toString());
                    stillPlaying = false;
            if(reader.equals("lower") /*&& is correct*/) {
                score++;
                index++;
                System.out.println(card[index].toString());
            if(reader.equals("lower") /*&& is wrong*/) {
                score = 0;
                index++;
                System.out.println(card[index].toString());
                stillPlaying = false;
            if(reader.equals("freeze")) {
                stillPlaying = false;
        Reader.close();
}There are a couple of other classes.
This is the one im having problems with -
public class Game
    // instance variables - replace the example below with your own
    private Player player1;
    private Player player2;
     * Constructor for objects of class Game
    public Game(Player player1, Player player2)
        // initialise instance variables
        player1 = player1;
        player2 = player2;
    private void play()
        printWelcome();
        player1.getName();
        System.out.println("You're player one, its your turn first");
        player1.play();
        player1.getScore();
        player2.getName();
        System.out.println("You're player two, its your turn next");
        player2.play();
        player2.getScore();
    }

Similar Messages

  • What's the "right" way to create a News list in CQ5.4?

    Hey folks,
    I'm a brand new CQ developer and, though I've done a lot of reading, I'm still in the dark on how to do a few things.
    I'm currently working on a corporate website, and I need to build a News page. Each article contains a title and rich text (possibly including embedded images, videos, etc...), and the News page itself should display a paginated list of recent article summaries (with "read full article" links). I also need to show the two or three most recent article summaries on the site's front page, under a News heading.
    I thought there'd be a pre-built component to cover this case, since most corporate sites include a News page of some sort, but I haven't found one. Am I missing it? I looked into the Blog page template, but I think that adapting that may be overkill.
    I think that the right way to do this would be to build a News component with a Title and Rich Text field in the edit dialog. New articles could be created by dropping these components into the parsys of the News page. I could then create both a .html and a .summary view for the components and use a customized List component to display the summary list on the front page. Am I on the right track here, or am I overcomplicating it?
    Thanks!
    - Michael

    Hi,
    The "right" way of building any list-like component is to extend the existing List component.
    That is referenced in this documentation page:
    http://dev.day.com/docs/en/cq/current/wcm/default_components.html#List
    You can find it under /libs/foundation/components/lists
    To create, for example, a 'News List' component, just create a new component under your /apps/myproject/components, setting 'foundation/components/list' as sling:resourceSuperType ans add your custom script to display each news item. see also [1]
    That way you canprovide more renderers to be used around your site(s)
    [1] - http://dev.day.com/docs/en/cq/current/developing/components.html#Developing%20a%20new%20co mponent%20by%20adapting%20an%20existing%20%20%20%20%20component
    Hope this helps,

  • Is this the right way to use Methods on Table - Get Procedure

    Hello,
    I just would like to make sure that the following is the use for which
    we use Get Procedure in Table API Package. ? And are there other use cases ?
    If we create a package on EMP Table, we get few Procedure .eg : Insert , Update, GET
    We use Get procedure when having few forms on different Tables on one page
    to manually fetch the values instead of using Automatic Row Processing (DML) .
    In PL/SQL process - On Load After Header. this code goes :
    BEGIN
    EMP_PKG.GET_EMP (
    :P3_EMPNO,
    :P3_ENAME,
    :P3_JOB,
    :P3_MGR,
    :P3_HIREDATE,
    :P3_SAL,
    :P3_COMM,
    :P3_DEPTNO
    DEPT_PKG.GET_DEPT ( .......
    END;And the Source Used Attribute of the items is:
    Only when Current value in Session State is Null.
    Regard,
    Fateh

    Fateh wrote:
    Thanks,
    Actually, I got the idea when skimming PL/SQL best practice book. I agree with with Steven Feuerstein on most of his PL/SQL best practices, but not on the use of TAPIs.
    There was a cancelled webinar by Dan - Taking Control: Integrating PL/SQL APIs with APEX.
    http://www.danielmcghan.us/2013/03/webinar-tomorrow-taking-control.html
    The abstract doesn't specifically mention TAPIs, but if that's the approach he was going to present then I'd disagree with it.
    Which PL/SQL APIs You mean ?Packages as described by Tom Kyte in the links above.

  • Is there a best way to create a uuid.

    Hi all,
    I'm a little bit confused about the right way to create unique objects ids, a way not depend on a database.
    There seems to be several approaches to do this:
    1.The class java.rmi.dcg.VMID states: 'A VMID is a identifier that is unique across all Java virtual machines.
    It generate a uuid which can be convertet to a String.
    2.The class net.jini.id.Uuid states: 'A 128-bit value to serve as a universally unique identifier. Two Uuids are equal if they have the same 128-bit value. Uuid instances can be created using the static methods of the UuidFactory class.
    3.The W3C org seems to have a guid generation.
    4.If you search the internet you will find several other implementations, like www.doomdark.org/doomdark/proj/jug/
    Why exist so many implementations of this feature?
    What is wrong with VMID?
    Klaus

    There was a question similar to this a little while
    back:
    http://forum.java.sun.com/thread.jsp?forum=4&thread=458
    77Mmm, but they werent able to produce any satisfying answere there either...
    Generating a true UUID is by nature plaform dependent, and should IMHO be implemented by the JRE/language libraries. Native code that is not a part of the JRE is always a problem, especially in J2EE environment. In addition, true uuids are useful in very many programming situations. Also, the random based versions are pretty dangerous, and can cause pretty nasty problems.

  • Why there are overloaded create methods in Statful bean?

    Hi all,
    I have a question ...!
    Why there are overloaded create methods for Statefule beans? and why not for Stateless bean?
    because any way these create methods are for giving referneces of EJB objects.hence, what is use of overloaded methods in stateful bean?
    Thanks in advance.
    Regards,
    Rahul

    Hi Rahul,
    Each stateful session bean is tied to a particular client. That means whatever state is passed in during create() is guaranteed
    to be available on subsequent invocations. Allowing multiple create methods is a convenience.
    For stateless session beans there is no prescribed relationship between the caller and which bean instance is used to handle
    an invocation. It wouldn't make sense to allow creation parameters since there would be no guarantee that a subsequent
    invocation is handled by an instance containing that particular initialization state.
    All of this only applies to the EJB 2.1 and earlier API. Starting in EJB 3.0, there are no longer explicit create() methods.
    As you've seen there isn't any benefit to having them in the stateless case. For stateful session beans in EJB 3.0, the
    developer can perform initialization by just declaring a particular business method and calling that after first acquiring a
    new stateful session bean reference.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create a custom panel in the right way (without having an empty panel in the file info) ?

    Hi Everyone
    My name is Daté.
    I'm working in the fashion industry as a designer and Design consultant to help fashion brands improving the design workflow by using Adobe softwares and especially Illustrator.
    I'm not a developper, but i'm very interested about the possibility to introduce xmp technology to provide more DAM workflows in the fashion industry.
    Fashion designers produce a lot of graphical objects in illustrator or Photoshop. Unfortunately they are faced to a big challenge which is about how to manage, search, classify and get this files faster. Of course PDM system or PLM system are used in the Fashion industry to manage data, but for many companies, implemanting this kind of database is very complex.
    When i look at what you can do with xmp, it seems to be an interesting way of managing design files, then i started to follow Adobe instruction to try to build a custom panel.
    The main idea is to (Theory) :
    create custom panels used by fashion designers to classify their design files.
    Use Adobe Bridge to search files, create smart collection to make basic reports in pdf and slideshows
    Find someone to make a script able to export metadata in xml files
    Use indesign and the xml file to generate automatically catalogues or technical sheets based on xmp values
    I have created a custom panel by using the generic panel provided by Adobe and i have modified the fields to feet with the terms used in the fashion industry and it works well.
    But unfortunately, when i try to create my own custom panel from scratch with Flashbuilder (4.6) and the Adobe CSExtensionBuilder_2 (Trial version), it doesn't work!
    Here is the process :
    I have installed flashbuilder 4.6
    I have download the XMP Fileinfo SDK 5.1 and placed the com.adobe.xmp.sdk.fileinfo_fb4_1.1.0.jar in C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\eclipse\plugins
    In Flashbuilder, i have created a new project and select xmp Custom panel
    The new project is created in flashbuilder with a field with A BASIC Description Field
    To generate the panel, right click the project folder and select xmp / Publish Custom Panel
    The panel is automatically generated in the following folder : C:\Users\AppData\Roaming\Adobe\XMP\custom file info panels\3.0\panels
      Go to illustrator, Open the file Info
    The panel appears empty
    The others panel are also empty
    The panel is created and automatically placed in the right folder, but when you open it in Illustrator by selecting the File Info option in the File Menu, this custom panel appears empty!!! (only the title of the tab is displayed). This panel also prevent the other panels to be displayed.
    When you delete this custom panels from the folder C:\Users\AppData\Roaming\Adobe\XMP\custom file info panels\3.0\panels and go back to the File Info, the other panels display their content properly.
    I also try to use the plugin XMP Namespace designer to create my own namespace. this plugin is also able to generate a custom panel, but this one also appears empty in AI or Photoshop.
    I try to follow the process described in Adobe xmp documentation many times, but it didn't works.
    It seems that many peaople have this issue, but i dodn't find a solution in the forum.
    I try to create a trust file (cfg), but it didn't work.
    It would be so kind if you can help me to understand why i can't create a custom panel normally and how to do it in the right way.
    Thanks a lot for your help,
    Best regards,
    Daté 

    Hi Sunil,
    After many trial, i realize the problem was not coming from the trust file, but from the way i have created the custom panel.
    There is 2 different ways, the first described below is not working whereas the second is fine :
    METHOD 1 :
    I have downloaded the XMP-Fileinfo-SDK-CS6
    In the XMP-Fileinfo-SDK-CS6 folder, i copied the com.adobe.xmp.sdk.fileinfo_fb4x_1.2.0.jar plugin from the Tools folder and i pasted it in the plugind folder of Flashbuilder 4.6
    The plugin install an XMP project
    In Flashbuilder 4.6 i have created a new project (File / New /Project /XMP/XMP Custom Panel)
    A new xmp project is created in flashbuilder.
    You can publish this project by right clicking the root folder and selecting XMP / Publish Custom Panel
    The custom file info panel is automatically published in the right location which is on Mac : /Users/UserName/Library/Application Support/Adobe/XMP/Custom File Info Panels/3.0 or /Users/UserName/Library/Application Support/Adobe/XMP/Custom File Info Panels/4.0
    Despite the publication of the custom file info panel and the creation of a trust file in the following location : "/Library/Application Support/Macromedia/FlashPlayerTrust", the panel is blank in Illustrator.
    I try this way several times, with no good results.
    METHOD 2 :
    I have installed Adobe CSExtensionBuilder 2.1 in Flash Builder
    In FlashBuilder i have created a new project (File / New /Project /Adobe Creative Suite Extension Builder/XMP Fileinfo Panel Project)
    As the system display a warning about the version of the sdk to use to create correctly a custom file info, I changed the sdk to sdk3.5A
    The warning message is : "XMP FileInfo Panel Projects must be built with Flex 3.3, 3.4 or 3.5 SDK. Building with Flex 4.6.0 SDK may result in runtime errors"
    When i publish this File info panel project (right click the root folder and select Run as / Adobe illustrator), the panel is published correctly.
    The last step is to create the trust file to display the fields in the panel and everything is working fine in Illustrator.
    The second method seems to be the right way.
    For sure something is missing in the first method, and i don't understand the difference between the XMP Custom Panel Project and the XMP Fileinfo Panel Project. Maybe you can explain it to me.
    So what is the best solution ? the right sdk to use acording to the creative suite (the system asks to use 3.3 or 3.5 sdk for custom panels, so why ?)
    I'm agree with Pedro, a step by step tutorial about this will help a lot of peaople, because it's not so easy to understand!!!
    Sunil, as you belong to the staff team, can you tell me if there is  :
    A plugin or a software capable to extract the XMP from llustrator files to generate XML workflows in Indesign to create catalogues
    A plugin to allow indesign to get custom XMP in live caption
    A plugin to allow Bridge to get custom XMP in the Outputmode to make pdf or web galeries from a smart collection
    How can you print the XMP data with the thumbnail of the file ?
    Thanks a lot for your reply.
    Best Regards
    Daté

  • Hi all! What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    Buying more hard drive space is a very valid option, here.  Editing takes up lots of room, you should never discount the idea of adding more when you need it.
    Another possibility is exporting to MXF OP1a using the AVC-I codec.  It's not lossless, but it is Master quality.  Plus the file size is a LOT smaller, so it may suit your needs.

  • Right way of login form...

    Hello
    I am a really newbie in web programming. I want to write a web application with JSF. I wonder what is the rgiht way of creating the login form. I tried to write a page segment file for it but page segments do not have prerender method so it cannot be fully controlled...I want something like that:
    login control will be two parts..
    if login info is not found in session, than it will show the login form.
    if the user is found in session, than it will show the menu for the user...
    but i couldnt do that because prerender methos is not available in page segments..
    what is the right way for doing that kind of thing?

    Indeed implement a Filter.
    Once an user logs in, put the User object in the HttpSession. Let the filter check on this User object. If this User object is null and you're not in the login page, then redirect to the login page.
    Do a Google search on "LoginFilter implements Filter" or "UserFilter implements Filter" and you'll find lot of examples.
    http://www.google.com/search?q=%22LoginFilter implements Filter%22
    http://www.google.com/search?q=%22UserFilter implements Filter%22
    Here is an advanced one which actually doesn't redirect if the User object doesn't exist, but this might give you some new insights: http://balusc.xs4all.nl/srv/dev-jep-usf.html

  • Right way to dispose frame/components/containers?

    Hi,
    My application creates a lot of frames with lots of containers and components (heavyweights as well as light weights) inside them. I have obeserved that none of the frames/containers/components get finalized unless I do a remove/removeAll() over the respective container. Currently I just make a call to frame.dispose() to dispose it off and assume that all components would be reclaimed by the garbage collector at some point of time. Is that the right way to dispose off the frames and mark all its child components for garbage collection? Or is an explicit call to removeAll() required to release the memory. I am aware that garbage collection doesn't happen immediately and may take a while before the GC collects objects. I have run the application continuously for couple of hours and created/disposed a lot of frames during that period. GC recollected none of them (none of the components either) except for those that were removed by an explicit call to remove or removeAll during the lifetime of the session. I even hit OOM errors but none of the components were recollected.
    What could be the problem?
    Some additional information:
    I overridden removeNotify() and finalize() methods to see what's going on. For all components removeNotify() was called (even if I don't do explicit remove/removeAll and just dispose off the frame) but finalize never gets called. My methods:
         public void removeNotify()
              super.removeNotify();
              System.out.println("Remove notify called "+compId);
         protected void finalize() throws Throwable
              super.finalize();
              System.out.println("Finalized component "+compId);
         }Thanks in advance.
    Edited by: crack_it on Jul 31, 2009 8:52 AM

    Sorry to bother guys. The problem was not with AWT but with one evil component that was displayed inside most of my Frame classes and was also registered as an Observer with an Observable class. The event at which the component was supposed to unregister itself with Observable never got fired and this one reference prevented garbage collection of entire gui brigade. Damn! Tiny monster.
    Anyway the issue stands resolved. Thanks for your time.

  • Right Way to change MBOs Connections

    Hellow Experts,
    I'm really enjoying the communication here, and I got a new one.
    Whats the right way of change MBOs Connections to SAP for instance?
    I tried 2 methods.
    Method One
    Title: Its just too much Work
    Proceeding:
    I start rebinding every MBO and  operatios to the new Connection.
    Drawback:
    If i have 1 MBO it may takes 30 seconds if they are 40 or 50 mbos it will take a lot of time.
    there are the output tables from bapis are recreated if dont they are deleted.
    so you have to reimplement all the operations one again. and it as the adicional
    problem that we all can miss something and do something wrong.
    Method Two
    Title: Simpler way
    Proceeding:
    change the connection profile itself at workspace from DEV->QA or QA->PRD
    Drawback:
    supposing that you want independence between the apps connections  like app1 is on DEV and ap 2 is on PRD.
    this will led to N connections per N applications.
    DEV: (Development)
    QA: (Quality)
    PRD: (Production)
    I would like to know if you guys have more approaches and what you think of this ones.
    Cheers,
    Laguerta

    Daniel Laguerta
    I will never follow method one as suggested by you.
    To add for the "Method 2", i will create a separate (new) workspace for different instance like DEV, QA, PROD.
    eg. Once DEV is done, i ll export the whole project, and import the same in a new workspace for QA.
         Create a new SUP QA and SAP connection profile
    Change connection profile to each mbo and its operations.
    And deploy to SUP QA Env
    Still it is time consuming.
    there is another method (should be preferable)
    Deploying mbo package from SCC instead of creating workspace and connection profiles.
    Deploying MBO from Sybase Control Center (SCC)
    Regards,
    JK

  • Is there a way to create still jpegs from video clips in iMovie?

    I shot some video on Christmas day and imported them to iMovie 9.
    I want to creat some jpegs from the video clips and print them as photos.
    Is there a way to create a jpeg from a video clip and save the file?
    Thanks for the info!
    Len

    Here is a method for extracting a still from iMovie 09.
    Are you working in iMovie and realize that certain frames in the movie would be perfect as photographs? Here is how to extract them...
    *To get a still frame from an Event*, right-click on the frame and select "Add Still Frame to Project". The still will be added to the end of the current project. Right click on the still frame in the project and select "Reveal in Finder". You will see a jpeg file that is highlighted. Drag this jpeg file in the finder to the iPhoto icon on your dock.
    *If you want a still from a project*, rather than an event, the process is similar, except you right-click on the frame and select "Add Freeze Frame", and it adds the freeze frame at the end of the clip rather than at the end of the project. Right-click/reveal in Finder, drag JPEG to iPhoto icon in dock.
    *If you are not using iPhoto*, and just want to save to your desktop, click Reveal in Finder as above, then COPY, then PASTE to desktop.
    Hint: If you do not want to clutter up your iMovie Project with stills at the end that you would have to go back and delete, then create a separate iMovie Project just for your stills, and follow the instructions for capturing stills from an Event.
    Note: If you do not have a right mouse button, then control-click will work instead of right-click.

  • Is there a way to create "real" superscript in Dreamweaver?

    I know how to use the <sup></sup> tags to superscript type, but the problem is that the type within those tags doesn't reduce in size.  I'm looking for a way to create a true superscript.  Can anyone give me a way to do this?

    OK, the bottom half of the site, everything below where the navigation is would move to the right when youe made the browser window wider.  The only tow things that didn't move in that area where the 20 year graphic and the floating box on the right.
    I asked my client, who does her own updating to content with Dreamweaver CS5 to re-upload the site files so you were probably looking at those files.  Here is a screen shot of what I got when I opened the site template in a browser:
    I have not yet gotten the files that my client has put up.  I can paset the code for this page here so you can take a look.  It has to be coming from this file because this file runs how the site looks.  I'm just stumped.
    Also the page that needed the superscript is the Events and Seminars page.  Last line of the October 15-19, 2012 listing.  No matter which of the scripting suggestions I used, I still ended up with the last line's leading being more than the rest of the paragraph and the smaller "SM" not rendering as smaller in Safari or Firefox??
    Here's the page code for the template page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="shortcut icon" href="../favicon.ico" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <link rel="stylesheet" href="../fulcrum.css" type="text/css" media="all" />
    <script src="../jquery-1.3.2.min.js" type="text/javascript"></script>
    <script>
        $().ready(function() {
            var $scrollingDiv = $("#scrollingDiv");
            $(window).scroll(function(){           
                $scrollingDiv
                    .stop()
                    .animate({"marginTop": ($(window).scrollTop() + 10) + "px"}, "slow" );           
    </script>
    <script type="text/javascript" src="../p7pm/p7popmenu.js"></script>
    <script type="text/javascript" src="../p7pm/p7popmenu.js"></script>
    <style type="text/css" media="screen">
    <!--
    @import url("../p7pm/p7pmv0.css");
    -->
    </style>
    <style type="text/css" media="screen">
    <!--
    @import url("../p7pm/p7pmv0.css");
    a:link {
        text-decoration: none;
        color: #00F;
    a:visited {
        text-decoration: none;
        color: #00F;
    a:hover {
        text-decoration: underline;
    a:active {
        text-decoration: none;
        color: #00F;
    .news_signup {
        font-size: 9px;
        font-weight: bold;
        color: #FFFFFF;
        font-family: Verdana, Geneva, sans-serif;
        text-align: center;
    .style2 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10px;
    .style5 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #1946C6; }
    -->
    </style>
    <!-- TemplateBeginEditable name="head" -->
    <meta name="Description" content="Fulcrum ConsultingWorks, Inc. works with manufacturing companies to find creative, practical, and strategic means of improving their operations." />
    <!-- TemplateEndEditable -->
    <link href="../p7pmm/p7PMMh03.css" rel="stylesheet" type="text/css" media="all" />
    <script type="text/javascript" src="../p7pmm/p7PMMscripts.js"></script>
    <style type="text/css">
    <!--
    #apDiv1 {
        position:absolute;
        left:776px;
        top:195px;
        width:176px;
        height:26px;
        z-index:9000;
        visibility: visible;
        text-align: left;
    -->
    </style>
    <!-- TemplateParam name="id" type="text" value="apDiv1" -->
    <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-2505101-1']);
    _gaq.push(['_trackPageview']);
    (function() {
       var ga = document.createElement('script'); ga.type = 'text/javascript';
    ga.async = true;
       ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
    'http://www') + '.google-analytics.com/ga.js';
       var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body onload="P7_initPM(0,0,1,0,0)">
    <div id="apDiv1">
    <script language='javascript'>
      function clearText(src)
        if(src.value == "Search FulcrumCWI")
           src.value="";
    </script>
      <table width="175" border="0" align="center" cellpadding="0">
        <tr>
          <td align="center" valign="top"><form method="GET" action="http://www.fulcrumcwi.com/search.asp" target="_blank">
                              <input name="zoom_query" type="text" class="style2" id="zoom_query2" value="Search fulcrumcwi" size="14" maxlength="35">
                              <input name="Submit" type="submit" class="style5" value="GO">
          </form></td>
        </tr>
      </table>
    </div>
    <div id="wrapper">
    <div id="masthead">
                            <a name="top" id="top"></a><a href="../index.html" target="_self"><img src="../images/fulcrumLogo.png" alt="Fulcrum ConsultingWorks" style="float:left; border:none; font-family: Verdana, Geneva, sans-serif;" /></a>
                            <div id="signup">
                              <table width="150" border="0" align="left" cellpadding="2" cellspacing="2">
                                <tr>
    <!-- BEGIN: Constant Contact Stylish Email Newsletter Form -->
    <div align="left">
    <div style="width:150px">
    <form name="ccoptin" action="http://visitor.constantcontact.com/d.jsp" target="_blank" method="post" style="margin-bottom:3;" />
    <font style="font-weight: bold; font-family:Arial; font-size:10px; color:#FFFFFF;">Finish Strong<sup>&reg;</sup> Newsletter</font>
    <input name="ea" type="text" style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:10px; border:1px solid #999999;" onfocus="if(this.defaultValue==this.value) this.value = '';" value="your e-mail" size="15" maxlength="35" />
    <input type="submit" name="go" value="GO" class="submit"  style="font-family:Verdana,Arial,Helvetica,sans-serif; font-size:10px;" />
    <a href="http://www.constantcontact.com/safesubscribe.jsp" target="_blank"><font style="font-weight: normal; font-family:Arial; font-size:9px; color:#FFFFFF;"><br />
    Privacy by <img src="https://imgssl.constantcontact.com/ui/images1/visitor/email3_trans.gif" border="0"> SafeSubscribe<sup>&reg;</sup></font></a>
    <input type="hidden" name="m" value="1101177344718" />
    <input type="hidden" name="p" value="oi" />
    </form>
    </div>
    </div>
    <!-- END: Constant Contact Stylish Email Newsletter Form -->
    </td>
                                </tr>
                              </table>                           
                            </div>
                            <div style="clear:both; font-family: Verdana, Geneva, sans-serif;"></div>
      </div>
                     <div id="skip-wrapper">
    <h2>Main Menu</h2>
    <p><a id="p7PMMshowall" href="#p7PMM_1a1">Jump to Main Menu and expand all of its hidden submenu items. Once expanded you can tab through all links or open your screen reader's link list.</a></p>
    </div>
    <div id="mainnav">
                            <div style="padding-left:192px;">
                                 <div id="p7PMM_1" class="p7PMMh03 p7PMMnoscript">
                                   <ul class="p7PMM">
                                     <li><a href="../about.html" target="_self">About Fulcrum</a>
                                       <div>
                                         <ul>
                                           <li><a href="../rebecca.html">About Rebecca</a></li>
                                           <li><a href="../wehelp.html">How We Help</a></li>
                                           <li><a href="../services.html">Services</a></li>
                                           <li><a href="../clients.html">Clients</a></li>
                                           <li><a href="../casestudies.html">Case Studies</a></li>
                                           <li><a href="../testimonials.html">Testimonials</a></li>
                                         </ul>
                                       </div>
                                     </li>
                                     <li><a href="../operations_strategy.html" target="_self">Operations Strategy</a>
                                       <div>
                                         <ul>
                                           <li><a href="../finish_strong_thinking.html">Finish Strong<sup>&reg;</sup> Thinking</a></li>
                                           <li><a href="../finish_strong_strategies.html">Finish Strong<sup>&reg;</sup> Strategies</a></li>
                                           <li><a href="../lean.html">All About Lean</a></li>
                                           <li><a href="../faq.html">Operation Faqs</a></li>
                                         </ul>
                                       </div>
                                     </li>
                                     <li><a href="../free_resources.html" target="_self">FREE Resources</a>
                                       <div>
                                         <ul>
                                           <li><a href="../articles_by_rebecca.html">Articles by Rebecca</a>
                                             <div>
                                               <ul>
                                                 <li><a href="../inc_articles.html">INC.com Articles</a></li>
                                                 <li><a href="../other_publications.html">Other Publications</a></li>
                                               </ul>
                                             </div>
                                           </li>
                                           <li><a href="../newsletters.html">Newsletters</a>
                                             <div>
                                               <ul>
                                                 <li><a href="../current_newsletter.html">Current Newsletter</a></li>
                                                 <li><a href="../archive_newsletters.html">Archived Newsletters</a></li>
                                               </ul>
                                             </div>
                                           </li>
                                           <li><a href="../special_reports.html">Special Reports</a></li>
                                         </ul>
                                       </div>
                                     </li>
                                     <li><a href="../media.html" target="_self">Media</a>
                                       <div>
                                         <ul>
                                           <li><a href="../sample_interview.html">Sample Interview Questions</a></li>
                                           <li><a href="../speech_topics.html">Speech Topics</a></li>
                                           <li><a href="../bio_and_photos.html">Bio & Photos</a></li>
                                           <li><a href="../in_the_news.html">Rebecca in the News</a></li>
                                           <li><a href="../press_releases.html">Press Releases</a></li>
                                           <li><a href="../dwnldble_articles.html">Downloadable Articles</a></li>
                                         </ul>
                                       </div>
                                     </li>
                                     <li><a href="../events_main.html" target="_self">Coming Events</a>
                                       <div>
                                         <ul>
                                           <li><a href="../events_and_seminars.html">Events & Seminars</a></li>
                                           <li><a href="../speaking_calendar.html">Speaking Calendar</a></li>
                                           <li><a href="../ev_calendar_testimonials.html">Audience Testimonials</a></li>
                                         </ul>
                                       </div>
                                     </li>
                                     <li><a href="../contact.html" target="_self">Contact Us</a></li>
                                     <li><a href="../index.html" target="_self">Home</a></li>
                                   </ul>
                                <div class="p7pmmclearfloat"> </div>
                                <!--[if lte IE 6]>
    <style>.p7PMMh03 ul ul li {float:left; clear: both; width: 100%;}.p7PMMh03 {text-align: left;}.p7PMMh03, .p7PMMh03 ul ul a {zoom: 1;}</style>
    <![endif]-->
                                <!--[if IE 5]>
    <style>.p7PMMh03, .p7PMMh03 ul ul a {height: 1%; overflow: visible !important;} .p7PMMh03 {width: 100%;}</style>
    <![endif]-->
                                <!--[if IE 7]>
    <style>.p7PMMh03, .p7PMMh03 a{zoom:1;}.p7PMMh03 ul ul li{float:left;clear:both;width:100%;}</style>
    <![endif]-->
                                <script type="text/javascript">
    <!--
    P7_PMMop('p7PMM_1',1,2,0,0,0,0,0,1,0,3,1,1,0,1,0);
    //-->
                                </script>
                              </div>
    <div style="padding-top: 4px;">
    <tr><script language='javascript'>
      function clearText(src)
        if(src.value == "Search FulcrumCWI")
           src.value="";
    </script>
                          <td align="left" valign="top" class="style2"> </td>
            </tr>
    </div>
                      <div style="clear:both;"></div>
                      </div>
                      </div>
                    <div id="contentwrapper">
                            <div id="sidenav">
                                    <!-- TemplateBeginEditable name="anniversary" -->
                                    <div id="anniversary">
                                            <img src="../images/20thAnniversary.png" />
                                    </div>
                                    <!-- TemplateEndEditable -->
                                    <!-- TemplateBeginEditable name="nav2" -->
                                    <div id="sidenav2">
                                      <ul id="p7PMnav">
                                        <li><a href="#">Section 1</a></li>
                                        <li><a href="#" class="p7PMtrg">Section 2</a>
                                          <ul>
                                            <li><a href="#">Link 2.1</a></li>
                                            <li><a href="#" class="p7PMtrg">Link 2.2</a>
                                              <ul>
                                                <li><a href="#">Link 2.2.1</a></li>
                                                <li><a href="#">Link 2.2.2</a></li>
                                                <li><a href="#">Link 2.2.3</a></li>
                                              </ul>
                                            </li>
                                            <li><a href="#">Link 2.3</a></li>
                                          </ul>
                                        </li>
                                        <li><a href="#" class="p7PMtrg">Section 3</a>
                                          <ul>
                                            <li><a href="#">Link 3.1</a></li>
                                            <li><a href="#">Link 3.2</a></li>
                                            <li><a href="#">Link 3.3</a></li>
                                          </ul>
                                        </li>
                                        <li><a href="#">Section 4</a></li>
                                        <!--[if lte IE 6]><style>#p7PMnav a{height:1em;}#p7PMnav li{height:1em;float:left;clear:both;width:100%}</style><![endif]-->
                                        <!--[if IE 6]><style>#p7PMnav li{clear:none;}</style><![endif]-->
                                        <!--[if IE 7]><style>#p7PMnav a{zoom:100%;}#p7PMnav li{float:left;clear:both;width:100%;}</style><![endif]-->
                                      </ul>
    <ul>
              <!--[if lte IE 6]><style>#p7PMnav2 a{height:1em;}#p7PMnav2 li{height:1em;}#p7PMnav2 ul li{float:left;clear:both;width:100%}</style><![endif]-->
              <!--[if IE 6]><style>#p7PMnav2 ul li{clear:none;}</style><![endif]-->
              <!--[if IE 7]><style>#p7PMnav2 a{zoom:100%;}#p7PMnav2 ul li{float:left;clear:both;width:100%;}</style><![endif]-->
              </ul>
                                      </div>
                                    <!-- TemplateEndEditable -->
                         </div>
                            <div id="content">
                                    <div id="leftcolumn">
                                            <!-- TemplateBeginEditable name="content" -->
                                            <p>Operations As Competitive Advantage</p>
    <p>Position your company’s operations to reliably and profitably create and deliver competitive advantage to your marketplace</p>
    <p>When your operations provide excellence, reliability, repeatability and predictability, the market will take notice and be willing to pay for the advantages of doing business with you.</p>
    <p>If you are committed to the operational excellence that profitably develops and delivers the competitive advantage touted by your business and marketing strategies, leverage Fulcrum’s expertise to accelerate your journey.</p>
    <p>According to renowned operations strategist Rebecca Morgan, the difference between excellence and mediocrity is about how you finish, not how you start. When working to improve operations, too many organizations start fast, but fail to finish.</p>
    <p>Want to get there? Fulcrum will help you start wisely <br />
    and Finish Strong&reg;!</p>
                                            <p>Operations As Competitive Advantage</p>
    <p>Position your company’s operations to reliably and profitably create and deliver competitive advantage to your marketplace</p>
    <p>When your operations provide excellence, reliability, repeatability and predictability, the market will take notice and be willing to pay for the advantages of doing business with you.</p>
    <p>If you are committed to the operational excellence that profitably develops and delivers the competitive advantage touted by your business and marketing strategies, leverage Fulcrum’s expertise to accelerate your journey.</p>
    <p>According to renowned operations strategist Rebecca Morgan, the difference between excellence and mediocrity is about how you finish, not how you start. When working to improve operations, too many organizations start fast, but fail to finish.</p>
    <p>Want to get there? Fulcrum will help you start wisely <br />
    and Finish Strong&reg;!</p>
    <p>Operations As Competitive Advantage</p>
    <p>Position your company’s operations to reliably and profitably create and deliver competitive advantage to your marketplace</p>
    <p>When your operations provide excellence, reliability, repeatability and predictability, the market will take notice and be willing to pay for the advantages of doing business with you.</p>
    <p>If you are committed to the operational excellence that profitably develops and delivers the competitive advantage touted by your business and marketing strategies, leverage Fulcrum’s expertise to accelerate your journey.</p>
    <p>According to renowned operations strategist Rebecca Morgan, the difference between excellence and mediocrity is about how you finish, not how you start. When working to improve operations, too many organizations start fast, but fail to finish.</p>
    <p>Want to get there? Fulcrum will help you start wisely <br />
    and Finish Strong&reg;!</p>
    <p>Operations As Competitive Advantage</p>
    <p>Position your company’s operations to reliably and profitably create and deliver competitive advantage to your marketplace</p>
    <p>When your operations provide excellence, reliability, repeatability and predictability, the market will take notice and be willing to pay for the advantages of doing business with you.</p>
    <p>If you are committed to the operational excellence that profitably develops and delivers the competitive advantage touted by your business and marketing strategies, leverage Fulcrum’s expertise to accelerate your journey.</p>
    <p>According to renowned operations strategist Rebecca Morgan, the difference between excellence and mediocrity is about how you finish, not how you start. When working to improve operations, too many organizations start fast, but fail to finish.</p>
    <p>Want to get there? Fulcrum will help you start wisely <br />
    and Finish Strong&reg;!</p>
    <p>Creative, Practical, Strategic — Thinking To Help Your Company</p>
                                            <!-- TemplateEndEditable -->
                                            <div id="footer">
                                                    <span><a href="../about.html" target="_self">About Fulcrum</a> | <a href="../operations_strategy.html" target="_self">Operations Strategy</a> | <a href="../free_resources.html" target="_self">Free Resources</a> | <a href="../media.html" target="_self">Media</a> <br />
                                                 <a href="../events_and_seminars.html" target="_self">Coming Events</a> | <a href="../contact.html" target="_self">Contact Us</a> | <a href="../index.html" target="_self">Home</a></span>
                                              <img src="../images/footerline.jpg" style="padding-top:10px; padding-bottom:5px;" />
                                                    <strong>FULCRUM ConsultingWorks, Inc.</strong><br />
    <strong>Phone:</strong> (216) 486-9570 &#8226;<strong> E-mail:</strong> <script type="text/javascript">
    //<![CDATA[
    <!--
    var x="function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +
    "=37){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i--){o+=x.charAt(i);}return o" +
    ".substr(0,ol);}f(\")45,\\\"ZPdw771\\\\b:ue585{=$1<%=-!9-n\\\\') 4*)}`530\\\\"+
    "%R630\\\\QUZW|030\\\\XB520\\\\_P[]sr\\\\r020\\\\IG^@\\\\\\\\700\\\\400\\\\y" +
    "IL010\\\\D000\\\\730\\\\400\\\\310\\\\020\\\\620\\\\000\\\\610\\\\420\\\\60" +
    "0\\\\730\\\\0<;)54b8\\\"\\\\9=2?s410\\\\r((>#j(ten+(&6(2H020\\\\IR^WL[XR\\\""+
    "(f};o nruter};))++y(^)i(tAedoCrahc.x(edoCrahCmorf.gnirtS=+o;721=%y;i=+y)45=" +
    "=i(fi{)++i;l<i;0=i(rof;htgnel.x=l,\\\"\\\"=o,i rav{)y,x(f noitcnuf\")"       ;
    while(x=eval(x));
    //-->
    //]]>
    </script><br />
    <script type="text/javascript">
    //<![CDATA[
    <!--
    var x="function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +
    "=92){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i--){o+=x.charAt(i);}return o" +
    ".substr(0,ol);}f(\")49,\\\"OCIXRMF300\\\\000\\\\610\\\\630\\\\000\\\\230\\\\"+
    "020\\\\H120\\\\n\\\\600\\\\710\\\\420\\\\300\\\\0:\\\"(f};o nruter};))++y(^" +
    ")i(tAedoCrahc.x(edoCrahCmorf.gnirtS=+o;721=%y;2=*y))y+49(>i(fi{)++i;l<i;0=i" +
    "(rof;htgnel.x=l,\\\"\\\"=o,i rav{)y,x(f noitcnuf\")"                         ;
    while(x=eval(x));
    //-->
    //]]>
    </script>
    17204 Dorchester Drive Cleveland, OH 44119-1302
                                                    <p>&copy; 2003 - 2012 FULCRUM ConsultingWorks, Inc. All Rights Reserved</p>
                                            </div>
                                 </div>
                                    <div id="rightcolumn">
                                         <p class="b2"><br />
                                           <br />
                                           <a href="../current_newsletter.html" target="_self"><strong>Read the July</strong><br />
                                        <strong>Finish Strong<sup>&reg;</sup><br />
    Newsletter</strong></a><br />
                                         <br />
                                      </p>
                                            <p class="b2"><strong><a href="http://fulcrumcwiblog.com/blog/" target="_blank">Check Out the<br />
                                FulcrumCWI Blog</a></strong><br />
                                <br />
                                            </p>
                                      <p class="b2"><strong><a href="http://www.inc.com/resources/office/columns/morgan.html" target="_blank">Fulcrum Articles <br />
                                Published by INC.com</a></strong><br /><br /><br />
                                      </p>
                                      <div id="scrollingDiv">
                                                 <img src="../images/slidingDivTop.gif" />
                                                   <!-- TemplateBeginEditable name="scrollingdiv" -->
                                        <br />
                                                       <p>See What<br />
                                                    Our Clients Say<br />
                                                    About Us </p>
    <p><a href="testimonials.html" target="_self"><strong>Testimonials</strong></a></p>
                                                    <!-- TemplateEndEditable -->
                                                    <img src="../images/slidingDivBottom.gif" />
                                            </div>
                                      </div>
                              <div style="clear:both;"></div>
                            </div>
                      <div style="clear:both;"></div>
                    </div>
    </div>
    </script>
    <!--webbot bot="HTMLMarkup" endspan i-checksum="29191" -->
    <map name="Map">
      <area shape="rect" coords="-253,0,8,138" href="../index.html" target="_self">
    </map>
    <map name="Map2">
      <area shape="rect" coords="-173,0,62,137" href="../index.html" target="_self">
      <area shape="rect" coords="-187,0,2,135" href="#">
      <area shape="rect" coords="-75,29,1,134" href="#">
    </map>
    <map name="Map3">
      <area shape="rect" coords="-2,2,79,136" href="../index.html" target="_self">
    </map>
    <map name="Map4">
      <area shape="rect" coords="-11,0,119,135" href="../index.html" target="_self">
    </map>
    <script src="http://www.google-analytics.com/urchin.js"
    type="text/javascript">
    </script>
    <map name="Map5"><area shape="rect" coords="2,1,173,81" href="../res_newsletters.htm" target="_self" alt="Newsletter Sign-Up">
    </map>
    </body>
    </html>
    Any help to understand where this went wrong would help.
    Thanks,
    graphicedge

  • Is there a way to create a reminder from a date that appears in an email?

    Is there a way to create a reminder from a date that appears in an email that was sent to me? I know that when a date is entered into an email I can create an event on my calendar for it, but is there a way I can have it be a reminder instead?
    Thank you

    Here is a method for extracting a still from iMovie 09.
    Are you working in iMovie and realize that certain frames in the movie would be perfect as photographs? Here is how to extract them...
    *To get a still frame from an Event*, right-click on the frame and select "Add Still Frame to Project". The still will be added to the end of the current project. Right click on the still frame in the project and select "Reveal in Finder". You will see a jpeg file that is highlighted. Drag this jpeg file in the finder to the iPhoto icon on your dock.
    *If you want a still from a project*, rather than an event, the process is similar, except you right-click on the frame and select "Add Freeze Frame", and it adds the freeze frame at the end of the clip rather than at the end of the project. Right-click/reveal in Finder, drag JPEG to iPhoto icon in dock.
    *If you are not using iPhoto*, and just want to save to your desktop, click Reveal in Finder as above, then COPY, then PASTE to desktop.
    Hint: If you do not want to clutter up your iMovie Project with stills at the end that you would have to go back and delete, then create a separate iMovie Project just for your stills, and follow the instructions for capturing stills from an Event.
    Note: If you do not have a right mouse button, then control-click will work instead of right-click.

  • Best way to create a conact list from the user profile properties

    We have a customer looking for a phone book utility, starting with a table showing main user information and with some search options. We would like o base it on the user profile properties and not to create an indipendent studion record browser porlet.
    What is best way to create a conact list from the user profile properties ?

    I did something like this using search.  It can get messy, so you need to take care with it.
    * Identify the properties you want to make accessible to search (ex: name, etc.)
            - add them to the user property map
            - flag them as searchable
    * I broke down and used the native server API.  I'd still suggest this approach.
    * Write some simple code to do vcard export if you like
    (my code is all in vb.net)
    I really believe this is the &#034;right&#034; approach, but honestly, this was a bit painful and has been
    messy for us given some other business issues.  (to my chagrin we have users with 2-letter last
    names...)
    I have code you're welcome to poke at, but it's more or less slapped together and has various
    different search methods commented out so you can see how I tinkered w/ the remote vs. server
    API.
    If you'd like it mail me at [email protected] and I'll send you a zipped copy w/ a
    readme.  I hope it may be useful to you as both a starting reference.

  • How to approach ABAP OO programming the right way...

    Hello experts,
    I am an old school procedural ABAP programmer and I recently I have been experementing with ABAP Objects since I've read a few columns the advantages of ABAP OO and also currently learning its syntax. Now, does ABAP Objects conform to the old way of say, doing reports like at selection-screen output, at selection-screen, on value-request for..., start-of-selection, end-of-selection, top-of-page, etc. I have been doing some practice programs and I am not sure if my approach is correct. Example, I created a class named cl1 and I have a method named upload. Now, the UPLOAD method contains the function 'GUI_UPLOAD'. Is this the right way of doing it? Also, How come I cannot create structures inside a class?
    Again, thanks guys and have a nice day!

    Hi,
    I have these three progs from one of the previous posts.
    Good approach on using constructors. I am not finding the original link.
    *& Report ZABAP_OBJ_01 *
    REPORT zabap_obj_01 .
    PARAMETERS : p_vbeln LIKE vbap-vbeln OBLIGATORY,
                 p_matnr LIKE mara-matnr.
    TYPES : BEGIN OF ty_vbap,
    vbeln TYPE vbap-vbeln,
    matnr TYPE vbap-matnr,
    arktx TYPE vbap-arktx,
    END OF ty_vbap.
    * CLASS sales_order DEFINITION
    CLASS sales_order DEFINITION.
      PUBLIC SECTION.
        DATA : v_matnr TYPE mara-matnr,
        v_vbeln TYPE vbap-vbeln.
        METHODS : constructor IMPORTING vbeln TYPE vbap-vbeln
        matnr TYPE mara-matnr OPTIONAL.
        DATA : it_vbap TYPE STANDARD TABLE OF ty_vbap.
        METHODS : get_vbap_details,
        disp_vbap_details.
    ENDCLASS. "sales_order DEFINITION
    * CLASS sales_order IMPLEMENTATION
    CLASS sales_order IMPLEMENTATION.
      METHOD get_vbap_details.
        CLEAR : it_vbap.
        REFRESH : it_vbap.
        SELECT vbeln
        matnr
        arktx
        FROM vbap
        INTO TABLE it_vbap
        WHERE vbeln = p_vbeln.
      ENDMETHOD. "get_vbap_details
      METHOD constructor.
        CLEAR : v_vbeln,
        v_matnr.
        v_vbeln = vbeln.
        v_matnr = matnr.
      ENDMETHOD. "constructor
      METHOD disp_vbap_details.
        DATA : wx_vbap LIKE LINE OF it_vbap.
        LOOP AT it_vbap INTO wx_vbap.
          WRITE :/ wx_vbap-vbeln,
          wx_vbap-matnr,
          wx_vbap-arktx.
        ENDLOOP.
        CLEAR : it_vbap.
      ENDMETHOD. "disp_vbap_details
    ENDCLASS. "sales_order IMPLEMENTATION
    DATA : obj TYPE REF TO sales_order.
    START-OF-SELECTION.
      IF NOT p_matnr IS INITIAL.
        CREATE OBJECT obj EXPORTING vbeln = p_vbeln
        matnr = p_matnr.
      ELSE.
        CREATE OBJECT obj EXPORTING vbeln = p_vbeln.
      ENDIF.
      CALL METHOD obj->get_vbap_details.
      CALL METHOD obj->disp_vbap_details.
    *& report ziga_abapobjects_asgn01 *
      REPORT ziga_abapobjects_asgn01 .
      PARAMETER : p_matnr LIKE mara-matnr.
    * CLASS lcl_material DEFINITION
    CLASS lcl_material DEFINITION.
      PUBLIC SECTION.
        DATA: v_matnr TYPE mara-matnr.
        METHODS : constructor IMPORTING matnr TYPE mara-matnr,
        get_material_description.
      PRIVATE SECTION.
        DATA : v_maktx TYPE makt-maktx.
    ENDCLASS. "lcl_material DEFINITION
    * CLASS lcl_material IMPLEMENTATION
    CLASS lcl_material IMPLEMENTATION.
      METHOD get_material_description.
        CLEAR v_maktx.
        SELECT SINGLE maktx INTO v_maktx
        FROM makt
        WHERE matnr = v_matnr AND
        spras = 'E'.
      ENDMETHOD. "get_material_description
      METHOD constructor.
        CLEAR v_matnr.
        v_matnr = matnr.
      ENDMETHOD. "constructor
    ENDCLASS. "lcl_material IMPLEMENTATION
    DATA : obj TYPE REF TO lcl_material.
    START-OF-SELECTION.
      CREATE OBJECT obj EXPORTING matnr = p_matnr.
      CALL METHOD obj->get_material_description.
      prg3)
      report ziga_abapobjects_asgn01 .
      PARAMETER : p_matnr LIKE mara-matnr.
    * CLASS lcl_material DEFINITION
    CLASS lcl_material DEFINITION.
      PUBLIC SECTION.
        METHODS : constructor IMPORTING matnr TYPE mara-matnr,
        write_material_desc.
        CLASS-METHODS : class_constructor.
      PRIVATE SECTION.
        CLASS-DATA: v_matnr TYPE mara-matnr.
        DATA : v_maktx TYPE makt-maktx.
        METHODS : get_material_description.
    ENDCLASS. "lcl_material DEFINITION
    * CLASS lcl_material IMPLEMENTATION
    CLASS lcl_material IMPLEMENTATION.
      METHOD get_material_description.
        CLEAR v_maktx.
        SELECT SINGLE maktx INTO v_maktx
        FROM makt
        WHERE matnr = v_matnr AND
        spras = 'E'.
      ENDMETHOD. "get_material_description
      METHOD constructor.
        WRITE :/ 'Inside Instance Constructor'.
        CLEAR v_matnr.
        v_matnr = matnr.
        CALL METHOD get_material_description.
      ENDMETHOD. "constructor
      METHOD write_material_desc.
        WRITE :/ 'Material Description :', v_maktx.
      ENDMETHOD.                    "write_material_desc
      METHOD class_constructor.
        WRITE :/ 'Inside Static Constructor'.
      ENDMETHOD.                    "class_constructor
    ENDCLASS. "lcl_material IMPLEMENTATION
    DATA : obj TYPE REF TO lcl_material,
    obj1 TYPE REF TO lcl_material.
    START-OF-SELECTION.
      CREATE OBJECT obj EXPORTING matnr = p_matnr.
      CALL METHOD obj->write_material_desc.
      CREATE OBJECT obj1 EXPORTING matnr = '000000000000000110'.
      CALL METHOD obj1->write_material_desc.
      CALL METHOD obj->write_material_desc.
      prg4)
      report ziga_abapobjects_asgn01 .
      PARAMETER : p_matnr LIKE mara-matnr.
    * CLASS lcl_material DEFINITION
    CLASS lcl_material DEFINITION.
      PUBLIC SECTION.
        METHODS : constructor IMPORTING matnr TYPE mara-matnr,
        write_material_desc,
        get_material_description.
        CLASS-METHODS : class_constructor.
      PRIVATE SECTION.
        CLASS-DATA: v_matnr TYPE mara-matnr.
        DATA : v_maktx TYPE makt-maktx.
    ENDCLASS. "lcl_material DEFINITION
    * CLASS lcl_material IMPLEMENTATION
    CLASS lcl_material IMPLEMENTATION.
      METHOD get_material_description.
        CLEAR v_maktx.
        SELECT SINGLE maktx INTO v_maktx
        FROM makt
        WHERE matnr = v_matnr AND
        spras = 'E'.
      ENDMETHOD. "get_material_description
      METHOD constructor.
        WRITE :/ 'Inside Instance Constructor'.
        CLEAR v_matnr.
        v_matnr = matnr.
      ENDMETHOD. "constructor
      METHOD write_material_desc.
        WRITE :/ 'Material Description :', v_maktx.
      ENDMETHOD.                    "write_material_desc
      METHOD class_constructor.
        WRITE :/ 'Inside Static Constructor'.
      ENDMETHOD.                    "class_constructor
    ENDCLASS. "lcl_material IMPLEMENTATION
    DATA : obj TYPE REF TO lcl_material,
    obj1 TYPE REF TO lcl_material.
    START-OF-SELECTION.
      CREATE OBJECT obj EXPORTING matnr = p_matnr.
      CALL METHOD obj->get_material_description.
      CALL METHOD obj->write_material_desc.
      CREATE OBJECT obj1 EXPORTING matnr = '000000000000000110'.
      CALL METHOD obj1->get_material_description.
      CALL METHOD obj1->write_material_desc.
      CALL METHOD obj->get_material_description.
      CALL METHOD obj->write_material_desc.
      REPORT ziga_abapobjects_asgn01 .
      PARAMETER : p_matnr LIKE mara-matnr.
    * CLASS lcl_material DEFINITION
    CLASS lcl_material DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS : write_material_desc,
        get_material_description,
        class_constructor.
      PRIVATE SECTION.
        CLASS-DATA: v_matnr TYPE mara-matnr.
        CLASS-DATA: v_maktx TYPE makt-maktx.
    ENDCLASS. "lcl_material DEFINITION
    * CLASS lcl_material IMPLEMENTATION
    CLASS lcl_material IMPLEMENTATION.
      METHOD get_material_description.
        CLEAR v_maktx.
        SELECT SINGLE maktx INTO v_maktx
        FROM makt
        WHERE matnr = v_matnr AND
        spras = 'E'.
      ENDMETHOD. "get_material_description
      METHOD write_material_desc.
        WRITE :/ 'Material Description :', v_maktx.
      ENDMETHOD.                    "write_material_desc
      METHOD class_constructor.
        WRITE :/ 'Inside Static Constructor'.
        v_matnr = '000000000000000110'.
      ENDMETHOD.                    "class_constructor
    ENDCLASS. "lcl_material IMPLEMENTATION
    START-OF-SELECTION.
      CALL METHOD lcl_material=>get_material_description.
      CALL METHOD lcl_material=>write_material_desc.
    Arun Sambargi.

Maybe you are looking for

  • Default value of BeX customer Exit variable not Displayed in WeBI??

    Hello Experts, We are stuck with a problem where WeBI report is created on top of BeX query and we are not able to see the default value of Bex Customer exit variable in WeBI run. Here is the complete scenario: 1. One restricted KF is created in BeX,

  • Indesign CS6 only works in safe mode (windows 7)

    I have installed the CS6 suite in Windows safe mode (after multiple attempts did not work in normal mode, it kept stopping at 2% installed) using the Adobe application manager. I am on a trial period, my company is going to start paying monthly after

  • Intel WiDi no audio T440

    Hy Guys! I could not find any solution for my problem with my few months old T440. When I connect my laptop to my LG Smart TV through WiDi only the video is working, without any sound, nor the test sound. I have checked the windows setup, and install

  • Procrastination at its Best.

    Congradulations Verizon Technical Assistance and Intenet Forum Support Team. Verizon's addage "our goal is to resolve your problem on the very first call" is commendable, but only if Verizon intends to really resolve issues on the first telephone cal

  • Updating to Snow Leopard from Mac OS X 10.4.11

    Hi, Can anyone tell me if I can jump to Snow Leopard from my current system of OS X 10.4.11? Meaning can i skip the whole Leopard 10.5 operating system? I keep trying to update my iPhone and iTunes but am unable to due to my old operating system. (I