Need help returning processor task list.

I'm new to KEXT/Kernel programming and Xcode, so I'm sure these are fairly beginner questions, but I'm having some trouble.  I'm trying to return a list of processor tasks, so I can test different things such as process id's, file descriptors, etc.
I'm not sure what functions would be useful for me.  Is there some way that I would be able to return a list of all running processor tasks and/or their information?  Would someone be able to point me in the right direction?

Yeah, usually it helps me out quite a bit, but I've been googling for over a week, and I get a whole lot of nothing.  Everything that I've actually been able to find uses outdated headers and functions that don't exist anymore.  Maybe my google skills just aren't very good for this area, since I *am* new to this after all...
I figured it would be much more time-efficient to just ask the dev community.  Any insight would be appreciated.

Similar Messages

  • I need help with circular linked list

    Hi,
    I need help with my code. when I run it I only get the 3 showing and this is what Im supposed to ouput
    -> 9 -> 3 -> 7
    empty false
    9
    empty false
    3
    -> 7
    empty false
    Can someone take a look at it and tell me what I'm doing wrong. I could nto figure it out.
    Thanks.This is my code
    / A circular linked list class with a dummy tail
    public class CLL{
         CLLNode tail;
         public CLL( ){
              tail = new CLLNode(0,null); // node to be dummy tail
              tail.next = tail;
         public String toString( ){
         // fill this in. It should print in a format like
         // -> 3 -> 5 -> 7
    if(tail==null)return "( )";
    CLLNode temp = tail.next;
    String retval = "-> ";
         for(int i = 0; i < -999; i++)
    do{
    retval = (retval + temp.toString() + " ");
    temp = temp.next;
    }while(temp!=tail.next);
    retval+= "";}
    return retval;
         public boolean isEmpty( ){
         // fill in here
         if(tail.next == null)
              return true;
         else{
         return false;
         // insert Token tok at end of list. Old dummy becomes last real node
         // and new dummy created
         public void addAtTail(int num){
         // fill in here
         if (tail == null)
                   tail.data = num;
              else
                   CLLNode n = new CLLNode(num, null);
                   n.next = tail.next;
                   tail.next = n;
                   tail = n;
         public void addAtHead(int num){
         // fill in here
         if(tail == null)
              CLLNode l = new CLLNode(num, null);
              l.next = tail;
              tail =l;
         if(tail!=null)
              CLLNode l = new CLLNode(num, null);
              tail.next = l;
              l.next = tail;
              tail = l;
         public int removeHead( ){
         // fill in here
         int num;
         if(tail.next!= null)
              tail = tail.next.next;
              //removeHead(tail.next);
              tail.next.next = tail.next;
         return tail.next.data;
         public static void main(String args[ ]){
              CLL cll = new CLL ( );
              cll.addAtTail(9);
              cll.addAtTail(3);
              cll.addAtTail(7);
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
    class CLLNode{
         int data;
         CLLNode next;
         public CLLNode(int dta, CLLNode nxt){
              data = dta;
              next = nxt;
    }

    I'm not going thru all the code to just "fix it for you". But I do see one glaringly obvious mistake:
    for(int i = 0; i < -999; i++)That says:
    1) Initialize i to 0
    2) while i is less than -999, do something
    Since it is initially 0, it will never enter that loop body.

  • Need help with drop down list in parameters

    Hi All,
    I have the following data set:
    DEPT1     DEPT2     DEPT3 DEPT4
    Commissioner's Office     Finance     Accounting     Accounts Payable
    Commissioner's Office     Finance     Accounting     Fiscal Analysis & Repo
    Commissioner's Office     Finance     Accounting     
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Inventory & Tracking
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Mobility & Congestion
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Roadway Safety
    Commissioner's Office     Planning,Asset Mgt     Asset Management     
    Commissioner's Office     DesignProj Mgt & Tec     Bridge Dsgn Insp Hyd     
    In plus i have four parameters with searchlight options, the problem is when i select "Finance" from DEPT2 and in the next selection level i'm seeing all the departments "Accounting,Asset Management and Bridge Dsgn Insp Hyd" insted of just "Accounting". What i want is if i select a department in DEPT2, in the next drop down list(DEPT3) i want to see only the departement corresponding to the one i selected in dept2. Please need help.
    Thanks

    Hi
    First of all you need to be using Discoverer 10g or 11g Plus not 9.0.4. Assuming you have the right version you need to present the parameters in the correct order. You can change the order on the parameters screen by selecting Tools | Parameters from the toolbar. You then use the Move Up and Move Down buttons to place them in the right order so that DEPT1 is offered first, followed by DEPT2, then DEPT3 and then DEPT4.
    Next, you need to check the radion button on the bottom of the right-hand side that allows linking of parameters then you make DEPT2 dependent upon DEPT1, with DEPT3 dependent upon DEPT2 and so on.
    While this works without hierarchies it works best when you have a hierarchy in place and even better when there is a composite index on the 4 items.
    Best wishes
    Michael

  • Search help for general task list

    Hi,
    I have problem when searching for general task list via classification (in service order, extras>task list selection>direct entry). When I doubleclick a task list, group counter is not copied back in first selection screen; only group has copied. How can I solve this problem?
    Regards,
    Robert

    hi Ashok,
    I've checked classification data for general task list, it's ok. but, I still don't have group counter copied. In other tabs of search help is everything ok.
    - Robert

  • Urgent: im new and need help with this task!

    I need help with converting the pseudo code to java code, Any help will b greatly appreciated!
    // Declare a variable of type int, called "choice".
    // Generate a random number between 0 inclusive and 7
    // exclusive, and store that number into the variable
    // "choice". (How do you generate a random number? Use the
    // nextInt(int) method inside the random object, which takes
    // a single int parameter. You can read about this method
    // here:
    // http://java.sun.com/j2se/1.5.0/docs/api/java/util/Random.html
    // If "choice" is equal to 0, then create and return a new
    // IBlock object, passing "game" as the parameter to IBlock's
    // constructor.
    // Otherwise, if "choice" is equal to 1, then create and
    // return a new TBlock object, passing "game" as the
    // parameter.
    // Otherwise, if "choice" is equal to 2, then create and
    // return a new OBlock object, passing "game" as the
    // parameter.
    // Otherwise, .... etc ....
    // (please continue to do this for all of the 7 kinds of block
    // that can be created)

    import java.util.*;
    public class Echo{
         public static void main(String[] args)     {
              //System.out.println("enter ur choice");
    Random r=new Random();
    int choice=r.nextInt(6);
         switch(choice)
         case 0:
              IBlock object0=new IBlock("games");
              break;
         case 1:
              TBlock object1=new TBlock("games");
              break;
         case 2:
              OBlock object2=new OBlock("games");
              break;
         case 3:
              LBlock object3=new LBlock("games");
              break;
         case 4:
              JBlock object4=new JBlock("games");
              break;
         case 5:
              SBlock object5=new SBlock("games");
              break;
         case 6:
              ZBlock object6=new ZBlock("games");
              break;
    class TBlock
         TBlock(String s)
              System.out.print("TBlock called"+"\n value passed is "+s);
    class IBlock
         IBlock(String s)
              System.out.print("IBlock called"+"\n value passed is "+s);
    class JBlock
         JBlock(String s)
              System.out.print("JBlock called"+"\n value passed is "+s);
    class OBlock
         OBlock(String s)
              System.out.print("OBlock called"+"\n value passed is "+s);
    class LBlock
         LBlock(String s)
              System.out.print("LBlock called"+"\n value passed is "+s);
    class SBlock
         SBlock(String s)
              System.out.print("SBlock called"+"\n value passed is "+s);
    class ZBlock
         ZBlock(String s)
              System.out.print("ZBlock called"+"\n value passed is "+s);
    }

  • Need help returning correct name from a code created movie clip

    Hello. I am an AS3 n00b with hopefuly a simple question I am designing a simple game in flash. This code creates an array of movie clips and asigns a picture to each one. It is a map screen. What I need is when I click on one of the created movie clips, I need it to return either the index of the clip in the array or the name of the clip. Basicaly anything I can use to tell them apart in the code. Here is the code:
    import flash.display.MovieClip;
    var MapLoader:Array = new Array();
    var strJPGext:String = ".jpg";
    var intContTileNumber:int;
    var strContTilePath:String;
    var intDistStartX:int = 63;
    var intDistStartY:int = 64;
    var intDistMultiplyY:int = 0;
    var intDistMultiplyX:int = 0;
    var intDistCount:int = 0;
    var MapSquare:Array = new Array();
    for (var i:int = 0; i < 729; i++)
             //var MapSquare:MovieClip = new MovieClip();
            MapSquare.push (new MovieClip());
            MapSquare[i].x = intDistStartX + (intDistMultiplyX * 30);
            MapSquare[i].y = intDistStartY + (intDistMultiplyY * 30);
            MapSquare[i].name = "MapSquare" + i ;
            addChild(MapSquare[i]);
            intContTileNumber = i;
            MapLoader.push (new Loader);
            strContTilePath = intContTileNumber + strJPGext;
            MapLoader[i].load(new URLRequest(strContTilePath));
            MapSquare[i].addChild(MapLoader[i]);
            intDistCount++;
            intDistMultiplyX++;
            if (intDistCount > 26){
            intDistCount = 0;
            intDistMultiplyX = 0;
            intDistMultiplyY++;
    stage.addEventListener(MouseEvent.CLICK, reportClick);
    function reportClick(event:MouseEvent):void
        trace("movieClip Instance Name = " + event.target.name);   
    Now all this works fine, it creates the map and assigns the correct picture and places them in the correct X,Y position and it is the correct grid of 27x27 squares. The problem is with the name, when I click on the movie clip, it returns "Instance2" or "Instance5" or whatever. It starts with 2 and then increases each number by 3 for each clip, so the first one is 2, then 5 then 8 and so on. This is no good. I need it to return the name that I assigned it
    . If I put the code in trace(MapSquare[1]) it will return the name "MapSquare1" so I know the name was assigned, but it isnt returning.
    Please assist
    Thanks,
    -red

    Thanks for the resopnse,
    I know I dont really need the name, I just need the index number of the array, but I cant figure out how to get the index name without specificaly coding for it. That is why in the listener event I use event.target.name because I dont know what movie clip is being clicked until it has been clicked on. Basically when a movie clip is clicked it needs to return which index of the array was clicked.
    I could do it this way:
    MapSquare[0].addEventListener(
      MouseEvent.MOUSE_UP,
      function(evt:MouseEvent):void {
        trace("I've been clicked!");
    MapSquare[1].addEventListener(
       MouseEvent.MOUSE_UP,
       function(evt:MouseEvent):void {
         trace("I've been clicked!");
    MapSquare[2].addEventListener(
       MouseEvent.MOUSE_UP,
       function(evt:MouseEvent):void {
         trace("I've been clicked!");
    ... ect
    but that is unreasonable and it kind of defeats the purpose of having the array in the first place. The code that each movie clip executes is the same, eventualy that index will be passed into a database and the data at that primary key will be retrieved and returned to the program. So I just need to know, when one of those buttons is clicked, which one was clicked and what is its index in the array.
    I am a VB programer and in VB this is very easy, the control array automatically sends its own index into the function when one of the buttons is clicked. It seems simple enough, I just dont know how to do it in action script.
    Thanks again,
    -red

  • Need help returning (not printing) avg GPA from array??

    Here's what I have so far. After returning the value then I gotta print the avg in a separate method. I also need to check the names of the first and last student using an "equals" method. Please someone help with whatever you can. Here's what I got:
    import java.util.Scanner;
    public class StudentLists {
    //Main method. Prompts user for the number of students.
       public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       System.out.print("Please enter the number of students in this class: ");
       int s = in.nextInt();
       Student[] students=new Student[s];
       FillStudents(s,students);
       printAll(students);
       public static void FillStudents(int s, Student[] students){
       for (int i=0; i<s; i++)
            Scanner inf = new Scanner(System.in);
            System.out.println("Please enter student's first name: ");
        String first = inf.nextLine();
        System.out.println("Please enter student's last name: ");
            String last=inf.nextLine();
            System.out.println("Please enter the number of credits completed: ");
            int c=inf.nextInt();
            System.out.println("Please enter student's GPA: ");
            Double g=inf.nextDouble();
            students[i] = new Student(first, last, c, g);
        public static void printAll(Student[] students) {
        System.out.println("Names      Credits  GPA");
           for(int i = 0; i < students.length; i++)
        System.out.println(students);
    public static Double getAvg(Student[] students, Double g){
    double sum=0.0;
    double avg=0.0;
    for(int i=0; i<students.length; i++){
    sum+=g;
    avg=sum/students.length;
    return avg;

    Oh no I wasn't giving any orders. I was saying I have been trying to edit what I have, but I can't figure out how to get the method right to do my average of the GPA from the loop. I don't know what to put in there. I was just asking if you would write it and then kind of explain what u did for me please.
    import java.util.Scanner;
    public class StudentLists {
    //Main method. Prompts user for the number of students.
       public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       System.out.print("Please enter the number of students in this class: ");
       int s = in.nextInt();
       Student[] students=new Student[s];
       FillStudents(s,students);
       printAll(students);
       public static void FillStudents(int s, Student[] students){
       for (int i=0; i<s; i++)
            Scanner inf = new Scanner(System.in);
            System.out.println("Please enter student's first name: ");
        String first = inf.nextLine();
        System.out.println("Please enter student's last name: ");
            String last=inf.nextLine();
            System.out.println("Please enter the number of credits completed: ");
            int c=inf.nextInt();
            System.out.println("Please enter student's GPA: ");
            Double g=inf.nextDouble();
            students[i] = new Student(first, last, c, g);
        public static void printAll(Student[] students) {
        System.out.println("Names      Credits  GPA");
           for(int i = 0; i < students.length; i++)
        System.out.println(students);
    public static Double getAvg(Student[] students){
    double sum=0.0;
    double avg=0.0;
    for(int i=0; i<students.length; i++){
    avg=sum/students.length;
    System.out.println(avg);
    return avg;

  • Need help choosing processor and display for X240 please

    I'm about to purchase an X240 today or tomorrow and, after doing multiple forum searches and reading a 67-page X240 thread elsewhere, I would really appreciate some help choosing a processor and a display. If it makes a difference, I've decided on:
    *Windows 7 Pro 64 bit
    *8GB of RAM
    *256GB SSD
    I intend to use the laptop for viewing/editing Word documents and Powerpoint presentations, streaming movies, and streaming recorded lectures. I'm not sure what lecture viewer/player my school uses yet, but I do know that it has options to play the lectures at accelerated speeds (1.5x, 2x, etc.) and that I will definitely need to use this feature. I'm not computer literate enough to discern whether the processor type has any effect on this. I will use an external drive if I need to download and save any lectures. I also plan to do some infrequent and basic photo editing with Windows Photo Gallery and MS Paint. I'm willing to pay extra for a smoother/faster experience, but I don't want to go with the i7 processor if it's overkill for my purposes or if there are other significant trade-offs besides price.
    As for display, I'm torn between the regular HD (1366x768) IPS Non-touch, regular HD IPS Touch, and FHD IPS Touch.  Re: HD vs FHD, I've been using a 1280x800 13.3" non-IPS display for the last 6 or 7 years, and I'm pretty happy with it except for the limited viewing angles. Wouldn't regular HD on a 12.5" screen be a step up in resolution? A lot of the reviews of the regular HD on the X240 express disappointment with the "low" resolution, but I don't know if it's really that bad, or if people just have much higher expectations/standards than I do. I'm leaning towards regular HD because my glasses are so strong that increasing the sharpness of what I see also has the side effect of making things appear smaller (minimization error), so I'd probably have to mess with text/DPI scaling if I went with FHD, which isn't a perfect solution from what I've read. I'd only consider getting a touch version if I need FHD (since it doesn't come in non-touch), or if it somehow makes the HD display sharper or more vibrant--I have no intention of actually using touch features.
    Apologies for the length, and thanks in advance for any advice! :-)

    Actually I have been doing further research and I personally would either go with the 2.6GHz NON RETINA MBP or cough up the cash and go all out on a 2.6GHz RETINA MBP and upgrade the RAM to 16GB  and upgrade to 768GB Flash storage, I am a student as well so will get a discount which will help.
    My fears are that if I get the Retina model I will not be able to upgrade it even further, I want to keep the computer for at least a good 5 years, during those 5 to 8 years will the current upgrades be enough to keep up with the top games and programs etc? Also I have read that repairing the Retina display model is very diffcult  and it can malfunction commonly, so I am guessing I should get apple care on top of it just to be sure with this particular model?
    I am assuming that they they will bring out the new models out next year and all the chinks and bugs of the current Retina model will be fixed so to speak, of which I have read there is a few... Would it be worth buying the NON RETINA MBP and then selling and upgrading to an improved RETINA MBP model next year?
    Finally if i back up my files on a hardrive would I have to use the USP SUPER DRIVE to install files onto the RETINA MBP or can i directly do this without the USP SUPERDRIVE?
    Thanks

  • Need Help: Workflow Decision Task not visible in NWBC for customer Task

    Hello All,
    I am  new to NWBC configuration , need ur expert knowledge  for the below issue. I have checked the treat . Approve/Reject button for SRM Approval for RFx response ,but not able to get the exact steps for the configurations in NWBC.
    Requirement.
         We are working on SLM/SRM module, where we have requirement to create a custom workflow with custom Task for which we have executed below actions.
    Created the Custom Workflow.
    Created the custom Task with custom  ZCLASS and ZEVET.
    Created   Event linkages in SWE2.
    After doing this we are getting the workitem in the NWBC, currently we don’t have the Portal system in place, so we are using the NWBC for all our testing.
    What is the issue?
         When we select the workitem in the NWBC (UML) inbox  , the Decision Task ie “Approve” or “Reject” button are not visible , where as for SAP standard  Task  buttons are visible.
    What help we need?
      When we cross check the SCN/IBM portal, found that we need to do the XML file configurations. Can you any one kindly let us know the steps we need to follow to achieve our functionality.
    Thanks a lot in advance.
    Thanks and Regards
    Channa

    You need to share the details of what Inbox you are using, configuration steps depend on it. If you aren't using portal, you aren't using UWL and there is no UML inbox. You need to get your facts straight. Most likely you are using the Business Workflow Inbox (SWF_WORKPLACE) or the Lean Inbox (IBO_WDA_INBOX). Both are based on Web Dynpro ABAP and POWL but the configuration is different. Regardless, you posted this in the wrong space. Correct space is either SAP NetWeaver Business Client or Web Dynpro ABAP.

  • Need help displaying images with List component for Flash CS4 (ActionScript 3.0)

    Hi folks:
    I am an inexperienced user of Flash CS4 Pro (v10.0.2). I am attempting to use the List component with ActionScript 3.0 to make a different image display when a user clicks each item in a list.
    I did find a tutorial that showed me how to make different text display using a dynamic text box and the following ActionScript:
    MyList.addEventListener(Event.CHANGE, ShowSelectedItem);
    function ShowSelectedItem(event:Event):void {
        ListText.text=MyList.selectedItem.data;
    ...where My List is the instance of the List component and ListText is the dynamix text box. In this case, the user clicks an item in the list, defined by the label value in the dataProvider parameter of the List component, and text displays as defined in the data value in the dataProvider parameter.
    However, as I mentioned to start, what I really want to do is make images display instead of text. Can anyone provide me the steps to do this?
    I appreciate your help (in advance)!!
    Cindy

    Hi...thanks for responding! I was planning on using images from the Library, but if there is a better way to do it, I'm open. So far, I just have text in the data property. This is part of my problem. I don't know what I need to put in the data value for an image to display. Do I just put the image file name and Flash will know to pull it from the Library? Do I need to place the images on the stage on different frames? I apologize for the "stupid user" questions, but as you can tell, I'm a newbie.
    Appreciate your patience and any help you can offer!
    Cindy

  • Need help in interactive alv list

    hi,
    i  need document and simple Example prog for interactive alv list.If anybody have it kindly help me..
    thanks in advance,
    Kavitha.

    hi,
    Jus copy and paste the following code in SE38.
    *& This is an Interactive ALV report, where on line slection we can see
    *&  the secondry list
    REPORT  ZZ_22038_22098_002 NO STANDARD PAGE HEADING LINE-SIZE 650
    MESSAGE-ID ZZ_9838                      .
    TYPE-POOLS: SLIS.
    *type declaration for values from ekko
    TYPES: BEGIN OF I_EKKO,
           EBELN LIKE EKKO-EBELN,
           AEDAT LIKE EKKO-AEDAT,
           BUKRS LIKE EKKO-BUKRS,
           BSART LIKE EKKO-BSART,
           LIFNR LIKE EKKO-LIFNR,
           END OF I_EKKO.
    DATA: IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,
          WA_EKKO TYPE I_EKKO.
    *type declaration for values from ekpo
    TYPES: BEGIN OF I_EKPO,
           EBELN LIKE EKPO-EBELN,
           EBELP LIKE EKPO-EBELP,
           MATNR LIKE EKPO-MATNR,
           MENGE LIKE EKPO-MENGE,
           MEINS LIKE EKPO-MEINS,
           NETPR LIKE EKPO-NETPR,
           END OF I_EKPO.
    DATA: IT_EKPO TYPE STANDARD TABLE OF I_EKPO INITIAL SIZE 0,
          WA_EKPO TYPE I_EKPO .
    *variable for Report ID
    DATA: V_REPID LIKE SY-REPID .
    *declaration for fieldcatalog
    DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    DATA: IT_LISTHEADER TYPE SLIS_T_LISTHEADER.
    declaration for events table where user comand or set PF status will
    be defined
    DATA: V_EVENTS TYPE SLIS_T_EVENT,
          WA_EVENT TYPE SLIS_ALV_EVENT.
    declartion for layout
    DATA: ALV_LAYOUT TYPE SLIS_LAYOUT_ALV.
    declaration for variant(type of display we want)
    DATA: I_VARIANT TYPE DISVARIANT,
          I_VARIANT1 TYPE DISVARIANT,
          I_SAVE(1) TYPE C.
    *PARAMETERS : p_var TYPE disvariant-variant.
    *Title displayed when the alv list is displayed
    DATA:  I_TITLE_EKKO TYPE LVC_TITLE VALUE 'FIRST LIST DISPLAYED'.
    DATA:  I_TITLE_EKPO TYPE LVC_TITLE VALUE 'SECONDRY LIST DISPLAYED'.
    INITIALIZATION.
      V_REPID = SY-REPID.
      PERFORM BUILD_FIELDCATLOG.
      PERFORM EVENT_CALL.
      PERFORM POPULATE_EVENT.
    START-OF-SELECTION.
      PERFORM DATA_RETRIEVAL.
      PERFORM BUILD_LISTHEADER USING IT_LISTHEADER.
      PERFORM DISPLAY_ALV_REPORT.
    *&      Form  BUILD_FIELDCATLOG
          Fieldcatalog has all the field details from ekko
    FORM BUILD_FIELDCATLOG.
      WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'EBELN'.
      WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'AEDAT'.
      WA_FIELDCAT-SELTEXT_M = 'DATE.'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'BUKRS'.
      WA_FIELDCAT-SELTEXT_M = 'COMPANY CODE'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'BUKRS'.
      WA_FIELDCAT-SELTEXT_M = 'DOCMENT TYPE'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'LIFNR'.
      WA_FIELDCAT-NO_OUT    = 'X'.
      WA_FIELDCAT-SELTEXT_M = 'VENDOR CODE'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    ENDFORM.                    "BUILD_FIELDCATLOG
    *&      Form  EVENT_CALL
      we get all events - TOP OF PAGE or USER COMMAND in table v_events
    FORM EVENT_CALL.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = V_EVENTS
      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.                    "EVENT_CALL
    *&      Form  POPULATE_EVENT
         Events populated for TOP OF PAGE & USER COMAND
    FORM POPULATE_EVENT.
      READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC EQ 0.
        WA_EVENT-FORM = 'TOP_OF_PAGE'.
        MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-FORM.
      ENDIF.
      READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
      IF SY-SUBRC EQ 0.
        WA_EVENT-FORM = 'USER_COMMAND'.
        MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-NAME.
      ENDIF.
    ENDFORM.                    "POPULATE_EVENT
    *&      Form  data_retrieval
      retreiving values from the database table ekko
    FORM DATA_RETRIEVAL.
      SELECT EBELN AEDAT BUKRS BSART LIFNR FROM EKKO INTO TABLE IT_EKKO.
    ENDFORM.                    "data_retrieval
    *&      Form  bUild_listheader
          text
         -->I_LISTHEADEtext
    FORM BUILD_LISTHEADER USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
      DATA HLINE TYPE SLIS_LISTHEADER.
      HLINE-INFO = 'this is my first alv pgm'.
      HLINE-TYP = 'H'.
    ENDFORM.                    "build_listheader
    *&      Form  display_alv_report
          text
    FORM DISPLAY_ALV_REPORT.
      V_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         I_CALLBACK_PROGRAM                = V_REPID
         I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
         I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
         I_GRID_TITLE                      = I_TITLE_EKKO
         IT_FIELDCAT                       = I_FIELDCAT[]
         I_SAVE                            = 'A'
         IT_EVENTS                         = V_EVENTS
        TABLES
          T_OUTTAB                          = IT_EKKO
      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_report
    *&      Form  TOP_OF_PAGE
          text
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = IT_LISTHEADER
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  USER_COMMAND
          text
         -->R_UCOMM    text
         -->,          text
         -->RS_SLEFIELDtext
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
    RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN '&IC1'.
          READ TABLE IT_EKKO INTO WA_EKKO INDEX RS_SELFIELD-TABINDEX.
          PERFORM BUILD_FIELDCATLOG_EKPO.
          PERFORM EVENT_CALL_EKPO.
          PERFORM POPULATE_EVENT_EKPO.
          PERFORM DATA_RETRIEVAL_EKPO.
          PERFORM BUILD_LISTHEADER_EKPO USING IT_LISTHEADER.
          PERFORM DISPLAY_ALV_EKPO.
      ENDCASE.
    ENDFORM.                    "user_command
    *&      Form  BUILD_FIELDCATLOG_EKPO
          text
    FORM BUILD_FIELDCATLOG_EKPO.
      WA_FIELDCAT-TABNAME = 'IT_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'EBELN'.
      WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'EBELP'.
      WA_FIELDCAT-SELTEXT_M = 'LINE NO'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'I_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'MATNR'.
      WA_FIELDCAT-SELTEXT_M = 'MATERIAL NO.'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'I_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'MENGE'.
      WA_FIELDCAT-SELTEXT_M = 'QUANTITY'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'I_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'MEINS'.
      WA_FIELDCAT-SELTEXT_M = 'UOM'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'I_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'NETPR'.
      WA_FIELDCAT-SELTEXT_M = 'PRICE'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    ENDFORM.                    "BUILD_FIELDCATLOG_EKPO
    *&      Form  event_call_ekpo
      we get all events - TOP OF PAGE or USER COMMAND in table v_events
    FORM EVENT_CALL_EKPO.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = V_EVENTS
      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.                    "event_call_ekpo
    *&      Form  POPULATE_EVENT
           Events populated for TOP OF PAGE & USER COMAND
    FORM POPULATE_EVENT_EKPO.
      READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC EQ 0.
        WA_EVENT-FORM = 'TOP_OF_PAGE'.
        MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-FORM.
      ENDIF.
      ENDFORM.                    "POPULATE_EVENT
    *&      Form  TOP_OF_PAGE
          text
    FORM F_TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = IT_LISTHEADER
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  USER_COMMAND
          text
         -->R_UCOMM    text
         -->,          text
         -->RS_SLEFIELDtext
    *retreiving values from the database table ekko
    FORM DATA_RETRIEVAL_EKPO.
    SELECT EBELN EBELP MATNR MENGE MEINS NETPR FROM EKPO INTO TABLE IT_EKPO.
    ENDFORM.
    FORM BUILD_LISTHEADER_EKPO USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
    DATA: HLINE1 TYPE SLIS_LISTHEADER.
    HLINE1-TYP = 'H'.
    HLINE1-INFO = 'CHECKING PGM'.
    ENDFORM.
    FORM DISPLAY_ALV_EKPO.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = V_REPID
       I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
       I_GRID_TITLE                      = I_TITLE_EKPO
       IT_FIELDCAT                       = I_FIELDCAT[]
       I_SAVE                            = 'A'
       IT_EVENTS                         = V_EVENTS
      TABLES
        T_OUTTAB                          = IT_EKPO
    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.
    Another program..............
    TABLES : LFA1,KNA1.
    DATA ITAB LIKE LFA1 OCCURS 0 WITH HEADER LINE.
    DATA ITAB1 LIKE KNA1 OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE T.
    SELECT-OPTIONS LIFNR FOR LFA1-LIFNR.
    SELECTION-SCREEN END OF BLOCK B.
    INITIALIZATION .
    T = 'VENDOR DETAILS'.
    AT SELECTION-SCREEN OUTPUT.
    LIFNR-LOW = '1000'.
    LIFNR-HIGH = '4000'.
    APPEND LIFNR.
    START-OF-SELECTION.
    SELECT * FROM LFA1 INTO ITAB WHERE LIFNR IN LIFNR.
    APPEND ITAB.
    ENDSELECT.
    LOOP AT ITAB.
    FORMAT COLOR 6 INVERSE ON.
    WRITE : /2 SY-VLINE,4 ITAB-LAND1,7 SY-VLINE,9 ITAB-NAME1,44 SY-VLINE,46
    ITAB-ORT01,60 SY-VLINE.
    HIDE ITAB-ORT01.
    ENDLOOP.
    FORMAT COLOR OFF.
    TOP-OF-PAGE.
    WRITE : / 'VENDOR DETAILS'.
    ULINE AT /(70).
    SKIP.
    END-OF-PAGE.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    SELECT * FROM KNA1 INTO TABLE ITAB1 WHERE ORT01 = ITAB-ORT01.
    LOOP AT ITAB1.
    FORMAT COLOR 6 INVERSE ON.
    WRITE : /2 SY-VLINE,4 ITAB1-LAND1,7 SY-VLINE,9 ITAB1-NAME1,44 SY-VLINE,
    46 ITAB1-ORT01,60 SY-VLINE.
    FORMAT COLOR OFF.
    ENDLOOP.
    ENDCASE.
    TOP-OF-PAGE DURING LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    WRITE : / 'VENDOR DETAILS'.
    ULINE AT /(70).
    SKIP.
    FORMAT COLOR 6 INVERSE ON.
    WRITE : /2 SY-VLINE,4 'LAND',7 SY-VLINE,9 'NAME',44 SY-VLINE,46
    'CITY',60 SY-VLINE.
    FORMAT COLOR OFF.
    WHEN 2.
    WRITE : / 'ANOTHER VENDOR DETAILS'.
    FORMAT COLOR 6 INVERSE ON.
    WRITE : /2 SY-VLINE,4 'LAND',7 SY-VLINE,9 'NAME',44 SY-VLINE,46
    'CITY',60 SY-VLINE.
    FORMAT COLOR OFF.
    endcase.
    END-OF-SELECTION.
    feel free to ask your clarifications.
    Senthil kumar

  • I need help with drop down lists

    I have a form that does not have lots of space and I want to use drop down lists to fill in specific information that describes site conditions.  The problem I have is that the drop down list is only set up for a single line and that is not enough space for what I want in the drop down list.  In other words, I have items that are several sentences.   I have seen some descriptions of creating a drop down list that then fills in a text box that has multiple lines.  Unfortunately, that is not an ideal solution for me.  I just want the drop down list to select a single phrase.  Here is an example of what I want to be able to select in the drop down.
    The water heater spilled flue gases in excess of 5 minutes under worst case conditions.  The combusiton testing was completed with in 30 days of the invoice submittal. 
    The form does not allow me to create a field that goes all the way across the page so it needs to look something like this:
    The water heater spilled flue gases in excess of 5 minutes
    under worst case conditions.  The combusiton testing was
    completed with in 30 days of the invoice submittal.
    Any help is greatly appriciated.

    Thanks for responding.
    I have three items that are very similar in length and text for each drop down.  There are 9 drop downs right now.  I am using the drop downs to fill in a form that is used by several people and I want to keep things as simple as possible.  Associated with the drop down already is a check box.  When the check box is checked, it fills in a text box with a score (1 point, 5 points, etc).  That score then tallys for a total with all the other scores in another text box.  Using a drop box to fill in a text box is just getting to busy and than I have to distinguish each drop down item so it is clear which text you are selecting.

  • Need help returning only 1min

    I'm working on a custom Discrete Job Picklist and am trying to return the locator with the least amount of the item that is required to pick. This is working fine except when the minimum is not distinct.
    Here's the bit of code that I'm working with:
    and d.total_qoh = (select min(f.total_qoh)
    from apps.mtl_onhand_locator_v f
    where d.item = f.item)
    This returns the mins but give me duplicates when the mins are the same. I'd like to return only 1 min locator per item. I've tried using a select distinct, but this does not work.
    Ideally, I'd like to use the min(locator_id) to determine which locator to use should the min(total_qoh) be non-distinct.
    I've tried using:
    and d.total_qoh = (select *(select min(f.total_qoh)
    from apps.mtl_onhand_locator_v f
    where d.item = f.item
    order by d.locator_id)
    where rownum = 1)
    But I don't think that order by is allowed in 8.1.6.1 and so it is not working. Likewise, I can't seem to get TOP N to work.
    Any suggestions?
    -Tracy
    Here's the full sql:
    select b.wip_entity_name "Job #",
           d.padded_concatenated_segments "Item",
           d.item_description "Description",
           c.REQUIRED_QUANTITY "Qty",
           e.segment1 "Row",e.segment2 "Section", e.segment3 "Shelf", e.segment4 "Bin",
           d.total_qoh "Qty at Loc",
           d.locator_id
    from wip.wip_discrete_jobs a, wip.wip_entities b, wip.wip_requirement_operations c, apps.mtl_onhand_locator_v d,  inv.mtl_item_locations e
    where a.wip_entity_id = b.wip_entity_id
    and   a.wip_entity_id = c.wip_entity_id
    and   c.inventory_item_id =  d.inventory_item_id
    and   d.locator_id = e.inventory_location_id
    and   d.ORGANIZATION_ID = '5'
    and   b.wip_entity_name >= '70319'--:job_low
    and   b.wip_entity_name <= '70320'--:job_high
    and   e.segment1 is not null
    and   a.status_type in  ('3', '1') --released and unreleased jobs
    and   d.total_qoh = (select min(f.total_qoh)
                        from apps.mtl_onhand_locator_v f
                        where d.padded_concatenated_segments = f.padded_concatenated_segments)
    order by b.wip_entity_name, e.segment1, e.segment2, e.segment3, e.segment4; Thanks for any help you can offer.
    -Tracy

    Richard - this is yielding ora-00904: invalid column. Although I have verified that the column names are correct. I think this may have something to do with not allowing an order by in a subquery for 8.1.6.1 but am not positive. It seems that I either get an invalid column name or missing right parenthesis when using order by in the subquery.
    and d.locator_id = (select locator_id
                           from (select locator_id
                                    from apps.mtl_onhand_locator_v
                                    where d.padded_concatenated_segments = f.padded_concatenated_segments
                                    order by total_qoh desc, locator_id desc)
                           where rownum = 1)
    -Tracy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Need Help to create access-list based on traffic logs

    Hello,
    We didn't have any Firewall in our network, we recently implemented  Cisco ASA (Context) firewall in our network with any  any permit rule .
    Our intension is to collect the source, destination, protocol & ports based on the traffic logs and then implement the access-lists , once we confirmed all the rule will added to the firewall we want remove any any permit rule .
    I need some suggestion regarding this how we can proceed on this plan, any suggestions appreciated
    Rajkumar

    Hi Rajkumar,
    That is not the ideal way of doing... this will lead to a provisioning an unauthorized person to access for something he is not authorized to.
    How many users do you have in your network? Try to categorize users based on their present authorization level of access.... say Team A users need to access everything... then you need to group them and provide full access..... Team B users need to be provided with only restricted access.... then group them and provide restricted access....
    If your case is something like this.... all users need unrestricted intranet access and certain users alone requires internet acceess... then you can define rules accordingly....
    Regards
    Karthik
    Regards
    Karthik

  • NEED HELP! Processor Question!

    Hey there! I just recently bought a mac pro and it comes with 2 dual-core xeon processors(still being shipped). I was wondering if I could upgrade to a quad-core i5. Some people say that I cannot. I need advice.

    It sounds like you have a 2006 Mac Pro 1,1. You can upgrade it to dual quad cores with any of the following Intel CPU's: E5345 (2.0 GHz), X5355 (2.66 GHz) or X5365 (3.0 GHz). Forget about the i5 - it won't even fit the socket. I did the upgrade from the dual core Xeon 5150 (2.66 GHz) to the quad core X5355. The actual time required to switch the cpu's is about an hour to an hour and a half. But before I started I spent about a month reading and rereading other people's postings about their experiences doing the upgrade. I'm retired and in my 70's so I have lots of time. A major complication that a number of people reported was that they were not able to remove two of the four screws holding the memory cage in place. These are the two screws at the front of the memory cage and are pointed down. So before I ordered my cpu's I made sure that I could remove these two screws. I would advise you to do the same. Remove the side panel and pull out both memory trays. Then see if you can remove the two screws at the front edge of the memory cage. If you can't you may want to quit. It is still possible to make the cpu switch with those screws in place but it is harder and it increases the chance of your breaking the catches on the heat sink cover. You'll need a Eklind 3 mm wrench (Amazon.com) and a small tube of Arctic Silver 5 (Amazon.com). These were about $6 each. I bought a pair of used X5355's on e-bay for $278 each. My Geekbench score went from 5200 to 9200. Handbrake times were decreased by a factor of 0.56.

Maybe you are looking for