Dynamic sort help needed

I am trying to implement a dynamic sort using pl/sql procedure
with two IN params, which tell what column to sort by
and wich direction. smth. like this
procedure getEmployees (p_dept_no in employee.dept_no%type,
p_sortBy in varchar2,
p_sortDir in varchar2
p_empl_cur in out emplCur
) is
begin
OPEN p_empl_cur
FOR
SELECT EMP_ID, F_NAME, L_NAME
FROM EMPLOYEE
WHERE DEPT_NO=p_dept_no
ORDER BY p_sortBy p_sortDir ; --> this is the part that does not work
-- I make sure that the params values are correct
-- possible p_sortBy values: EMP_ID, F_NAME, L_NAME
-- and p_sortDir: 'ASC' or 'DESC'
end getEmployees;
Thank you in advance.

Try execute immediate.
Some thing like this:
PROCEDURE GETEMPLOYEES (P_DEPT_NO IN EMPLOYEE.DEPT_NO%TYPE,
P_SORTBY IN VARCHAR2,
P_SORTDIR IN VARCHAR2
P_EMPL_CUR IN OUT EMPLCUR
) IS
BEGIN
OPEN P_EMPL_CUR
FOR
SORT_SQL := NULL;
SORT_SQL := 'SELECT EMP_ID, F_NAME, L_NAME FROM EMPLOYEE'||
' WHERE DEPT_NO=P_DEPT_NO '||
' ORDER BY '||P_SORTBY||' '||P_SORTDIR||';'
EXECUTE IMMEDIATE SORT_SQL INTO P_EMPL_CUR;
Thanks
Vasu
I am trying to implement a dynamic sort using pl/sql procedure
with two IN params, which tell what column to sort by
and wich direction. smth. like this
procedure getEmployees (p_dept_no in employee.dept_no%type,
p_sortBy in varchar2,
p_sortDir in varchar2
p_empl_cur in out emplCur
) is
begin
OPEN p_empl_cur
FOR
SELECT EMP_ID, F_NAME, L_NAME
FROM EMPLOYEE
WHERE DEPT_NO=p_dept_no
ORDER BY p_sortBy p_sortDir ; --> this is the part that does not work
-- I make sure that the params values are correct
-- possible p_sortBy values: EMP_ID, F_NAME, L_NAME
-- and p_sortDir: 'ASC' or 'DESC'
end getEmployees;
Thank you in advance.

Similar Messages

  • Dynamic Action-help needed

    Hi ,
    My requirement is in dynamic Action I need to delimit all records in a Subtype of an Infotype and create New record for these records with BEGDA as ENDDA + 1 of the delimited records.
    Iam able to delimit all records in the Subtype but , Iam not able to create new records.
    My code for delimiting is as given below, in T588Z,
    9901 2 06 801 P P9901-SUBTY='2'
    9901 2 06 802 P PSYST-IOPER='MOD'
    9901 2 06 803 P P9901-STATS='X'
    9901 2 06 804 P P9901-PREAS='91'
    9901 2 06 805 F DELIMIT_DTE(ZHSRAS_T588Z_9901)
    9901 2 06 806 W P9901-ENDDA=RP50D-ZZDATE3
    9901 2 06 807 I MOD,9901,3
    9901 3 06 808 P SY-UCOMM='UPD'
    9901 3 06 809 F DELIMIT_DTE(ZHSRAS_T588Z_9901)
    9901 3 06 810 W P9901-ENDDA=RP50D-ZZDATE3
    The above code is working fine.
    My code for creating new record is as given below, even though the control is oing to the subroutine, INS statement is not working, and hence new record is not getting created.
    9901 3 06 811 P SY-UCOMM='UPD'
    9901 3 06 812 P PSAVE-ENDDA<>P9901-ENDDA
    9901 3 06 813 P P9901-STATS<>'X'
    9901 3 06 814 I INS,9901,3
    9901 3 06 815 F BEGIN_DATE(ZHSRAS_T588Z_9901)
    9901 3 06 816 W P9901-BEGDA=RP50D-ZZDATE3
    9901 3 06 817 W P9901-ENDDA='99991231'
    Kindly help me on this.
    Thanks in Advance

    hi,
    thankyou for all ur valuable replies.
    Time constraint for this custom infotype is 2.
    It is not allowing to create a new subtype record if 1 exists.
    Here scenerio is
    Each Subtype ,ie, Subtp 2 ad 3 has got 4 records each with distinct OBJPS field.
    when STATS field of subtype 2 is changed for any 1 record in Subtype 2, corresponding record in Subtype 3 should get delimited .
    And, rest of the records of Subtype 3 should get created again with new start date.
    The code I have written for this is ,
    9901     2          06     800           *BEG*****DEATH OF WIDOW*****************
    9901     2          06     801     P     P9901-SUBTY='2'
    9901     2          06     802     P     PSYST-IOPER='MOD'
    9901     2          06     803     P     P9901-STATS='X'
    9901     2          06     804     F     DELIMIT_DTE(ZHSRAS_T588Z_9901)
    9901     2          06     805     W     P9901-ENDDA=RP50D-ZZDATE3
    9901     2          06     806     *     ****PSAVE-ENDDA<>P9901-ENDDA
    9901     2          06     807     F     LOCK_REC3(ZHSRAS_T588Z_0015)
    9901     2          06     808     I     <b>MOD,9901,3,P9901-OBJPS,(P9901-BEGDA),(P9901-ENDDA)</b>
    9901     2          06     812     *     *BEGCREATE NEW REC FOR SURVIVING WIDOWS******
    9901     2          06     813     *     *
    9901     2          06     814     P     P9901-STATS<>'X'
    9901     2          06     815     F     BEGIN_DATE(ZHSRAS_T588Z_9901)
    9901     2          06     816     W     P9901-BEGDA=RP50D-ZZDATE3
    9901     2          06     817     W     P9901-ENDDA='99991231'
    9901     2          06     818     I     <b>COP,9901,3,P9901-OBJPS,(P9901-BEGDA),(P9901-ENDDA)</b>
    9901     2          06     819     *     *ENDCREATE NEW REC FOR SURVIVING WIDOWS*****
    9901     2          06     830     *     ***END*****DEATH OF WIDOW*****************
    Control is going to all routines, but
    MOD,9901,3,P9901-OBJPS,(P9901-BEGDA),(P9901-ENDDA)  and
    COP,9901,3,P9901-OBJPS,(P9901-BEGDA),(P9901-ENDDA) is not working.
    Message was edited by: Shahana Shahul
    Message was edited by: Shahana Shahul

  • Dynamic Calendar help needed

    I am trying to convert a static events calendar to dynamic
    and I have run
    into a couple of snags that I don't seem to be able to figure
    out (darned
    Newbies!)
    The big problem that I am having is to have the Month/Year
    header display
    only one time for all the events in that month.
    The second problem is displaying a range of dates for one
    event (...Sept
    9-12)
    Example:
    September 2006
    Sept 1 - event 1, location
    Sept 9-12 - event 2, location
    Sept 14-16 - event 3, location
    October 2006
    Oct 3-4 - event 1, location
    Oct 23 - event 2, location
    This is the type of calendar I'm trying to dynamisize looks
    like this one
    http://internationalsoaringeaglesministries.org/calendar.htm
    It is not loaded with all sorts of dates so I chose to
    display only dates
    with events on them.
    Any help would be much appreciated!!
    Thanks
    Dave

    I am trying to convert a static events calendar to dynamic
    and I have run
    into a couple of snags that I don't seem to be able to figure
    out (darned
    Newbies!)
    The big problem that I am having is to have the Month/Year
    header display
    only one time for all the events in that month.
    The second problem is displaying a range of dates for one
    event (...Sept
    9-12)
    Example:
    September 2006
    Sept 1 - event 1, location
    Sept 9-12 - event 2, location
    Sept 14-16 - event 3, location
    October 2006
    Oct 3-4 - event 1, location
    Oct 23 - event 2, location
    This is the type of calendar I'm trying to dynamisize looks
    like this one
    http://internationalsoaringeaglesministries.org/calendar.htm
    It is not loaded with all sorts of dates so I chose to
    display only dates
    with events on them.
    Any help would be much appreciated!!
    Thanks
    Dave

  • Dynamic Form Help Needed !!

    Hi Guys,
    I need a form that has the following how do i code it in
    dreamweaver ?
    name :
    email address :
    phone number :
    status: item are New, Contacted, Appointment Scheduled, Sold
    ( This would be a dropdown and depending on what the user chooses
    the options below show up )
    commission amount (only shows if the status is changed to
    "Sold")
    Thumbnail Calendar (only shows if Appointment Scheduled is
    the status)

    Depends on what sort of server side processing you're going
    to be using for
    your dynamic form...
    Do you have that info??
    "NYCKIDDbx" <[email protected]> wrote in
    message
    news:fmip1k$rhv$[email protected]..
    > Hi Guys,
    >
    > I need a form that has the following :
    >
    > name :
    > email address :
    > phone number :
    > status: item are New, Contacted, Appointment Scheduled,
    Sold ( This would
    > be a
    > dropdown and depending on what the user chooses the
    options below show
    > up )
    > commission amount (only shows if the status is changed
    to "Sold")
    > Thumbnail Calendar (only shows if Appointment Scheduled
    is the
    > status)
    >

  • Creating a byte Array dynamically.Urgent Help needed.

    Hi there,
    I need to create a byte Array with the values
    derived from the array and then am passing this byte array
    to a method.
    Example :
    public static void main(String[] args) throws IOException {
    char chars[] = {'a','j','a','y'};
    byte[] b = {
    (byte) chars[0],(byte) chars[1],(byte) chars[2],(byte) chars[3],
    //** Send name to a server.
    sendRequest(b);
    This is all right.
    But here I know the size of the character array chars.
    If it had more than 4 characters or less than 4,
    is there a way to create the byte array dynamically based on the values in the character array?
    Please can some one help me with creating a byte array on the fly?
    Has anyone understood my question please?
    A response is much much appreciated.

    The actual problem is this.
    The byte array already has some fixed values to it
    and i need to append the values of the character array
    to this byte array
    ie
    char chars[] = {'a','j','a','y'};
    byte b[] = {
    // Predefined values
    (byte) 0x01, (byte) 0x7E, (byte)0x03
    // I have to add the values from the array here
    (byte) chars[0], (byte) chars[1]....
    How can I add these values.? The size of the character array
    can vary

  • Re: Including Applet in JSP with Dynamic input| Help needed

    Hi All,
    We are into a project in Oracle Portal Server where in we want to embed a result of a standalone application in Portal page.
    We can do that once we can embed the result of the standalone application which generates applet based on the input it gets from the current application's database.
    If it was static we could have used jsp:plugin but, it fails in our case!
    We are clueless as to how to embed an applet which will pick up the data dynamically.
    Can anyone of you help me in this regard?
    Thanks & Regards
    Arthi

    Hi Arthi,
    I think this might help you to get an idea why jsp:plugin tag does not allow for dynamically called applets.
    <jsp:plugin type=applet height="100%" width="100%"
    archive="myjarfile.jar,myotherjar.jar"
    codebase="/applets"
    code="com.foo.MyApplet" >
    <jsp:params>
    <jsp:param name="enableDebug" value="true" />
    </jsp:params>
    <jsp:fallback>
    Your browser does not support applets.
    </jsp:fallback>
    </jsp:plugin>
    The plugin example illustrates a <html> uniform way of embedding applets in a web page. Before the advent of the <OBJECT> tag, there was no common way of embedding applets. This tag is poorly designed and hopefully future specs will allow for dynamic attributes (height="${param.height}", code="${chart}", etc) and dynamic parameters. Currently, the jsp:plugin tag does not allow for dynamically called applets. For example, if you have a charting applet that requires the data points to be passed in as parameters, you can't use jsp:params unless the number of data points are constant. You can't, for example, loop through a ResultSet to create the jsp:param tags. You have to hand code each jsp:param tag. Each of those jsp:param tags however can have a dynamic name and a dynamic value.
    I think you can get better information if you look in to the below link
    http://pdf.coreservlets.com/CSAJSP-Chapter12.pdf
    Many Thanks,
    Ramesh.

  • Dynamic Reports Help Needed

    Could someone please point me in the direction of a tutorial
    or a book on how to create a hyperlink which will dynamically run
    an Access report and display in a web page? None of the reference
    books I own cover how to do this. I know this is pretty darn basic
    but I've never done this particular task before. can someone
    help??

    Could someone please point me in the direction of a tutorial
    or a book on how to create a hyperlink which will dynamically run
    an Access report and display in a web page? None of the reference
    books I own cover how to do this. I know this is pretty darn basic
    but I've never done this particular task before. can someone
    help??

  • Dynamic VTI help needed!

    Hi all,
    I currently have an "ordinary" site-to-site VPN with static crypto maps at the spokes and a dynamic crypto map at the headend.
    What I'd like to do is replace this with static VTIs at the spokes and a dynamic VTI at the headend. I don't need any of the "flash" of DMVPN, just as straight a swap as I can possibly get.
    The static VTIs are no problem, but I'm really confused about how to set up the dynamic VTI at the headend. I don't see how the DVTI gets associated with an interface, and which IP address the spoke should use to initiate the tunnel.
    Could anybody please post a simple (but complete) config for a DVTI hub and a SVTI spoke?
    many thanks,
    alec

    Configuring the Cisco IOS? Server Load Balancer (SLB) feature to distribute large numbers of IP Security (IPsec) tunnels onto a Cisco 7200/7301 IPsec server farm. The server farm hubs are configured with dynamic Virtual Tunnel Interface (VTI) while the remote spokes can be configured using VTI or crypto maps (supporting single proxy).
    http://www.cisco.com/en/US/products/ps6635/products_white_paper0900aecd8045b552.shtml

  • Radix sort help needed

    Can someone please help me with this radix sort on a dictionary (linkedList from the java utils). I am trying to pass the linkedList into an array which the java apis say that you can do with the to.Array() method but I am getting the noninformative cannot resolve symbol. Like the theory here is that one I should be able to pass a linkedList into an array and two, that I should be able to sort the list by calling the substrings(1,MAX_LENGTH) and then do a minus one on the length for the recursive call. However, this is giving me fits at this point and I don't know if I am totally off track and this will never work or if I am just not thinking it through clearly.
    Any help at all would be appreciated greatly...
    import java.util.*;
    public class radixSort
      //  radix sort using linked lists, where radixSort is not
      //  a method of the LinkeList class.
       public void radixSort(LinkedList listA)
       //*******************this is the line that's giving me fits***********************/
       java.util.LinkedList[] objArray = listA.toArray();
       final int MAX_LENGTH  =  8;    //  Strings are no more than 8 characters
       final int RADIX_SIZE = 26;    //  Alphabet has 26 letters
       // Use an array of 26 ArrayLists to groups the elements of the array
       createQueue[] groups = new createQueue[RADIX_SIZE];
       for (int x = 0; x < MAX_LENGTH; x++)
                 for (int i; i < MAX_LENGTH; i++)
                 groups = new createQueue();
              for (int position=MAX_LENGTH; position < 0; position--)
    for (int scan=0; scan < MAX_LENGTH; scan++)
    //ListIterator iter1 = listA.listIterator();
    String temp = String.valueOf (listA[scan]);
    String letter = temp.substring(0, position);
    groups[letter].enqueue ((listA[scan]));
    // gather numbers back into list
    int num = 0;
    for(int d=0; d<MAX_LENGTH; d++)
    while (!(groups[d].isEmpty()))
    numObj = groups[d].dequeue();
    listA[num] = numObj.intValue();
    num++;
    //****************************Here is the createQueue class...***********************/
    public class createQueue
    * Construct the queue.
    public createQueue( )
    front = back = null;
    * Test if the queue is logically empty.
    * @return true if empty, false otherwise.
    public boolean isEmpty( )
    return front == null;
    * Insert a new item into the queue.
    * @param x the item to insert.
    public void enqueue( Object x )
    if( isEmpty( ) ) // Make queue of one element
    back = front = new ListNode( x );
    else // Regular case
    back = back.next = new ListNode( x );
    * Return and remove the least recently inserted item
    * from the queue.
    public Object dequeue( )
    if( isEmpty( ) )
    //throw new UnderflowException( "ListQueue dequeue" );
              System.out.println("No elements");
    else;
    Object returnValue = front;
    front = front.next;
    return returnValue;
    * Get the least recently inserted item in the queue.
    * Does not alter the queue.
    public Object getFront( )
    if( isEmpty( ) )
    System.out.println("No elements");
    else;
    return front;
    * Make the queue logically empty.
    public void makeEmpty( )
    front = null;
    back = null;
    private ListNode front;
    private ListNode back;
    private void printans()
         if (isEmpty())
         System.out.println("No elements");
         else
         while (back != front)
         System.out.println (front);
         //front++;

    java.util.LinkedList[] objArray = listA.toArray();Impossible! You are going to convert a LinkedList to an array of LinkedList. It's impossible! Or, sheer nonsense, if ever possible.

  • URGENT SORT HELP NEEDED

    Hey everyone...
    This is VERY time critical....
    Could someone give me a method that uses an Insertion Sort to sort an array of Strings??
    Please help!!!
    Thanks!!
    Lardiop

    Object[] arr = new Object[size];
    Object temp1;
    for(int i=2; i <= arr.length; i++) {
      for(int j=i-1; j > 0; j--) {
        if(arr[j].compareTo(arr[j - 1]) < 0) {
          temp1 = arr[j];
          arr[j] = arr[j - 1];
          arr[j - 1] = temp1;
    }

  • Hierarchical Query Sort help needed in 9i (9.2.0.6)

    Hello all, hope you guys are far away from IKE (it hit us pretty bad last weekend), anyway come to point
    My requirement is data sorted by name is such a way after parent show its childs (if exists) i.e first sort parents and then by childs within parants
    I am expecting this
    1     BBQU-1
    2     BBQU-1 Sub event 1
    3     BBQU-1 Sub event 2
    10     BBQU-1 Sub event 3
    6     BBQU-1 Birthday
    5     BBQU-1 Advance
    7     BBQU-2
    4     BBQU-2 Sub event
    from
    1     BBQU-1     
    5     BBQU-1 Advance     
    2     BBQU-1 Sub event 1     1
    3     BBQU-1 Sub event 2     1
    10     BBQU-1 Sub event 3     1
    6     BBQU-1 Birthday     
    7     BBQU-2     
    4     BBQU-2 Sub event     7
    Here is the script for table and data.
    create table no_more_ike (event_id number, event_name varchar2(30), subevent_id number);
    insert into no_more_ike values (1, 'BBQU-1', null);
    insert into no_more_ike values (5, 'BBQU-1 Advance', null);
    insert into no_more_ike values (2, 'BBQU-1 Sub event 1', 1);
    insert into no_more_ike values (3, 'BBQU-1 Sub event 2', 1);
    insert into no_more_ike values (10, 'BBQU-1 Sub event 3', 1);
    insert into no_more_ike values (6, 'BBQU-1 Birthday', null);
    insert into no_more_ike values (7, 'BBQU-2', null);
    insert into no_more_ike values (4, 'BBQU-2 Sub event', 7);
    commit;
    Thanks a lot

    Is this OK?
    select
       event_id,
       event_name,
       subevent_id
    from no_more_ike
    start with SUBEVENT_ID is null
    connect by prior EVENT_ID = SUBEVENT_ID
    order by decode(subevent_id, null, event_id, subevent_id) asc;

  • Pl Dynamic sql help needed

    Hello Everyone
    I am using database 11g. Can someone pl suggest what are the rules for putting single quotes for dynamic sql like
    1) how many single quotes before/after a sql statement .
    2) Rules for putting single quotes if there exists i) a variable in the sql statement
    ii) a constant for e.g 100 in the sql statment.
    If you could give the answers with a simple select statement, it will be even better !!!
    Thanks and regards
    Gautam

    ms wrote:
    Hello Everyone
    I am using database 11g. Can someone pl suggest what are the rules for putting single quotes for dynamic sql like
    1) how many single quotes before/after a sql statement .
    2) Rules for putting single quotes if there exists i) a variable in the sql statement
    ii) a constant for e.g 100 in the sql statment.
    If you could give the answers with a simple select statement, it will be even better !!!
    Thanks and regards
    Gautamwrite the SQL statement as you would for any SQL client & enclose it using Q-quote
    http://askanantha.blogspot.com/2007/12/q-quote-operator-introduced-in-oracle.html
    Handle:     ms
    Status Level:     Newbie
    Registered:     Jun 3, 2007
    Total Posts:     46
    Total Questions:     17 (17 unresolved)
    WOW!
    *NEVER got any answer in 5+ years & still wasting time here again, still!
    You must be an eternal optimist.
    I hope I get credited for your FIRST answer.

  • Advanced Group Sorting Help Needed

    In a previous thread,I was able to great two levels of hierarchy:
    1) Group by Case Worker
       2) All clients that pertained to their caseload (assigned client)
    The initial problem was, it was pulling duplicate records because each client had multiple instances of treatment plans, but I was more concerned about the most recent begin date. within Section Expert > Details, I use the following formula
    {AZCLPLAN.BEG_DATE} <> maximum ({AZCLPLAN.BEG_DATE}, {CDCLIENT.CASE_NUM})
    This successfully pulled the most recent treatment plan for the client record, ignoring all previous records. However, the case worker wants to see their caseload sorted by which treatment plans are ending first (AZCPLAN.END_DATE). When I add a new group END_DATE, move it up the hierarchy for sorting, it breaks my duplicate record sort rule.
    In laymen terms, after the report strips the duplicates only showing the most recent records, I want to do a sort by dates thereafter. how is this possible?

    I tried adding Record Sort Expert. By default the two hierarchy groups are locked at the top tiers. The 3rd item is solely the record file: ..END_DATE set to ascending.
    Under the Caseworker Group (highest tier) , next group in line is CASE_NUM. therefore, once a group is in place, it trumps anything below it (currently sorted by chart/case number). I tried changing the Group Expert > CASE_NUM to "original order" , but no luck.

  • Problem clonning dynamic pool, help needed

    Hi, again I am having problems ...
    I manage to successfully import a winxp vm and convert it to template,
    I then went to the pool tab,created a new pool, added the template and
    configured the cloning to automatic, min 1, max 3 machines (I am still in testing
    mode)
    the problem is that when the vdi is trying to clone the machines, this is
    what I get:
         Cloning Desktop Dyn-pool-VM-01      Dyn-pool      11:41:18      11:42:33      Job Failed
    the error:
    Error cloning: No suitable hosts to start a desktop for Desktop Provider xvmhost.
    the desktop provider seems to be ok:
    xvmhost - Sun xVM VirtualBox Desktop Provider Summary
    Status: OK
    Pools: Dyn-pool
    Hosts:      
    CPU Usage:2%
    Total Memory:3.87 GB
    Memory Usage:95%
    Storage:      
    Number of Storages: 1
    Total Capacity:75.30 GB
    Usage:25%
    the host appears enabled in the host tab, but when I go to the template, nothing
    appears next the the host: parameter, is that ok?
    General Information
    Machine State: Powered Off
    Desktop State:Template
    User: -
    Assignment Type: -
    Guest Operating System
    Operating System: Microsoft Windows XP
    IP Address: -
    Template: -
    Desktop Provider Resources
    Host:
    Storage: inglaterra
    ZFS Volume:rpool/edd4470e-e8eb-4e11-9ee1-f6fd2607c83b
    what am I doing wrong or what am I missing? I did not find references to this
    in the wiki page ... if there are, plz provide me with the link(s)
    thanks in advance
    -Oswaldo

    this is the output from vmstat just before enabling the auto clone for the pool,
    dont know if this is usefull....
    root [ ~ ]# vmstat 5
    kthr memory page disk faults cpu
    r b w swap free re mf pi po fr de sr s0 s1 s2 s3 in sy cs us sy id
    0 0 0 17438080 610716 2 20 0 0 0 0 1 -0 -0 0 2 617 549 358 0 0 100
    0 0 0 17297396 384496 3 11 0 0 0 0 0 0 0 0 0 454 177 211 0 0 100
    0 0 0 17297300 384460 0 0 0 0 0 0 0 0 0 0 0 470 144 219 0 0 100
    0 0 0 17297268 384432 0 1 0 0 0 0 0 0 0 0 0 850 1859 1000 0 0 99
    0 0 0 17297148 384312 0 0 0 0 0 0 0 0 0 0 0 709 1280 736 0 0 100
    0 0 0 17297148 384312 0 0 0 0 0 0 0 0 0 0 2 503 169 265 0 0 100
    0 0 0 17297132 384304 0 0 0 0 0 0 0 0 0 0 0 712 1272 736 0 0 100
    0 0 0 17297132 384304 0 0 0 0 0 0 0 0 0 0 0 451 168 208 0 0 100
    0 0 0 17297132 384296 0 0 0 0 0 0 0 0 0 0 0 831 1830 993 0 0 99
    0 0 0 17297132 384296 0 0 0 0 0 0 0 0 0 0 0 470 165 216 0 0 100
    0 0 0 17297120 384288 0 0 0 0 0 0 0 0 0 0 0 705 1290 735 0 0 100
    0 0 0 17297116 384288 0 0 0 0 0 0 0 0 0 0 2 503 166 263 0 0 100
    0 0 0 17297116 384284 0 0 0 0 0 0 0 0 0 0 0 845 1843 1010 0 0 99
    0 0 0 17297116 384280 0 0 0 0 0 0 0 0 0 0 0 451 168 208 0 0 100
    0 0 0 17297116 384280 0 0 0 0 0 0 0 0 0 0 0 471 145 220 0 0 100
    0 0 0 17297100 384268 0 1 0 0 0 0 0 0 0 0 0 712 1295 737 0 0 100
    0 0 0 17297100 384260 0 0 0 0 0 0 0 0 0 0 0 573 716 470 0 0 100
    0 0 0 17297100 384260 0 0 0 0 0 0 0 0 0 0 2 503 165 263 0 0 100
    kthr memory page disk faults cpu
    r b w swap free re mf pi po fr de sr s0 s1 s2 s3 in sy cs us sy id
    0 0 0 17297100 384260 0 0 0 0 0 0 0 0 0 0 0 467 144 214 0 0 100
    0 0 0 17297100 384260 0 0 0 0 0 0 0 0 0 0 0 451 235 243 0 0 100
    0 0 0 17297100 384260 9 79 0 0 0 0 0 0 0 0 0 591 734 481 0 0 100
    0 0 0 17295868 384140 0 27 0 0 0 0 0 0 0 0 0 1013 2667 1377 0 0 99
    0 0 0 17295048 384064 0 0 0 0 0 0 0 0 0 0 0 450 151 206 0 0 100
    0 0 0 17295044 384060 0 0 0 0 0 0 0 0 0 0 2 746 1297 784 0 0 100
    0 0 0 17295032 384052 0 0 0 0 0 0 0 0 0 0 0 595 711 478 0 0 100
    0 0 0 17295032 384048 0 0 0 0 0 0 0 0 0 0 0 699 1296 736 0 0 100
    0 0 0 17295032 384048 0 0 0 0 0 0 0 0 0 0 0 472 145 221 0 0 100
    0 0 0 17295032 384048 0 0 0 0 0 0 0 0 0 0 0 469 174 217 0 0 100
    0 0 0 17294844 383796 0 44 0 0 0 0 0 0 0 0 0 848 1855 1007 0 0 99
    0 0 0 17294796 383732 0 0 0 0 0 0 0 0 0 0 2 502 168 262 0 0 100
    0 0 0 17294796 383728 0 1 0 0 0 0 0 0 0 0 0 715 1273 738 0 0 100
    0 0 0 17294784 383716 0 0 0 0 0 0 0 0 0 0 0 451 169 209 0 0 100
    and this is the status while cloning:
    Hosts:      
    CPU Usage:1%
    Total Memory:3.87 GB
    Memory Usage:90%
    root [ ~ ]# prtdiag -v|head -20
    System Configuration: Sun Microsystems Sun Fire X4200 Server
    BIOS Configuration: American Megatrends Inc. 080010 01/31/2006
    BMC Configuration: IPMI 2.0 (KCS: Keyboard Controller Style)
    ==== Processor Sockets ====================================
    Version Location Tag
    Dual Core AMD Opteron(tm) Processor 280 SE H0
    Dual Core AMD Opteron(tm) Processor 280 SE H1
    Dual Core AMD Opteron(tm) Processor 280 SE H2
    Dual Core AMD Opteron(tm) Processor 280 SE H3
    ==== Memory Device Sockets ================================
    Type Status Set Device Locator Bank Locator
    DDR in use 0 H0_DIMM0 BANK0
    DDR in use 0 H0_DIMM1 BANK1
    unknown empty 0 H0_DIMM2 BANK2

  • Help needed in configuring Dynamic F4

    Hi All
    I am trying to configure Dynamic F4 help for Actvities appln.
    In Actvities Appln I have the Partners tab.In this Partner tab I have partner function and partner Id fields. When I make a search for partner Id  I need to launch  the search screen based on thepartner function selected.
    I guess we can use dynamic F4 help but how to achieve this I am not sure. If anyone has done simliar stuff please do give your inputs.
    Thanks
    Regards
    Senthil

    Hi Senthil,
    You can use Search Help Exit for your problem.
    <b>Search help exit</b> : A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain time points in the input help process.
    <b>Note:</b> The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    A search help exit is called repeatedly in connection with several
    Events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    For more detailed information please refer to the documentation describing the concept of the search help exit.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    <b>Time Points</b> :
    During the input help process, a number of time points are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these time points. If required, the search help exit can also influence the process and even determine that the process should be continued at a different time point.
    The following time points are defined:
    <b>1. SELONE</b>
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This time point can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next time point.
    The time point is not accessed again if another elementary search help is to be selected during the dialog.
    <b>2. PRESEL1</b>
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this time point in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    <b>3. PRESEL</b>
    Before sending the dialog box for restricting values.
    This time point is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    <b>4. SELECT</b>
    Before selecting the values. If you do not want the default selection, you should copy this time point with a search help exit. DISP should be set as the next time point.
    <b>5. DISP</b>
    Before displaying the hit list. This time point is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    <b>6. RETURN</b> (usually as return value for the next time point)
    The RETURN time point should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this time point if control of the process sequence of the Transaction should depend on the selected value (typical
    example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    <b>7. RETTOP</b>
    You only go to this time point if the input help is controlled by a collective search help. It directly follows the time point RETURN. The search help exit of the collective search help, however, is called at time point RETTOP.
    <b>8. EXIT</b> (only for return as next time point)
    The EXIT time point should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    <b>9. CREATE</b>
    The CREATE time point is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. <b>APP1, APP2, APP3</b>
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these time points are introduced. They are accessed when the user presses the corresponding pushbutton.
    <b>Note:</b> If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at time points SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other time points the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, time point RETTOP is not executed. The search help exit of the elementary search help is called at time point SELONE (at the moment). This search help exit should not do anything at this time point. Any preparatory work should be carried out at time point PRESEL1.
    <b>Steps for creating search help :</b>
    1. Run Transaction SE11
    2. Give search help name
    3. Click on Create
    4. Make selection for Elementary or Collective search
       Help
    <b>For Elementary Search Help</b>
    5. Elementary search Help screen.  
    6. Give short description.
    7. Dialog type specifies the data display in the hit
       list.
    8. Give selection method
    A] Search for database tables
    B] Search for Views
    9. Hot key specifies the letter or number displayed with every elementary search help. 
    10. Search help Exit: Specify the function module developed for the search of data for the elementary search help.
    11. Search help parameter
    A] Specify the input and output fields in the search help parameter column.
    B] IMP column is input parameter for the search help.
    C] EXP column is output parameter of the search help, to be displayed in the Hit list after selection.
    D] LPos specifies the order in which fields are displayed in the hit list.
    E] SPos specifies the order in which fields are displayed in the search help pop up screen.
    F] Specify Data element in the field.
    G] Specify the default value for any field required.
    <b>For Collective Search Help :</b>
    12. Search help exit: Specify the function module developed for the search of data for the elementary search help.
    13. Search help parameter: Specify the import and export parameters.          
    14. Search help: Specify the elementary search help and the short text.
    15. Parameter Assignment: Select the elementary search help and click on the parameter assignment. System proposes fields. User has to select the fields as per requirement, fields to be displayed in the output
    hit list. Parameter assignment has to be done compulsorily for every elementary search help designed for the collective search help.   
    <b>Please reward points if it helps.</b>
    Regards,
    Amit Mishra

Maybe you are looking for

  • Error during creation of info record for pipline material.(Urgent)

    Hi All, We are getting the following error during creation of Info record for pipeline material " Material XXXXX is not a pipline material" we have checked the material master  and found it is a pipeline material. Kindly advice on the same. Help in a

  • Java wont run properly!

    Hi, I have downloaded the updates for Java and made sure the preferences are correct. Java isnt much help at all! It runs Java programs but not dailyfx.com graphs?! It just shows the Java logo. Is there something I need to download or correct? Thanks

  • Can't import Flip Mino HD video to iMovie 08, please help?

    when i connect my flip mino to the USB port, then open up iMovie, the video clips appear and ask me to import. I click on import all, then click to save the clips to my connected external Hard drive. I continue to get an error import message. I've tr

  • Update Fail  U44M1P7 ??

    I tried downloading the new updates today and I get th error U44M1P7 update fail. Now my Photoshop won't open either  , How do I fix this ??  windows 7 64 bit thanks

  • Why XControl's reference is invalid?

    There are 60 XControls on front panel.I get their reference by a subvi and then output their label text by property node.It's ok when vi run in labview 8.5 IDE.Then I build the program to exe file.The refrence is invalid when I run the exe file .So w