Using functions in Resultset while getting database data.

Well I'm trying to reset my resultset and it doesn't work.
Frist I extract data from it. Then I want to start to get other data from hte beginning again. Is this not possible. Can I just get thew data once.
I'm working with an access database and developping at Oracle 10g
<select name="kundKontakter" size="1" >          
           <%         
            do{
             String OID_kont =resultatKontaktNamn.getString("OID_kont");
             String namnKontakt = resultatKontaktNamn.getString("fKontaktNamn");
            <option value="<%=OID_kont%>" SELECTED><%=namnKontakt%>
            </option>
          <%
            }while(resultatKontaktNamn.next()); %>         
            </select>
            </td>
        </tr>
        <%resultatKontaktNamn.first();%>
        <tr><td>telefon</td>
        <td><input type="text" name="tel" size="40">
         <%=resultatKontaktNamn.getString("tel")%></td></tr>
        </tr>

No, normally result sets are read-once. If you need to get at data multiple times, you should read it into an an-memory table structure, like a List of Maps (or a List of objects that represent a row on the DB...)
So, for example, make a class:
public class Kontakt {
  private String namn, OID, tel;
  public Kontakt(String id, String n, String t) {
    namn = n; OID = id; telefon = t;
  public String getNamn() { return namn; }
  public String getOID() { return OID; }
  public String getTelefon() { return telefon; }
}Then when you access the database you fill up a java.util.List with a bunch of instances of this class...
  java.util.List kontaktList = new java.util.ArrayList();
  while(resultatKontaktNamn.next()) {
    String OID_kont =resultatKontaktNamn.getString("OID_kont");
    String namnKontakt = resultatKontaktNamn.getString("fKontaktNamn");
    String telefonKontakt = resultatKontaktNamn.getString("tel");
    Kontakt k = new Kontakt(OID_kont, namnKontakt, telKontakt);
    kontaktList.add(k);
  }That all done before you try any display.
Then, your JSP output will look like this:
    <select name="kundKontakter" size="1">
    <%
      for (java.util.Iterator i = kontaktList.iterator(); i.hasNext(); ) {
        Kontakt kont = (Kontakt)i.next();
    %>
        <option value="<%= kont.getOID()%>" selected="selected"><%= kont.getNamn()%></option>
    <%
    %>
    </select>
  </td>
</tr>
<tr>
  <td>telefon</td>
  <td><input type="text" name="tel" size="40">
    <%= ((Kontakt)kontaktList.get(0)).getTelefon() %></input>
  </td>
</tr>

Similar Messages

  • How we get database data tohtml;select  in struts

    Hi,
    i need to populate the data from database to struts dropdown list(html:select). here i got error. tell the way to get database data to dropdown list.

    Guruji...you need to do something like this....!!!
    //In action or your controller class
    ArrayList billingGroupBeanList = getBillingGroupBeanList();
                   if (billingGroupBeanList.size() > 0) {
                        session.setAttribute("billingItemGroup", billingGroupBeanList);
         private ArrayList<LabelValueBean> getBillingGroupBeanList() {
              log.debug("Entering getBillingGroupBeanList...");
              BillingItemGroup billingItemGroup = null;
              ArrayList<LabelValueBean> billingItemGroupsBean = null;
              ArrayList billingItemGroupList = null;
              Iterator billingItemGroupsItr = null;
             try {          
                   billingItemGroupsBean = new ArrayList<LabelValueBean>();
                   billingItemGroupList =  billingItemManagerFacade.getBillingItemGroupList(); //getting the value from database
                   billingItemGroupsItr = billingItemGroupList.iterator();
                   while(billingItemGroupsItr.hasNext()) {
                        billingItemGroup = (BillingItemGroup)billingItemGroupsItr.next();
                        billingItemGroupsBean.add(new LabelValueBean(billingItemGroup.getGroupDesc(),
                                  new Integer(billingItemGroup.getBillingItemGroupId()).toString()));
              } catch (Exception ex) {
                log.error("\nError occured in action:getBillingGroupBeanList() method: "+ commonUtils.getStackTraceAsString(ex));
              log.debug("Exiting getBillingGroupBeanList...");
              return billingItemGroupsBean;
    And in your jsp
    <td width="25%" class="oddcellleft">
                                  <html:select property="billingItemGroupId">
                                       <html:options collection="billingItemGroup" property="value" labelProperty="label" />
                                  </html:select>
                             </td>where your form should have a getter/setter for billingItemGroupId....!!!!
    Let me know if you have any more doubt...!!!

  • Using a second table in a Database Data Block ??

    In a Form, I have a Data Block which is a Database Data Block. The Items are associated with columns in a table.
    I want the items in this repeating block to show in a different order. To do this, I need to use a second table and say where table1.key = table2.key ....
    I keep getting problems at runtime with
    ORA-00918: column ambiguously defined
    I tried to qualify everywhere a column name is used. When I do show error it shows
    SELECT ROWID, ....
    And then the "column ambiguously defined".
    I do not have an item in my Form for ROWID. Maybe it is automatic. (This form DOES do update).
    Is it possible to use two tables in a Data Block like this?
    Thanks

    If you only need to order the records in the block, why not defining the "ORDER BY" clause in the block's property??
    Set the "ORDER BY" clause at design time from the property palette of the block or runtime with column of your choice.
    at runtime your can use:
    SET_BLOCK_PROPERTY('your_block', ORDER_BY, 'your_column');If you need to join to tables in one block read the [Block Based on Join|http://www.oracle.com/technology/products/forms/pdf/BlockOnAJoin.pdf] Documentation.
    Tony

  • Using function module BBP_PD_SC_GETLIST to get list of carts for a plant

    Hi all,
    Im using  the function module BBP_PD_SC_GETLIST  to get the list of shopping carts created for a particular plant.Im passing the plant details like Business Partner Number,Business Partner GUID and Partner func. in the table I_PARTNERS of the FM.Im not passing any other data to the FM.However im not getting any entries in the o/p parameter.
    Can anyone suggest what am I doing wrong?
    Thanks.

    Hi,
    From table BBP_PDBEI  you can get the shopping carts belong to perticular plant. 
    Thanks
    prasad.s

  • Print preview while getting otf data

    hi experts,
    can somebody tell me how to get the print preview of sap script
    while getting the otf data.
    I have set the ITCPO-TDGETOTF = 'X' option in OPEN FORM but when i give it its not showing the output. How can  I see output ?

    hi ajay,
    TABLES ITCPO.
    DATA: T_OTF TYPE TABLE OF ITCOO.
    ITCPO-TDGETOTF = 'X'.
    CALL FUNCTION 'OPEN_FORM'
         EXPORTING
              DEVICE                      = 'PRINTER'
              DIALOG                      = 'X'
              FORM                        = 'ZPRG_TEST'
              OPTIONS                     = ITCPO
         EXCEPTIONS
              CANCELED                    = 1
              DEVICE                      = 2
              FORM                        = 3
              OPTIONS                     = 4
              UNCLOSED                    = 5
              MAIL_OPTIONS                = 6
              ARCHIVE_ERROR               = 7
              INVALID_FAX_NUMBER          = 8
              MORE_PARAMS_NEEDED_IN_BATCH = 9
              SPOOL_ERROR                 = 10
              OTHERS                      = 11.
    IF SY-SUBRC  0.
    ELSE.
      CALL FUNCTION 'CLOSE_FORM'
           TABLES
                OTFDATA                  = T_OTF
           EXCEPTIONS
                UNOPENED                 = 1
                BAD_PAGEFORMAT_FOR_PRINT = 2
                SEND_ERROR               = 3
                SPOOL_ERROR              = 4
                OTHERS                   = 5.
    ENDIF.
    Check this code ok.
    why dont you try giving a pdf preview which will be possible.
    Regards,
    Midhun Abraham
    Edited by: Midhun Abraham on Oct 12, 2008 11:01 AM
    Edited by: Midhun Abraham on Oct 12, 2008 11:05 AM

  • Using a Progressbar while showing database data into Datagrid

    Hi ,
    I am displaying the data from DataBase into DataGrid using Java (JDBC) .
    This data is large , so for displaying its time , so in meanwhile i want to use a ProgressBar for this .
    Please suggets me should i use a determinate or Indeterminate Progress Bar .
    Please share your ideas .
    Thanks
    Ravi Kiran .

    You could put up an indeterminate progress bar with a "please wait" label, all inside a TitleWindow pop-up set to modal. When your data are returned, remove the pop-up. You wouldn't use a determinate progress bar because web services don't dispatch the events used to update the progress bar.

  • Error while getting SSM75 data to Xcelsius (WSDL)

    Hello Everyone,
    Recently weu2019ve been assigned to an Xcelsius 2008 SP3 dashboard implementation over Strategy Management data.
    We are trying to reach SSM´S data through the strategy management SMData Service and the CubeService web services so Xcelsius can later consume the corresponding WSDL files.
    We are also trying to establish a connection between Business Objects Enterprise XI 3.1 Designer and Strategy Management with the Strategy Management ODBO Provider.
    The documentation we are following is the u201CConfiguration Help SAP BusinessObjects Strategy Management 7.5u201D, following each procedure step by step but we are not getting the expected results pointed out on the documentation:
    Process for Xcelsius
    1. Add users of the SMDataService Web Service to SAP NetWeaver UME.
    2. Add users of the CubeService Web Service to SAP NetWeaver UME.
    3. Set Basic Authentication for the SMDataService Web Service.
    4. Set Basic Authentication for the CubeService Web Service.
    5. Export the WSDL files from SAP NetWeaver CE.
    6. Prepare the WSDL files for importing into Xcelsius.
    7. Import the strategy management WSDLs into Xcelsius.
    8. Map input and output values to the Xcelsius Excel spreadsheet.
    9. Configure Xcelsius Components to use data from the Excel Spreadsheet.
    1. Start Web Services Administration in SAP NetWeaver using the following URL:http://nwa/WSAdmin
    2. In the Search By drop-down list, select Service Definition Name and click Go.
    3. From the list of services, select jee-default_SMDataService.
    4. Click the WSDLs tab.
    5. Click the WSDL links for SMDataService. A window appears with SMDataServiceWSDL data.
    6. Click File Save As and save the opened WSDL file using the .wsdl extension to a directory accessible by Xcelsius.
    7. From the list of services, select jee-default_CubeService.
    8. Click the WSDLs tab.
    9. Click the WSDL links for CubeService.A window appears with CubeService WSDL data.
    10. Click File Save As and save the opened WSDL file using the .wsdl extension to a directory accessible by Xcelsius.
    After this step while attempting to import the wsdl URL we get the u201CUnable to load the URLu201D pop up error. We were wondering if we have to pass certain parameters as login credentials or query type functions from Xcelsius to SSM. Also we are not sure if we have security issues.
    Procedure for Universe Designer connection
    1. Start BusinessObjects Enterprise, open Designer, and log in as the administrator.
    2. Click the Create Universe button on the toolbar to launch the wizard for creating a universe. If this is your first time running Designer, the wizard appears automatically.
    3. In the Welcome Screen, click Begin.
    4. In the Enter the universe name box, specify the name for the universe.
    5. Click New to create a new database connection to the strategy management Provider.
    6. In the first Define a new connection window, click Next.
    7. In the Define a new connection window for database middleware selection, do the following:
    1. In the hierarchical list, select Strategy Management. Strategy Management appears because you defined this value in the oledb_olap.sdo file.
    2. In the Connection Type drop-down list, specify whether to make this a secured connection.
    3. In the Connection Name box, specify a connection a name.
    4. Then click Next.
    8. In the Define a new connection window for login parameters, do the following:
    1. In the Authentication Mode drop-down list, select the method of
    authentication such as single sign or user specified username and password.
    2. Specify the username, password, and server for the connection, and then
    click Next.
    We cannot pass from this step, Designer fails to connect and displays message stating Designer has an error to connect to database.
    Hope somebody can help us out, thanks in advance...

    Thanks ,I have been gone through <Projection Type='System.WorkItem.Incident.ProjectionType">.
    Now i am getting many errors while importing data.I have customized fields in servicedesk and i have created same fields in scsm incident form.When i am imported
    data i am getting below error.
    Please let me know how can i import customized feilds data to SCSM without issues.
    Regards, H@ri

  • BAPI commit without using Wait? need to get the data for created order

    I am using BAPI to create or change sales order and by using 'BAPI_TRANSACTION_COMMIT' updating the database.
    Immediately after that there is some requirement to fetch VBAP with the created order number, but there is no data found.
    If i use call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                   wait          =  'X'.
    then i am able to fetch data from VBAP, but its impacting the performance. Is there any alternative way to get data without fetching or without using wait.
    Can i use ABAP memory or SAP memory to get the details?
    Please help...........

    Hi Tapas379,
    Yes technically you can:
    set data before commit
    DATA memory_id(20) TYPE c.
      CONCATENATE 'VBAP_01_' sy-uname INTO memory_id.
      DELETE FROM DATABASE indx(as) ID memory_id.
      EXPORT vbap_tab = vbap_tab "<-input
        TO DATABASE indx(as)
        CLIENT sy-mandt
        ID memory_id.
    Get data from anywhere after setting it.
      data memory_id(20) type c.
      concatenate 'VBAP_01_' sy-uname into memory_id.
      import vbap_tab = vbap_tab " ->output
        from database indx(as)
        client sy-mandt
        id memory_id.
      delete from database indx(as) id memory_id.
    Thanks,
    Duy

  • IPod being used by other app while getting disconnected

    when i press the eject ipod button in itunes, it displays the message: ipod cannot be ejected because it is being used by another application
    i was wondering if the windows 'safely remove hardware' had anything to do with this
    if so/not, please tell me how to solve this problem
    ipod 30g, brand new, v1.1.1, iTunes newest ver
    right now i have to listen to the ipod to make sure its internal harddrives are silent before unplugging
    oh ya btw, when i press eject ipod, the screen of the ipod suddenly goes to normal for like a second, before the Do Not Disconnect message resumes.

    hi Bret!
    by any chance do you have McAfee ActiveScan security software on that PC? if so let's try an experiment. diable the McAfee prior to a sync. does the iPod disconnect more smoothly then?
    love, b

  • Problem in getting public holiday class using function module

    Hi to all
    I am using function module
    HR_PERSON_READ_WORK_SCHEDULE.
    for getting the employee's actual work schedule and public holiday class FTKLA.
    But I am unable to get the correct public holiday class.
    Please guide me.
    How to do that.
    Regards
    Anubhav

    Hi,
    form build_work_schedule tables b_psp structure pdpsp
                                    b_day_psp structure pdsppsp
                                    b_employees structure pdpnr
                             using value(b_begda) like sy-datum
                                   value(b_endda) like sy-datum
                                   value(b_read_db) type c.
      data: counter type i. "Note 495298
      call function 'HR_PERSON_READ_WORK_SCHEDULE'
           exporting
                begin_date          = b_begda
                end_date            = b_endda
               grouping_dws        = motpr    "VEX Modif
               grouping_attendence = moabw
               grouping_substitute = mover
                read_from_database  = b_read_db
                im_read_no_locked_records = 'X'                 "803380
           tables
                pernr_tab           = b_employees
                psp                 = b_psp
                day_psp             = b_day_psp
           exceptions
                error_in_build_psp  = 1
                others              = 2.
      read table b_employees with key error = 'X'
                             transporting pernr.
      if sy-subrc eq 0.
        read table d3000_pers with key pernr = b_employees-pernr
                                               transporting name.
        if sy-subrc eq 0.
          message s582 with d3000_pers-name.
        else.
          message s582 with b_employees-pernr.
        endif.
      endif.
    Hope it helps you.

  • How to extract the data by using function module?

    hi experts,
    what are the steps i have to fallow to extract the data from R/3 by using FUNCTION MODULE.
    thanks & regards
    venkat

    Hi,
    Extracting data from R/3 extract structure thru function modules
    You can proceed with create function module using SE37, thereu2019s sample in system RSAX_BIW_GET_DATA_SIMPLE,
    You need to know the logic how to populate the structure,
    after that RSO2, create datasource specify extract structure and
    function module,
    activate and replicate to bw.
    Chheers
    Raj

  • Not able to get the data on the page

    hi,
    I tried brining the data on the JSP page. I am passing the parameters to a PL/SQL procedure. but I am not getting any data or error. can anyone helpme how to proceed further I am retreving the page parameters that are passed to the JSP page like this.
    <%
    PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    RenderContext rc = portletRequest.getRenderContext();
    PortletDefinition pd = portletRequest.getPortletInstance().getPortletDefinition();
    %>
    I am getting the page parameters. but I am not able to get any result on the page.
    while I am using the same code to get the data on another JSP page I am getting the data except I am not retreving the page parameters.
    I am using the code like this to pass the parameters to the procedure.
    OracleConnection conn__OCI      = cpool.getProxyConnection(OracleOCIConnectionPool.PROXYTYPE_USER_NAME, proxUserProp);
                                  cstmt = conn__OCI.prepareCall ("begin test.test1( ?,?,?,?,? ); end;");
                                  cstmt.setString(2, cnumb);
                                  cstmt.setString(3, cperiod);
                                  cstmt.setInt(4, retStrC);
                                  cstmt.setString(5, retStr3);
                                  cstmt.registerOutParameter (4, Types.NUMERIC);
                                  cstmt.registerOutParameter (5, Types.VARCHAR);
                                  cstmt.registerOutParameter(1, OracleTypes.CURSOR);
                                  cstmt.execute();
                                  retStrC = cstmt.getInt (4);
                                  retStr3 = cstmt.getString (5);
                                  retStr = "<tr class=OraDataText><td>  " + retStrC + "</td></tr>";
                                  retStr = retStr + "<tr class=OraDataText><td>  " + retStr3 + "</td></tr>";
                                  if ( retStrC == -1 )                    { ALLretStr = ALLretStr + retStr; }
                                  else
                                       cursor = ((OracleCallableStatement)cstmt).getCursor(1);
                                       while (cursor.next ())
                                                 if (spacerLine >= 2)
                                                      ALLretStr = ALLretStr + "<tr><td colspan=5 height=1 <div id=ssubLine> <div id=ssubLinet></div> </div> </td></tr>";
                                                 ALLretStr = ALLretStr + "<tr class=smmjWipAltText><td ALIGN=LEFT>" + cursor.getString(1) + "</td><td ALIGN=CENTER>" + cursor.getInt(2) + "</td><td ALIGN=CENTER>" + cursor.getString(3) + "</td><td ALIGN=CENTER>" + cursor.getString(4) + "</td><td ALIGN=RIGHT>" + cursor.getString(5) + "</td></tr>";
                                                 spacerLine++;
                                  }

    Hi Frank,<br>
    <br>
    I am getting a blank page after hitting the submit button. can you help me finding a solution for this in the JSP page or tell me where the error is. <br>
    <br>
    <%@page contentType="text/html;charset=UTF-8" %><br>
    <%@page import="oracle.portal.provider.v2.render.*" %><br>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %><br>
    <%@page import="oracle.portal.provider.v2.PortletDefinition" %><br>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %><br>
    <%@page import="java.sql.*, javax.sql.*, java.util.*, oracle.jdbc.*, <br>
    oracle.jdbc.pool.*, oracle.jdbc.oci.*" %><br>
    <br>
    <%<br> PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);<br>
    RenderContext rc = portletRequest.getRenderContext();<br>
    PortletDefinition pd = portletRequest.getPortletInstance().getPortletDefinition();<br>
    %><br>
    <%! String tree_descrip;<br> String tree_descrip_long;<br>
    String curr_Scheme;<br>
    String overl_gif;<br>
    String curr_css_path;<br>
    // page param<br>
    String p_number_val= "1";<br>
    String p_period_val= "Day";<br>
    %><br>
    <%<br> String long_desc = "LONG";<br>
    String Descrip = "SHORT";<br>
    String treeDescrip= "%SUBMISS%OLDER%";<br>
    String curr_treeCateg = "SUB";<br>
    try<br>
    {<br>
    curr_Scheme = getInfo.getSchem.getSchem();<br>
    overl_gif = "/images/tested/"+curr_Scheme+ "images/prefreshdefault.gif";<br>
    curr_css_path = "/images/tested/" curr_Scheme "css/param_jsp.css";<br>
    tree_descrip = getInfo.getPortletTitle.getPortletTitle ( Descrip , treeDescrip , curr_treeCateg);<br>
    tree_descrip_long = getInfo.getPortletTitle.getPortletTitle ( long_desc , treeDescrip , curr_treeCateg);<br>
    }<br>
    catch(Exception e)<br>
    {<br>
    tree_descrip = "";<br>
    tree_descrip_long = "";<br>
    }<br>
    %> <br>
    <% // Get page param p_number_val try { p_number_val = request.getParameterValues("p_number")[0]; } catch(Exception e) { p_number_val = "1"; } <br>
    // Get page param p_period_val try { p_period_val = request.getParameterValues("p_period")[0]; } catch(Exception e) { p_period_val = "Day"; } %> <br>
    <HTML> <HEAD> <link href="<%= curr_css_path %>" rel="stylesheet" type="text/css" media='' screen=''/> <SCRIPT LANGUAGE="JavaScript1.1" SRC="/images/smmj_page_obj/Popup/overlib.js"></SCRIPT> </HEAD> <BODY>
    <TABLE WIDTH=100% summary="<%= tree_descrip %>" border="0" cellspacing="0" cellpadding="3" BGCOLOR="#FFFFFF" > <TR WIDTH="100%" height="6px"><td height="6px" COLSPAN="6" ></td></TR> <TR WIDTH="100%" > <td ALIGN="LEFT" nowrap ></td> <td ALIGN="LEFT" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS"> CYCLE NAME</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">ID</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">FIRM NAME</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">BILLING PERIOD</td> <td ALIGN="RIGHT" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS0">AGE</td> </TR> <%= getOlderSubs( p_number_val, p_period_val , "dev", portletRequest.getUser().getName(), "close_connect") %> </table> <TABLE><TR><TD> <%=p_number_val%>
    <%=p_period_val%> <br>
    <%=portletRequest.getUser().getName()%> </TD></TR> </TABLE> </BODY> </HTML> <br>
    <%!<br> private String getOlderSubs( String cnumb, String cperiod, String cstring, String userid, String cState) throws SQLException
    {<br>
    CallableStatement cstmt;<br>
    ResultSet cursor;<br>
    int spacerLine = 1;<br>
    int retStrC = 1;<br>
    String retStr = "f";<br>
    String retStr2 = "f";<br>
    String retStr3 = "f";<br>
    String retStr4 = "f";<br>
    String ALLretStr = " ";<br>
    String TempretStr = " ";<br>
    String userstring = getInfo.getPortlUser.getPortUsr("B", "1");<br>
    String pwstring = getInfo.getPortlUser.getPortUsr("B", "2");<br>
    String CNNstring = getInfo.getPortlUser.getPortUsr("B", "3");<br>
    String PROXY_user_name = "test$" + userid;<br>
    //String PROXY_user_name = "test1$roger" ;<br>
    String url= "jdbc:oracle:oci:@" + CNNstring;<br>
    Properties prop = new Properties();<br>
    try {<br>
    if ( userid.trim().toUpperCase().equals(getInfo.getCONN.chkPortal.trim().toUpperCase()) )<br>
    {<br>
    ALLretStr = "<tr><td>Default user: " + userid + "</td></tr>"; }<br>
    else<br>
    {<br>
    // Create an OracleOCIConnectionPool instance with default configuration
    OracleOCIConnectionPool cpool = new OracleOCIConnectionPool(userstring, pwstring , url, null);<br>
    Properties proxUserProp = new Properties();<br>
    proxUserProp.setProperty(OracleOCIConnectionPool.PROXY_USER_NAME, PROXY_user_name);<br>
    OracleConnection conn__OCI = cpool.getProxyConnection
    (OracleOCIConnectionPool.PROXYTYPE_USER_NAME, proxUserProp);<br>
    cstmt = conn__OCI.prepareCall ("begin PORT_CURSOR.s_submission_wip( ?,?,?,?,? ); end;");<br>
    cstmt.setString(2, cnumb);<br>
    cstmt.setString(3, cperiod);<br>
    cstmt.setInt(4, retStrC);<br>
    cstmt.setString(5, retStr3);<br>
    cstmt.registerOutParameter (4, Types.NUMERIC);<br>
    cstmt.registerOutParameter (5, Types.VARCHAR);<br>
    cstmt.registerOutParameter(1, OracleTypes.CURSOR);<br>
    cstmt.execute();<br>
    retStrC = cstmt.getInt (4);<br>
    retStr3 = cstmt.getString (5);<br>
    retStr = "<tr class=OraDataText><td> " + retStrC + "</td></tr>";<br>
    retStr = retStr + "<tr class=OraDataText><td> " + retStr3 + "</td></tr>";<br>
    if ( retStrC == -1 ) { ALLretStr = ALLretStr + retStr; }<br>
    else<br>
    {<br>
    cursor = ((OracleCallableStatement)cstmt).getCursor(1);<br>
    while (cursor.next ())<br>
    {<br>
    if (spacerLine >= 2)<br>
    {<br>
    ALLretStr = ALLretStr + "<tr><td ALIGN=LEFT nowrap ></td><td colspan=5 height=1 ></td></tr>";<br>
    }<br>
    ALLretStr = ALLretStr + "<tr WIDTH=100% class=smmjPort2Text >
    <td ALIGN=LEFT nowrap ></td><td ALIGN=LEFT> " + cursor.getString(1) + "</td><td ALIGN=CENTER>" + cursor.getInt(2) + "</td><td ALIGN=CENTER>" + cursor.getString(3) + "</td><td ALIGN=CENTER>" + cursor.getString(4) + "</td><td ALIGN=RIGHT>" + cursor.getString(5) + "</td></tr>";<br>spacerLine++;<br>
    }<br>
    }<br>
    if (cState != null )<br>
    { //return(retStr);<br>
    if (conn__OCI != null) conn__OCI.close();<br>
    if (cpool != null) cpool.close();<br>
    }}<br>
    return(TempretStr);<br>
    }<br>
    catch (SQLException e )<br>
    {<br>
    String retErrStr = retStr + " SQL Error: <PRE> " + e + " </PRE> \n";<br>
    return(retErrStr);<br>
    }<br>
    }<br>
    %><br>
    Regards,<br>
    Vijay.

  • Unable to get the data in RSA 3 for the data source 2LIS_03_BX.

    Hi Xperts,
    we are loading the data sources(2LIS_03_BX) by using MCNB transaction but not getting the data in it.
    can any one please tell me how to load the data into it with step by step process.
    regards,
    satish

    Hi,
    To see the data in RSA3 you need to do the setup of data for the particular data source through SBIW transaction.
    The Rsa3 transaction displays the data present in the setup tables of the particular data source.

  • Getting USERS data in a Multiple LDAP scenario

    Hi All
    We have users in 3 entirely different domains....with different LDAP existing....While getting users data in CUP from LDAP, how do I establish a connection with all of them....? Shall I create different LDAP connectors for them? But I can only determine one user data source....at a time
    Please advice if there is some other option
    Thanks
    Abhijeet

    Hello Abhijeet,
    Yes you have to create three different connectors for all the LDAP systems and you can fetch user data from different systems too. From  AC 5.3, you can define multiple user detail souces in CUP and assign priority to them
    Here is a document on BPX that may help you in configuring the same:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b07a775f-038e-2b10-4091-e7cfc47ec9b0
    Hope this answers the query.
    Harleen
    SAP GRC RIG

  • Getting Error while accessing the data using odata service

    Hi All,
    Iam new to SAP FIORI. 
    Iam getting the below error while accessing the data using odata service.
    "Failed to load resource: the server responded with a status of 404 (Not found)"
    "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin "
    i have tried all the solutions like changing the url pattern "proxy/htttp".
    and disabled - security in chrome (Chrome is Updated version).
    i tried with IE still got the same problem.
    And installed all the required software in eclipse
    While installing GWPA plugin i got the following error.
    let me know if any one have idea.
    Thanks in advance.

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

Maybe you are looking for

  • Problems with Mini DVI to S-Video/RCA adapter

    Hello I've got a mac mini and I want to pass its image to a television (note: this television doesn't have HDMI) I've bought the Mini DVI to S-Video/RCA adapter, but when I connect it to my TV nothing appers (except some gray lines, which means the s

  • Cant find my photos on ICloud , Please help ?

    I cant find the "photos" folder on Icloud, all the others are there like mail, contacts etc, I have backed up my Iphone and Ipad to Icloud but alsa cannot see them.

  • Customize ESS LR Workflow

    Hi, I have to customize the ESS Leave request workflow process. For this I have copied the standard workflow WS12300111 to 95000002 and done all the config related changes in PTARQ. The new workflow is working fine and Leaves can be Applied as reqd.

  • Everything vanishes in the application

    Hi anyone of you has experience with this stuff. Everything works fine until a specific moment when all menus are empty without any possibility to get something to see. panels brushes ecc. see screenshot the only way is to restart the application tha

  • How do I connect ipad 2 to wired connections in hotels?

    How do I connect ipad 2 to wired internet connections in hotels?