Retreiving unavailable values in IPC through CRM_COND_COM_BADI

Hi,
I am working on IPC and i require to retrieve values from KOMP and KOMK. As these attributes related to header, item and pricing details are not populated by IPC, i have to do an enhancement. BAdi CRM_COND_COM_BADI is what I am looking at. I do not, however, see many values avaialable in its 4 methods. Now i think, i need to read through CRM_ORDER_READ. Thats the only idea i have. Is there some other alternative, and a better one?
Thanks,
Amar.

Hi,
We have used CRM_ORDER_READ to extract the data and it works fine.
/Anders

Similar Messages

  • Not getting attribute values in IPC routines Scenerio R/3 B2B using AP 7.0

    Hi,
    Our Scenerio is using ISA R/3 B2B using AP 7.0. I have developed IPC routines but when i debug my routines in SM53 I notice that I'm not getting any attribute value except for VKORG.
    I'm pasting the code below. Please help me if I have to implement some BADI or do something more to get the attribute values.
    I have defined the attributes properly in Routine assignment in tcode /n/sapcnd/ueass
    userexitlogger.writeLogDebug("*requirment 901*" + "Plant = "plant"||ANZ_MONATE ="+ item.getAttributeValue(ANZ_MONATE_STR).toString()"||ANZ_JAHRE="item.getAttributeValue(ANZ_JAHRE_STR).toString()"||MATKL="item.getAttributeValue(MATKL_STR).toString()"||PSTYV="item.getAttributeValue(PSTYV_STR).toString()"||VKORG="item.getAttributeValue(VKORG_STR)"||PRSFD="item.getAttributeValue(PRSFD_STR)"||MVGR2="item.getAttributeValue(MVGR2_STR).toString()"||PRSDT="item.getAttributeValue(PRSDT_STR).toString()"||AUDAT="item.getAttributeValue(AUDAT_STR).toString());
    I would reward points for help
    Many Thanks n regards,
    Dipender

    I would like to go through each Value of the xml file and give each Value a name
    e.g. from the xml file <VentCount Value=1> Retreive the value above and giving it the name VentCount. Then I would beable to use the name vent count as follows:
    setVentCount() //My own method can use as follows: setVentCount(VentCount); I would like to do his for ever value, each value with a specific name

  • When i am retreiving the values from the access table i am getting null val

    hi all,
    I comeacross the following problem,I connected my applet to the Access database with jdbc:odbc driver.
    I am trying to retreive the values from the table.I am getting the result correctly when the same code with using applet it was giving the correct result.
    when I am using an applet program it was giving the null value istead of the actual records.
    can anybody tell me the reason why
    thanks in advance
    and also how to connect the databse in the webserver when i installed my applet in the client side
    please give me some suggestions to do that
    thankyou
    lakshman

    Hi Krishna,
    Can you please copy the code generated by ODI for creating your C$ table ?
    i mean :- create table C$_0Entity ( from the operator log
    Regards,
    Rathish A M

  • Retreiving a value from and SQL query

    If anyone can give me sample code or pointers to retreive a value from an sql query, I'd be greatful.
    Source code I've muddled together so far:
    Class seqNumType = Class.forName(nameOfClass);
    Constructor theConstructor = seqNumType.getConstructor(null);
    Object seqNumInstance = theConstructor.newInstance(null);
    String theStatement = "SELECT value INTO v_seqnum FROM DUAL;";
    OracleCallableStatement ocs = (OracleCallableStatement)conn.prepareCall(theStatement);
    ocs.registerOutParameter( 1, OracleTypes.NUMBER, 0);
    Method method = seqNumInstance.getClass().getMethod("getORADataFactory", null);
    seqNumInstance = ocs.getORAData(1, (ORADataFactory)method.invoke(null,null));
    ocs.execute();
    Problem with this seems to be the ORADataFactory isn't a method of the class, but as I'm thumbling around in the dark here a little, I've no idea where to go from here. Is this just generally overkill anyway?
    Suggestions?
    Cheers for any help.

    Like this:
                ResultSet resultSet=statement.executeQuery("SELECT * FROM TEST");
                while(resultSet.next())
                    for(int i=0;i<resultSet.getMetaData().getColumnCount();i++)
                        System.out.print(resultSet.getObject(i+1).toString()+" ");
                    System.out.println();

  • Is it possible to get the value of variable through answers page ?

    Hi all,
    I had Dynamic variable ETLRundate . I want use this variable in Answers page to see the out put ?
    Is it possible to get the value of variable through answers page ?if so how I can use ?

    Hi
    Use the link below and download the documentation
    http://www.oracle.com/technology/documentation/bi_ee.html
    I think you will find what you are looking for in the Answers, Delivers, and Interactive Dashboards User Guide, but in short the syntax to display a variable value is as follows:
    As shown above the syntax for using a presentation variable is:
    @{variablename}{defaultvalue}
    For Session variables use:
    @{biServer.variables['NQ_SESSION.variablename']}
    For repository variables use:
    @{biServer.variables['variablename']}
    Rgds
    Ed

  • Error when inserting Adhoc characteristic value next time through SDK

    Hi,
    while inserting an adhoc characteristic value to person through algorithm with different effective dates its working fine
    for the first time but for the second time its showing error like "morethan one row matches the specified criteria"
    --while entering manually through front-end  its allowing to insert two values for the same characteristic type with different effective dates but if we edit any one of them its showing same error ......
    can any one help me out in this? Is there any restriction that there should be only one characteristic value for one characteristic type in an entity?
    thanks
    sivaram

    Suggestions for your ODP.NET code.
    1.
    using Oracle.DataAccess.Types;
    OracleBlob myBlob = new OracleBlob(con);
    myBlob.Write(myByteArray, 0, count); //where myByteArray is populated by a file stream and count is the number of bytes to be written to myBlob
    cmd.Parameters[0].Value = myBlob;
    2. Check only when it's not null then dispose blob object, command object, and connection object. (No need to close connection before dispose)
    This is not relevant to the issue.
    Edited by: shsu on Jan 12, 2012 4:16 PM

  • How can I findout the coulm value contains 0 through 9 for the table

    could u plz suggest me how can I findout the coulm value contains <> 0 through 9 for the table...

    Well I am going to give it a shot, because I believe I am looking for the same thing.
    I have a value that is of type varchar2. How can I determine if it has special characters or alpha characters in it? In other words, I only want the value to consist of numbers. (Initially it had been thought that Letters would be used as well, but now they just want numbers and the datatype of the column cannot be altered since there is data in it.)
    I have gotten this far, but I do not know what else I can use besides '[:alpha:]'? I cannot seem to find this documented anywhere...I can find the regexp package reference, but not the character classes...
    select regexp_instr('1a23456', '[[:alpha:]]',1,1,1, 'i') x
    from dual
    This works fine = returns 3, so I know there is an alpha character.
    select regexp_instr('1$23456', '[[:alpha:]]',1,1,1, 'i') x
    from dual
    This returns 0 - what do I need to change so that it detects the '$' and returns 3?
    Thanks!!
    Janel

  • After add a field catalog,how can I post the field value to IPC??

    Hi,experts,I've created a field catalog "ZPRD_CHANGED"(I  ZPRD_CHANGED D D ZCHG_FLAG(CHAR1))in IMG pricing,and also assigned the value to it
    in method "ITEM_COMMUNICATION_STRUCTURE" in mplementation  "ZCRM_COND_COM_BADI" of BADI "CRM_COND_COM_BADI".
    LIke this:
    DATA: lr_obj type ref to ZL_BT115IT__ITEMS_CN00.
      create object lr_obj.
      CS_ACS_I_COM-ZPRD_CHANGED = lr_obj->zprd_chg_flg.
    After that,in the java codings of user exit in IPC,I add below codings:
    public BigDecimal overwriteConditionValue(
         IPricingItemUserExit pricingItem,
         IPricingConditionUserExit pricingCondition)
      String prodchanged = pricingItem.getAttributeValue("ZPRD_CHANGED");
    But it seems that it doesn't work,variable "productchanged" can not get the value posted from method "ITEM_COMMUNICATION_STRUCTURE" in mplementation  "ZCRM_COND_COM_BADI".
    What's the problem?Can anybody suggest??
    Thanks in advance.
    Jerry.

    Hi Jerry,
    did you register the attribute in the customizing for the user exits? Transaction /SAPCND/UEASS. You need to register the attribute on Implementations and Formula level.
    Best Regards,
    Michael
    P.S. Guess you are already aware of the userexit guide attached to note 809820.

  • Urgent please- need help to retreive all values within a range

    Hi,
    I need to retreive all the values(ID) within a range no matter if it is available in the database or not. I just need this in a sql query not a stored proc.
    for ex:
    select id, name, age
    from employee
    where id between (1 and 10)
    It returns
    id name age
    1 x 22
    3 y 26
    4 z 23
    10 c 32
    I need a query which should return values as follows.
    id name age
    1 x 22
    2
    3 y 26
    4 z 23
    5
    6
    7
    8
    9
    10 c 32
    quick replies will be appreciated.

    This is one way of doing
    select decode(id,null,lev,id),name,age from employee,(select level lev from dual
    connect by level < 11)
    where employee.id(+)=lev
    The above will display between 1 and 10. If you want to specify some other range then the below query will do,
    select decode(id,null,lev,id),name,age from employee,(select level lev from dual
    connect by level <=10
    minus
    select level lev from dual
    connect by level <5)
    where employee.id(+)=lev
    The above query will display between 5 and 10

  • How to update values in ztable through hyperlink

    Hi Gurus,
    The Problem is I want to send sales order in mail to any id and mail should have two links
    like Accept or decline and when user clicks on this link there sholud be some process to update z table.
    Pls help how to achive this.
    Should i use some services or webdynpro or there is some another mehod by which i can get values inside SAP.
    Thanks
    Pooja

    Hi Uma
    workflow is not configured in my company..
    Please suggest some other option..
    I am able to send data through mail but how to capture the links pressed outside and update tables in sap.
    Please guide
    thanks
    Pooja

  • ABAP code in to JAVA for overwritting condition value for IPC pricing

    Dear experts i am an IPC JAVA developer and i am trying to translate an ABAP Routine in to JAVA code for overwriting condition value in the pricing user exit of IPC
    Here is the ABAPcode segment i am trying to transulate
      DATA: l_kdkg1  LIKE komk-kdkg1,
            l_work TYPE f,
            l_umren LIKE marm-umren,
            l_umrez LIKE marm-umrez.
      SELECT SINGLE peinh FROM mbew INTO mbew-peinh         
      WHERE matnr = komp-matnr
      AND bwkey = komp-werks.
      I need some  help in the following things
      1. I don't know how to transulate the following Line of ABAP code into JAVA
         " AND bwkey = komp-werks."
    Bwkey stands for plant details. I don't know how to get plant details from  Pricing Item.
      2. Someone please tell me weather the following JAVA transulation is correct
      Vector x = prItem.getUserExitConditions();
      db database = pricingEngine.getDatabase();
         // set table name
      String tableStart = "mbew";                                             
         // set query parameters
      sys_query_pair[] queryPair = null;
      //matnr = komp-matnr . Getting the material Number
      String materialNo= prItem.getProduct().toString();
      //bwkey = komp-werks.Getting plant.
      // TODO: werks stands for plant. Not sure how to get it from prItem
       String plant = "";
       queryPair = new sys_query_pair[2];                    
       queryPair[0] = new sys_query_pair("matnr", materialNo);
       queryPair[1] = new sys_query_pair("bwkey", plant);
      // set query columns
       String ZZFIELDStart = "peinh";
       String ZZFIELD_VALUEStart;                   
       String[] projectionStart;
       projectionStart = new String[];
       BigDecimal pricingUnit = null;
       try{     
          // execute query
          res resultSetStart = database.db_read_table(tableStart, queryPair,projectionStart) ;
          if (!res.db_empty_results_p(resultSetStart))
         ZZFIELD_VALUEStart = resultSetStart.db_get_row_element_string(0);
         pricingUnit = new BigDecimal(ZZFIELD_VALUEStart);
         resultSetStart.db_finish();
       else
         System.out.println("Coudn't find a value of field peinh in table mbew!");
       catch (exc_database_error e)
         e.printStackTrace();

    Please login to the server where IPC is installed. In the IPC folder u find libs folder  or search for docs in IPC folder. There it is dealt how ABAP routines are mapped to  user exits in java coding
    Thanks
    Surya

  • Getting mandatory attribute validation error when the value is defaulted through customization

    Hi
    I am getting Mandatory attribute validation error when we default the value through customization.
    In the UI we have attribute called Last Name which is mandatory at EO level. Customer wanted to default Last name to some value, through page composer it is defaulted to some text and saved.
    When ever we open the page the the same value is defaulted as Last Name and appearing in the UI. But when we submit the page, EO level validation is failing. hence we are getting last name is missing.
    When i debug the code last name attribute value for EO is blank.
    In the UI the attribute last name is associated with bindings  --> #{bindings.lastname.inputvalue}
    The validation is failing if we remove the default binding associated with inputtext box.
    Can some body help what can be reason and is there any solution?
    Thanks,
    Praveen

    version 12.1.2
    I am struggling with same situation, I can't set the default value at business component because, the default value comes from a REST service at run time. In page A,  I have a field F1 that contains value from REST service. Page B has a database bound field F2, whose default value should come from F1 in Page A when a user navigates from Page A to Page B. If I set the value of F2 to be the value of F1, then it displays the value in the UI, but nothing gets submitted to EO and fails at commit.
    To make things difficult, here is my situation: Page A lives in bounded taskflow TF1, and Page B lives in bounded taskflow TF2. So I have created an input parameter P1 in TF 2, which carries over the value of F1 in Page A to Page B. When I am in Page B, I can successfully see the value of the taskflow input parameter P1. So, how do I  programmatically set the value of field F2 with the value of input parameter P1?
    I tried setting the F2.inputValue  in a method call M1 in  taskflow TF2 prior to Page B, but I get null pointer exception as it can't see field F2 yet.
    It seems like a simple thing to do, but I have spent a lot of time trying to make it work without any success.
    I would greatly appreciate any guidance.

  • Commas not correctly processed when values are passed through the URL!!!!!!

    I think this is a bug. Any information about this will be greatly appreciated. Here's the scenario:
    There's a single page with 2 regions. The first region contains a simple SQL report. The second region is and HTML region that contains text and date form elements. The SQL report has a column link "Edit" that when pressed it populates form elements in the HTML region. The population of the form elements is done by passing the column values of the select row as variables along the URL. The problem is that commas within column value text are processed as delimiters in the URL. From my understanding and documentation, variables and their values are supposed to look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:1234,,5678
    where MY_ITEM1 will be set to 1234, MY_ITEM2 will be set to null and MY_ITEM3 will be set to 5678 (The URL was copied directly from the Apex 3.0 documentation without modification).
    However if the first value is text (lets say "some,thing") that contains a comma, then MY_ITEM1 will be set to the text preceding the comma in the first value (some), the MY_ITEM2 will be set to the text that comes after the comma in the first value (thing) NOT null and MY_ITEM3 will be set to null NOT 5678. Clearly, one would think that the comma in the first value should be escaped given that commas are used as delimiters of values in this URL scheme.
    The URL looks like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing%2C%2C5678
    However the URL should look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing,,5678
    where MY_ITEM1 is set to "some,thing", MY_ITEM2 is null and MY_ITEM3 is set to 5678
    What does all this mean? This means that the escaped commas (%2C) are used as delimiters for the values. Additionally, any information that is passed that contains a comma will have it's comma escaped as well AND still considered as delimiters for values in the URL. Not to mention it's inconsistent with the official documentation.

    Never mind... problem solved.
    In the Apex docs says that you can embed commas if used within backslashes like: \123,45\.
    So in order to pass text that has a comma through the URL, one must force Apex to code the URL like this (assuming that the text is coming from a report):
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:\#A_COLUMN#\,,5678
    Sorry... no bug. :)

  • Insert values to access through checkboxes

    hi,
    i need to get insert values into the ms-access database through clicking checkboxes.let me tell in detail.
    iam writing jsp source for inserting data into the msaccess. when i insert text data type those records are inserting but, when i write checkbooxes in the form and submit to access. it is giving as datatype mismatch cretirial. i donot know how to do. i am giving that code. please help me. thanks
    i need the code for using bean with jsp. ie, business logic should be saved in java bean . and properties in the jsp. idonot know how to use bean to insert update database(ms-access) with jsp. kindly giv e code for the bean and jsp.when i go google search those are not executing.anybody can give that code please
    thanks<%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="java.sql.*" %>
    <%! Connection conn;
       PreparedStatement stmtSelect;
       PreparedStatement stmtInsert;
       PreparedStatement stmtUpdate;
    public void jspInit() {
        try{
          String url  = "jdbc:odbc:databaseone";
          String id   = "myID";
          String pass = "myPass";
          String sqlSelect 
            = "SELECT * FROM garden1 WHERE(LOWER(Genus) " +
              "LIKE ? OR LOWER(Species) LIKE ?) ORDER BY id";
          String sqlInsert="INSERT INTO garden1(id,family,Genus,Species,id_code,author,commonname) VALUES (?,?,?,?,?,?,?)";
       String sqlUpdate="UPDATE garden1 SET id=?, family =?, Genus = ?, Species= ?, id_code = ?,author=?,commonname=? WHERE id= ?";
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          conn = DriverManager.getConnection(url, id,pass);
          stmtSelect = conn.prepareStatement(sqlSelect);
          stmtInsert = conn.prepareStatement(sqlInsert);
          stmtUpdate = conn.prepareStatement(sqlUpdate);
        }catch(SQLException e){}
        catch(ClassNotFoundException e){}
      public void jspDestroy() {
        try {
           stmtSelect.close();
         stmtInsert.close();
         stmtUpdate.close();
           conn.close();
        } catch(SQLException e) {}
    %>
    <% if (request.getParameter("action")== null) { %>
    <%
    java.sql.Connection con;   
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    java.util.Properties props = new
    java.util.Properties();
    con =
    DriverManager.getConnection("jdbc:odbc:databaseone","myID","myPass");
    java.sql.Statement stmt;
    java.sql.ResultSet rs;
    java.sql.ResultSetMetaData metaData;
    int numCols;
    stmt = con.createStatement();
    rs = stmt.executeQuery("Select * from garden1");
    metaData = rs.getMetaData();
    numCols = metaData.getColumnCount();
    %> <h4 align=left >TABLE OF employee</H4>
    <TABLE BORDER="1" ALIGN=CENTER>
    <THEAD>
    <TD><B>ID</B></TD>   
       <TD><B>FAMILY</B></TD>
       <TD><B>GENUS</B></TD>
    <TD><B>SPECIES</B></TD>
    <TD><B>ID-CODE</B></TD>
    <TD><B>AUTHOR</B></TD>
    <TD><B>COMMON-NAME</B></TD>
    </THEAD>
    <TR>
    <% while(rs.next()) { %>
    <% for(int i=1; i <= numCols; i++)  { %>
       <TD><%= rs.getString(i) %></td>
    <%   
    }  //  end of for loop
    out.println("</tr>");
    }  //  end of while loop
    rs.close();
    %>      
    <HTML>  <HEAD><TITLE>Add/UpdateDatabase</TITLE></HEAD><body>
    <FORM METHOD="post"  ACTION="<%= request.getRequestURI()%>">
      <INPUT TYPE="hidden" NAME="action" VALUE="form">
      <INPUT TYPE="submit" name=newentry VALUE="New Entry"><BR>  <BR>   </FORM> </BODY> </HTML>
    <% } else if
    (request.getParameter("action").equals("form")) { %>
    <% String id="", family="", Genus ="",Species="";
           String id_code="",author="";
           String commonname="";
      if (request.getParameter("query") != null) {
          String searchVar =request.getParameter("query");
            try{
                ResultSet rset = null;
               synchronized(stmtSelect){ stmtSelect.setString(1, "%" + searchVar +"%");
                            stmtSelect.setString(2, "%" + searchVar +"%");
                            rset = stmtSelect.executeQuery();
             if (rset.next()) {
             if (rset.getString("id") != null) id =   rset.getString("id");
                    if (rset.getString("family") != null)family=  rset.getString("family");
                    if (rset.getString("Genus") != null)Genus =  rset.getString("Genus");
                    if (rset.getString("Species") != null)Species =rset.getString("Species");
                    if (rset.getString("id_code") != null)id_code =rset.getString("id_code");
                    if (rset.getString("author") != null)author =rset.getString("author");
                    if (rset.getString("commonname") != null)commonname =   rset.getString("commonname");
          if (rset.next())
    out.print("<SCRIPT>alert(\"The search you made hasmore than one result! Use your browser's back buttonto refine search.\")</SCRIPT>");
        } catch(SQLException e){}
    %> <HTML> <HEAD> <TITLE>Database Entry</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <H2>Database Entry:</H2>
    <FORM METHOD="post" ACTION="<%=request.getRequestURI() %>">
        <TABLE WIDTH="400" BORDER="0"><TR> <DIV ALIGN="right">
         <TD>   ID:  </TD>  <TD> <INPUT TYPE="text" NAME="id" VALUE="<%= id%>"> </TD></tr><tr>
         <TD> family:</TD><TD>   <INPUT TYPE="checkbox" NAME="family" VALUE="<%=family %>">  </TD></tr><tr>
         <TD> genus:</TD><TD><INPUT TYPE="text" NAME="Genus" VALUE="<%=Genus %>"> </TD> </tr><tr>
         <TD> species:</TD><TD> <INPUT TYPE="text" NAME="Species"VALUE="<%= Species %>"> </TD></tr><tr>
         <TD>idcode:</td><TD><INPUT TYPE="text" NAME="id_code"VALUE="<%= id_code%>"> </TD></tr><tr> 
         <TD>author:</TD><TD><INPUT TYPE="text" NAME="author"  VALUE="<%= author%>">   </TD></tr><tr>
         <TD>commonname:</TD><TD><INPUT TYPE="checkbox" NAME="commonname" VALUE="<%= commonname%>"> </TD> </TR></div>
            <TR>  <TD WIDTH="100">    <INPUT TYPE="submit" NAME="Submit"VALUE="Submit"> </TD>
            <TD WIDTH="300">   <INPUT TYPE="reset" NAME="Reset"VALUE="Reset">
          <% if (id != ""){ %>
             <INPUT TYPE="hidden" NAME="action"VALUE="update">
          <% } else { %>
             <INPUT TYPE="hidden" NAME="action"VALUE="insert">
             <INPUT TYPE="hidden" NAME="action"VALUE="select">  
          <%}  %>       </TD>     </TR>   </TABLE> </FORM> </BODY> </HTML>
    <% } else if
    (request.getParameter("action").equals("insert")) { %>
    <%
    try{
         synchronized(stmtInsert){
          stmtInsert.setString(1,request.getParameter("id"));
           stmtInsert.setString(2,request.getParameter("family")); 
           stmtInsert.setString(3,request.getParameter("Genus"));
           stmtInsert.setString(4,request.getParameter("Species"));
           stmtInsert.setString(5,request.getParameter("id_code"));
           stmtInsert.setString(6,request.getParameter("author"));
           stmtInsert.setString(7,request.getParameter("commonname"));
           stmtInsert.executeUpdate(); 
       out.print("Record Successfully Entered. <BR><A HREF=\"" + request.getRequestURI() +
               "\">Return</A>");
       } catch (SQLException e){
         out.print("Record Entry Failed! <BR><A HREF=\"" + request.getRequestURI() +
               "\">Return</A>");
         out.print("<br>" + e.getMessage());
    } else if
    (request.getParameter("action").equals("update")) {
      try{
         synchronized(stmtUpdate){
          stmtUpdate.setString(1,request.getParameter("id"));
              stmtUpdate.setString(2,request.getParameter("family")); 
              stmtUpdate.setString(3,request.getParameter("Genus"));
              stmtUpdate.setString(4,request.getParameter("Species"));
              stmtUpdate.setString(5,request.getParameter("id_code"));
              stmtUpdate.setString(6,request.getParameter("author"));
              stmtUpdate.setString(7,request.getParameter("commonname"));
           stmtUpdate.executeUpdate();
       out.print("Record Successfully Updated. <BR>" +
               "<A HREF=\"" + request.getRequestURI() +
               "\">Return</A>");
       } catch (SQLException e){
         out.print("Record Update Failed! <BR>" +
               "<A HREF=\"" + request.getRequestURI() +
               "\">Return</A>");
         out.print("<br>" + e.getMessage());
    %>
    <% } %>

    Oh...also...
    It seems that you haven't sufficiently normalized the problem (I've seen absolutely zero problems that, when sufficiently normalized, require 1000 columns).
    Perhaps you should think about doing two tables, one with "Machines" and the other with "MachineData". The Primary Key from the Machines table could be a foreign key into the MachineData table, in which all of your data is stored.
    If you're serious about using an RDBMS for problems more complex than tracking your home music library, I'd recommend reading up on at least a bit of database theory (but I'm an admitted nerd, and find it interesting anyhow).
    I'd heartily recommend "Fundamentals of Database Systems" by Navathe and Elmasri as a starting point.

  • Is it possible to get and Set attribute value in OVD through JNDI or Java

    Hi,
    I have a requirement to read an OVD Attribute value from a Jsp Page and set the Attribute value in OVD.
    Is it possible to achieve it through JAVA/JNDI code, Any pointers or code snipplet are welcome.
    Thanks
    Ak

    Use JNDI with LDAP provider or another LDAP java library, plenty of examples on google

Maybe you are looking for

  • Error while starting Oracle Secure Backup Service on Windows

    Hi, I've installed an Oracle 10gR2 database, and an OSB on a Windows XP (SP2) machine, and when trying to start the service (Oracle Secure Backup Services) I got the following error : "Unknown():Unable to load dynamic library'./php_osb.dll'-The opera

  • Unable to check for purchases..... timed out.

    Hello. On 7/1/08 I bought 353 tv episodes. Initially a few downloaded while I slept that night, but then they stopped, and ever since then i've been getting this message. "Unable to check for purchases. The network connection timed out. Make sure you

  • Things to consider while merging two DBs?

    Dear gurus, We have 2 instances, 1 is prod and other is replica of prod, just 4-5 hours behind prod, used for queries just to reduce overhead on PROD,(the second instance is not a DSS/warehosuese/OLAP env it is just replica on instance 1) with some a

  • 16:9 motion menu with 16:9 hilites?

    I cant get my hilites/overlays to match my 16:9 motion menus for the life of me!!!! They are always way off. Anyone have a secret? Been trying to read up on it but getting no where with results. Thanks!

  • Cannot import files into iPhoto

    I have home movie files on an external hard drive that were downloaded there from my old Windows XP computer.  They are ".mov", ".mpg", and ".avi" file extensions.  When I try to import them into iPhotos on my iMac, running OS X Mavericks, I get a di