How to retrieve multiple data from table and represent it in jsp page

Hi
The below JavaScript code is used to add row in the table when I want to add multiple row data into table for single entry no field.
  <html>  function addRow()
            i++;
            var newRow = document.all("tblGrid").insertRow();
            var oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='srno"+i+"' type='text' id='srno"+i+"' size=10>";
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='itmcd"+i+"' type='text' id='itmcd"+i+"' size='10'>";
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='itmnm"+i+"' type='text' id='itmnm"+i+"' size='15'>";
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='indentqty"+i+"' type='text' id='indentqty"+i+"' size='10'>";
            oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='uom"+i+"' type='text' id='uom"+i+"' size='10'><input type='hidden' name='mcode"+i+"'id='mcode"+i+"'>";
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='packqty"+i+"' type='text' id='packqty"+i+"' size='10'>";
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='packuom"+i+"' type='text' id='packuom"+i+"' size='10'><input type='hidden' name='pack"+i+"' id='pack"+i+"'>";
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='rate"+i+"' type='text' id='rate"+i+"' size='10'>";
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='dor"+i+"' type='text' id='dor"+i+"' size='0' onClick='"+putdate(this.name)+"'>";           
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='bccode"+i+"' type='text' id='bccode"+i+"' size='10'></td><input type='hidden' name='bcc"+i+"' id='bcc"+i+"'>";
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='cccode"+i+"' type='text' id='cccode"+i+"' size='10'></td><input type='hidden' name='ccc"+i+"' id='ccc"+i+"'>";
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input name='remark2"+i+"' type='text' id='remark2"+i+"' size='20'>";           
            oCell = newRow.insertCell();
            oCell.innerHTML = "<input type='button' value='Delete' onclick='removeRow(this);' />";
           // oCell = newRow.insertCell();
           // oCell.innerHTML = "<input type='button' value='Clear' onclick='clearRow(this);' />";
        }<html>  Then this data are send to the next Servlet for adding into two table.
My header portion data are added into one table which added only one row in table. while footer section data are added into the no of rows in another table dependent on No. of
Rows added into jsp page.
Here is an code for that logic.
<html>
ArrayList<String> mucode = new ArrayList<String>();
                            ArrayList<Integer> serials = new ArrayList<Integer>();
                            ArrayList<Integer> apxrate = new ArrayList<Integer>();
                            ArrayList<Integer> srname = new ArrayList<Integer>();
                            ArrayList<String> itcode = new ArrayList<String>();
                            ArrayList<String> itname = new ArrayList<String>();
                            ArrayList<Integer> iqnty = new ArrayList<Integer>();
                            ArrayList<String> iuom = new ArrayList<String>();
                            ArrayList<Integer> pqnty = new ArrayList<Integer>();
                            ArrayList<String> puom1 = new ArrayList<String>();
                           ArrayList<Integer> arate = new ArrayList<Integer>();
                            ArrayList<String> rdate = new ArrayList<String>();
                            ArrayList<String> bcs = new ArrayList<String>();
                            ArrayList<String> ccs = new ArrayList<String>();
                            ArrayList<String> remarkss = new ArrayList<String>();
                            //ArrayList<Integer> qtyrecs = new ArrayList<Integer>();
                            //ArrayList<String> dors = new ArrayList<String>();
                            //ArrayList<String> remarks = new ArrayList<String>();
                 String entryn = request.getParameter("entryno");       
                    String rows = request.getParameter("rows");
                    out.println(rows);  
                    //String Entryno = request.getParameter("entryno");
                   // out.println(Entryno);
                  int entryno = 0,reqqty = 0,srno = 0,deprequest = 0,rowcount = 0;
                            if(!Entryno.equals("")){
                                    entryno = Integer.valueOf(Entryno);
                            if(!rows.equals("")){
                                    rowcount = Integer.valueOf(rows);
                           for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("srno"+i)!=null){
                                            serials.add(Integer.valueOf(request.getParameter("srno"+i).trim()));
                                            out.println(serials.size());
                            for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("srno"+i)!=null){
                                            srname.add(Integer.valueOf(request.getParameter("srno"+i).trim()));
                            out.println(srname.get(0));
                            for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("itmcd"+i)!=null){
                                            itcode.add(request.getParameter("itmcd"+i).trim());
                                    } //out.println(itcode.get(i));
                            for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("itmnm"+i)!=null){
                                            itname.add(request.getParameter("itmnm"+i).trim());
                                    }//out.println(itname.get(i));
                            for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("indentqty"+i)!=null){
                                            iqnty.add(Integer.valueOf(request.getParameter("indentqty"+i).trim()));
                            for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("uom"+i)!=null){
                                            iuom.add(request.getParameter("uom"+i).trim());
                                    }//out.println(iuom.get(i));
                            for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("mcode"+i)!=null){
                                            mucode.add(request.getParameter("mcode"+i).trim());
                           for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("packqty"+i).equals("")){
                                      pqnty.add(0);
                                    }else
                                        pqnty.add(Integer.valueOf(request.getParameter("packqty"+i).trim()));
                            for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("pack"+i)!=null){
                                            puom1.add(request.getParameter("pack"+i).trim());
                                   }else
                                    puom1.add("");
                           for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("rate"+i).equals("")){                                     
                                        arate.add(0);
                                    }else
                                    arate.add(Integer.valueOf(request.getParameter("rate"+i).trim()));   
                 /* for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("rate"+i)!=null){
                                            arate.add(Integer.valueOf(request.getParameter("rate"+i).trim()));
                          for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("dor"+i)!=null){
                                            try{
                                                    rdate.add(dashdate.format(slashdate.parse(request.getParameter("dor"+i).trim())));
                                            }catch(ParseException p){p.printStackTrace();}
                                    }else
                                       { rdate.add("");}
                               for(int i=1;i<=rowcount;i++){
                             if(request.getParameter("bcc"+i)!=null){
                                            bcs.add(request.getParameter("bcc"+i).trim());
                                    }out.println(bcs.get(0));
                            for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("ccc"+i)!=null){
                                            ccs.add(request.getParameter("ccc"+i).trim());
                                    }out.println(ccs.get(0));
                            for(int i=1;i<=rowcount;i++){
                                out.println("remark2");
                                    if(request.getParameter("remark2"+i)!=null){
                                            remarkss.add(request.getParameter("remark2"+i).trim());
                                    }out.println(remarkss.get(0));
                    ArrayList<String> Idate = new ArrayList<String>();
                    for(int i=1;i<=rowcount;i++){
                                    if(request.getParameter("dateindent"+i)!=null){
                                            try{
                                                    Idate.add(dashdate.format(dashdate.parse(request.getParameter("dateindent"+i).trim())));
                                            }catch(ParseException p){p.printStackTrace();}
                String Rdate = dashdate.format(new java.util.Date());
                 String tdate = dashdate.format(new java.util.Date());    
                 // String Indentdate = dashdate.format(new java.util.Date());
               //  String ApprovedT1 = dashdate.format(new java.util.Date());
               //  String ApprovedT2 = dashdate.format(new java.util.Date());
                   // String ApprovedT1=" ";
                    //String ApprovedT2="";*/
                String ApprovedT1= dashdate.format(new java.util.Date());
               out.println (ApprovedT1);
                  String ApprovedT2=dashdate.format(new java.util.Date());
                   out.println(ApprovedT2);
                String Indentdate=(dashdate.format(slashdate.parse(request.getParameter("dateindent").trim())));
                   out.println(Indentdate);
                    String Cocode ="BML001";  
                    out.println(Cocode);
                    String Deptcode = request.getParameter("dept1");
                    out.println(Deptcode);
                    String Empcode = request.getParameter("emp");
                    out.println(Empcode);
                    String Refno =request.getParameter("rtype"); 
                     out.println(Refno);
                    String Divcode = request.getParameter("todiv1");
                    out.println(Divcode);
                    String Usercode = "CIRIUS";    
                     String Whcode = request.getParameter("stor");
                    out.println(Whcode);
                    // String Itemgroupcode = request.getParameter("");
                     String Itemgroupcode ="120000";
                     out.println(Itemgroupcode);
                    String Supplytypecode = request.getParameter("stype");
                    out.println(Supplytypecode);
                    String Delcode = request.getParameter("deliverycode");
                    out.println(Delcode);
                    String Itemclass="WS";
                    out.println(Itemclass);
                    // String Itemclass = request.getParameter("iclass");
                   // out.println(Itemclass);
                    String unitcode = request.getParameter("uni");
                    out.println(unitcode);
                     String Todivcode = request.getParameter("todiv1");
                    out.println(Todivcode);
                    String Appxrate = request.getParameter("rate");
                    out.println(Appxrate);
                    String Srno = request.getParameter("srno");
                    out.println(Srno);                
                /*    String Indqty = request.getParameter("indentqty");
                  out.println(Indqty);*/
              String Itemcode = request.getParameter("itmcd");
                   out.println(Itemcode);
                   String Othersp = request.getParameter("remark1");
                    out.println(Othersp);
                    String Reqdt = request.getParameter("dor");
                    out.println(Reqdt);
                    String Munitcode = request.getParameter("mcode");
                    out.println(Munitcode);
                    String Packqty = request.getParameter("packqty");
                    out.println(Packqty);               
                    String Packuom = request.getParameter("pack");
                    out.println(Packuom);
                    String Remark2 = request.getParameter("remark2");
                    out.println(Remark2);
                    String BC = request.getParameter("bcc");
                    out.println(BC);
                    String CC = request.getParameter("ccc");
                    out.println(CC);
                    try{
                        st=connection.createStatement();
                        connection.setAutoCommit(false);
                        String sql="INSERT INTO PTXNINDHDR(COCODE,DEPTCODE,EMPCODE,APPROVEDT1,APPROVEDT2,INDDT,ENTRYNO,REFNO,REMARKS,DIVCODE,USERCODE,WHCODE,ITEMGROUPCODE,SUPTYPECODE,DELCODE,UNITCODE,TODIVCODE,ITEMCLASS)VALUES('"+Cocode+"','"+Deptcode+"','"+Empcode+"','"+ApprovedT1+"','"+ApprovedT2+"','"+Indentdate+"',"+Entryno+",'"+Refno+"','"+Othersp+"','"+Divcode+"','"+Usercode+"','"+Whcode+"','"+Itemgroupcode+"','"+Supplytypecode+"','"+Delcode+"','"+unitcode+"','"+Todivcode+"','"+Itemclass+"')";
                        out.println(sql);
                        st.addBatch(sql);
                        for(int i=0;i<serials.size();i++){
                            out.println("Inside the Statement");
                            String query3="test query for u";
                            out.println(query3);
                           String queryx="Insert into PTXNINDDTL(APXRATE,ENTRYNO,BRKNO,INDQTY,ITEMCODE,OTHERSPFCS,MUNITCODE,PACKQTY,PACKUOM,REMARKS,DIMSUBGRPCODE,DIMCODE,REQDT)VALUES("+arate.get(i)+","+entryno+","+srname.get(i)+","+iqnty.get(i)+","+itcode.get(i)+",'"+Othersp+"','"+mucode.get(i)+"',"+pqnty.get(i)+",'"+puom1.get(i)+"','"+remarkss.get(i)+"','"+bcs.get(i)+"','"+ccs.get(i)+"','"+rdate.get(i)+"')";
                           out.println(queryx);
                            st.addBatch(queryx);
                       int[] result=st.executeBatch();
                       connection.commit();
                       for(int k=0;k<result.length;k++)
                       out.println("rows updated by "+(k+1)+"insert sta:"+result[k]+"");
                    catch(BatchUpdateException bue)
                    out.println("error1;"+bue+"");
                    catch(SQLException sql)
                    out.println("error2;"+sql+"");
                    catch(Exception l)
                    out.println("error3;"+l+"");
</html>
   Now I looking for to retrieve this footer section data available in multiple rows from footer table and present it in jsp page .
I am finding difficulties in how to show this multiple row data for dynamic no of rows .i.e. variable no. of rows.
I have able to show the data in Header portions of page in this ways
here i am adding the part of code which shows the data from header part of table i.e from Header table
  <html>
<h2 align="center"><b>Indent Preparation</b></h2>
    <div align="left">
        <table width="849" border="0" cellspacing="3" cellpadding="3" align="center">
            <tr>
                <td ><div align="left"><b>Indent No.</b></div></td>
                <td ><label>
                        <input name="indentno" type="text" id="indentno" size="15" value="" /><input type="hidden" name="no" id="no">
                </label></td>
                <td ><div align="center"><strong>Indent Date</strong></div></td>
                <td ><label>
                        <div align="center">
                            <input name="dateindent" type="text" id="dateindent"value="<%=date1%>"/><input type="hidden" name="no" id="no">
                        </div>
                </label></td>
                <td> </td>
                <td><div align="right"><strong>Entry No.</strong></div></td>
                 <%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
        <td><input type="text" value="<%=hdrcode.get(3)%>" size="10"></td>
<%}else{%>
               <td><input type="text" name="entryno" id="entryno" value="<%=entryNo%>"/></td>
                         <%}%>
                        <div align="right"></div>
            </tr>
            <tr>
                <td><b>Division</b></td>
                <%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
<td><input type="text" value="<%=hdrdetails.get(9)%>" size="20"</td>
<td><input type="hidden" name="div1" id="div1" value='<%=hdrcode.get(10)%>'></td>
<%}else{%>
               <td><input type="text" name="div" id="div" /></td>
               <td><input type="hidden" name="div1" id="div1" /> </td>
          <%}%>
                <td> </td>
                <td> </td>
                <td><div align="right"><strong>Unit</strong></div></td>
               <%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
<td><input type="text" value="<%=hdrdetails.get(14)%>" size="20"</td>
<td><input type="hidden" name="uni" id="uni" value='<%=hdrcode.get(12)%>'></td>
<%}else{%>
               <td><input type="text" name="unit" id="unit" /></td>
               <td><input type="hidden" name="uni" id="uni" /> </td>
          <%}%>
            </tr>
            <tr>
</html>
  Any suggestion on any above works is highly appreciated.
Thanks and regards
harshal

Too much code. It's also not well intented nor formatted. I don't see a question either or it got lost in that heap of unformatted code.
I will only answer the question in the thread's subject:
How to retrieve multiple data from table and represent it in jsp pageTo retrieve, make use of HttpServletRequest#getParameterValues() and/or #getParameter().
To display, make use of JSTL's c:forEach.

Similar Messages

  • How to retrieve the data from Website and Upload it in SAP table?

    Dear ABAPers,
            I want to retrieve the data from website and upload the same in SAP Database Table is that possible.Please help me.It is very Urgent.
    Thanks & Regards,
    Ashok.

    Dear Abhishek,
                  Thanks for your reply.But my requirement is not met.
    If i execute the program it should retrieve the data from particular website.
    Thanks & Regards,
    Ashok.

  • How create report with data from table and some columns results function ?

    Hi,
    How can i create on apex report region with some columns (of the report) as returned from a table and the other columns as results of plsql functions ?
    for example , I want to create a report like that:
    device last_date error_msg stop/start
    kodak1 06/04/08 null >>
    kodak2 08/03/08 good msg --^--
    kodak3 08/04/08 err msg >>
    3 rows returned
    where the 3 first columns are data returned from the table and the forth column is the result of plsql function (returned for example false) and on that i want to display a button of start ( >> in this example ) or stop ( --^-- in this example)

    Thomas,
    There is no problem here -- this is fully suported scenario.
    1. Bind Table dataSource to Customers node.
    2. Bind individual cell editors to any attribute of customer or any nested node like Address, say create column with InputField as editor, then for "value" property select Customer.Address.Street.
    Your nested nodes (like Address) must be non-singleton, set singleton=false on context designer tab.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • .How can I add data from one list to other in Jsp Page

    Hi..I have three multiple selection ListBox..I want to add the selected item from 2 list boxes to 3rd list box how can i do that..do i need to write javascript? If possible then suggest me some link where i can get help?
    Thanks
    Regards
    Chintan

    Yep, Javascript.
    Unless you want to post the data to the server and then rewrite the page (ie. jsp/servlets) then you are going to need to use a client side script to modify the page.
    Javascript. You need to get the onClick() event of one list box and get the item that was clicked. then you can rewrite the 3rd list box.
    If possible, try doing a search on google. Or do you want someone to hold your hand.

  • How to retrieve the data from SAP-BAPI by using VB Code

    Hi ,
    I am new to BAPI.
    V have created an application in Visual Basic with the following fields
    EmpNo , EmpName, Addr1, Addr2, City and Phone (Only for Test)
    We have written the code for SAVING the data into SAP. Already we have
    constructed a table with the respective fields in SAP.
    For that we ourself created our own BAPI Structure / Function Group /
    Function Module/ Business Object - RELEASED related elements.
    1)Established the connection successfully.
    2)Stored the data into SAP Successfully and v r in need of
    3)HOW TO RETRIEVE THE DATA FROM SAP (USING GETLIST.....GETDETAIL....)
    Following is the code :
    'BAPI Structure  : ZBAPIEMP
    'Function Group  : ZBAPIEMP
    'Function Module : ZBAPI_EMP_CREATEFROMDATA
    'Business Object : ZBAPIEMP
    'Function Module : ZBAPI_EMP_GETLIST
    Dim bapictrl As Object
    Dim oconnection As Object
    Dim boEmp As Object
    Dim oZEmp_Header As Object
    Dim oImpStruct As Object
    Dim oExpStruct As Object
    Dim oreturn As Object
    Dim x As String
    Private Sub Form_Load()
    Set bapictrl = CreateObject("SAP.BAPI.1")
    Set oconnection = bapictrl.Connection
    oconnection.logon
    Set boEmp = bapictrl.GetSAPObject("ZBAPIEMP")
    Set oZEmp_Header = bapictrl.DimAs(boEmp, "CreateFromData", "EmployeeHeader")
    Set oImpStruct = bapictrl.DimAs(boEmp, "GetList", "EmployeeDispStruct")
    End Sub
    Private Sub cmdSave_Click()
        oZEmp_Header.Value("EMPNO") = txtEmpNo.Text
        oZEmp_Header.Value("EMPNAME") = txtEmpName.Text
        oZEmp_Header.Value("ADDR1") = txtAddr1.Text
        oZEmp_Header.Value("ADDR2") = txtAddr2.Text
        oZEmp_Header.Value("CITY") = txtCity.Text
        oZEmp_Header.Value("PHONE") = txtPhone.Text
        boEmp.CreateFromData EmployeeHeader:=oZEmp_Header, Return:=oreturn
        x = oreturn.Value("Message")
        If x = "" Then
            MsgBox "Transaction Completed!..."
        Else
            MsgBox x
        End If
    End Sub
    Private Sub cmdView_Click()
    End Sub
    COULD ANYBODY GUIDE ME, HOW TO RETRIEVE THE DATA FROM BAPI, FOR THE WRITTEN CODE.

    I didn't seen any other answers but here's how it's been done previously in our organization for a custom BAPI. In this example, we give material and language to return the part description. It's not specific to your project but may give you ideas..
    -Tim
    Option Compare Database
    Dim SAPLOGIN As Boolean
    Dim FunctionCtrl As Object
    Dim SapConnection As Object
    Sub SAPLOGOUT()
    On Error GoTo LogoutFehler
        SapConnection.logoff
        SAPLOGIN = False
    Exit Sub
    LogoutFehler:
        If Err.Number = 91 Then
            Exit Sub
        Else
            MsgBox Err.Description, vbCritical, "Fehler-Nr." & CStr(Err.Number) & " bei SAP-Logout"
        End If
    End Sub
    Function SAPLOG() As Boolean
    'Verbindungsobjekt setzen (Property von FunctionCtrl)
       Set FunctionCtrl = CreateObject("SAP.Functions")
       Set SapConnection = FunctionCtrl.Connection
    'Logon mit Initialwerten
       SapConnection.Client = "010"
       SapConnection.Language = "EN"
       SapConnection.System = "PR1"
       SapConnection.SystemNumber = "00"
       'SapConnection.Password = ""
       SapConnection.GroupName = "PR1"
       SapConnection.HostName = "168.9.25.120"
       SapConnection.MessageServer = "168.9.25.120"
         If SapConnection.Logon(0, False) <> True Then  'Logon mit Dialog
             Set SapConnection = Nothing
             DoCmd.Hourglass False
             MsgBox "No connection to SAP R/3 !"
             SAPLOGIN = False
             SAPLOG = False
             Exit Function
          End If
        SAPLOG = True
    End Function
    Function MatDescr(MatNr As String)
    Dim func1 As Object
    Dim row As Object, X As Integer, ErsteNr As String
    Dim DatensatzZähler As Long
    Dim RowField(1 To 50, 0 To 1) As String, RowLine As Long
        If Not SAPLOGIN Then
            If Not SAPLOG() Then
                MsgBox "No connection  to SAP !", 16
                SAPLOGOUT
                Exit Function
            End If
        End If
    ' Instanziieren des Function-Objektes
    Set func1 = FunctionCtrl.Add("Z_BAPI_READ_MAKT")
    ' Export-Paramter definieren
    func1.exports("MATNR") = MatNr
    func1.exports("SPRAS") = "EN"
    DoEvents
    If Not func1.call Then
        If func1.exception <> "" Then
            MsgBox "Communication Error with RFC " & func1.exception
        End If
        DoCmd.Hourglass False
        SAPLOGOUT
        Exit Function
    Else
      MatDescr = func1.imports("MAKTX")
    End If
    If MatDescr = "" Then
        MatDescr = "PART NO. NOT FOUND"
    End If
    End Function

  • Fetch data from table and generate attachment than mail it.

    Hello Experts,
    From couple of day I am searching on Google for a better database procedure that will help me to get data from tables and generate attachment and mail it but i fail.
    My Scenario is:
    I have a query that will fetch almost 5000 records from database tables. Each record has almost 75 characters
    select a.location_code,
                   a.item_code,
                   b.description item_desc,
                   to_char(a.manufact_date,'ddMonyy')mfg,
                   to_char((a.manufact_date + nvl(b.expiry_period,0)),'ddMonyy')expr,
                   to_char((a.manufact_date + nvl(b.qurantine_period,0)),'ddMonyy')qrtn,
                   round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) days_elapsed,
                   a.closing_balance_posted quantity
              from wms_stock_current_balance_v a, wms_item_setup_mast b
             where a.closing_balance > 0
               and a.item_code = b.item_code
               and a.loc_type in ('RACKING','PICKING','QUICKA','BUNDLED')
               and nvl(b.qurantine_period,0) > 0
               and round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) <= 0
          order by a.item_code, a.location_code;
    Sample data of above query is
    LOCATION_CODE
    ITEM_CODE
    ITEM_DESC
    MFG
    Expiry
    Quarantine
    Days Elapse
    Quantity
    13DL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    14DL0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    134
    14DL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    160
    14DR2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    20
    14LL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    17ER2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    17GL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    17SL0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    17-Feb-10
    28-Mar-14
    1-Jun-13
    -125
    64
    18QL0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    160
    19AR5
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    17-Feb-10
    28-Mar-14
    1-Jun-13
    -125
    160
    19DL1
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    19JR0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    17-Feb-10
    28-Mar-14
    1-Jun-13
    -125
    60
    19TL1
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    20GR2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    40
    36FL3
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    18-Feb-10
    29-Mar-14
    2-Jun-13
    -124
    65
    19UR0
    000000000000000F0591
    COMFORT WHITE 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    1
    12SL1
    000000000000000F0593
    COMFORT PINK 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    42
    12SR1
    000000000000000F0593
    COMFORT PINK 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    42
    14OR1
    000000000000000F0593
    COMFORT PINK 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    8
    36EL4
    000000000000000F0594
    CLEAR HF DECRASE 5M*360
    14-Feb-10
    14-Feb-11
    12-Oct-10
    -1088
    14
    13VL1
    000000000000000F0595
    CLEAR COM SFT CRE 5*360
    8-Feb-10
    8-Feb-11
    6-Oct-10
    -1094
    160
    14ER0
    000000000000000F0595
    CLEAR COM SFT CRE 5*360
    8-Feb-10
    8-Feb-11
    6-Oct-10
    -1094
    105
    Database Info
    Oracle 10g
    Version 10.2.0.1.0

    Look at the sample code for generating a CSV file that I've just posted in response to a similar question:
    Re: How to execute a proc and spool files in a database job
    And the use the search button in this forum to find sample code for sending a CLOB as a plain/text e-mail attachment using UTL_SMTP.

  • WebDynpro Java: how to remove blank element from Table and Dropdown.

    Hi  Folks
    In a webdynpro application,
    I created a table and witten the below code to populate the table
         IPrivateDummyView.IFirst_TableElement First_Table_Element = null;
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("One");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("2");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
    As per the code, i got 2 row in the table.
    But , i have one Empty row on top of the table ,  how to get ride of this.
    i find the same problem happening with dropdown too, where i used DDBI, i populated a the content as mention, but i initial 2 row as blank and then i have my own elements ,as per my code.

    >
    > how to remove blank element from Table and Dropdown
    >
    Change selection property of related node to from 0..1 to 1..1 (mandatory)
    Re: DropdownByIndex and empty line (Thread: DropdownByIndex and empty line )
    Re: Can the empty selection be removed from element dropdownbykey(Thread: Can the empty selection be removed from element dropdownbykey )
    Edited by: Anagha Jawalekar on Nov 18, 2008 10:28 PM

  • Problem in Retrieve Image from DB and display in the JSP page

    Hi All,
    I did one JSP Program for retriveing image from DB and display in the JSP Page. But when i run this i m getting "String Value" output. Here i have given my Program and the output. Please any one help to this issue.
    Database Used : MS Access
    DSN Name : image
    Table Name: image
    Image Format: bmp
    Output : 1973956
    Sample Program:_
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.io.*" %>
    <%
         try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              Connection conn = DriverManager.getConnection("jdbc:odbc:image");
              Statement st = conn.createStatement();
              ResultSet rs = st.executeQuery("SELECT images FROM image");
              String imgLen="";
              if(rs.next()){
                   imgLen = rs.getString(1);
                   out.println(imgLen.length());
              if(rs.next()){
                   int len = imgLen.length();
                   byte [] rb = new byte[len];
                   InputStream readImg = rs.getBinaryStream(1);
                   int index=readImg.read(rb, 0, len);
                   System.out.println("index"+index);
                   st.close();
                   response.reset();
                   response.setContentType("image/jpg");
                   response.getOutputStream().write(rb,0,len);
                   response.getOutputStream().flush();
         }catch(Exception ee){
              out.println(ee);
    %>
    Thanks,
    Senthilkumar S

    vishruta wrote:
    <%
    %>Using scriptlets is asking for trouble. Java code belongs in Java classes. Use a Servlet.
                   out.println(imgLen.length());Your JSP was supposed to write an image to the output and you wrote some irrelevant strings to the output before? This will corrupt the image. It's like opening the image in a text editor and adding some characters before to it.
                   byte [] rb = new byte[len];Memory hogging. Don't do that.
              out.println(ee);You should be throwing exceptions and at least printing its trace, not sending its toString() to the output.
    You may find this article useful to get an idea how this kind of stuff ought to work: [http://balusc.blogspot.com/2007/04/imageservlet.html].

  • How to retrieve time data from infotypes 2001 and 2002 when we use PNPCE

    Hello Everyone,
       I am new in using PNPCE ldb.In the requirement i have to retrieve time data from infotypes 2001 and 2002 between the begda and endda.I tried using the macro RP-READ-ALL-TIME-ITY to retrieve data.But its not supporting.Can some body help me in doing this.
    THanks in Advance..
    Regards,
    Chinni.

    Hi
       Try the following code:
    REPORT  ZHRTM41.
    nodes peras.
    Tables: PERNR.
    Infotypes: 2001.
    start-of-selection.
    get peras.
    rp_read_all_time_ity pn-begda pn-endda.
    end-of-selection.
    loop at p2001.
    write:/ p2001-abwtg,p2001-stdaz.
    endloop.
        It worked for me when using PNPCE. let me know if you have any problem
    Thanks,
    V.Nagaraju

  • How to retrieve name4 data from backend for display on View Ship-to Address

    Hi Everyone,
    I need your advise / help:
    I added name4 in shiptodetails1.jsp for new ship-to address when ordering.  This name4 can be entered, saved to backend and display before submit rder.  but when dispaly the created order, the name4 data is not shown on View Ship-to party Address page.  Seems address.getName4() is not enough, I need to modify some method to retrieve the data from backend address object. Can anyone guide me what and how to enhance forretrieving name4 data from backend, so it can display on View Ship-to Address?
    Any advises / suggestions?
    Thanks, Jin

    Hi Jin,
    I hope you already found the solution but here some more detail.
    I am working on ISA with ECC so I do not have an access to CRM system.
    As you are facing problem to retrieve data from back-end while displaying it on order status page you can debug code of class DetailStrategyR3.class.
    There is a method fillDocument this method call RFC BAPI_ISAORDER_GETDETAILEDLIST. This RFC actually read Order related data from backend and fill the SalesDocument object. Method fillDocument also call other methods like fillShipTo.
    During debug in NWDS you can see address data and check the values of Address object. If Name3 or Name4 and nickName contains no value then you can't get it on JSP page because it is not coming from the RFC.
    So I suggest you should first check DetailStrategyR3.class as it is preparing Document for display purpose. When you open any order on orderstatusdetail page this class comes in Action and prepare SalesDocumet with all necessary information including  Ship to Address of that order. So If here you do not get value in Name3, Name4 or Nickname then you have to do some custom development
    Check Below code while debug in NWDS.
    //fill ship-to information on header and item level
            fillShipTo(document,
                       partnerTable,
                       getDetailedList.getTableParameterList().getTable(
                               "ORDER_ADDRESS_OUT"),
                       connection);
            ShipToData shipTo = document.getHeaderData().getShipToData();
            orderHeader.setShipToData(shipTo);
    Check shipTo object in "Variable" window while debugging. Here you will get address object and can see all the variable value like FirstName, LastName, Name1, NAme2, Name3...NickName etc..... If no value in Name3, Name4 then you will not get on Page.
    I hope this will help you to understand why Name3-Name4-Nickname does not have a Value though you have provided while creating an order.
    Thanks and Regards.
    eCommerce Developer

  • How to retrieve input data from a HTML form in the UTF-8 cha

    I encountered the following problem with a JWeb Application:
    I tried to write a JWeb-Application for OAS 4.0, that retrieves
    input data from a HTML form and writes it into an Oracle
    database.
    All processing should be done in the UTF-8 character set.
    The problem is, that the form data retrieved by getURLParameter
    are always encoded in a non-unicode character set and I found no
    way to change this.
    Can anybody tell me what I should do to get the form data in the
    UTF-8 character set?
    null

    Hi
    Try set in the JWEB application's Java environment such
    SYSTEM_PROPERTY: file.encoding=UTF8.
    Andrew
    Thomas Gertkemper (guest) wrote:
    : I encountered the following problem with a JWeb Application:
    : I tried to write a JWeb-Application for OAS 4.0, that
    retrieves
    : input data from a HTML form and writes it into an Oracle
    : database.
    : All processing should be done in the UTF-8 character set.
    : The problem is, that the form data retrieved by getURLParameter
    : are always encoded in a non-unicode character set and I found
    no
    : way to change this.
    : Can anybody tell me what I should do to get the form data in
    the
    : UTF-8 character set?
    null

  • How to retrieve row data from a  table

    Hey,
    Have a table with data and each row has one column which is a button. How do I retrieve the corresponding data of the row in which the button was clicked. Meaning what do I need to do differently in the table and what type of javascript on an onclick event etc would I need to get the data. If there is a better or simpler approach im open to any suggestions.
    Thanks in advance for your assistance
    e.g.
    <table>
    <tr>
    <td>column1 data</td><td>column 2 data</td><<input type="button" value="select" onclick="?????"/>
    </tr>
    </table>

    In the onclick event submit the jsp with query string.
    <onclick="process.do?rowId=<%=column1 data%>">
    have column 1 data as a unique identifier. Using request.getParameter get the column1 data value and query the db again to fetch the whole row data. I guess, it will work.

  • How to display multiple data from different table in one table? please help

    Hi
    I got sun java studio creator 2(the separate installation not the one in the net beans)....
    My question is about displaying data that have been taken from the database.... I know how to display data in a table(just click on the table "bind data" )... but my question is that:
    when i want to use a sql statement that taken the data from different table...
    how can i display that data in the table(that will be shown in the web) ??? when i click bind data on the table i can only select one table i can't select more than one....
    Note:
    1) i'm using the rowset for displaying the data in the table, since the sql statement is depending on a condition(i.e. select a from b where c= ? )...
    2) i mean by different table is that( i.e. select a from table1,table2 )..
    thanks in advance...

    Hi,
    937440 wrote:
    Hi every one, this is my first post in this portal. Welcome to the forum!
    Be sure to read the forum FAQ {message:id=9360002}
    I want display the details of emp table.. for that I am using this SQL statement.
    select * from emp where mgr=nvl(:mgr,mgr);
    when I give the input as 7698 it is displaying the corresponding records... and also when I won't give any input then it is displaying all the records except the mgr with null values.
    1)I want to display all the records when I won't give any input including nulls
    2)I want to display all the records who's mgr is null
    Is there any way to incorporate to include all these in a single query..It's a little unclear what you're asking.
    The following query always includes rows where mgr is NULL, and when the bind variable :mgr is NULL, it displays all rows:
    SELECT  *
    FROM     emp
    WHERE     LNNVL (mgr != :mgr)
    ;That is, when :mgr = 7698, it displays 6 rows, and when :mgr is NULL it displays 14 rows (assuming you're using the Oracle-supplied scott.emp table).
    The following query includes rows where mgr is NULL only when the bind variable :mgr is NULL, in which case it displays all rows:
    SELECT     *
    FROM     emp
    WHERE     :mgr     = mgr
    OR       :mgr       IS NULL
    ;When :mgr = 7698, this displays 5 rows, and when :mgr is NULL it displays 14 rows.
    The following query includes rows where mgr is NULL only when the bind variab;e :mgr is NULL, in which case it displays only the rows where mgr is NULL. That is, it treats NULL as a value:
    SELECT     *
    FROM     emp
    WHERE     DECODE ( mgr
                , :mgr, 'OK'
                )     = 'OK'
    ;When :mgr = 7698, this displays 5 rows, and when :mgr is NULL, it displays 1 row.

  • How to retrieve the data from SAP database.

    Hi Pals,
    How to retrieve data from SAP R/3 System to my third party software. I will make my query little bit more clear. There is a list of assets entered and stored in the SAP system. For example 3 mobile phones.
    1) Mobile 1- Nokia
    2) Mobile 2 - Samsung
    3) Mobile 3 u2013 Sony
    Now think I do not know what all assets is there. I have to retrieve the data and get it on my third party software. Just display the list of assets. Lets say SAP XI is also there. Now how will I map it and get the details.
    Please give me step by step method.
    N.B: Just to read the data from SAP database.
    Please make the flow clear step by step.
    Thanking you
    AK

    Hi,
    You can use RFC or ABAP Proxy to make synchronous call with SAP.
    Under RFC or ABAP Proxy Program you can get the data from SAP tables. Direct access to SAP Database is not preferrable even if its possible.
    The better way to go for RFC or PROXY.
    You will send the request from Third party system and the it will be as input parameters from RFC/ Proxy it will response based on it.
    This got it all..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    /people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    HTTP to RFC - A Starter Kit
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    Refer
    Thanks
    Swarup
    Edited by: Swarup Sawant on Jun 4, 2008 9:32 AM

  • How to zip up data from database and store as blob

    I would like to know how best to zip up retrieved data from the database and store it as a blob back on to the database.
    Thanks.

    Hi Cris,
    Add-on to wat santosh has pointed to:
    Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)
    (Or) If you have implemented your logic to get Database records below Blog should guide you in opening an excel with ur records.
    Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)
    Regards,
    N.

Maybe you are looking for

  • Error while saving the excel file

    hai all, i had an requirement to upload customer master data through lsmw while saving the data in excel file with extension as) text( tab delimeted)(.txt) it is not saving and displaying the message as " the selected file type doesnot support workbo

  • Transfer data to new macbook pro

    Hi I have purchase a new MacBook Pro and would like to transfer everything  to the new one. The old MacBook Pro will be given to my friend so I would like to delete all personal files settings etc Thanks Elijah

  • No internet access after hard reset.

    I hit the hard reset button on my router and now my computer & other devices can not access the internet. I can connect to my router but have no internet. It was working fine earlier today until it was hard reseted. I ran windows troublshoot and I go

  • Interest and Loan Amortization SDK - Does It Exist?

    Hi Folks: I am looking for a toolkit that will allow me to perform Excel-like functions via SQL within an Oracle 10g standard edition one server. I don't know much about Oracle Financials, but I believe that it is overkill for what I am trying to acc

  • Mail (Mavericks) crashes everytime I open it

    Process:         Mail [725] Path:            /Applications/Mail.app/Contents/MacOS/Mail Identifier:      com.apple.mail Version:         7.0 (1816) Build Info:      Mail-1816000000000000~1 Code Type:       X86-64 (Native) Parent Process:  launchd [24