PP Experts please help (COMAC) - Urgent

Hi All,
I have a serious issue with coll. av. check as the standard SAP transaction COMAC is not helping me carry out av. check at operation level.
Eg:
Plant Stock for MtlF 3nos, MtlZ 4nos.
Wrk order - 1 for SubAssy-1
Crtd. on. - 25.1.08
Basic st dt. - 15.2.08
Opn 1 -> Execution Dt. 15.2.08  MtlA (2nos), MtlD(2nos)
Opn 2 -> Execution Dt. 12.3.08  MtlF (3nos), MtlZ(4nos)
Wrk order - 2 for SubAssy-2
Crtd. on. - 27.1.08
Basic st dt. - 01.3.08
Opn 1 -> Execution Dt. 01.3.08 MtlX (2nos), MtlR(2nos)
Opn 2 -> Execution Dt. 05.3.08 MtlF (3nos), MtlZ(4nos)
In the above example, when work order-1 is created & released, the av check is ok. But when i create work order-2, release & carry out coll. av. check MtlF & MtlZ is missing even though the need for these mtl's is earlier than that in work order-1. This is because the basic start date of the work order-1 is earlier than that of work order-2. I am unable to carry out the check based on operation execution date, but can only carry it out based on basic start date, which does not help my case.
I hope i have put across my problem clearly. I would like to know how i can overcome this shortcoming & resolve the issue?
Await inputs.
Vivek

Hi ,
Thanks for the info, but if i am right, the Dependent requirements are relating to the planned order, so what difference would it make to my scenario as both are production orders.
I would like to know, in customizing there is a checking rule for backorder processing, is this the rule which is used by the system when it runs COMAC?
Also if i uncheck 'include sales reqmts' then if mtl is committed to a sales order will be reset as well? or there is no way to reset commitments made to sales orders?
Await inputs.
Anyone with any suggestions on how i can resolve this?????
Edited by: Vivek on Jan 9, 2008 7:25 PM

Similar Messages

  • BDC - table control - experts please help

    Hi experts,
    Please help. I am in need of your help.
    I am working with BDC and I have a table control in one of the screen. Table control has a check box in the first column. While recording how I entered the data is : I select the check box in a row, enter two values in next two columns of that row and then hit enter then the other columns in that row turn from grey to white (initially these columns are greyed out).
    NOw in BDC when I run my session in foreground, I am able to check(select) the check box and enter the values in next two columns and then I have a Enter OKCODE. But when I hit enter it is not able to recognize the row and its unable to turn the greyed out columns in that particular row to white.
    Is there a way to specify in my program that I am hitting enter in one particular row.
    Please help. Let me know if something is not clear. Very urgent . Pleasee respond. Thanks

    Hi Rich,
    Thanks for the replies. I will try that. I got one more doubt. While manually creating the recipes using C201, there is a screen Recipe header. When I record this transaction, I see a different screen for the Recipe header. Fro example the screen numbers are like 4210(manual) and 4211(recording).
    But my problem is there are two fields which are missing in the screen which I am getting while recording C201. These two fields are present on the screen for manual creation. I need to enter those two fields while I record. But how can I do this.
    Please help.

  • Javafx deployment in html page(please help me urgent)

    i used the following method to deploy javafx in an html page.
    javafx file is:
    package hello;
    import javafx.scene.*;
    import javafx.stage.Stage;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.paint.Color;
    import javafx.scene.effect.DropShadow;
    Stage {
        title: "My Applet"
        width: 250
        height: 80
        scene: Scene {
            content: Text {
                x: 10  y: 30
                font: Font {
                     size: 24 }
                fill: Color.BLUE
                effect: DropShadow{ offsetX: 3 offsetY: 3}
                content: "VAARTA"
    I save the file as HelloApplet in a 'hello' named folder in my D:
    after that i downloaded from internet html code as
    <html>
        <head>
            <title>Wiki</title>
        </head>
        <body>
            <h1>Wiki</h1>
            <script src="dtfx.js"></script>
            <script>
                javafx(
                    archive: "HelloApplet.jar",
                    draggable: true,
                    width: 150,
                    height: 100,
                    code: "hello.HelloApplet",
                    name: "Wiki"
            </script>
        </body>
    </html>now i typed in DOS prompt as javafxc.exe HelloApplet.fx & i got the class files .
    _The main problem which is coming is how to create HelloApplet.jar file which is used in the html page without which the html page is not displaying the javafx script. Please help me urgently i am in the middle of my project & stuck up due to JAVAFX                   i am using WIndowsXP & javafx-sdk1.0 when i am typing jar command inside hello package it is displaying invalid command.in DOS prompt. If there is any other method to deploy javafx in html page then specify it also.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Crossposted: [http://forums.sun.com/thread.jspa?threadID=5323288].
    Please don't crosspost without notifying others. It is rude in terms of netiquette. Stick to one topic.

  • I made upgrade for IOS to 7.04 but my iphone is second hand and when iphone need to make activation ,i don't have the apple ID so my iphone didn't work from this time so please help me urgent

    I made upgrade for IOS to 7.04 but my iphone is second hand and when iphone need to make activation ,i don't have the apple ID so my iphone didn't work from this time so please help me urgent.

    There isn't one.
    amrzaky wrote:
    I can't contact with previous owner s i need another solutoin
    The Apple ID and Password that was Originally used to Activate the iDevice is required.
    If you cannot get this information from the seller
    Removing a device from a previous owner’s account
    You need to return the Device for a refund, as you will not be able to re-activate it.

  • SQL experts please help for a query

    I have following table1.
    What query can give the result as given below, SQL experts please help on this.
    TABLE1
    Event DATETIME
    in 2/JAN/2010
    out 2/JAN/2010
    in 13/JAN/2010
    out 13/JAN/2010
    in 5/JAN/2010
    out 5/JAN/2010
    RESULT REQUIRED FROM THE SQL QUERY
    COL1_IN COL2_OUT
    2/JAN/2010 2/JAN/2010
    13/JAN/2010 13/JAN/2010
    5/JAN/2010 5/JAN/2010

    I tried to help, but this puzzles me.
    Why is this not returning pre-selected set of rows, why it's doing some merge join cartezian ?
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> select * from table1;
    EVENT      DATETIME
    in         2/JAN/2010
    out        2/JAN/2010
    in         13/JAN/2010
    out        13/JAN/2010
    in         5/JAN/2010
    out        5/JAN/2010
    6 rows selected.
    SQL> explain plan for
      2  with a as
    (select datetime from table1 where event='in'),
    b as
    (select datetime from table1 where event='out')
    select  a.datetime COL1_IN ,b.datetime COL2_OUT from a,b ;
    Explained.
    SQL> set wrap off
    SQL> set linesize 200
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 185132177
    | Id  | Operation            | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |        |     9 |   288 |     8   (0)| 00:00:01 |
    |   1 |  MERGE JOIN CARTESIAN|        |     9 |   288 |     8   (0)| 00:00:01 |
    |*  2 |   TABLE ACCESS FULL  | TABLE1 |     3 |    48 |     3   (0)| 00:00:01 |
    |   3 |   BUFFER SORT        |        |     3 |    48 |     5   (0)| 00:00:01 |
    |*  4 |    TABLE ACCESS FULL | TABLE1 |     3 |    48 |     2   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       2 - filter("EVENT"='in')
       4 - filter("EVENT"='out')
    Note
       - dynamic sampling used for this statement
    21 rows selected.
    SQL> with a as
    (select datetime from table1 where event='in'),
    b as
    (select datetime from table1 where event='out')
    select  a.datetime COL1_IN ,b.datetime COL2_OUT from a,b ;
    COL1_IN         COL2_OUT
    2/JAN/2010      2/JAN/2010
    2/JAN/2010      13/JAN/2010
    2/JAN/2010      5/JAN/2010
    13/JAN/2010     2/JAN/2010
    13/JAN/2010     13/JAN/2010
    13/JAN/2010     5/JAN/2010
    5/JAN/2010      2/JAN/2010
    5/JAN/2010      13/JAN/2010
    5/JAN/2010      5/JAN/2010
    9 rows selected.
    SQL>

  • I bought an iphone 5 from one of my friends and unluckily I had yet lost his contact, I had update this iphone to IOs 7 and now it's be locked at iCloud because there was no password . Actually I dont know what I must do for its. Experts, please help me!

    I bought an iphone 5 from one of my friends and unluckily I had yet lost his contact, I had update this iphone to IOs 7 and now it's be locked at iCloud because there was no password . Actually I dont know what I must do for its. Experts, please help me!

    The friend who sold it to you needed to clear his Apple ID off the phone before he sold it to you. Of course if it wasn't his phone in the first place then he could not do so. He is your friend but you don't know where he is?
    There is nothing that will help you short of getting the password for the Apple ID from your friend. If you cannot obtain that there is no workaround.

  • Problem in VO execution----Please help me urgent

    Hi,
    I have One region(ASNOpptyReviewRN).this region is a tab in the main page(OpptyPG).For the region i am using one VO(OppReviewVO).
    When i came to this page i am writing the code in the process request to execute the VO based on the condition..so i can get the data on the page.
    First time VO is getting executed and data is coming in the page.if there is no data then i have the requirement to insert or update the fields in the region.
    So everything is working fine first time..or if i not insert anything new row...it is working fine all the time.
    But the problem is...after insert a new row and if i come to home page(not OpptyPG) and if i go to the ASNOpptyReviewRN the vo is getting executed but it is not showing the data on the page..
    This is happenig only when i insert a new row and i come back to that page..
    Please Help me..its urgent.. i am pasting the Processrequest and Amimpl code here...
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am=pageContext.getApplicationModule(webBean);
    String BidNumber=(String)pageContext.getTransactionTransientValue("ASNOpptyDetNbr");
    String reviewdBy=pageContext.getParameter("ReviewedBy");
    String reviewdDate=pageContext.getParameter("ReviewedDate");
    String versionNum=pageContext.getParameter("VersionNumber");
    String effortWithoutCont=pageContext.getParameter("EffortWithoutContingency");
    String contEffort=pageContext.getParameter("ContingencyEffort");
    String reviewFlag=pageContext.getParameter("ReviewFlag");
    String expiryDate=pageContext.getParameter("ExpiryDate");
    String comments=pageContext.getParameter("Comments");
    Serializable[] parameters={BidNumber,reviewdBy,reviewdDate,versionNum,effortWithoutCont,contEffort,reviewFlag,expiryDate,comments};
    pageContext.writeDiagnostics(this, "Inside ifff Bharat", 1);
    am.invokeMethod("insertBidReviewRow",parameters);
    and the method in the am is
    public void insertBidReviewRow(String BidNumber,String reviewdBy,String reviewdDate,String versionNum,String effortWithoutCont,String contEffort,String reviewFlag,String expiryDate,String comments) throws SQLException,
    ParseException
    String msg1="Hi i am inside bidreview"+BidNumber+reviewdBy+reviewdDate+versionNum+effortWithoutCont+contEffort+reviewFlag+expiryDate+comments;
    logMessages(msg1);
    Number bidnum=new Number(BidNumber);
    OpportunityBidReviewVOImpl vo;
    vo = getOpportunityBidReviewVO1();
    vo.setWhereClause(null);
    vo.setWhereClauseParams(null);
    vo.setWhereClause("BID_ID=:1");
    vo.setWhereClauseParam(0,bidnum);
    vo.executeQuery();
    int rowCount=vo.getRowCount();
    String msg8="Hi no of row count:-.."+":-- "+rowCount;
    logMessages(msg8);
    if(rowCount==0)
    String msg2="Hi iam inside bidreview:- Before fetch...";
    logMessages(msg2);
    vo.setMaxFetchSize(0);
    Row row=vo.createRow();
    String msg3="Hi iam inside bidreview:- After create....";
    logMessages(msg3);
    vo.insertRow(row);
    String msg4="Hi iam inside bidreview:- insert row....";
    logMessages(msg4);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    vo.setCurrentRow(row);
    String msg5="Hi iam inside bidreview:- insert row....";
    logMessages(msg5);
    OpportunityBidReviewVORowImpl opptybidreviewVo = (OpportunityBidReviewVORowImpl)vo.getCurrentRow();
    opptybidreviewVo.setBidId(bidnum);
    opptybidreviewVo.setReviewedBy(reviewdBy);
    //opptybidreviewVo.setReviewedDate(reviewdate);
    opptybidreviewVo.setVersionNumber(versionNum);
    opptybidreviewVo.setEffortWithoutContingency(effortWithoutCont);
    opptybidreviewVo.setContingencyEffort(contEffort);
    opptybidreviewVo.setReviewFlag(reviewFlag);
    //opptybidreviewVo.setExpiryDate(expirydate);
    opptybidreviewVo.setComments(comments);
    String msg6="Hi iam inside bidreview:- after all....";
    logMessages(msg6);
    String msg7="vo is cleared";
    logMessages(msg7);
    else
    String msg7="Hi iam inside bidreview:- already existing.....";
    logMessages(msg7);
    Thanks in advance
    Edited by: 842238 on Jul 1, 2011 7:07 AM

    Hi Kristoper,
    No..that Vo is based on some EO..why i am using the row.setAttribute() is...the bid number is coming from some other page...and i need to insert it in table..
    and except the bid number..other values are coming from the page...
    Thank you

  • Using flat file to upload in ABAP. Please help. Urgent

    Hi all,
    I am using a CSV excel file to upload some data to my ABAP program. Thje file contains material numbers as one of the fields. But if I enter the material number 11910892E80, excel converts it to  1.19E+87. Since I am using this file in the program to extract some fields from MARA, i am getting an error 'Material number does not exist'.
    I know that we can avoid this problem by changing the format type of the cell to 'text' in excel. I want to know if there is any other way to rectify this problem. I have to use an excel file for upload. Notepad will not do.
    Please help me solve this problem. It is urgent.
    Thanks and regards,
    Swaminath

    Hi
    If it is comma delimited file (CSV format) you can directly read the whole file and into a table with one field.
    Loop at that table.
    Use split a comma into fields of your internal table.
    endloop.
    Sample code
    move pcfile to v_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                = v_file
          FILETYPE                = 'ASC'
          HAS_FIELD_SEPARATOR     = 'X'
        TABLES
          DATA_TAB                = in_rec
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          OTHERS                  = 17.
      if sy-subrc ne 0.
        write:/5 'Error with PC file'.
      endif.
      loop at in_rec.
        if in_rec(4) ca number.
          split in_rec at p_del into
            itab-tcode  itab-tcodet
            itab-saknr
            itab-waers1 itab-waers2
            itab-amt1   itab-amt2
            itab-gl itab-kostl
            itab-prctr itab-obukrs
            itab-otcode itab-otcodet.
          if itab-amt1 = '0.00' or itab-amt1 = space.      "skip this line
            continue.
          endif.
          move-corresponding itab to fitab.
          append fitab.
          clear: itab, fitab.
         append itab.
        endif.
      endloop.

  • Problem in Code..Please help..urgent...:(

    Hello All,
    Please refer to the below code:
    package com.sap.NewOrderAssignment;
    import java.io.Serializable;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.Locale;
    import java.util.GregorianCalendar;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.TableColumnType;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    import com.sapportals.htmlb.table.TableColumn;
    public class BeanOrderDetails implements Serializable
    { public Date toDay, orderDate;
    public String toDayAsString;
    public IListModel deliveryAddress;
    public TextEdit address;
    public DefaultTableViewModel orderLines;
    public Locale locale;
    public String poNumber, model, qty;
    public Object colTitle[] = {"Model","Description","Qty (pcs)","AD Price","Net Price","Total amount","Indication ETA","12 NC","Part Del","GIM","# A-box","Pcd/A-box"};
    public BeanOrderDetails()
    { Calendar cal = new GregorianCalendar();
    toDay = cal.getTime();
    String year = String.valueOf(cal.get(Calendar.YEAR));
    String month = String.valueOf(cal.get(Calendar.MONTH)+1);
    String day = String.valueOf(cal.get(Calendar.DAY_OF_MONTH));
    toDayAsString = year"-"month"-"day;
    deliveryAddress = new DefaultListModel();
    deliveryAddress.setSingleSelection(true);
    deliveryAddress.addItem("1", "Delivery Address1");
    deliveryAddress.addItem("2", "Delivery Address2");
    deliveryAddress.addItem("3", "Delivery Address3");
    //company address
    address = new TextEdit("Company Address");
    address.setRows(4);
    address.setCols(40);
    String line1 = "KPIT Cummins Infosystems Ltd.";
    String line2 = "MIDC, Hinjewadi";
    String line3 = "Pune, India";
    address.setText(line1line2line3);
    address.setEnabled(true);
    //Table creation
    Object data[][] = {{"HQ8894","Sensotec Dry Rota Shaver","500","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
    orderLines = new DefaultTableViewModel(data, colTitle);
    TableColumn columnModel = orderLines.getColumnAt(1);
    TableColumn columnDesciption = orderLines.getColumnAt(2);
    TableColumn columnQty = orderLines.getColumnAt(3);
    TableColumn columnADPrice = orderLines.getColumnAt(4);
    TableColumn columnNetPrice = orderLines.getColumnAt(5);
    TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
    TableColumn columnETA = orderLines.getColumnAt(7);
    TableColumn column12NC = orderLines.getColumnAt(8);
    TableColumn columnPartDel = orderLines.getColumnAt(9);
    TableColumn columnGIM = orderLines.getColumnAt(10);
    TableColumn columnABox = orderLines.getColumnAt(11);
    TableColumn columnAmountInBox = orderLines.getColumnAt(11);
    TableColumn columnPcsBox = orderLines.getColumnAt(12);
    columnModel.setType(TableColumnType.INPUT);
    columnModel.setWidth("150");
    columnQty.setType(TableColumnType.INPUT);
    columnDesciption.setWidth("300");
    public void setLocale(Locale l)
    { locale = l;
    public Locale getLocale()
    { return locale;
    public void setOrderDate(Date od)
    { orderDate = od;
    public Date getOrderDate()
    { return orderDate;
    public void setOrderLines(DefaultTableViewModel mm)
    { orderLines = mm;
    public DefaultTableViewModel getOrderLines()
    { return orderLines;
    public void setAddress(String adr)
    { address.setText(adr);
    public void setTextEditAddress(TextEdit adr)
    { address = adr;
    public TextEdit getTextEditAddress()
    { return address;
    public String getAddress()
    { return address.getText();
    public void setDeliveryAdresses(IListModel model)
    { deliveryAddress = model;
    public IListModel getdeliveryAddresses()
    { return deliveryAddress;
    public void setPoNumber(String pon)
    { this.poNumber = pon;
    public String getPoNumber()
    { return this.poNumber;
    public void setModel(String m)
    { this.model = m;
    public void setQty(String quantity)
    { this.qty = quantity;
    public void getNewRow()
    { Object data[][] = { {"","Sensotec Dry Rota Shaver ABC","","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
    this.setQty("");
    this.setModel("");
    TableColumn columnModel = orderLines.getColumnAt(1);
    TableColumn columnDesciption = orderLines.getColumnAt(2);
    TableColumn columnQty = orderLines.getColumnAt(3);
    TableColumn columnADPrice = orderLines.getColumnAt(4);
    TableColumn columnNetPrice = orderLines.getColumnAt(5);
    TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
    TableColumn columnETA = orderLines.getColumnAt(7);
    TableColumn column12NC = orderLines.getColumnAt(8);
    TableColumn columnPartDel = orderLines.getColumnAt(9);
    TableColumn columnGIM = orderLines.getColumnAt(10);
    TableColumn columnABox = orderLines.getColumnAt(11);
    TableColumn columnAmountInBox = orderLines.getColumnAt(11);
    TableColumn columnPcsBox = orderLines.getColumnAt(12);
    columnModel.setType(TableColumnType.INPUT);
    columnModel.setWidth("150");
    columnQty.setType(TableColumnType.INPUT);
    columnDesciption.setWidth("300");
    The above code creates a table. It actually maps the various fields as the TableColumn.
    Question:
    I have added a button which appears below this table.
    Name of button = AddNewLine
    Now, when this button is clicked, a new empy row should appear in the table.
    My stmts in method - getNewRow() are not working.
    Please help me do so.
    Please help...its kinda urgent.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
             First up all I don't see any code where exactly you have added a button in the table.
             Secondly as a general thing,looking on to ur scenario you have initialize the table on the event of clicking the button ie)in ur getNewRow() just initialize your code for building an empty row of the table.
    Regards,
    guru

  • Problem with Accessing Deployed Servlets Please help, very urgent.

    Inspite of going through lots of Docs. I am not able to access the JSP which is deployed using JDeveloper 3.2 in the browser? What should be the URL and where should I place the JSP and the related files in the Apache Server (Specific directory)?
    Please help, this is very Urgent.
    Could I get some sites where I can get detailed description of how to deploy and access Servlets and JSPS using JDeveloper 3.2 for OAS 9i?
    Thanks in advance,
    Regards,
    Kavita.
    null

    Hi Kativa,
    In answer to your first question: In most apache installs, you want to place all your JSPs under the Apache/htdocs directory. This htdocs directory becomes the root directory of your HTTP request, so, for example, to access the file
    Apache/htdocs/mydir/myJSP.jsp
    you'd point your browser to
    server:port/mydir/myJSP.jsp]http://server:port/mydir/myJSP.jsp
    As to your second question: Do you mean Oracle 9iAS? If so, look at this HOWTO: http://technet.oracle.com:89/ubb/Forum2/HTML/006398.html
    JDeveloper 3.2 does not support deployment to OAS (the predecessor to iAS), but there was no OAS 9i.
    null

  • Expert please help me!

    Hello Experts,
    I have added key listener to frame and textfield. If I don't implement KeyEventDispatcher interface,
    only event for textfield get notified and if I implement the interface, only event for frame get notified
    I want both to work simultaniously. Is it possible? Please help me in this regard.
    Here is my code :
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class KeyTest extends JFrame implements KeyEventDispatcher
    Container cont = getContentPane();
    JTextField jt;
    public KeyTest()
    cont.setLayout(null);
    setBounds(100,100,400,400);
    jt = new JTextField();
    jt.setBounds(100,100,200,20);
    cont.add(jt);
    jt.addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent ke)
    System.out.println("Key pressed event of textfield....");
    addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent ke)
    System.out.println("Key pressed event of window....");
    DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(this);
    public boolean dispatchKeyEvent(KeyEvent e)
    processKeyEvent(e);
    return true ;
    public static void main(String[] args)
    KeyTest kt = new KeyTest();
    kt.show();
    Regards,
    Sachin Dare.

    My mistake - sorry. Not a cross-post.

  • Sql  Query . Please help its urgent.

    Suppose in table EMP there are 2 columns (Roll_no and Name)
    Roll NO Name
    00001 A
    00002 B
    00010 X
    My requirement is to trunc preceding Zero's. For ex : for Roll no: 00001 the output should be 1 and for 00002 --> 2 .
    Please help its very urgent.

    try this
          select
                  to_number(roll_no) roll_no,
                  name
          from
                  emp;
         Regards
    Singh

  • Dear experts please help me~

    Hello,
    i bought a blackberry 9220 after a week it broke.. i usually put it in my pocket. one time i want to check my bbm's but somehow i can't turn it on, i tried charging it but it only shows a battery with a red "X" mark on it.. i tried charging it for hours but no use, i used my friends battery no use, my friend used my battery but it worked.. can someone please help me with my problem ASAP! thank you!

    Hi gerardedwards4
    Welcome to BlackBerry Support Forums
    I am not the Expert   Our expert will look into your post , but for the time can you tell what happen when you connect your device to a PC ? Do you hear any sound for anything !
    let us know.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • NO Sound; experts please help

    I currently have no sound on my HP Spectre XT Ultrabook PC!!! Upon buying the laptop it had Beats audio on the laptop. That stopped working recently, but I still had the normal reduced audio, until that stopped completely soon after. I have tried multiple things to fix this problem, all without success; I tried troubleshooting the problem, I tried updating the audio driver (it said I already had the most current version), I tried uninstalling and reinstalling the driver, I tried updating the BIOS on my computer and NONE of these have worked; I still have no sound! Please help to fix this problem! 
    The product number is B6V42PA#ABG and it currently has Windows 7 Home Premium installed on it!

    Hi
    Please try doing a system restore to the date where unit was working fine. In case this does not work last option is to run a recovery please back up your data. This does not work please call HP technical support & get the Speaker replaced.
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • Please help me urgently (Problem in using delete statement)

    Hello,
    I want to run delete query where table name should come from a variable .I have written the following procedure but its not working .Could you please help me
    DECLARE
    processtemplatename VARCHAR2(64);
    CURSOR T1Cursor IS
    select Process_template_name from ProcessTemplate
    where PROCESS_template_ID in
    ( select PROCESS_template_ID from PROCESSINSTANCE
    where process_instance_id in
    (select process_instance_id from processinstance where STATUS = 'PI_COMPLETED' OR STATUS = 'PI_REMOVED' ));
    BEGIN
    OPEN T1Cursor;
    LOOP
    FETCH T1Cursor INTO processtemplatename;
    EXIT WHEN T1Cursor%NOTFOUND;
    DELETE FROM processtemplatename WHERE process_instance_id in
    ( select process_instance_id from PROCESSINSTANCE where STATUS = 'PI_COMPLETED' OR STATUS = 'PI_REMOVED' );
    END LOOP;
    CLOSE T1Cursor;
    END;
    I am getting the error
    ERROR at line 19:
    ORA-06550: line 19, column 27:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 19, column 15:
    PL/SQL: SQL Statement ignored
    even when i used
    DECLARE
    processtemplatename VARCHAR2(64);
    BEGIN
    processtemplatename := 'example1';
    DELETE FROM processtemplatename WHERE process_instance_id in
    ( select process_instance_id from PROCESSINSTANCE where STATUS = 'PI_COMPLETED' OR STATUS = 'PI_REMOVED' );
    END;
    I am still getting the same error message
    Thanks,
    Salam.

    And BTW you do not need that clumsy CURSOR c.. OPEN c.. FETCH c INTO... CLOSE c etc. It is "reserved" for more complex cases when you cannot use:
    <pre>
    FOR P IN
         select Process_template_name
              from ProcessTemplate
              where PROCESS_template_ID in
                   (select PROCESS_template_ID
                        from PROCESSINSTANCE
                        where process_instance_id in
                             (select process_instance_id
                                  from processinstance
                                  where STATUS = 'PI_COMPLETED'
                                       OR STATUS = 'PI_REMOVED'
    LOOP
         EXECUTE IMMEDIATE
              'DELETE FROM ' || P.Process_template_name ||
                   ' WHERE process_instance_id in
                        (select process_instance_id
                             from PROCESSINSTANCE
                             where STATUS = ''PI_COMPLETED'' OR STATUS = ''PI_REMOVED''
    END LOOP;
    </pre>

Maybe you are looking for

  • Late 2007 MacBook Pro S-Video adapter no output.

    I've troubleshooted everything I can, so hopefully one of you can help me! My Fiancé's mom has a late 2007 MacBook Pro running Mountain Lion. She has an older tv, so I was wanting to mirror the display so she can watch Netflix on her TV. After diggin

  • Premiere Pro CS6 and MacBook Pro Retina : Painfully slow exports, very long renders

    Hello All, This question seems to have been posted before.. I came from Windows land and have used Premiere since '97.. "Let's try a super spec Macbook and have a mobile editing suite.. Great!" I generally work with DSLR footage, H264 codec and .wav

  • MacBook Pro 13" or MacBook Air 13" for Final Cut Pro?

    I am looking at buying either a MacBook Pro 13 inch with 8Gb of RAM, 750 GB, and a 2.8 Ghz i7 Processor or a MacBook Air 13 inch with the 4gb of RAM and a 1.8 Ghz i7 processor. Which is better for Final Cut Pro X? I would rather have the Air, but if

  • Kernel Panic Safari Webprocess

    Hello, It happened this afternoon, my macbook pro mi 12, 13 inch, crashed twice times. I was on Safari on Tumblr normally. My display is normal, an LG, and is connected by VGA adaptor from Apple. Here is the kernel report, can you please find out my

  • Using the perform statement

    Hi, I have a function called Z_FS_FUSED_BUSINESS_OBJ_DATA, I have also defined a form in this function called FORM conglomerated_data All of this is in one function group called z_fs_inbound If I have another function, in another function group, what