Display "breaking up"

1) Just upgraded my iMac from 256 MB to 2 GB of RAM
2) Also just added a ministack v2 external hard drive
Since then, the display (screen) occasionally appears "distorted" ... after the screen saver has been on, or after the screen went black in sleep mode.
Display will look like a TV channel with bad reception. This will slowly clear up on its own after about 15 minutes to a half hour.
By the way, I speculated that it might be related to the new external hard drive, so I turned the power off to that component. Left the cables hooked up, however. That seemed to have no effect.
Any thoughts?

Hi Ronda, 
The spec pages are incorrect. These pages were written when the 1GB DDR SODIMM and 1GB DDR DIMM were not available on the market. Now that these modules are available, 2Gb is possible on the DDR iMac G4s (so the 700/800MHz iMacs are out of luck). Personnally now I'd only advise someone to install a single 1Gb SODIMM to add to their current installed RAM to give them a 1.25 or 1.5Gb total. If anyone thinks they need a full 2Gb and the cost/complexity involved in upgrading the iMac G4; then they probably shouldn't be using a G4 based Mac in 2007.
I've been using 1536Mb for around 15 months now with no issues.
I also have 1Gb of PC133 in my iMac 400MHz that officially only supports 512Mb and I know Duane is using 576Mb in his iBook Clamshell where 320Mb is the official max.
Hope I'm not teaching you to suck eggs but this can't be done on all machines notably the Core 2 Duo Macs really are limited to 3Gb even if 4Gb is installed as the upper addressing ranges are used for interfaces.
This supplier even sells a set of modules (link)
kind regards
mrtotes

Similar Messages

  • Sony Xperia Z1 Display Break

    I have a problem.  I did nothing and my Xperia layed on my desk for a couple hours. 
    As i looked on my disyplay i saw some flaws . 
    What can I do ? Is it possible  to send it to Sony that they can fix it ? I have guaranty
    Thank you 

    Are you saying that your screen has cracks? if it does, do contact your local Xperia care
    http://talk.sonymobile.com/t5/Xperia-Z1-Z1s/Sony-Xperia-Z1-Display-Break/m-p/945901
    keep in mind that this might not be covered.
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Ipod display break, ipod display break

    ipod display break

    I guess this is a question? If you want a replacement iPod from Apple, you will have to pay for a replacement. Here are the prices: http://support.apple.com/kb/index?page=servicefaq&viewlocale=en_US&geo=United_St ates&product=ipod&select=REPAIR_PRICING

  • IBook G3 Display breaks into four panes

    Our granddaughter's G3 iBook dual 12" has started acting strange. Every now and then the display will break into 4 separate identical green panes. This only lasts about one or two seconds then returns to the correct display. Any ideas would be appreciated. Thanks

    If it comes to need the shim fix, there are simpler instructions suggested by John Sawyer in the Apple Discussions iBook G3 (Dual USB) Displays Forum:
    [Y]ou can often fix this yourself by removing the iBook's bottom housing, and placing a shim of any sort, about 1mm to 1.5mm thick, onto the raised square on the bottom shield. I use a Scotch mounting square--you can get them in hardware stores and many grocery stores. When you reinstall the bottom case, it will press against this shim, which will press against the graphics chip, and may allow the chip to come into better contact with the logic board.
    John Sawyer
    CJS Macintosh Repair
    Instructions for removing the lower case:
    iFixit.com

  • Display breaks down

    I'm using Safari 8.0.2 with Yosemite 10.10.1 (14B25). The display on Safari breaks down in a section of or the entire display.  Sometimes the screen goes to vertical lines or Safarii simply crashes and the computer restarts.  I cleared the history and held down "On" and "home" to ?reset.  That did not help. I ran disk aid and all was OK.  Help!

    Hey aggiedoc69,
    Sorry to hear you are having this issue with your Mac. Based on your description of the issue (intermittent but persistent display issues, mostly out of Safari but sometimes affecting the entire screen, computer restarting, etc), it sounds like you may be experiencing some form of kernel panic. If that is the case, you may find the information and troublehshooting steps outlined in the following article helpful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Cheers,
    - Brenden

  • IPad 2 retina display breaking up, and goes grey!

    Hi
    Need a bit of advice with my Ipad 2 64gb retina display, for the last few weeks the picture has started breaking up, and turning grey with lines running across the screen, sometimes it will clear itself, but on most occasions you need. To tap the case awhile before the picture returns to normal. Being an expensive purchase I did not expect this so early I it's use, the IPad is not long out of warranty having been purchased late in 2012, in Cyprus as I was based there at the time . Does anyone of an idea on costs for repair?

    In warranty it may have cost you  nothing, but out of warranty the replacement cost for an ipad 2 starts at $249 (and will be more expensive since you have a 64 gig)
    You can always make an appointment at your local apple store and have them look at it then consider your options. If your device is out of warranty you can always turn to non-authorized repair places. But Apple has nothing to do with those (and will no longer support it....then again if it's out of warranty they won't cover it anyway)
    It'll probably come down to the more expensive sure bet or the cheaper gamble.

  • Break Up of Actual Costs in a report for list of orders

    Hi All,
    SAP standard reports displays only the total planned & total actual costs.
    Is there any standard report available which can display break up of planned & actual costs along with total costs, for list of orders (e.g: time, material and external resources consumption).
    Thanks in advance
    JK

    hi
    you can find the material cost,external service etc in the standard cost report itself select the change layout and select the items you want to display ,you can get the result
    regards
    thyagarajan

  • Do MBA displays really crack as easily as described in this forum?

    I have been contemplating the purchase of a MBA however the threads detailing cracking of the displays with "light" handling quite frankly scare me.  I would be purchasing to carry, I thought that's what it is made for.  Is this problem as widespread as the threads make it out to be.  Are there any users that have traveled with the MBA without the displays breaking?

    Anrando,
    Understand that the relative proclivity to breakage is difficult to ascertain in a forum like this for the simple reason that this is a support forum. Problems are the principle reason that a user would post a report of a broken screen, and is in no way representative of the overall satisfacton, or lack of problems of all other users.
    We've not seen very much in the way of follow-up to details in what may have illiicted screen damage. By and large, users are not reporting the frequency of screen breakages that could be ordinarily associated with normal use. Yes, to be sure, there are users who have broken screens that attest that their level of care was either ordinary, or care greater than ordinary, but nobody reports the details of the analysis of case geometries that might support a theory of defect.
    Bottom line is that there is no evidence that screen breakage is an issue for the vast majority of MBA users.

  • Can you help me with my program please?

    hi all,
    I have a problem with the sellMilk function at the Milk class I don't know how to write it right I've tried everything so I need you to help me.
    this function should check the expiry date of the milk and sell the required amount if it is not expired. if it was expired just delete the milkbox.
    I have cases like if the first box has 5 kg and not expired , second box has 10 kg and expired, third box has 8 kg and not expired .. and if the required amount to sell is 6 kg for example it should work like this: first box should become zero because 5 kg has been sold and remainder is 1 .. so it should check the expiry date of the second box and it is expired so delete it. and then check the third box's expiry date and it is not expired so 8-1 = 7 .. and by that way 6 kg has been sold.
    my program it just delete the expired box if it was the first element.
    my code doesn't work well like that! here is the full program so you can check the code to help me please ..
    the problem is just with SellMilk() at the Milk Class
    Thank you
    import java.io.*;
    import java.text.*;
    import java.util.*;
    public class Market
        public static void main(String args[ ])
        { System.out.print("Enter the Market name: " );
            String name1 = Stdin.readLine();
            Market_Store mymarketstore = new Market_Store(name1);
       System.out.println("Welcome To " +name1+" Market ");
       System.out.println("");
            System.out.println("1-Stock new Milk");
            System.out.println("2-Stock new Milk Box");
            System.out.println("3-Sell");
            System.out.println("4- Display");
            System.out.println("");
            System.out.print("Enter your choice: ");
            int choice = Stdin.readInteger();
            while (choice != 5)
                switch (choice)
                case 1:
                 mymarketstore.stockNewMilk();
                    break;
                case 2:
                    mymarketstore.stockMilkBox();
                    break;
                    case 3:
             mymarketstore.sell();
                break;
                case 4:
               mymarketstore.display();
                            break;
                            case 5:
                default:
                    System.out.println("wrong Number");
                    System.out.println("Enter a number between 1 to 4 ");
                    System.out.println("Enter 5 to Exit");
                    break;
                System.out.println("");
              System.out.println("Welcome To " +name1+" Market ");
       System.out.println("");
            System.out.println("1-Stock new Milk");
            System.out.println("2-Stock new Milk Box");
            System.out.println("3-Sell");
            System.out.println("4-Display");
            System.out.println("");
             System.out.print("Enter your choice: ");
                choice = Stdin.readInteger();
    class Market_Store
            private String name;
            private Vector mymilk;
            public Market_Store(String n)
                    name=n;
                    mymilk = new Vector();
            public void stockNewMilk()
                    String N;//milk type
                    System.out.print("Enter the type of the milk: ");
                    N=Stdin.readLine();
                    Milk  m1 = new Milk (N);
                    mymilk.addElement(m1);
            public void stockMilkBox()
            System.out.println("Milk Available in stock : ");
            for (int i=0; i<mymilk.size(); i++){
            Milk m2 = (Milk)mymilk.elementAt(i);
            System.out.print(i+1+")");
            System.out.println(m2.getMilkType());  }
                    System.out.print("Enter the number of the milk to stock new box: ");
            int     ii = Stdin.readInteger();
            ((Milk)(mymilk.elementAt(ii-1))).addNewBox();
            }//end stockMilkBox
            public void sell()
                    //sell specific type of milk
                   System.out.println("Milk Available in stock : ");
            for (int i=0; i<mymilk.size(); i++){
            Milk m2 = (Milk)mymilk.elementAt(i);
            System.out.print(i+1+")");
            System.out.println(m2.getMilkType());
                                   System.out.print("Enter the number of the milk to sell:  ");
            int     ii = Stdin.readInteger();
    System.out.print("Enter the amount required in Kg:  ");
    double amount = Stdin.readDouble();
            ((Milk)(mymilk.elementAt(ii-1))).sellMilk(amount);
            public void display()
            {      System.out.println("Milk Available in stock : ");
            for (int i=0; i<mymilk.size(); i++){
            Milk m2 = (Milk)mymilk.elementAt(i);
            System.out.print(i+1+")");
            System.out.println(m2.getMilkType());
                    System.out.print("Enter the number of the milk to display:  ");
            int     ii = Stdin.readInteger();
                    ((Milk)(mymilk.elementAt(ii-1))).display();
    class MilkBox
            private Date expiredate;
            private Date date;
            private double stock;
            public MilkBox(double stck, Date ed)
                     date = new Date();
                    expiredate = ed;
            public double getStock()
             return stock;     }
            public Date getDate()
                     return date;
    public void setStock(double st)
    { stock = st;}
    public void setExDate(Date dd)
    {expiredate = dd;}
            public Date getExDate()
                     return expiredate;
      public   double sellMilkBox(double amount)
            double excessAmount = 0;
            if (amount < stock)
                double newAmount = stock - amount;
                setStock(newAmount);
            else  
                excessAmount = amount - stock;
                setStock(0);
            return excessAmount;
    public     void display()
                            System.out.println("The box of "+date+" has " +stock+" KG");
    class Milk
            private String Mtype;//milk type
            private Vector mybox;//vector of batches
            public Milk (String n)
                    Mtype =n;
            mybox = new Vector();
      public  void addNewBox()
    double stook;
    System.out.print("Enter the weight of the box: ");
    stook = Stdin.readDouble();
         Date exdate;//expirey date
    System.out.println("Enter the expirey date of the milk box:");
           int d; int m1; int y;
              System.out.println("Enter Year:" );
              y = Stdin.readInteger();
              System.out.println("Enter Month:" );
              m1 = Stdin.readInteger();
              System.out.println("Enter Day:" );
              d = Stdin.readInteger();
                   Calendar r=new GregorianCalendar(y,m1,d);
                    exdate= r.getTime();
                    //send the attributes to Box constructor
                   MilkBox newBox = new MilkBox(stook,exdate);
                    newBox.setStock(stook);
                    newBox.setExDate(exdate);
                    mybox.addElement(newBox);
       public void display()
                    System.out.println("Milk "+Mtype);
                            for (int i=0; i<mybox.size(); i++){
                    MilkBox b= (MilkBox)mybox.elementAt(i);
                    b.display();
    public double sellMilk (double amount)
       for(int i=0;i<mybox.size();i++)
               MilkBox b = (MilkBox)mybox.elementAt(i);
                double stock = b.sellMilkBox(amount);
                double value = b.getStock();
                Date ExpireyDate = b.getExDate();
      if ( ExpireyDate.before(new Date()))
    {  mybox.removeElementAt(i);
            System.out.println("it has expired date");
    if (stock >1|| value  ==  0 && ExpireyDate.after(new Date()))
    {       mybox.remove(b);  
    amount = stock;
    if ( ExpireyDate.before(new Date()))
    {  mybox.removeElementAt(i);
            System.out.println("it has expired date");
      if(amount != 0)
      System.out.println("The extra amount is "+amount+ " KG");
    return amount;}
    public String getMilkType()
    { return Mtype;}
    //set method
    void setMilkType(String n)
    { Mtype = n;}
    }//end class milk
    //STDIN FILE
    final class Stdin
       public static BufferedReader reader=new BufferedReader
        (new InputStreamReader(System.in));
       public static String readLine()
       while(true)
       try{
           return reader.readLine();
           catch(IOException ioe)
             reportError(ioe);
           catch(NumberFormatException nfe)
            reportError(nfe);
       public static int readInteger()
        while(true)
        try{
        return Integer.parseInt(reader.readLine());
        catch(IOException ioe)
        reportError(ioe);
        catch(NumberFormatException nfe)
        reportError(nfe);
       public static double readDouble()
        while(true)
        try{
        return Double.parseDouble(reader.readLine());
        catch(IOException ioe)
        reportError(ioe);
        catch(NumberFormatException nfe)
        reportError(nfe);
        public static void reportError (Exception e)
        System.err.println("Error input:");
        System.err.println("please re-enter data");
        }Edited by: mshadows on Dec 22, 2007 12:06 AM

    ok here is the code that has the problem .. what's wrong with it?
    public double sellMilk (double amount)
       for(int i=0;i<mybox.size();i++)
               MilkBox b = (MilkBox)mybox.elementAt(i);
                double stock = b.sellMilkBox(amount);
                double value = b.getStock();
                Date ExpireyDate = b.getExDate();
      if ( ExpireyDate.before(new Date()))
    {  mybox.removeElementAt(i);
            System.out.println("it has expired date");
    if (stock >1|| value  ==  0 && ExpireyDate.after(new Date()))
    {       mybox.remove(b);  
    amount = stock;
    if ( ExpireyDate.before(new Date()))
    {  mybox.removeElementAt(i);
            System.out.println("it has expired date");
      if(amount != 0)
      System.out.println("The extra amount is "+amount+ " KG");
    return amount;}

  • How do i fix these exceptions?

    AHHHHH
    just run BEES.java
    exceptions up the ass!!!
    so lost!
    BEES.java
    //Michael Brewster
    //original 9-20-06
    //last mod 9-25-06
       import java.util.Scanner;
        public class BEES
           public static void main(String[] args)
             Set<Play> aSet = new Set<Play>();
             System.out.println("Welcome to The BEES Play processer\n\nplease note: This ");
             System.out.println("program was designed to \nbe running constantly. ");
             System.out.println("Any data entered while \nrunning this program");
             System.out.println("will be lost upon closing.\n\n");
             String temp, temp2, temp3;
             String SecureQuit = "N";
             int n = -1;
             int anotherVar, n2 = 0, x1 = 0, x2 = 0;
             //this is an idea i came up with last minute
               //error is always set to true
               //when a user enters alot of information,
               //they are asked if all the information is correct
               // if they say yes, error is set to false and
               // they can continue with the program.
               // but if they say no, an outer loop brings them
               // to the beginning of the loop to re-enter the
               // info
               // I originally wanted to ask where the error
               // was so the user wouldn't have to re-type all
               // of the correct data (which is why i numbered
               // the play title entry section). But lack of
               // time prevented my doing so.
             boolean error = true;
             int abc = 1;
             while(abc == 1){
                System.out.println("What to do.. What to do...\n\nChoose one of the following:");
                while(error){
                   System.out.println("1 - Add a Play");
                   System.out.println("2 - Remove a Play");
                   System.out.println("3 - Display all Plays");
                   System.out.println("4 - Display all Plays by: a Playwright");
                   System.out.println("5 - Display all data for: a Play");
                   System.out.println("6 - Quit (not advised)\n");
                   int wat2do;
                   Scanner KeyEntry = new Scanner(System.in);
                   wat2do = KeyEntry.nextInt();
                   temp = KeyEntry.nextLine().toUpperCase();
                   error = true;
                   switch(wat2do){
                      case 1:
                         System.out.print("Enter Play Title: ");
                         temp = KeyEntry.nextLine().toUpperCase();
                         System.out.print("Enter Play Author: ");
                         temp2 = KeyEntry.nextLine().toUpperCase();
                         System.out.print("Enter Play Gener: ");
                         temp3 = KeyEntry.nextLine().toUpperCase();
                         Play newPlay = new Play(temp, temp2, temp3);
                         aSet.first();
                         while(aSet.size() >= aSet.currIndex())
                            if(aSet.getCurrent().equals(newPlay))
                               System.out.println("Play not added\nerror 001: play already exists!");
                            aSet.next();
                         aSet.add(newPlay);
                         System.out.println("Play added!");
                         break;
                      case 2:
                         System.out.print("Enter Play Title: ");
                         temp = KeyEntry.nextLine().toUpperCase();
                         aSet.first();
                         while(aSet.size() >= aSet.currIndex())
                            if(aSet.getCurrent().reTurnIt(1).equals(temp))
                               aSet.removeCurrent();
                            aSet.next();
                         break;
                      case 3:
                         aSet.first();
                         while(aSet.size() >= aSet.currIndex())
                            aSet.getCurrent().display();
                         break;
                      case 4:
                        System.out.print("Enter Play Author: ");
                         temp = KeyEntry.nextLine().toUpperCase();
                         aSet.first();
                         while(aSet.size() >= aSet.currIndex())
                            if(aSet.getCurrent().reTurnIt(2).equals(temp))
                               aSet.getCurrent().display();
                            aSet.next();
                         break;
                      case 5:
                         System.out.print("Enter Play Name: ");
                         temp = KeyEntry.nextLine().toUpperCase();
                         aSet.first();
                         while(aSet.size() >= aSet.currIndex())
                                            System.out.println("holla!");
                            if(aSet.getCurrent().reTurnIt(1).equals(temp))
                                                 System.out.println("asdfasdf");
                               aSet.getCurrent().display();
                            aSet.next();
                         break;
                      case 6:
                         break;
                   error = true;
                   if(SecureQuit.toUpperCase().equals("Y"))
                      error = false;
                      abc = 2;
       }Set.java
       import java.util.Scanner;
       import java.util.ArrayList;
         This code illustrates how we can create our own generic class. 
           In this case the Set class is a generic class that allows us
           to create a set of whatever we want.  However, unlike the
           PersonSet class, the Set class is not heterogeneous.  All of
           the objects in the Set class are of the same type.
           In addition, the isMemberOf method no longer works within the
           Set because Java calls the wrong equals method when we tried
           to do this (even if we added an equals method to the type
           T classes).  Thus, the client needs to check to make sure
           we don't have a duplicate.  This feature of Java generics
           seems unfortunate.  The compiler seems to generate the Set<T>
           code before it knows what T is!!!
           Note: Because of this consideration, the add method does
           not check for a duplicate object.
           We use the ArrayList class in implementing the Set class.
           However, a generic class does not need to use another generic
           class.
         Although we lose the heterogeneity, the basic interface of
           the Set generic class is based upon the PersonSet class.      
        public class Set <T>
          // Fields ...
          ArrayList<T> theList;  
                              // Will reference an ArrayList of objects
                            // from the class T.
          int currentIndex, currentSize, temp1, temp2;  
                              // Index of current element in the set
          final int START_CAP = 100;
                            // Initial capacity of the ArrayList.
                                          // This over-rides the default initial
                                          // capacity of 10. 
       // Constructor ...
          The Set constructor sets up an ArrayList of T references
            with STARTSIZE-many cells. It also initializes currentIndex
            to -1.
           public Set()
             theList = new ArrayList<T>(START_CAP);
             currentIndex = -1;
           public void first()
             if (currentIndex > 0)
                currentIndex = 0;
           public boolean next()
             if ( currentIndex >= 0 && currentIndex <= theList.size())
                  currentIndex++;
             return false;
           public void removeCurrent()
             if (currentIndex == theList.size())
                remove();
                currentIndex = 0;
             else
                remove();
           public void remove()
             temp1 = currentIndex;
             while (temp1 < theList.size())
                theList.set(temp1, theList.get(temp1 + 1));
                temp1++;
             theList.remove(theList.size());
       // Test method
          The isEmpty method returns true if the calling object
            is empty and false otherwise.
            @return true if the calling object is empty and false
                    otherwise.
           public boolean isEmpty()
             return theList.size() == 0;
       // Access methods
          The size method returns the number of objects
            currently in the set.
            @return the value of currentSize
           public int size()
                   System.out.println(theList.size() + "listsize");
             System.out.println(currentSize + "currsize");
             return currentSize;
          The getCurrent() method returns a reference to the
            current object in the set.  Note the pre-condition.
            This method should only be called if the set is
            not empty.  The method advances currentIndex to
            the next object to set up for the next call to
            getCurrent.  If getCurrent returns a copy of
            the last object, currentIndex is reset to 0. Note
            that this method assumes the type T has a
            copy constructor.
            Pre: currentIndex is not -1 (which can only
                 occur if currentSize is not 0).
            @return reference to the current object in the set
           public T getCurrent()
             return theList.get(currentIndex);
       // Mutator methods ...
           The add method adds parameter reference to the set.
               @param aT the T-thing we will add
           public void add(T aT)
              // Add the object     
             theList.add(aT);
                currentSize++;
              // Set currentIndex to object we just added if it was the
              // first object in the set.
             if (theList.size() == 1) currentIndex = 0;
          The clear method resets the set to the empty set.
           public void clear()
             currentIndex = -1;
             theList = new ArrayList<T>();
       // The display method
          The display method displays all of the objects in the
            set.  This method assumes the type T has a toString
            method.
           public void display()
             if (theList.size() == 0)
                System.out.println("There are no objects in the set. ");
             else
                System.out.println("Here are the objects in the set: \n");
                for (int i = 0; i < theList.size(); i++)
                   System.out.println(theList.get(i).toString());
                   System.out.println("\n");
           public int currIndex()
             return currentIndex;
       }Element.java
       The Element class is introduced to illustrate the use of
         abstract classes.  In this revised version of the PersonSet
         class example, the Person class will inherit from this
         abstract class.  The purpose of the abstract class Element
         is to introduce the "common class protocol" for all of its
         subclasses.  That common class protocol is introduced using
         abstract as well as fully implemented methods.  The abstract
         methods are:
                          readIn
                          display
                          equals
         In addition, the abstract class Element fully implements the
         getClassName method.
        public abstract class Element
       // Access method
          The getClassName method returns the name of the calling object's
            class. 
            @return the name of the calling object's class
          String author, playwright, genre, nationality, title;
           public String getClassName()
             // Local data ...
             String resultStr;
                           // Result of applying toString method to
                                     // the calling object
             int whereAt;  // Where the @ symbol is in resultStr                       
             // Logic ...
             resultStr = this.toString();
             whereAt = resultStr.indexOf('@');
             return resultStr.substring(0,whereAt);
          // Abstract methods readIn, display and eqauls.
          // Direct subclasses must implement these in order for them
          // not to be abstract.
           public abstract void allUp();
            //SETS GENRE
           public abstract void setG(String aG);
            //SETS PLAYWRIGHT
           public abstract void setA(String anA);
            //SETS TITLE
           public abstract void setT(String aT);
            //EQUALS METHOD
           public abstract boolean equals(Play dobj);
          //ASSIGN VARS FROM dobj TO THIS OBJECT'S VARS
           public abstract void readIn(Play dobj);
          //DISPLAYS DATA
           public abstract void display();
          //EQUALS METHOD EXCLUSIVELY FOR CHECKING THE TITLE AND aName
           public abstract boolean sameName(String aName);
               //RETURNS AUTHOR IN UPPERCASE
           public abstract String getA();
            //RETURNS THE VALUE OF A VAR CORRESPONDING aType
           public abstract String reTurnIt(int aType);
       }Play.java
    //Michael Brewster
    //original 9-20-06
    //last mod 10-27-06
       import java.util.Scanner;
       import java.lang.String;
       import java.util.StringTokenizer;
        public class Play
          public String title = "Unknown";
          public String author = "Unknown";
          public String genre = "Unknown";
          public String titleUp, authorUp, genreUp;
          int n = 0;
          int x;
            //CONSTRUCTORS!!!
           public Play (){
             title = "Unknown";
             author = "Unknown";
             genre = "Unknown";
             allUp();
           public Play (String aTitle){
             title = aTitle;
             author = "Unknown";
             genre = "Unknown";
             allUp();
           public Play (String aTitle, String anAuth){
             title = aTitle;
             author = anAuth;
             genre = "Unknown";
             allUp();
           public Play (String aTitle, String anAuth, String aGenre){
             title = aTitle;
             author = anAuth;
             genre = aGenre;
             allUp();
            //END OF CONSTRUCTORS
            //ASSIGNS var.toUpperCase() TO varUP     
           public void allUp(){
             titleUp = title.toUpperCase();
             authorUp = author.toUpperCase();
             genreUp = genre.toUpperCase();
            //SETS GENRE
           public void setG(String aG){
             genre = aG;
             allUp();
            //SETS PLAYWRIGHT
           public void setA(String anA){
             author = anA;
             allUp();
            //SETS TITLE
           public void setT(String aT){
             title = aT;
             allUp();
            //EQUALS METHOD
           public boolean equals(Play dobj){
             allUp();
             dobj.allUp();
             if (title.equals(dobj.reTurnIt(1)) && author.equals(dobj.reTurnIt(2)) && title.equals(dobj.reTurnIt(3))){
                return true;
             else {
                return false;
          //ASSIGN VARS FROM dobj TO THIS OBJECT'S VARS
           public void readIn(Play dobj)
             title = dobj.reTurnIt(1);
             author = dobj.reTurnIt(2);
             genre = dobj.reTurnIt(3);
             allUp();
           //DISPLAYS DATA
           public void display()
             String all2gether;
             all2gether = title + "\n   by: " + author + "\ngenre: " + genre;
             System.out.println(all2gether);
          //EQUALS METHOD EXCLUSIVELY FOR CHECKING THE TITLE AND aName
           public boolean sameName(String aName)
             return aName == title;
          //RETURNS AUTHOR IN UPPERCASE
           public String getA(){
             return authorUp;
            //RETURNS THE VALUE OF A VAR CORRESPONDING aType
           public String reTurnIt(int aType)
             if(aType == 1){
                return title;}
             if(aType == 2){
                return author;}
             if(aType == 3){
                return genre;}
             return "unknown";
       }

    Your program is a mish-mash of logic.
    I would highly recommend removing the currIndex() method from Set for starters. You don't need it. You have a nice little iterator you can use with next() and I recommend that you do.
    The exception is being caused by the fact that you are trying to read items from your set (with getCurrent()) that do not exist.
    So there is something wrong with your while loop logic. Again though this could be made much cleaner with something like
    while(aSet.next()){Assuming next is correct of course but either way you it should be and I think that's much cleaner than what you have going on now.

  • Object instance 1200 does not exist (while executing task SWUS)

    hello all,
    i have created a workflow class and two methods (constructor, display) and 1 attribute PLANT (instance,public) in it.
    i am using this class and display method in task t code PFTC.
    While executing this task from SWUS , i am getting this error.Object instance 1000 does not exist.
    As i was going through this blog. i have created everything exactly just like it is mentioned there.
    But still i am getting this error. please guide me to detect where i am mistaken.
    http://scn.sap.com/community/bpm/business-workflow/blog/2006/07/25/using-abap-oo-methods-in-workflow-tasks
    this is class screen-shot and error i am facing while executing the task.
    The methods which are implemented using the interface are emtpy(don't contain any source code lines).

    sorry i forgot to mention that input value 1000 does exist in our system.
    i have also tried F4 help. it is showing all existing plants in our system, but still it is not accepting values select from f4 help.
    Also to add information,
    I have executed class using F8 option in class builder, and it is working perfect.
    source code of display method.(i am trying to view plant in display method just like in blog).
    method DISPLAY.
    break-point.
       data: ls_vt001w type v_t001w.
       CLEAR ls_vT001W.
       ls_VT001W-MANDT = SY-MANDT.
       ls_VT001W-WERKS = me->PLANT.
       CALL FUNCTION 'VIEW_MAINTENANCE_SINGLE_ENTRY'
         EXPORTING
           ACTION    = 'SHOW'
           VIEW_NAME = 'V_T001W'
         CHANGING
           ENTRY     = ls_vT001W.
    endmethod.

  • Odd line down my screen

    Hi. So, I just opened my screen after coming home from a trip and there is a blue line running down my screen that does no go away even when restarting. It even appears on the apple logo bootup screen. It changes colors depending on what is on the screen. When I use grab.app and try to capture it, it does not show up in the capture, so I had to take a picture with my digital camera. Here is a link. Any idea what's going on?
    http://img248.imageshack.us/img248/4636/screennc5.jpg

    I have this same exact problem in the same spot. It was fixed under warranty but this morning it was back - out of warranty. What I believe is happening is that the green LED light (used to indicate if isight is on) or it's connector/soldered bit is pressing down on the display - that's why the line is right below the LED and changes with pressure - for a while I could make it go away by "massaging" the isight LED. It always comes back. I think it must be a design flaw or otherwise a production flaw in that the LED is too close to the display connectors. When I took the macbook in for service the first time the guy who helped me said that the display's controlling wires are along the top of the display, so this makes some sense.
    This morning on the train the line was thicker than ever (several pixels wide now) and refused to go away. I discovered that the panel surrounding the display comes off a little if you pull it (clicks into place, there are instructions online for removing the bezel) and this made the line disappear. Gently clicked back the panel, so far still no line.
    You could try this. Of course, this is completely at your own risk, dont blame me if your whole display breaks. But i think that if you're gentle you should be all right.

  • Help me to troubleshoot the errors

    import java.io.DataInputStream;
    class Items
         int itemcode[]=new int[10];
         int itemcoast[]=new int[10];
         int rem;
         int i,coast,counter;
         try
              //Input Items
              void getitem()
                   System.out.println("Enter the item code");
                   itemcode[counter]=Integer.parseInt(d.readLine());
                   System.out.println("Enter the item cost");
                   itemcost[counter]=Integer.parseInt(d.readLine());
                   counter++;
              //Total price
              void sumitemcoast()
                   for(i=0;i<counter;i++)
                        coast=coast+itemcoast;
              //to display current items and its coast
              void display()
                   System.out.println("Item code And Item Coast");
                   for(i=0;i<counter;i++)
                        System.out.println(itemcode[i]+" "+itemcoast[i]);
              //remove item
              void remove()
                   System.out.println("Enter the item code you want to remove");
                   rem=Integer.parseInt(d.readLine());
                   for(i=0;i<counter;i++)
                        if(itemcode[i]==rem)
                             itemcoast[i]=0;
                             break;
         catch (Exception e)     {     }
    //main
    class Allitem
         public static void main(String args[])
              DataInputStream d=new DataInputStream(System.in);
              Items I=new Items();
              try
                   System.out.println("Press 1 to Enter Data \n Press 2 to display Item and Coast \n Press 3 to get total item coast \n Press 4 to remove item");
                   x=Integer.parseInt(d.readLine());
                   do
                        switch(x)
                             case 1:I.getitem();
                                       break;
                             case 2:I.display();
                                       break;
                             case 3:I.sumitemcoast();
                                       break;
                             case 4:I.remove();
                                       break;
                        System.out.println("Enter 1 to stop or 0 to continue");
                        int w=Integer.parseInt(d.readLine());
                   while(w!=0);
              catch (Exception e){}

    Welcome to the forum!
    Please read the FAQ for how to post questions on the forum.
    The most important guideline is that you actually need to ask a question. All you did was post a bunch of code. When you do post code put \ tags on the line before and the line after the code to  preserve formatting as discussed in the FAQ.
    Edit your post to add the \ tags and to ask a question. Provide all information needed for someone to help you.
    If you have errors you need to provide the full error and stacktrace.

  • Internationalization - quotation marks

    Hi,
    How do I internationalize quotation marks?
    Example [http://img42.imageshack.us/img42/64/quotation.png]

    Java has no internationalization support for quotes, which is understandable as sometimes more than one type of quotes is used in a country (e.g. »...« in Germany).
    I see only two ways to handle the task:
    1. use two different characters for the initial and ending quote. Before output copy your text(s) to a temporary buffer and replace these characters by the desired quotes (String.replaceAll(...))
    2. if you have only few quotes to display, break your text at the quotes and insert a variable which you can set according to your needs.

  • I want to add a field in po header

    hi,
    i am kishore. i have assignment. i have to add a customer field in purchase order header.
    pls provide any exit how i will write that code?
    K. Kishore

    Hi Narendran,
    I am not getting values in output for this programme.Can you plz suggest
    *& Report  YALV1                                                       *
    REPORT  YALV1                                   .
    type-pools: slis.
    tables: mara,makt.
    CONSTANTS: GC_FORMNAME_TOP_OF_PAGE(15) TYPE
               c VALUE 'TOP_OF_PAGE',
               GC_FORMNAME_USER_COMMAND TYPE
               SLIS_FORMNAME VALUE 'USER_COMMAND'.
    data :  toutdt     like  prps-post1,
            touttm     like  prps-post1.
    *INTERNAL TABLE DECLARATION.
    types: begin of itab_alv,
          matnr like mara-matnr,
          mbrsh like mara-mbrsh,
          mtart like mara-mtart,
          meins like mara-meins,
          end of itab_alv.
    DATA: itab TYPE STANDARD TABLE OF itab_alv INITIAL SIZE 0,
          itab1 TYPE itab_alv.
    types: begin of itab_alv1,
          matnr like makt-matnr,
          maktx like makt-maktx,
          spras like makt-spras,
          end of itab_alv1.
    *data: itab1 type itab_alv1.
    data: itab2 type standard table of itab_alv1 initial size 0,
          itab3 type itab_alv1.
    data: ok-code like sy-ucomm.
    data: gd_repid like sy-repid.
    *ALV-GRID DATA DECLARATION.
    data: fieldcatalog type slis_t_fieldcat_alv.
    DATA: GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
    FIELD CATALOG.
    *data: fieldcatalog1 type slis_fieldcat_alv.
    data: gd_layout type slis_layout_alv.
    LAYOUT DECLARATION.
    data: id_color type c.
    data: I_EVENTS type slis_t_event.
    data: wa_event type slis_alv_event.
    *data: ok-code like sy-ucomm.
    *ALV-GRID DATA DECLARATION.
    FIELD CATALOG.
    LAYOUT DECLARATION.
    *data: ls_sort type slis_sortinfo_alv.
    data: IT_SORT TYPE SLIS_T_SORTINFO_ALV.
    selection-screen: begin of block b1 with frame title new.
    select-options: s_matnr for mara-matnr.
    selection-screen: end of block b1.
    initialization.
    gd_repid = sy-repid.
    perform t_fieldcat.
    PERFORM EVENTTAB_BUILD USING I_EVENTS[].
    start-of-selection.
    perform data_selection.
    *PERFORM EVENTTAB_BUILD USING I_EVENTS[].
    PERFORM E04_COMMENT_BUILD USING GT_LIST_TOP_OF_PAGE[].
    *perform t_fieldcat.
    *perform t_fieldcat1.
    *perform sort_order.
    perform display.
    *CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      I_PROGRAM_NAME               = gd_repid
      I_INTERNAL_TABNAME           = 'ITAB'
      I_STRUCTURE_NAME             =
      I_CLIENT_NEVER_DISPLAY       = 'X'
      I_INCLNAME                   = gd_repid
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
    CHANGING
       CT_FIELDCAT                  = fieldcatalog.
    EXCEPTIONS
      INCONSISTENT_INTERFACE       = 1
      PROGRAM_ERROR                = 2
      OTHERS                       = 3
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    *perform data_selection.
    *&      Form  t_fieldcat
          text
    -->  p1        text
    <--  p2        text
    FORM t_fieldcat .
    data: fieldcatalog1 type slis_fieldcat_alv.
    fieldcatalog1-seltext_s = 'materialno'.
    fieldcatalog1-col_pos = 1.
    fieldcatalog1-FIELDNAME    = 'matnr'.
    fieldcatalog1-TABNAME      = 'ITAB'.
    fieldcatalog1-outputlen = 20.
    fieldcatalog1-do_sum = 'X'.
    fieldcatalog1-key = 'X'.                 "this field is not scroolable
    "and hideble
    fieldcatalog1-hotspot = 'X'.
    fieldcatalog1-emphasize   = 'X'.
    fieldcatalog1-REF_TABNAME   = 'makt'.
    append fieldcatalog1 to fieldcatalog.
    clear fieldcatalog1.
    fieldcatalog1-seltext_s = 'industry'.
    fieldcatalog1-col_pos = 2.
    fieldcatalog1-FIELDNAME    = 'mbrsh'.
    fieldcatalog1-TABNAME      = 'ITAB'.
    fieldcatalog1-outputlen = 4.
    fieldcatalog1-key = 'X'.
    fieldcatalog1-REF_TABNAME   = 'makt'.
    append fieldcatalog1 to fieldcatalog.
    clear fieldcatalog1.
    *append fieldcatalog1 to fieldcatalog.
    fieldcatalog1-seltext_s = 'type'.
    fieldcatalog1-col_pos = 3.
    fieldcatalog1-FIELDNAME    = 'mtart'.
    fieldcatalog1-TABNAME      = 'ITAB'.
    fieldcatalog1-outputlen = 6.
    fieldcatalog1-key = 'X'.
    fieldcatalog1-REF_TABNAME   = 'makt'.
    append fieldcatalog1 to fieldcatalog.
    clear fieldcatalog1.
    fieldcatalog1-seltext_s = 'Unit'.
    fieldcatalog1-col_pos = 4.
    fieldcatalog1-FIELDNAME    = 'meins'.
    fieldcatalog1-TABNAME      = 'ITAB'.
    fieldcatalog1-outputlen = 2.
    fieldcatalog1-key = 'X'.
    *fieldcatalog1-do_sum = 'X'.
    *fieldcatalog1-sp_group = 'A'.
    fieldcatalog1-REF_TABNAME   = 'makt'.
    append fieldcatalog1 to fieldcatalog.
    clear fieldcatalog1.
    ENDFORM.                    " t_fieldcat
    *&      Form  EVENTTAB_BUILD
          text
         -->P_I_EVENTS[]  text
    FORM EVENTTAB_BUILD  USING   T_EVENTS TYPE SLIS_T_EVENT.
    DATA LS_EVENT TYPE SLIS_ALV_EVENT.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = T_EVENTS
    EXCEPTIONS
      LIST_TYPE_WRONG       = 1
      OTHERS                = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE T_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
          INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
        MODIFY  T_EVENTS FROM LS_EVENT
                TRANSPORTING FORM
                where name = slis_ev_top_of_page.
      ENDIF.
      READ TABLE T_EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND
         INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_USER_COMMAND TO LS_EVENT-FORM.
        MODIFY  T_EVENTS FROM LS_EVENT
                TRANSPORTING FORM
                where name = slis_ev_user_command.
      ENDIF.
    ENDFORM.                    " EVENTTAB_BUILD
    *&      Form  data_selection
          text
    -->  p1        text
    <--  p2        text
    FORM data_selection .
    select matnr mbrsh mtart meins into
    table itab from mara
    where matnr in s_matnr.
    ENDFORM.                    " data_selection
    *&      Form  E04_COMMENT_BUILD
          text
         -->P_GT_LIST_TOP_OF_PAGE[]  text
    FORM E04_COMMENT_BUILD  USING    T_LISTHEADER TYPE SLIS_T_LISTHEADER.
    DATA: LS_LINE TYPE SLIS_LISTHEADER.
      LS_LINE-TYP = 'H'.
      LS_LINE-INFO = 'AREVA T&D'.
      APPEND LS_LINE TO T_LISTHEADER.
    CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'
           EXPORTING
                INPUT  = SY-DATUM
           IMPORTING
                OUTPUT = TOUTDT.
      CALL FUNCTION 'CONVERSION_EXIT_TIMLO_OUTPUT'
           EXPORTING
                INPUT  = SY-UZEIT
           IMPORTING
                OUTPUT = TOUTTM.
    CLEAR LS_LINE.
      LS_LINE-TYP = 'S'.
      LS_LINE-KEY = '  Run Date and Time'.
      CONCATENATE TOUTDT '-' TOUTTM INTO LS_LINE-INFO.
      APPEND LS_LINE TO T_LISTHEADER.
      CLEAR LS_LINE.
      LS_LINE-TYP = 'S'.
      LS_LINE-KEY = 'INV RECON REPORT'.
      APPEND LS_LINE TO T_LISTHEADER.
    ENDFORM.                    " E04_COMMENT_BUILD
    *&      Form  display
          text
    -->  p1        text
    <--  p2        text
    FORM display .
    break-point.
    gd_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = gd_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = 'TOP-OF-PAGE'
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
       I_GRID_TITLE                      = 'INVOICE RECONCILLATION REPORT'
    I_GRID_SETTINGS                   =
      IS_LAYOUT                         = gd_layout
       IT_FIELDCAT                       = fieldcatalog[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           = IT_SORT
      IT_FILTER                         =
      IS_SEL_HIDE                       =
       I_DEFAULT                         = 'X'
       I_SAVE                            = 'A'
      IS_VARIANT                        =
       IT_EVENTS                         = I_EVENTS
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          = ITAB.
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " display
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE
                I_LOGO             = 'AREVA_LOGO'.
        I_END_OF_LIST_GRID       = GT_LIST_TOP_OF_PAGE.
    ENDFORM.
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
    RS_SELFIELD TYPE SLIS_SELFIELD.
    CASE R_UCOMM.
    WHEN '&IC1'.
    READ TABLE itab INTO itab1 INDEX RS_SELFIELD-TABINDEX.
    PERFORM BUILD_FIELDCATLOG_EKPO.
    PERFORM EVENTTAB_BUILD  USING I_EVENTS[].
    PERFORM DATA_RETRIEVAL_EKPO.
    PERFORM BUILD_LISTHEADER_EKPO USING GT_LIST_TOP_OF_PAGE.
    PERFORM DISPLAY_ALV_EKPO.
    ENDCASE.
    ENDFORM. "user_command
    *&      Form  sort_order
          text
    -->  p1        text
    <--  p2        text
    FORM sort_order .
    PERFORM SORT_ORDER_FILL USING: '01'
                                    'matnr'
                                    'X'.
      PERFORM SORT_ORDER_FILL USING: '02'
                                    'mbrsh'
                                    'X'
    ENDFORM.                    " sort_order
    *&      Form  SORT_ORDER_FILL
          text
         -->P_0508   text
         -->P_0509   text
         -->P_0510   text
         -->P_0511   text
         -->P_0512   text
    FORM SORT_ORDER_FILL  USING   P_SPOS TYPE SLIS_SPOS
                                  P_FIELDNAME TYPE SLIS_FIELDNAME
                                  P_UP TYPE SLIS_SOUP
                                  P_DOWN TYPE SLIS_SODN.
                                 P_SUBTOT TYPE SLIS_DOSUB.
    DATA: WA_SORT TYPE SLIS_SORTINFO_ALV.
      WA_SORT-SPOS      = P_SPOS.
      WA_SORT-FIELDNAME = P_FIELDNAME.
      WA_SORT-TABNAME   = 'ITAB_ALV'.
      WA_SORT-UP        = P_UP.
      WA_SORT-DOWN      = P_DOWN.
    WA_SORT-SUBTOT    = P_SUBTOT.
      WA_SORT-GROUP     = 'UL'.
      WA_SORT-COMP      = ' '.
      WA_SORT-EXPA      = ' '.
      WA_SORT-OBLIGATORY = ' '.
      APPEND WA_SORT TO IT_SORT.
    ENDFORM.                    " SORT_ORDER_FILL
    *&      Form  BUILD_FIELDCATLOG_EKPO
          text
    -->  p1        text
    <--  p2        text
    FORM BUILD_FIELDCATLOG_EKPO .
    data: fieldcatalog1 type slis_fieldcat_alv.
    loop at fieldcatalog into fieldcatalog1.
    case fieldcatalog1-fieldname.
    when 'matnr'.
    fieldcatalog1-seltext_s = 'materialno'.
    fieldcatalog1-col_pos = 1.
    *fieldcatalog1-FIELDNAME    = 'matnr'.
    *fieldcatalog1-TABNAME      = itab_alv.
    fieldcatalog1-outputlen = 20.
    fieldcatalog1-do_sum = 'X'.
    fieldcatalog1-key = 'X'.
    fieldcatalog1-REF_TABNAME   = 'makt'.
    when 'maktx'.
    fieldcatalog1-seltext_s = 'description'.
    fieldcatalog1-col_pos = 2.
    *fieldcatalog1-FIELDNAME    = 'mbrsh'.
    *fieldcatalog1-TABNAME      = itab_alv.
    fieldcatalog1-outputlen = 10.
    fieldcatalog1-key = 'X'.
    fieldcatalog1-REF_TABNAME   = 'makt'.
    *append fieldcatalog1 to fieldcatalog.
    when 'spras'.
    fieldcatalog1-seltext_s = 'language'.
    fieldcatalog1-col_pos = 3.
    *fieldcatalog1-FIELDNAME    = 'mtart'.
    *fieldcatalog1-TABNAME      = itab_alv.
    fieldcatalog1-outputlen = 10.
    fieldcatalog1-key = 'X'.
    fieldcatalog1-REF_TABNAME   = 'makt'.
    endcase.
    modify fieldcatalog from fieldcatalog1.
    endloop.
    ENDFORM.                    " BUILD_FIELDCATLOG_EKPO
    *&      Form  EVENT_CALL_EKPO
          text
    -->  p1        text
    <--  p2        text
    FORM EVENT_CALL_EKPO  USING   T_EVENTS TYPE SLIS_T_EVENT.
    DATA LS_EVENT TYPE SLIS_ALV_EVENT.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = T_EVENTS
    EXCEPTIONS
      LIST_TYPE_WRONG       = 1
      OTHERS                = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE T_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
          INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
        MODIFY  T_EVENTS FROM LS_EVENT
                TRANSPORTING FORM
                where name = slis_ev_top_of_page.
      ENDIF.
      READ TABLE T_EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND
         INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_USER_COMMAND TO LS_EVENT-FORM.
        MODIFY  T_EVENTS FROM LS_EVENT
                TRANSPORTING FORM
                where name = slis_ev_user_command.
      ENDIF.
    ENDFORM.                    " EVENT_CALL_EKPO
    *&      Form  DATA_RETRIEVAL_EKPO
          text
    -->  p1        text
    <--  p2        text
    FORM DATA_RETRIEVAL_EKPO .
    select matnr maktx spras from makt into table itab2.
    ENDFORM.                    " DATA_RETRIEVAL_EKPO
    *&      Form  BUILD_LISTHEADER_EKPO
          text
         -->P_IT_LISTHEADER  text
    FORM BUILD_LISTHEADER_EKPO  USING    P_IT_LISTHEADER.
    DATA: HLINE1 TYPE SLIS_LISTHEADER.
    HLINE1-TYP = 'H'.
    HLINE1-INFO = 'CHECKING PGM'.
    ENDFORM.                    " BUILD_LISTHEADER_EKPO
    *&      Form  DISPLAY_ALV_EKPO
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_ALV_EKPO .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = gd_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  = t_field[]
      I_BACKGROUND_ID                   = ' '
       I_GRID_TITLE                      = 'SECONDARY LIST'
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
       IT_FIELDCAT                       = fieldcatalog[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
       I_DEFAULT                         = 'X'
       I_SAVE                            = 'A'
      IS_VARIANT                        =
       IT_EVENTS                         = I_EVENTS
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          = itab2.
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " DISPLAY_ALV_EKPO
    *&      Form  display
          text
    -->  p1        text
    <--  p2        text
    *FORM display .
    *ENDFORM.                    " display
    Regards,
    Mohit

Maybe you are looking for