Dashboard - ListBox value to populate into Table

hi,
I'm creating a dashboard using a listbox that will need to populate the value into a table/result section. Is this possible?
The value from the listbox do not come from the database, it is manually enter into the listbox. Once the user select the listbox value it need to populate into table or result section. It need to display on the report and maintain the value until future changes.
Kindly advise will Hyperion 9.3.1 able to do that...?
Thank you.
lieming

Not really what a Query and Analysis tool is designed to do.
If you really need IR to do this then look at using SendSQL to update a database table.
wayne

Similar Messages

  • NULL values are inserted into interface table for read only columns

    Hi, I developed a custom Integrator where some of the columns has to be displayed as read only in the layout. I am using SQL content to populate the data. When I upload the data NULL values are inserted into table interface? Is there any work around for this?
    Thanks
    Edited by: user593879 on Jan 12, 2010 7:21 PM

    Doesn't WebADI drive you insane at times?
    I must say, when it's all working it looks great and it is very user friendly (end-user that is, NOT for developers!) but before you get to that stage… please please Oracle invest some time making Web ADI a bit more logical an coherent, get the obvious bugs out, please let us not have to update BNE tables anymore to get things done.
    Anyway, I sorted this one out by setting the Width to zero (0) in the Layout. HTH.

  • MIGO- Goods Issue- Order, the value is not written into Table COSP

    Hi,
      We make a substitution of wbs element of line item( BSEG-PROJK ). The wbs filed will be filled automatically when the user input a cost center or a order number.
    But we found some inconsistency in standard report S_ALR_87013558 OR CJI3.
    The following is what we have done:
    In Tcode F-02, we enter a order(e.g. A), then the WBS Element is filled automatically. when we post the document, and go to Standard report: S_ALR_87013558,
    we can see the amount in the report.
    In MIGO, we make a goods issue by order(e.g. A. Movement type is 261) , when we post, Material Document and Accounting document and Controlling document , but in report S_ALR_87013558 or CJI3. the amount is wrong, we can not see the amount we have done in MIGO.
    The movement type 201 is also wrong, the value is also not written into tabl cosp.
    But GI for project-movement type 221, the value is written into table cosp.
    Can you tell me this is wrong or right? if right, why? if wrong, how can i correct it, i need some customizing or others? or my substitution affect the result?
    Best Regards
    qingda

    Sorry, not reply these days.
    And very thanks for all your replies.
    I am a abaper, not familiar with the business.
    The business consultant want to control budget, control cost. 
    At first, he let me do a substibution in FI line item of besg-projk(WBS Element), when we he test the substitution in TCode F-02, the WBS field is filled automatically as per G/L account and Cost Center or as per G/L Account and Order, and then in Standard Report 'S_ALR_87013558', we can see the changes of the cost.
    But when biz consultant do a MIGO->Goods Issue by order, we can not see the changes of the cost,but the value of WBS in FI Accounting Document is substituted correctly.
    And if we enter the WBS manually when we do a MIGO->Goods Issue by order, we can see the changes of the report 'S_ALR_87013558'.
    In the original post, i was wrong, when we do a goods issue with movement type 201, the result is the same as 261, also we cant see the changes. but if we enter the wbs manually(movement type 201),the changes is write to COSP table.
    The solution about the original requirement is right or wrong?
    Thank You All.
    Best Regards
    qingda

  • Duplicate insert into table

    hello all,
    i am having problem when insert data into table. my first value will insert into table once again and again when i refresh page or logged in as another person.
    is it because i am using JavaScript onChange on my page? here is my script..
    <html>
    <head>
    <title>Post New Offer</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" src="ts_picker.js"></script>
    </head>
    <body>
    <%@ page import ="java.sql.*" %>
    <%@ page import ="java.lang.*" %>
    <%@ page import ="java.util.*" %>
    <%@ page import ="java.io.*" %>
    <%@ page import ="java.text.SimpleDateFormat"%>
    <script language="JavaScript">
    function select_offer() {
    document.formoffer.submit();
    </script>
    <%!
    String username;
    String otype="";
    String submitform;
    String submitsave="";
    String bizid="";
    String contperson="";
    String ocategory="";
    String otitle="";
    String odesc="";
    String oposted="";
    String oexpiry="";
    String oprice;
    String ocheck="";
    String oqty;
    String ounit="";
    String oneeded="";
    String odelivery="";
    String opackaging="";
    String ostatus="";
    float price;
    int qty;
    int columns =0;
    int col =0;
    int vd =0;
    int columncate =0;
    int colcate =0;
    int rowcate =0;
    int vdcate=0;
    %>
    <jsp:useBean id="insertinto" class="ita.InsertNewOffer" scope="request" />
    <jsp:setProperty name="insertinto" property="*" />
    <% insertinto.connect();
    insertinto.setQueryInfo(username);
    col = insertinto.getColumn();
    Vector recordVector = insertinto.getVectorRow();
    insertinto.setQuery();
    colcate = insertinto.getColumn();
    rowcate = insertinto.getRow();
    Vector outVector = insertinto.getVectorRow();
    %>
    <!-- Header Menu -->
    <%@ include file="headermenu.jsp"%>
    <hr size="1">
    <br>
    <table width="100%" border="0">
    <tr>
    <td width="23%"><div align="right"><font size="2" face="Arial, Helvetica,
    sans-serif">Post by <b><% out.println(username); %></b></font></div>
    </td>
    </tr>
    </table>
    <!-- Left Menu -->
    <%@ include file="leftmenu.jsp"%>
    <%
    submitform = request.getParameter("submitform");
    if((submitform != null) && (submitform.equals("Post Offer")) && (!(otype.equals("none"))) && (!(bizid.equals(""))))
    ostatus = "posted";
    if((submitform != null) && (submitform.equals("Save Offer")) && (!(otype.equals("none"))) && (!(bizid.equals(""))))
    ostatus = "saved";
    bizid = request.getParameter("bizid"); if (bizid == null) { bizid = ""; }
    bizid = bizid.trim();
    otype = request.getParameter("otype"); if (otype == null) { otype = "none"; }
    ocategory = request.getParameter("ocategory"); if (ocategory == null) { ocategory = ""; }
    String cat="";
    String[] cat2 = request.getParameterValues("ocategory");
    if (cat2 != null)
    for(int i=0;i<cat2.length;i++) {
    cat += cat2[i] +";";
    //out.println("choose1 : "+cat2+"<br>");
    //out.println("choose2 : "+cat2[i]+"<br>");
    //out.println("choose3 : "+cat+"<br>");
    otitle = request.getParameter("otitle"); if (otitle == null) { otitle = ""; }
    odesc = request.getParameter("odesc"); if (odesc == null) { odesc = ""; }
    oposted = request.getParameter("oposted");
    oexpiry = request.getParameter("oexpiry");
    oexpiry = oexpiry.trim();
    oprice = request.getParameter("oprice");
    float price = 0;
    if (oprice != null) {
    try {
    price = Float.parseFloat(oprice);
    catch(NumberFormatException e) {}
    oqty = request.getParameter("oqty");
    int qty = 0;
    if (oqty != null) {
    try {
    qty = Integer.parseInt(oqty);
    catch(NumberFormatException e) {}
    ocheck = request.getParameter("ocheck"); if (ocheck == null) { ocheck = "no"; }
    ounit = request.getParameter("ounit"); if (ounit == null) { ounit = "none"; }
    oneeded = request.getParameter("oneeded"); if (oneeded == null) { oneeded = ""; }
    odelivery = request.getParameter("odelivery"); if (odelivery == null) { odelivery = ""; }
    opackaging = request.getParameter("opackaging"); if (opackaging == null) { opackaging = ""; }
    contperson = request.getParameter("contperson"); if (contperson == null) { contperson = ""; }
    contperson = contperson.trim();
    insertinto.InsertNew(bizid,otype,cat,otitle,odesc,oposted,oexpiry,price,ocheck,qty,ounit,oneeded,odelivery,opackaging,ostatus,contperson);
    insertinto.disconnect();
    %>
    <td width="77%">
    <form name="formoffer" method="post" action="NewOffer.jsp?username=<% out.println(username);%> ">
    <table width="100%" border="0" cellpadding="2">
    <tr>
    <td width="77%">
    <table width="100%" border="0">
    <tr>
    <td><font size="5" face="Arial, Helvetica, sans-serif">My Offer</font></td>
    </tr>
    <tr bgcolor="#FFCC00">
    <td colspan="3"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <b>1) Offer Detail</b></font> </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Offer
    date :</font></td>
    <td width="61%" colspan="2"><font color="#336600" size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <%= new java.util.Date() %></font>
    <input type="hidden" name="oposted" value="<%= dateString %>"> </td>
    </tr>
    <tr>
    <td width="39%" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Offer
    type :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <select name="otype" onChange="select_offer()">
         <%
         if (otype.equals("")||otype.equals("none")) { %>
    <option selected value="none">Select one</option>
    <option value="Buy">Buy</option>
         <option value="Sell">Sell</option>
         <option value="Biz Opportunity">Biz Op</option>
    <option value="Excess Stock">Excess Stock</option>
         <% }
    else if (otype.equals("Buy")) { %>
    <option value="none">Select one</option>
    <option selected value="Buy">Buy</option>
         <option value="Sell">Sell</option>
         <option value="Biz Opportunity">Biz Op</option>
    <option value="Excess Stock">Excess Stock</option>
         <% }
    else if (otype.equals("Sell")) { %>
    <option value="none">Select one</option>
    <option value="Buy">Buy</option>
         <option selected value="Sell">Sell</option>
         <option value="Biz Opportunity">Biz Op</option>
    <option value="Excess Stock">Excess Stock</option>
         <% }
    else if (otype.equals("Biz Opportunity")) { %>
    <option value="none">Select one</option>
    <option value="Buy">Buy</option>
         <option value="Sell">Sell</option>
         <option selected value="Biz Opportunity">Biz Op</option>
    <option value="Excess Stock">Excess Stock</option>
         <% }
    else if (otype.equals("Excess Stock")) { %>
    <option value="none">Select one</option>
    <option value="Buy">Buy</option>
         <option value="Sell">Sell</option>
         <option value="Biz Opportunity">Biz Op</option>
    <option selected value="Excess Stock">Excess Stock</option>
         <% } %>
    </select>
    </font> </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Category
    : </font></td>
    <td colspan="2">
    <% vdcate=0; %>
    <select name="ocategory" size="4" multiple>
    <% while (vdcate<outVector.size()) {
    for (int j=0; j<colcate; j++) {
    if (j==0) {
    String catid = (String)outVector.elementAt(vdcate) ;
    String mainlevel = (String)outVector.elementAt(vdcate+1) ;
    String level1 = (String)outVector.elementAt(vdcate+2) ;
    String level2 = (String)outVector.elementAt(vdcate+3) ;%>
    <option value=<% out.println(catid); %> >
    <% out.println(mainlevel); %>  - 
              <% out.println(level1); %>  - 
              <% out.println(level2); %>
    <% }
    if (j > 0) {}
    vdcate++;
    } %>
    </option>
    </select>
    </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Title
    :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <input name="otitle" type="text" size="35">
    </font> </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Offer
    description :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <textarea name="odesc" cols="30"></textarea>
    </font> </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Expiry date :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <input type="Text" name="oexpiry" readOnly style="BACKGROUND-COLOR: #eeeeee">
    <img src="img/cal.gif" width="16" height="16" border="0" alt="Click to select date">
    </font>
    </td>
    </tr>
    <%
    System.out.println("display form" +otype);
    if (otype.equals("Buy")) { %>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    Target price : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">RM
    <input name="oprice" type="text" size="7">
    <input type="checkbox" name="ocheck" value="yes">
    <font color="#FF0000">*<font color="#000000" size="1">Negotiable</font></font></font>
    </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Minimum
    quantity :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <input name="oqty" type="text" size="10">
    <select name="ounit" size="1">
    <option selected value="none">Choose one</option>
    <option>Kg</option>
    <option>Pack</option>
    <option>Ton</option>
    <option>Boxes</option>
    <option>Carton</option>
    </select>
    </font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">When
    needed / Supply period :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <select name="oneeded">
    <option selected value="none">Select one</option>
    <option>Daily</option>
    <option>1 week</option>
    <option>2 weeks</option>
    <option>1 month</option>
    <option>2 months</option>
    <option>3 months</option>
    <option>6 months</option>
    </select>
    </font></td>
    </tr>
    <% } %>
    <%
    if (otype.equals("Sell")) { %>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Delivery
    : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <select name="odelivery" size="1">
    <option selected value="none">Choose one</option>
    <option>Own transport</option>
         </select>
    </font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Packaging
    : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <select name="opackaging" size="1">
    <option selected value="none">Choose one</option>
    <option>Included</option>
    <option>Not included</option>
         </select>
    </font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    Selling price : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">RM
    <input name="oprice" type="text" size="7">
    <input type="checkbox" name="ocheck" value="yes">
    <font color="#FF0000">*<font color="#000000" size="1">Negotiable</font></font></font>
    </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Available
    quantity :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <input name="oqty" type="text" size="10">
    <select name="ounit" size="1">
    <option selected value="none">Choose one</option>
    <option>Kg</option>
    <option>Pack</option>
    <option>Ton</option>
    <option>Boxes</option>
    <option>Carton</option>
    </select>
    </font></td>
    </tr>
    <% } %>
    <%
    if (otype.equals("Excess Stock")) { %>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Delivery
    : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <select name="odelivery" size="1">
    <option selected value="none">Choose one</option>
    <option>Own transport</option>
         </select>
    </font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Packaging
    : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <select name="opackaging" size="1">
    <option selected value="none">Choose one</option>
    <option>Included</option>
    <option>Not included</option>
         </select>
    </font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    Offer price : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">RM
    <input name="oprice" type="text" size="7">
    <input type="checkbox" name="ocheck" value="yes">
    <font color="#FF0000">*<font color="#000000" size="1">Negotiable</font></font></font>
    </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Available
    quantity :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <input name="oqty" type="text" size="10">
    <select name="ounit" size="1">
    <option selected value="none">Choose one</option>
    <option>Kg</option>
    <option>Pack</option>
    <option>Ton</option>
    <option>Boxes</option>
    <option>Carton</option>
    </select>
    </font></td>
    </tr>
    <% } %>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    </tr>
    <% vd=0; %>
    <% for (int vd=0; vd<col; vd++) {  %>
    <tr bgcolor="#FFCC00">
    <td colspan="3" valign="top"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>2)
    Contact Information</b></font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Business
    ID : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <% String bizid = (String)recordVector.elementAt(vd); vd++; %>
    <% out.println(bizid); %></font>
    <input type="hidden" name="bizid" value="<% out.println(bizid); %>">
    </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Contact person : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <% String conttitle = (String)recordVector.elementAt(vd); vd++; %>
    <% String contperson = (String)recordVector.elementAt(vd); vd++; %>
    <% out.println(conttitle);
    out.println( contperson);%>
    <input type="hidden" name="contperson" value="<% out.println(contperson); %>"></font></td></tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Company name :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <% out.println(recordVector.elementAt(vd));vd++; %></font>
    </td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Address
    : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
         <% out.println(recordVector.elementAt(vd));vd++; %>,
    <% out.println(recordVector.elementAt(vd));vd++; %>, 
    <% out.println(recordVector.elementAt(vd));vd++; %>
    <% out.println(recordVector.elementAt(vd));vd++; %></font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Telephone
    : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
         <% out.println(recordVector.elementAt(vd));vd++; %></font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Mobile phone
    : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
         <% out.println(recordVector.elementAt(vd));vd++; %></font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Fax
    :</font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <% out.println(recordVector.elementAt(vd));vd++; %></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Email
    : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <a href ="mailto:<% out.println(username);%>@b2bxchange.com.my">
    <% out.println(username);%>@b2bxchange.com.my</a></font></td>
    </tr>
    <tr>
    <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Website
    : </font></td>
    <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <% String website = (String)recordVector.elementAt(vd); vd++; %>
    <a href="<% out.println(website); %>"><% out.println(website); %></a></font></td>
    </tr>
    <tr>
    <td colspan="3"><font face="Arial, Helvetica, sans-serif"> </font></td>
    </tr>
    <tr>
    <td colspan="3"><div align="center"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <input type="submit" name="submitform" value="Post Offer"> 
    <input type="submit" name="submitform" value="Save Offer"> 
    <input type="reset" name="resetform" value="Reset">
    </font></div></td>
    </tr>
    </table>
    </form>
    </td></tr>
    <% } %>
    <% vd=0; %>
    </table>
    </body>
    </html>

    I'm not going to try to read all your code, but I will take your hint about the "onChange".
    What I would suggest is that you set a boolean variable, such as "changed", set to false at the beginning (perhaps in the "onLoad" event). Your "onChange" event can simply change the "changed" variable to true. Then, when the user leaves the page, or clicks Submit or whatever, test that variable to see if any changes were made, then take the appropriate action.

  • Fetching data from VO and put into table Region

    Hi All,
    I am using Jdev 9i and 11i application.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
          super.processRequest(pageContext, webBean);
    Number Variable= (Number)pageContext.getSessionValue("SessionValue");
    Number numValue = new Number (Variable);
    pageContext.writeDiagnostics(this, "In XXXXShoppingCO header "+ Variable, 1);
    pageContext.removeSessionValue("SessionValue");
    String sql ="SELECT REQUISITION_LINE_ID,REQUISITION_HEADER_ID, LINE_NUM, ITEM_DESCRIPTION, UNIT_MEAS_LOOKUP_CODE,UNIT_PRICE,QUANTITY,BASE_UNIT_PRICE FROM PO_REQUISITION_LINES_ALL  ORDER BY LINE_NUM ASC";
                  ViewObject VO;
                 //Get the AM. Here
                  OAApplicationModuleImpl AM= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
                 //Create the View Definition
                 OAViewDef viewDef  = AM.getOADBTransaction().createViewDef();
                 viewDef.setSql(sql);
                 viewDef.setExpertMode(true);
                 viewDef.setViewObjectClass("oracle.apps.fnd.framework.server.OAViewObjectImpl");
                 viewDef.setViewRowClass("oracle.apps.fnd.framework.server.OAViewRowImpl");
                 //Now since the View Definition is ready, we create the View Object
                  VO = (OAViewObject)AM.findViewObject("JDSUPoReqVO");
           if(VO==null){
                 VO = AM.createViewObject("JDSUPoReqVO",viewDef);
                 VO.setWhereClause(null);
                 VO.setWhereClause("REQUISITION_HEADER_ID = :1");
                 VO.setWhereClauseParams(null);
                 VO.setWhereClauseParam(0,numValue);
                 //AM.getOADBTransaction().putDialogMessage(new OAException("param value is "+VO.getWhereClauseParams()));
                 Object[] temp =VO.getWhereClauseParams();
      pageContext.putDialogMessage(new OAException("temp value"+ temp.length));
      for(int i=0; i<temp.length;i++)
        pageContext.putDialogMessage(new OAException("parameters are "+ temp[i].toString()));
    AM.getOADBTransaction().putDialogMessage(new OAException( " query is "+VO.getQuery()));
    AM.getOADBTransaction().putDialogMessage(new OAException( "Where Clause of the VO is "+ VO.getWhereClause()));  
    //ItemTableRN
                  //OATableBean localOATableBean =(OATableBean)webBean.findChildRecursive("ItemTableRN");
    OAMessageStyledTextBean LineNum = (OAMessageStyledTextBean)webBean.findChildRecursive("LineNum");  
                          LineNum.setViewUsageName("JDSUPoReqVO");
                          LineNum.setViewAttributeName("LINE_NUM"); 
                          //LineNum.setReadOnly(true); 
              OAMessageTextInputBean  itemDesc = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("ItemDescInput");
                           itemDesc.setViewUsageName("JDSUPoReqVO");
                           itemDesc.setViewAttributeName("ITEM_DESCRIPTION"); 
                         //itemDesc.setReadOnly(true); 
               OAMessageStyledTextBean SpecialInfo = (OAMessageStyledTextBean)webBean.findChildRecursive("InfoTemplateText");
                            SpecialInfo.setViewUsageName("JDSUPoReqVO");
                            SpecialInfo.setViewAttributeName("REQUISITION_HEADER_ID"); 
                          //SpecialInfo.setReadOnly(true);
               OAMessageLovInputBean Unit = (OAMessageLovInputBean)webBean.findChildRecursive("TranslatedUom");
                            Unit.setViewUsageName("JDSUPoReqVO");
                            Unit.setViewAttributeName("UNIT_MEAS_LOOKUP_CODE"); 
                          //Unit.setReadOnly(true); 
               OAMessageTextInputBean  Quantity = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("Quantity");
                            Quantity.setViewUsageName("JDSUPoReqVO");
                            Quantity.setViewAttributeName("QUANTITY"); 
                          //Quantity.setReadOnly(true);
               OAMessageTextInputBean  Price = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("TxnPrice");
                            Price.setViewUsageName("JDSUPoReqVO");
                            Price.setViewAttributeName("BASE_UNIT_PRICE"); 
                          //Price.setReadOnly(true);
               OAMessageTextInputBean  Amount = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("TxnAmount");
                             Amount.setViewUsageName("JDSUPoReqVO");
                             Amount.setViewAttributeName("UNIT_PRICE"); 
    when I use print values of VO into table's field then I am getting error:
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
      at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
      at _oa__html._OA._jspService(_OA.java:101)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
      at org.apache.jserv.JServConnection.run(JServConnection.java:294)
      at java.lang.Thread.run(Thread.java:736)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
      at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
      at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
      at _oa__html._OA._jspService(_OA.java:101)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
      at org.apache.jserv.JServConnection.run(JServConnection.java:294)
      at java.lang.Thread.run(Thread.java:736)
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
      at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
      at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
      at _oa__html._OA._jspService(_OA.java:101)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
      at org.apache.jserv.JServConnection.run(JServConnection.java:294)
      at java.lang.Thread.run(Thread.java:736)

    Hi All,
    I am using Jdev 9i and 11i application.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
          super.processRequest(pageContext, webBean);
    Number Variable= (Number)pageContext.getSessionValue("SessionValue");
    Number numValue = new Number (Variable);
    pageContext.writeDiagnostics(this, "In XXXXShoppingCO header "+ Variable, 1);
    pageContext.removeSessionValue("SessionValue");
    String sql ="SELECT REQUISITION_LINE_ID,REQUISITION_HEADER_ID, LINE_NUM, ITEM_DESCRIPTION, UNIT_MEAS_LOOKUP_CODE,UNIT_PRICE,QUANTITY,BASE_UNIT_PRICE FROM PO_REQUISITION_LINES_ALL  ORDER BY LINE_NUM ASC";
                  ViewObject VO;
                 //Get the AM. Here
                  OAApplicationModuleImpl AM= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
                 //Create the View Definition
                 OAViewDef viewDef  = AM.getOADBTransaction().createViewDef();
                 viewDef.setSql(sql);
                 viewDef.setExpertMode(true);
                 viewDef.setViewObjectClass("oracle.apps.fnd.framework.server.OAViewObjectImpl");
                 viewDef.setViewRowClass("oracle.apps.fnd.framework.server.OAViewRowImpl");
                 //Now since the View Definition is ready, we create the View Object
                  VO = (OAViewObject)AM.findViewObject("JDSUPoReqVO");
           if(VO==null){
                 VO = AM.createViewObject("JDSUPoReqVO",viewDef);
                 VO.setWhereClause(null);
                 VO.setWhereClause("REQUISITION_HEADER_ID = :1");
                 VO.setWhereClauseParams(null);
                 VO.setWhereClauseParam(0,numValue);
                 //AM.getOADBTransaction().putDialogMessage(new OAException("param value is "+VO.getWhereClauseParams()));
                 Object[] temp =VO.getWhereClauseParams();
      pageContext.putDialogMessage(new OAException("temp value"+ temp.length));
      for(int i=0; i<temp.length;i++)
        pageContext.putDialogMessage(new OAException("parameters are "+ temp[i].toString()));
    AM.getOADBTransaction().putDialogMessage(new OAException( " query is "+VO.getQuery()));
    AM.getOADBTransaction().putDialogMessage(new OAException( "Where Clause of the VO is "+ VO.getWhereClause()));  
    //ItemTableRN
                  //OATableBean localOATableBean =(OATableBean)webBean.findChildRecursive("ItemTableRN");
    OAMessageStyledTextBean LineNum = (OAMessageStyledTextBean)webBean.findChildRecursive("LineNum");  
                          LineNum.setViewUsageName("JDSUPoReqVO");
                          LineNum.setViewAttributeName("LINE_NUM"); 
                          //LineNum.setReadOnly(true); 
              OAMessageTextInputBean  itemDesc = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("ItemDescInput");
                           itemDesc.setViewUsageName("JDSUPoReqVO");
                           itemDesc.setViewAttributeName("ITEM_DESCRIPTION"); 
                         //itemDesc.setReadOnly(true); 
               OAMessageStyledTextBean SpecialInfo = (OAMessageStyledTextBean)webBean.findChildRecursive("InfoTemplateText");
                            SpecialInfo.setViewUsageName("JDSUPoReqVO");
                            SpecialInfo.setViewAttributeName("REQUISITION_HEADER_ID"); 
                          //SpecialInfo.setReadOnly(true);
               OAMessageLovInputBean Unit = (OAMessageLovInputBean)webBean.findChildRecursive("TranslatedUom");
                            Unit.setViewUsageName("JDSUPoReqVO");
                            Unit.setViewAttributeName("UNIT_MEAS_LOOKUP_CODE"); 
                          //Unit.setReadOnly(true); 
               OAMessageTextInputBean  Quantity = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("Quantity");
                            Quantity.setViewUsageName("JDSUPoReqVO");
                            Quantity.setViewAttributeName("QUANTITY"); 
                          //Quantity.setReadOnly(true);
               OAMessageTextInputBean  Price = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("TxnPrice");
                            Price.setViewUsageName("JDSUPoReqVO");
                            Price.setViewAttributeName("BASE_UNIT_PRICE"); 
                          //Price.setReadOnly(true);
               OAMessageTextInputBean  Amount = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("TxnAmount");
                             Amount.setViewUsageName("JDSUPoReqVO");
                             Amount.setViewAttributeName("UNIT_PRICE"); 
    when I use print values of VO into table's field then I am getting error:
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
      at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
      at _oa__html._OA._jspService(_OA.java:101)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
      at org.apache.jserv.JServConnection.run(JServConnection.java:294)
      at java.lang.Thread.run(Thread.java:736)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
      at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
      at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
      at _oa__html._OA._jspService(_OA.java:101)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
      at org.apache.jserv.JServConnection.run(JServConnection.java:294)
      at java.lang.Thread.run(Thread.java:736)
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
      at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
      at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
      at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
      at _oa__html._OA._jspService(_OA.java:101)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
      at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
      at _oa__html._OA._jspService(_OA.java:94)
      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
      at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
      at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
      at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
      at oracle.jsp.JspServlet.service(JspServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
      at org.apache.jserv.JServConnection.run(JServConnection.java:294)
      at java.lang.Thread.run(Thread.java:736)

  • How to populate a listbox with key in a table control

    I have the following code:
    MODULE carga_huecos INPUT.
    DATA: BEGIN OF li_huecos OCCURS 0,
            key(40) TYPE c,
            text(80) TYPE c,
    END OF li_huecos.
    DATA: BEGIN OF estru_hueco OCCURS 0,
          hueco LIKE zmov_wm-hueco,
    END OF estru_hueco.
    CLEAR: li_huecos, estru_hueco.
    REFRESH: li_huecos, estru_hueco.
    SELECT lgpla
        FROM lagp
        INTO TABLE estru_hueco
      WHERE lgnum = 'WWM' AND
            lgtyp = i_zmov_wm-almacen.
      LOOP AT estru_hueco.
        li_huecos-key  = estru_hueco-hueco.
        li_huecos-text = estru_hueco-hueco.
        APPEND li_huecos.
        CLEAR li_huecos.
      ENDLOOP.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'I_ZMOV_WM-HUECO'
          values          = li_huecos[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    I see that internal table  li_huecos has the values I need. But vrm_set_values function is not working. I need this values to be seen in a table control field which I have defined as "listbox with key". The name of the internal table associated to the table control is "I_zmov_wm" and the field is HUECO.
    After function is executed sy-subrc = 0 but no value is seen in the list.
    Thanks.

    hi ,
    instead of this 
    LOOP AT estru_hueco.
    li_huecos-key = estru_hueco-hueco.
    li_huecos-text = estru_hueco-hueco.
    APPEND li_huecos.
    CLEAR li_huecos.
    ENDLOOP.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'I_ZMOV_WM-HUECO'
    values = li_huecos[]
    EXCEPTIONS
    id_illegal_name = 1
    OTHERS = 2.
    IF sy-subrc 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    add this 
    data : name  type vrm_id  .
    LOOP AT estru_hueco.
    li_huecos-key = estru_hueco-hueco.
    li_huecos-text = estru_hueco-hueco.
    APPEND li_huecos.
    CLEAR li_huecos.
    ENDLOOP.
    name  = 'I_ZMOV_WM-HUECO' .
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id =   name
    values = li_huecos[]
    EXCEPTIONS
    id_illegal_name = 1
    OTHERS = 2.
    IF sy-subrc 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    regards
    Deepak.

  • Dashboard Prompt using values not from the table

    Hi,
    I have a requirement from the client to design a dashboard report like the following.
    Dashboard prompt will have 4 filters, three filters come from the table, but the fourth filter will have 3 values not from the table. The fourth filter will have values like "Report with Sales Amount", "Report with Purchase Amount", "Report with both Purchase and Sales". I have three different Table reports designed for each of the fourth filter choices. But how do I implement it, both in the dashboard prompt as well as navigating to the rite report based on the selection.
    Is my approach correct.
    Thanks for your time and help.

    The fourth prompt where you have "Report with Sales Amount", "Report with Purchase Amount", "Report with both Purchase and Sales" you pull a dummy column into the prompt and write a sql in show.
    would be something like
    SELECT Case when 1=0 then "Dimension- Customer"."Cust Name" else 'Report with Sales Amount' end FROM Sales UNION SELECT Case when 1=0 then "Dimension- Customer"."Cust Name" else 'Report with Purchase Amount' end FROM Sales
    and in the prompt set a presentation variable say var_criteria
    Now create report2 for with a some randomn column and another column will have the values that you want to display for example 'Report with Sales Amount'
    Create a filter on the 2nd column and reference the presentation variable var_criteria and default it to 'Report with Sales Amount'
    On the dashboard page in the section place the report and enable guided navigatoin by selecting report 2.
    Please let me know if you have any questions.
    thanks,
    deep

  • How to download values in an internal table into an excel file

    is there any fn module to download the values in an internal table into an excel file..

    hi
    the function module "GUI_DOWNLOAD"  downloads the data from
    an internal table into a file (can be xl, dat ,doc etc) .
    Plz follow the usage below ;
    Parameters : pa_pfile LIKE rlgrap-filename OBLIGATORY.
    Data : lv_filename TYPE STRING.
    lv_filename = pa_pfile.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
       BIN_FILESIZE                  =
         FILENAME                      = lv_filename
         FILETYPE                      = 'ASC'
       APPEND                        = ' '
        WRITE_FIELD_SEPARATOR         = 'X'
       HEADER                        = '00'
       TRUNC_TRAILING_BLANKS         = ' '
       WRITE_LF                      = 'X'
       COL_SELECT                    = ' '
       COL_SELECT_MASK               = ' '
       DAT_MODE                      = ' '
       CONFIRM_OVERWRITE             = ' '
       NO_AUTH_CHECK                 = ' '
    IMPORTING
       FILELENGTH                    =
       TABLES
         DATA_TAB                      = tb_download         " table data to b downlaoded
      EXCEPTIONS
        FILE_WRITE_ERROR              = 1
        NO_BATCH                      = 2
        GUI_REFUSE_FILETRANSFER       = 3
        INVALID_TYPE                  = 4
        NO_AUTHORITY                  = 5
        UNKNOWN_ERROR                 = 6
        HEADER_NOT_ALLOWED            = 7
        SEPARATOR_NOT_ALLOWED         = 8
        FILESIZE_NOT_ALLOWED          = 9
        HEADER_TOO_LONG               = 10
        DP_ERROR_CREATE               = 11
        DP_ERROR_SEND                 = 12
        DP_ERROR_WRITE                = 13
        UNKNOWN_DP_ERROR              = 14
        ACCESS_DENIED                 = 15
        DP_OUT_OF_MEMORY              = 16
        DISK_FULL                     = 17
        DP_TIMEOUT                    = 18
        FILE_NOT_FOUND                = 19
        DATAPROVIDER_EXCEPTION        = 20
        CONTROL_FLUSH_ERROR           = 21
        OTHERS                        = 22
    IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards
    Pankaj

  • How to save value in struture into internal table?

    good day to everyone,
    i have a prb with my coding below. i am trying to save the value tvbdpr-uecha into wa_zmas-uecha by using modify as shown below.
    however, the value uecha is not successfully being transported/saved into it_zmas.
    could anyone guide me?
    tvbdpr - is a structure table
    it_zmas - is an internal table
      LOOP AT tvbdpr WHERE posnr = wa_zmas-posnr AND matnr = wa_zmas-matnr.
              wa_zmas-uecha = tvbdpr-uecha.
              MODIFY TABLE it_zmas FROM wa_zmas TRANSPORTING uecha.
    thank you
    regards,
    sw

    Hi,
    If the internal table is already having contents and u need to modify it for the field uecha, you can try the following
    LOOP AT tvbdpr WHERE posnr = wa_zmas-posnr AND matnr = wa_zmas-matnr.
    wa_zmas-uecha = tvbdpr-uecha.
    READ TABLE it_zmas with KEY posnr = wa_zmas-posnr matnr = wa_zmas-matnr.
    if sy-subrc = 0.
    it_zmas-uecha = wa_zmas-uecha.
    MODIFY it_zmas index sy-index.
    clear it_zmas-uecha.
    endif.
    ENDLOOP.
    Else if the internal table is empty and you are populating the field uecha, use append
    LOOP AT tvbdpr WHERE posnr = wa_zmas-posnr AND matnr = wa_zmas-matnr.
    wa_zmas-uecha = tvbdpr-uecha.
    it_zmas-uecha = wa_zmas-uecha.
    append it_zmas.
    clear it_zmas.
    ENDLOOP.
    Regards,
    Vik

  • Insert into table values from 2 different tables

    Hi ,
    i have 2 tables as below ,
    table A
    ELITE                             FREQ_ITEM                    COMBINED_STR                    SUP   
    ;1;10;2;3;4;5;7;8             ;10;2;3;4;5;8;9                  ;1;2;3;4;5;7;8;9;10            1
    ;10;2;3;4;5;8;9               ;10;2;3;4;5;8;9                  ;2;3;4;5;8;9;10                  2table B
    FREQ_ITEM                   SUB                    ITEM_LEN                      
    ;1;10;2;3;4;5;7;8             2                    8
    ;10;2;3;4;5;8;9               2                    7
    ;10;2;3;4;5;8;9;1             1                    8i want to insert values in Table C as below ,
    insert into table C "ELITE","SUP" from Table A when "SUP" in table A >=2
    Else Select "FREQ_ITEM","SUB" from Table B when "A"."ELITE"="B"."FREQ_ITEM"
    The result should be like below ,
    ELITE                        SUP   
    ;10;2;3;4;5;8;9          2
    ;2;3;4;5;8;9;10        2any help please .
    Edited by: 876602 on 09/10/2011 04:24 ص

    It is not clear what are you trying to do. Based on expected results, something like:
      select  case
               when sup < 2 then elite
               else combined_str
              end elite,
              sub
        from  tableA a,
              tableB b
        where a.elite = b.freq_item
    ELITE                      SUB
    ;1;10;2;3;4;5;7;8            2
    ;2;3;4;5;8;9;10              2
    SQL> SY.

  • Saving values into table from Interactive Form

    Hallo together,
    iam trying to do the example "Include Tables" (SAP Interactive Forms by Adobe - Galileo Press).
    It works, but not as described. When i want to change data in the interactive_forms ui element and press the webdynpro native button send, the value at the webdynpro table does not change. When i change the value at the webdynpro table and press the send button at the form or change the line at the webdynpro, the value in the adobe formular changes too. Thats one problem.
    The other problem is that i want to save the changed/added data from the formular at the database. What to do? The form layout is "ZCI Layout" and i added the script:
    DO NOT MODIFY THE CODE BEYOND THIS POINT - 800.20070708051308.406522.403406 - ContainerFoundation_JS
    I also added this into "wddomodifyview":
    METHOD wddomodifyview .
      DATA: lr_interactive_form TYPE REF TO cl_wd_interactive_form,
                 lr_method_handler TYPE REF TO if_wd_iactive_form_method_hndl.
      CHECK first_time = abap_true.
      lr_interactive_form ?= view->get_element( 'FORM' ).
      lr_method_handler ?= lr_interactive_form->_method_handler.
      lr_method_handler->set_legacy_editing_enabled( abap_true ).
    ENDMETHOD.
    I selected also:
    execute at: "Server and Client"
    I dont know what to do anymore.
    Best regards
    Philip

    Hi,
    To make an input enabled table. I would suggest to use TABLE element from the PDF library and then binding the columns from your context.
    Step 1: Library -> Standard ->Table
    Select create using assistance.
    Select body rows vary depending on data .
    Select number of Columns in your case it will be 4.
    Then proceed further and finish as per your need.
    Step 2:
    Select a table Column .
    Select Pallets->Object then chnage the cell type from Text to text field.
    Then click on binding tab and bind it to the respective field from hierarchy.
    Select upgrade the following properties radio button and check only "default value" option.
    This will create binding something like this $record.SCARR.DATA[*].CARRID
    Follow this for all other columns.
    Step 3:
    Now create a button in the View holding your form(you can also use SUBMIT button of form). On action event of this button right the following code to get all the changed values from Table.
    data lt_scarr type wd_this->elements_scarr.
      call method lo_nd_scarr->get_static_attributes_table
        importing
          table = lt_scarr.
    LT_SCARR will contain all the new values from Form. Then use this table to update ur database table.
    Thanks,
    Abhishek

  • Sqlloader: how to insert -ve value into table

    hi..
    i had problem during loading. The error is Record 1: Rejected - Error on table FILE01, column AMOUNT.
    ORA-01722: invalid number
    For AMOUNT, the datatype is number(20,2).
    here is my .ctl
    LOAD DATA
    INFILE 'file1bp0103.txt'
    BADFILE 'file01.bad'
    APPEND
    INTO TABLE file01
    acct_no POSITION(01:13),
    amount POSITION(14:28),
    description POSITION(29:32)
    my .dat file
    A500000030401- 32.74PYMT
    A500000320106- 46.95PYMT
    A500000520408- 63.95PYMT
    A500000610301- 12.99PYMT
    A500001720110- 56.21PYMT
    A500001800103- 55.65PYMT
    A500002000109- 27.25PYMT
    A500002000305- 53.35PYMT
    A500002080210- 75.04PYMT
    A500002250106- 103.38PYMT
    A500002500104- 60.69PYMT
    A500002620902- 509.77PYMT
    A500002621010- 398.69PYMT
    what is the problem? is it because of my datatype?
    please help me..
    TQ

    Is there a need to use dynamic sql here?
    at the very least, try using bind variables instead of concatenating values like that.
    EXECUTE IMMEDIATE 'insert into your_table (column_list) values (:val1, :val2, ...)'
    USING l_val1, l_val2, l_val3 ... ;

  • How to populate a table instaed of creating a file

    Hello Everybody,
    I have been thinking if any of you has ever done simmilar thing..
    I have a crontab task that runs a script that gathers some space statistics each month from couple of servers..and sends an output to a file..
    how to redirect that output so it populates certain table in the database?
    can you recomend best approach?
    thanks a lot,
    agat81

    The easiest way would be to create your file in a way that it will look like
    insert into your_table_name values (bla, 1,2 ,3);
    insert into your_table_name values (blub, 4,5 ,6);
    commit;
    Then execute the script with sqlplus from cron.
    cu
    Andreas

  • Fetching values from database into a drop down box

    in my JSP page there are 3 drop down boxes for date of birth......
    what i need is i want to get the values from database into that drop down box when i access the JSP page.......
    session is there....'m getting all other values.......
    I will attach the JSP page.....
    Please help me...........
    Thanks in Advance......
    <%@ taglib uri='/WEB-INF/taglib/struts-bean.tld' prefix='bean'%>
    <%@ taglib uri='/WEB-INF/taglib/struts-logic.tld' prefix='logic'%>
    <%@ taglib uri='/WEB-INF/taglib/dyna.tld' prefix='dyna'%>
    <%@ taglib uri='/WEB-INF/taglib/struts-html.tld' prefix='html'%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title><bean:message key="page_title"/></title>
    <link href="<bean:message key="context"/>/CSS/default.css" rel="stylesheet" type="text/css" />
    <script src="<bean:message key="context"/>/js/AC_RunActiveContent.js" type="text/javascript"></script>
    <link href="<bean:message key="context"/>/CSS/screen.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <%!
    Membership mShip = null;
    %>
    <script language="javascript" >
    function checkDate(Form){
    var d;
    d = Form.year.value+"-"+Form.month.value+"-"+Form.day.value;
    alert("Date is:"+d);
    Form.dob.value = d;
    </script>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
         <jsp:include flush="true" page="../templates/header.jsp"/>     </td>
    </tr>
    <tr>
    <td class="menuTD">     
         <jsp:include flush="true" page="../templates/menu.jsp"/>     </td>
    </tr>
    <tr>
    <td class="sub_menuTR"> </td>
    </tr>
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td class="column" valign="top" width="170"><jsp:include flush="true" page="../templates/left_panel.jsp"/></td>
    <td valign="top" align="left">
              <dyna:message error="error" warning="warning" message="message"/>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="80%" valign="top" align="left">
                   <%
                   if(session != null){
                   mShip = (Membership)session.getAttribute("member");
                   %>
                        <form action="updateContactDetails.dy" method="post" name="form1">
                        <input type="hidden" name="m" value="<%=request.getParameter("m")%>" />
                             <table width="100%" border="0">
                             <tr>
                                  <td>First Name</td>
                                  <td><input name="first_name" type="text" id= "first_name" value = "<bean:write name = "member" property = "first_name" />" /></td>
                             </tr>
                             <tr>
                                  <td>Last Name </td>
                                  <td><input name="last_name" type="text" id="last_name" value = "<bean:write name = "member" property = "last_name" />" > </td>
                             </tr>
                             <tr>
                                  <td>Address</td>
                                  <td><input name="address1" type="text" id="address1" value = "<bean:write name = "member" property = "address1" />" ></td>
                             </tr>
                             <tr>
                                  <td> </td>
                                  <td><input name="address2" type="text" id="address2" value = "<bean:write name = "member" property = "address2" />" ></td>
                             </tr>
                             <tr>
                                  <td>Suburb/City </td>
                                  <td><input name="city" type="text" id="city" value= "<bean:write name = "member" property = "city" />" ></td>
                             </tr>
                             <tr>
                                  <td>State/Territory</td>
                                  <td><input type="text" name="state" value = "<bean:write name = "member" property = "state" />" ></td>
                             </tr>
                             <tr>
                                  <td>Postcode</td>
                                  <td><input type="text" name="postcode" value = "<bean:write name = "member" property = "postcode" />" ></td>
                             </tr>
                             <tr>
                                  <td>Contact Phone</td>
                                  <td><input type="text" name="home_phone" value = "<bean:write name = "member" property = "home_phone" />" ></td>
                             </tr>
                             <tr>
                                  <td>Mobile</td>
                                  <td><input type="text" name="mobile" value = "<bean:write name = "member" property = "mobile" />" ></td>
                             </tr>
                             <tr>
                                  <td>Date of birth</td>
                                  <td nowrap="nowrap"><select name="day">
    <option>Day</option>
    <option value="01">1</option>
    <option value="02">2</option>
    <option value="03">3</option>
    <option value="04">4</option>
    <option value="05">5</option>
    <option value="06">6</option>
    <option value="07">7</option>
    <option value="08">8</option>
    <option value="09">9</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    <option value="13">13</option>
    <option value="14">14</option>
    <option value="15">15</option>
    <option value="16">16</option>
    <option value="17">17</option>
    <option value="18">18</option>
    <option value="19">19</option>
    <option value="20">20</option>
    <option value="21">21</option>
    <option value="22">22</option>
    <option value="23">23</option>
    <option value="24">24</option>
    <option value="25">25</option>
    <option value="26">26</option>
    <option value="27">27</option>
    <option value="28">28</option>
    <option value="29">29</option>
    <option value="30">30</option>
    <option value="31">31</option>
    </select>
                                  <select name="month">
                                       <option>Month</option>
                                       <option value="01">January</option>
                                       <option value="02">February</option>
                                       <option value="03">March</option>
                                       <option value="04">April</option>
                                       <option value="05">May</option>
                                       <option value="06">June</option>
                                       <option value="07">July</option>
                                       <option value="08">August</option>
                                       <option value="09">September</option>
                                       <option value="10">October</option>
                                       <option value="11">November</option>
                                       <option value="12">Decembber</option>
                                  </select>
                                       <select name="year" onChange = "checkDate(this.form);" >
                                       <option>Year</option>
                                       <option value="1957">1957</option>
                                       <option value="1956">1956</option>
                                       <option value="1955">1955</option>
                                       <option value="1954">1954</option>
                                       <option value="1955">1955</option>
                                       <option value="1956">1956</option>
                                       <option value="1957">1957</option>
                                       <option value="1958">1958</option>
                                       <option value="1959">1959</option>
                                       <option value="1960">1960</option>
                                       <option value="1961">1961</option>
                                       <option value="1962">1962</option>
                                       <option value="1963">1963</option>
                                       <option value="1964">1964</option>
                                       <option value="1965">1965</option>
                                       <option value="1966">1966</option>
                                       <option value="1967">1967</option>
                                       <option value="1968">1968</option>
                                       <option value="1969">1969</option>
                                       <option value="1970">1970</option>
                                       <option value="1971">1971</option>
                                       <option value="1972">1972</option>
                                       <option value="1973">1973</option>
                                       <option value="1974">1974</option>
                                       <option value="1975">1975</option>
                                       <option value="1976">1976</option>
                                       <option value="1977">1977</option>
                                       <option value="1978">1978</option>
                                       <option value="1979">1979</option>
                                       <option value="1980">1980</option>
                                       <option value="1981">1981</option>
                                       <option value="1982">1982</option>
                                       <option value="1983">1983</option>
                                       <option value="1984">1984</option>
                                       <option value="1985">1985</option>
                                       <option value="1986">1986</option>
                                       <option value="1987">1987</option>
                                       <option value="1988">1988</option>
                                       <option value="1989">1989</option>
                                       <option value="1990">1990</option>
                                       <option value="1991">1991</option>
                                       <option value="1992">1992</option>
                                       <option value="1993">1993</option>
                                       <option value="1994">1994</option>
                                       <option value="1995">1995</option>
                                       <option value="1996">1996</option>
                                       <option value="1997">1997</option>
                                       <option value="1998">1998</option>
                                       <option value="1999">1999</option>
                                       <option value="2000">2000</option>
                                       <option value="2001">2001</option>
                                       <option value="2002">2002</option>
                                       <option value="2003">2003</option>
                                       <option value="2004">2004</option>
                                       <option value="2005">2005</option>
                                       <option value="2006">2006</option>
                                       <option value="2007">2007</option>
                             </select ></td></tr>
                             <tr>
                                  <td><input type="hidden" name = "dob" /> </td>
                                  <td nowrap="nowrap"><input type="submit" value="Submit" /></td>
                             </tr>
                             </table>
                        </form>
                   </td>
    <td width="40"></td>
    <td width="200" valign="top">
                   <div id="headlines">
    <jsp:include flush="true" page="../templates/profile.jsp"/>
    </div>
                   </td>
    </tr>
    </table>
              </td>
    <td> </td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><jsp:include flush="true" page="../templates/footer.jsp"/></td>
    </tr>
    </table>
    </body>
    </html>

    i think normally u will get data from databsae as objects.they are like java beans having getter and setter methods.so you create a collection of those objects like collect all the objects coming from database into an arraylist or....
    suppose you want to populate the dropdown box with say "username" from database object s, your code will look like that
    <html:select property="name">
    <html:options collection="databaseList" property="username" />
    </html:select>
    "databaseList" is collection(say.. ArrayList) of objects you are getting from database.this dropdown will contain all the "usernames" you are getting from database.

  • How to populate internal table field with text data?

    Hello Experts,
    I was able to load text file to a internal table but data is not populating each field. Can someone help me how to populate each field of internal table from text file?
    Here is the text file:
    io_name, io_type, io_txsht, io_txlng, io_datatype, io_length
    ZEA_IO1, CHA, IO Test,     IO Test 1, CHAR,       20
    ZEA_IO2, CHA, IO Test,     IO Test 2, CHAR,       20
    Here is the Code:
    *& Report  ZAS_BAPI_TEST                                               *
    *& InfoObject Creation through BAPI.
    *& Read the Text file, call a BAPI to create InfoObjects.              *
    *& Text file will hold the Info Object Structure. Text file will be    *
    *& located either work station or local PC.
    *& Step 1. Create internal table to hold InfoObject structure          *
    *& Step 2. Retrieve/Load text file into Internal Table structure       *
    *& Step 3. Call BAPI Function to Create IO                             *
    *& Step 4. Call BAPI Function to Activate IO                           *
    REPORT  ZAS_BAPI_TEST                           .
    Make data separator a comma
    CONSTANTS: gc_tab TYPE c VALUE ','.
          Declaring Internal table for creating InfoObject
    DATA: p_file TYPE string.
    DATA: BEGIN OF itab-bapi OCCURS 0,
            io_name like BAPI6108-infoobject,
            io_type like BAPI6108-type,
            io_txsht like BAPI6108-textshort,
            io_txlng like BAPI6108-textlong,
            io_datatype like BAPI6108-datatp,
            io_length like BAPI6108-intlen,
          END OF itab-bapi.
    DATA ibapi LIKE STANDARD TABLE OF itab-bapi.
    PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
          PUT THE TEXT FILE PATH TO P_FILE
    p_file = sel_file.
         Copy the file from the workstation to the server        ****
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                = p_file
                   FILETYPE                = 'ASC'
                   HAS_FIELD_SEPARATOR     = SPACE
                   HEADER_LENGTH           = 0
                   DAT_MODE                = SPACE
                   CODEPAGE                = SPACE
                   IGNORE_CERR             = ABAP_TRUE
                   REPLACEMENT             = '#'
                   READ_BY_LINE            = 'X'
                 IMPORTING
                   FILELENGTH              =
                   HEADER                  =
      TABLES
        data_tab                = itab-bapi[]
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        not_supported_by_gui    = 17
        error_no_gui            = 18
        OTHERS                  = 19.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
      &1 &2 issued return code &3
       ELSE.
         pit_data[] = lit_data[].
       ENDIF.
    ENDIF.
    loop at itab-bapi.
      write: /5 itab-bapi-io_name,
               20 itab-bapi-io_type,
               30 itab-bapi-io_txsht,
               50 itab-bapi-io_txlng,
               75 itab-bapi-io_datatype,
               85 itab-bapi-io_length.
    endloop.
          SELECT THE LOCATION FOR TEXT FILE
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_filename     = ''
          def_path         = 'C:\'
          mask             = ',Documentos de texto (*.txt), *.txt.'
          mode             = ''
        IMPORTING
          filename         = p_file
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
      find '.txt' IN p_file.
      if sy-subrc <> 0.
        concatenate p_file '.txt' into sel_file.
      else.
        sel_file = p_file.
      endif.
          Create InfoObject through BAPI Function
    *CALL FUNCTION 'BAPI_IOBJ_CREATE'.
    *IMPORTING
        VALUE(DETAILS) LIKE  BAPI6108 STRUCTURE  BAPI6108
    *EXPORTING
        VALUE(INFOOBJECT) LIKE  BAPI6108-INFOOBJECT
        VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    TABLES
         COMPOUNDS STRUCTURE  BAPI6108CM OPTIONAL
         ATTRIBUTES STRUCTURE  BAPI6108AT OPTIONAL
         NAVIGATIONATTRIBUTES STRUCTURE  BAPI6108AN OPTIONAL
         ATRNAVINFOPROVIDER STRUCTURE  BAPI6108NP OPTIONAL
         HIERARCHYCHARACTERISTICS STRUCTURE  BAPI6108HC OPTIONAL
         ELIMINATION STRUCTURE  BAPI6108IE OPTIONAL
         RETURNTABLE STRUCTURE  BAPIRET2 OPTIONAL
          Activate InfoObject through BAPI Function
    CALL FUNCTION 'BAPI_IOBJ_ACTIVATE_MULTIPLE'
    *ENDFORM.                    " RETRIEVE_DATASET
    I appreciate your help.
    Regards,
    Mau

    I have used tab delimited file.
    Here are file contents
    io_name     io_type     io_txsht     io_txlng     io_datatype     io_length
    ZEA_IO1     CHA     IO Test     IO Test 1     CHAR     20
    ZEA_IO2     CHA     IO Test     IO Test 2     CHAR     20
    And here is program used
    *& Report ZAS_BAPI_TEST *
    *& InfoObject Creation through BAPI.
    *& Read the Text file, call a BAPI to create InfoObjects. *
    *& Text file will hold the Info Object Structure. Text file will be *
    *& located either work station or local PC.
    *& Step 1. Create internal table to hold InfoObject structure *
    *& Step 2. Retrieve/Load text file into Internal Table structure *
    *& Step 3. Call BAPI Function to Create IO *
    *& Step 4. Call BAPI Function to Activate IO *
    REPORT ZAS_BAPI_TEST .
    Make data separator a comma
    CONSTANTS: gc_tab TYPE c VALUE ','.
    Declaring Internal table for creating InfoObject
    DATA: p_file TYPE string.
    DATA: BEGIN OF itab-bapi OCCURS 0,
    io_name like BAPI6108-infoobject,
    io_type like BAPI6108-type,
    io_txsht like BAPI6108-textshort,
    io_txlng like BAPI6108-textlong,
    io_datatype like BAPI6108-datatp,
    io_length like BAPI6108-intlen,
    END OF itab-bapi.
    DATA ibapi LIKE STANDARD TABLE OF itab-bapi.
    PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
    PUT THE TEXT FILE PATH TO P_FILE
    p_file = sel_file.
    Copy the file from the workstation to the server ****
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = p_file
    <b>FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'</b>
    TABLES
    data_tab = itab-bapi[]
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    not_supported_by_gui = 17
    error_no_gui = 18
    OTHERS = 19.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
    &1 &2 issued return code &3
    ELSE.
    pit_data[] = lit_data[].
    ENDIF.
    ENDIF.
    loop at itab-bapi.
    write: /5 itab-bapi-io_name,
    20 itab-bapi-io_type,
    30 itab-bapi-io_txsht,
    50 itab-bapi-io_txlng,
    75 itab-bapi-io_datatype,
    85 itab-bapi-io_length.
    endloop.
    SELECT THE LOCATION FOR TEXT FILE
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_filename = ''
    def_path = 'C:\'
    mask = ',Documentos de texto (*.txt), *.txt.'
    mode = ''
    IMPORTING
    filename = p_file
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    find '.txt' IN p_file.
    if sy-subrc <> 0.
    concatenate p_file '.txt' into sel_file.
    else.
    sel_file = p_file.
    endif.
    Create InfoObject through BAPI Function
    *CALL FUNCTION 'BAPI_IOBJ_CREATE'.
    *IMPORTING
    VALUE(DETAILS) LIKE BAPI6108 STRUCTURE BAPI6108
    *EXPORTING
    VALUE(INFOOBJECT) LIKE BAPI6108-INFOOBJECT
    VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2
    TABLES
    COMPOUNDS STRUCTURE BAPI6108CM OPTIONAL
    ATTRIBUTES STRUCTURE BAPI6108AT OPTIONAL
    NAVIGATIONATTRIBUTES STRUCTURE BAPI6108AN OPTIONAL
    ATRNAVINFOPROVIDER STRUCTURE BAPI6108NP OPTIONAL
    HIERARCHYCHARACTERISTICS STRUCTURE BAPI6108HC OPTIONAL
    ELIMINATION STRUCTURE BAPI6108IE OPTIONAL
    RETURNTABLE STRUCTURE BAPIRET2 OPTIONAL
    Activate InfoObject through BAPI Function
    CALL FUNCTION 'BAPI_IOBJ_ACTIVATE_MULTIPLE'
    *ENDFORM. " RETRIEVE_DATASET
    This program is working fine. You can test it.
    Only problem is as the column headings are big for some columns, they are getting truncated which you can always change by changing the column width in declaration
    Please let me know if this helps.
    ashish

Maybe you are looking for