Selection of data from BSID and many otger tables

Hi Abappers ,
I have a requirement to calculate the Sum credits: Sum of BSID-DMBTR with the following conditions
BSID-BURKS= 'CAO9'   to be hard coded
Retrieve the BSID-KUNNR=KNVP-KUNN2 with the following conditions
KUNNR-KNVP=KUNNR-VBAK
VKORG-KNVP=VKORK-VBAK
VTWEG-KNVP=VTWEG-VBAK
SPART-KNVP=SPART-VBAK
PARVW-KNVP=RG
and BSID-ZFBDT + BSID-ZBD1T u2264 System date
BSID-SHKZG = H
Any sorts of hints or code snippets would be highly helpful.
Thanks and Regards
P.Srikanth

Hi,
Your requirement can be easily fullfilled.
Press F1 on SELECT , INNER JOIN and FOR ALL ENTRIES>
Hope this helps you.

Similar Messages

  • Problem with reading data from screen and inserting in table

    hi ther,
    im new to abap-webdyn pro. can anyone suggest how to read data from screen and insert into table when press 'ADD' button.
    i done screen gui , table creation but problems with action. what the content of acton add.
    is ther any link that helps me or tut??
    thankx in advance!
    regards

    Hi,
    Create a context node for the screen fields for which you want to enter the values with cardinality 1.1.....
    Now in the layout of your view bind the screen input fields to that context node(attributes) to the value property of the input fields...
    Now in the action of ADD button....
    --> go the wizard and select the read node button and select the node which you have created it generates the auto code for you.....
    for example if the node is contains aone attribute like MATNR
    reading the node from wizard will generate the code as....
    DATA lo_nd_matnr TYPE REF TO if_wd_context_node.
      DATA lo_el_matnr TYPE REF TO if_wd_context_element.
      DATA ls_matnr TYPE wd_this->element_matnr.
      DATA lv_matnr TYPE wd_this->element_matnr-matnr.
    * navigate from <CONTEXT> to <MATNR> via lead selection
      lo_nd_matnr = wd_context->get_child_node( name = wd_this->wdctx_matnr ).
    * @TODO handle non existant child
    * IF lo_nd_matnr IS INITIAL.
    * ENDIF.
    * get element via lead selection
      lo_el_matnr = lo_nd_matnr->get_element( ).
    * @TODO handle not set lead selection
      IF lo_el_matnr IS INITIAL.
      ENDIF.
    * get single attribute
      lo_el_matnr->get_attribute(
        EXPORTING
          name =  `MATNR`
        IMPORTING
          value = lv_matnr ).
    here the variable lv_matnr will contain the entered value......
    now you can use this value for further process.
    Thanks,
    Shailaja Ainala.

  • Formatted Data from 1 to many relationship tables

    Hi All,
    How can we get data from 1 to many relationship table in a formatted way, for example I have tables:
    Search (Id, title)
    Criteria (Id, searchId, radius, latitude, longitude)
    Results (Id, searched, zip-code, city, state)
    And I want response to look like this:
    "Id":"A86E8DE3-36B0-4DBE-822E-326F84AF8FEE",
    "title":"Untitled",
    "criteria":{
    "Id":"A86E8DE3-36B0-4DBE-822E-326F84GHFUI",
    "searchId":"A86E8DE3-36B0-4DBE-822E-326F84AF8FEE",
    "radius":5,
    "latitude":31.2379068,
    "longitude":-85.456757
    "results":[
    "Id":"A86E8DE3-36B0-4DBE-822E-326F8HKLLKJ",
    "searchId":"A86E8DE3-36B0-4DBE-822E-326F84AF8FEE",
    "zipcode":"36302",
    "city":"Dothan",
    "state":"Alabama"
    One ugly way would be to get search data and then execute two queries against each search one for criteria and one for result. Any other way. Also sometime we to need to increase timeout of Custom API request depending on the complexity
    of it. How to sort it out?
    Thanks,
    Attiqe Ur Rehman

    There are a couple of options:
    Use database views. For an example, see my forum posts on this thread: https://social.msdn.microsoft.com/Forums/azure/en-US/4c056373-d5cf-4ca6-9f00-f152d2b01372/best-practice-for-syncing-related-tables-in-offline-mode?forum=azuremobile#0e23494c-1da2-4ee3-ac5a-6955d0dfed3e. 
    Or, if you using the .NET backend, you can use Automapper to flatten the relationships:
    http://blogs.msdn.com/b/azuremobile/archive/2014/06/18/insert-update-related-data-with-1-n-relationship-using-net-backend-azure-mobile-services.aspx

  • Selecting the data from database and sending to users  using javamail

    how to select the records from database table in oracle and send automatically to users using javamail. I am able to send the txt msg. but dont know how to send the selected table data to users automatically.
    can anyone suggest how to write the steps with database connection to send msgs containing data to different users
    Thank You

    using JDBC..you want to
    1. create the connect
    2. open the connection
    3. query the table for the data
    4. loop through the resultset to retrieve rows of data
    5. do something with the data
    6. email the result
    once you have the data, it is up to you to determine the format to send to the user using JavaMail. It is easiest to send plain text
    here's a site that give code example (for all steps above relating to JDBC):
    http://javaalmanac.com/egs/java.sql/pkg.html

  • How to select the data from DB and write into File?

    Hi Experts,
    Can any one please help me,
    I want to write the data from a table "T1" from Data Base to one file in windows.
    This functionality i need to achive in SSIS package through script component and Execute SQL task if it's passible.
    If any other way is there please help me.

    through script component and Execute SQL task if it's passible
    The easier way is to use a "Data Flow" Task with a "OleDB Data Source" pointing the the SQL Server table / query and a "Flat File Destination" to export to a file.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Problem in Selecting the data from EKPO and KONV tables

    Hi Experts,
    Presently I am working on Report with Comparision-Sheet Between the vendor's Quotations. I have to display the Discount, Freight, Packing and Forwarding, Vat in Item level data based on the conditions made in PO.
    As per my Knowledge, Condition Types are stored in KONV Table. But there is no relation between KONV and EKPO tables.  So, I am unable to print the data for Discount, Freight, Packing and Forwarding, Vat... How can I get the values from EKPO and KONV tables?
    Thanks in Advance.
    Thanks n Regards,
    Muralikrishna.

    Don't recall if this is correct, but you may need the condition number from the header (EKKO) combined with EKPO-EBELP or other field as you key to access KONV (KNUMH and KPOSN).  My site doesn't run PP, so can't verify if the data is actually stored that, so just a possibility.

  • Reading  xml data from url and insert into table

    CREATE TABLE url_tab2
    URL_NAME VARCHAR2(100),
    URL SYS.URIType
    INSERT INTO url_tab2 VALUES
    (’This is a test URL’,
    sys.UriFactory.getUri(’http://www.domain.com/test.xml’)
    it is giving error as invalid character

    Check if your single quotes are the correct single quotes.
    The principle works as advertised in the XMLDB Developers Guide...
    C:\>sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Tue Nov 25 21:44:46 2008
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create user OTN identified by OTN account unlock;
    User created.
    SQL> grant dba, xdbadmin to OTN;
    Grant succeeded.
    SQL> conn OTN/OTN
    Connected.
    SQL> CREATE TABLE uri_tab (docUrl SYS.URIType, docName VARCHAR2(200));
    Table created.
    SQL> -- Method SYS.URIFACTORY.getURI() with absolute URIs
    SQL> -- Insert an HTTPUri with absolute URL into SYS.URIType using URIFACTORY.
    SQL> -- The target is Oracle home page.
    SQL> INSERT INTO uri_tab VALUES
      2  (SYS.URIFACTORY.getURI('http://www.oracle.com'), 'AbsURL');
    1 row created.
    SQL> -- Insert an HTTPUri with relative URL using constructor SYS.HTTPURIType.
    SQL> -- Note the absence of prefix http://. The target is the same.
    SQL> INSERT INTO uri_tab VALUES (SYS.HTTPURIType('www.oracle.com'), 'RelURL');
    1 row created.
    SQL> -- Insert a DBUri that targets employee data from database table hr.employees.
    SQL>
    SQL> INSERT INTO uri_tab VALUES
      2  (SYS.URIFACTORY.getURI('/oradb/HR/EMPLOYEES/ROW[EMPLOYEE_ID=200]'), 'Emp200');
    1 row created.
    SQL> SELECT e.docUrl.getCLOB(), docName FROM uri_tab e;
    E.DOCURL.GETCLOB()
    DOCNAME
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN
    ">
    <html>
    <head>
    AbsURL
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN
    ">
    <html>
    E.DOCURL.GETCLOB()
    DOCNAME
    <head>
    RelURL
    <?xml version="1.0"?>
    <ROW>
      <EMPLOYEE_ID>200</EMPLOYEE_ID>
      <FIRST_NAME>Jenn
    Emp200
    SQL> set long 1000
    SQL> select HTTPURITYPE('www.oracle.com').getCLob() from dual;
    HTTPURITYPE('WWW.ORACLE.COM').GETCLOB()
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN
    ">
    <html>
    <head>
    <title>Oracle 11g, Siebel, PeopleSoft |
    Oracle, The World's Largest Enterprise S
    oftware Company</title>
    <meta name="title" content="Enterprise Applications | D
    atabase | Fusion Middleware | Applicatio
    ns Unlimited | Business | Oracle, The Wo
    rld's Largest Enterprise Software CompanEdited by: Marco Gralike on Nov 25, 2008 10:13 PM

  • Extract Data from XML and Load into table using SQL*Loader

    Hi All,
    We have a XML file (sample.xml) which contains credit card transaction information. We have a standard SQL*Loader control file which loads the data from a flat file and the control file code is written as position based method. Our requirement is to use this control file as per our requirement(i.e) load the data into the table from our XML file), But we need help in converting the XML to a flat file or Extract the data from the XML tags and pass the information to the control file and in turn it loads the table.
    Your suggestion is highly appreciated.
    Thanks in advance

    Hi,
    First of all go to PSA maintanance ( Where you will see PSA records ).
    Goto list---> Save-> File---> Spreadsheet (Choose Radio Button)
    > Give the proper file name where you want to download and then-----> Generate.
    You will get ur PSA data in Excel Format.
    Thanks
    Mayank

  • Get data from view and displaying the table data into Excel  pivot table

    Hi All,
    I have a small reqirement inthat When i get the data from the View that would displayed as Excel Pivot table.
    For displaying gerneral data to Excel I have followed Binarcy cachey
    Please suggest me in this.
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

    Try this:
    http://download-west.oracle.com/docs/html/B25947_01/bcservices005.htm#sthref681
    Specifically code sample 8-10 for accessing the AM object.
    Then use the findView method to get a pointer to the VO.

  • 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)

  • Selecting all data from employee where foreign key = null and show it in view

    Hi guys i have view like following :
    SELECT dbo.Nationality.NationalityName, dbo.Employee.DriverName, dbo.Employee.DriverID, dbo.Employee.NationalityID, dbo.Employee.ResidentNo,
    dbo.Country.CountryName, dbo.Employee.CountryID, dbo.Branch.BranchName, dbo.Employee.BranchID, dbo.Employee.JoinDate,
    dbo.Employee.ResignDate, dbo.Employee.HealthCarNo, dbo.Employee.JobID, dbo.Jobs.JobName, dbo.Department.DepartmentName,
    dbo.Jobs.DepartmentID, dbo.Employee.PlaceIssue, dbo.Employee.Deduction, dbo.Employee.ExpireDateMedical, dbo.Employee.PolicyNumber,
    dbo.Employee.Owner, dbo.Employee.Version, dbo.Employee.ExpireDateResident, dbo.Employee.Salary, dbo.Employee.SexID, dbo.Sex.SexType,
    dbo.Sex.FlagSex, dbo.Employee.MiritialID, dbo.Miritial.MiritualStatus, dbo.Status.StatusType, dbo.Employee.StatusID, dbo.Employee.UnactiveReason,
    dbo.Employee.BirthDate, dbo.Employee.DateToday, dbo.Employee.UserID, dbo.Employee.PassportNo, dbo.Employee.Period,
    dbo.Employee.AccountNo, dbo.Employee.Bonus, dbo.Employee.AccountType, dbo.Employee.PlaceOfBirth, dbo.Employee.EmplyeeName,
    dbo.Employee.ExpireDateresidentHijri, dbo.Employee.PassportDateStart, dbo.Employee.PassportDateExpire, dbo.Religon.ReligonName,
    dbo.Employee.ReligonID
    FROM dbo.Nationality INNER JOIN
    dbo.Employee ON dbo.Nationality.NationalityID = dbo.Employee.NationalityID INNER JOIN
    dbo.Country ON dbo.Employee.CountryID = dbo.Country.CountryID INNER JOIN
    dbo.Branch ON dbo.Employee.BranchID = dbo.Branch.BranchID INNER JOIN
    dbo.Jobs ON dbo.Employee.JobID = dbo.Jobs.JobID INNER JOIN
    dbo.Department ON dbo.Jobs.DepartmentID = dbo.Department.DepartmentID INNER JOIN
    dbo.Sex ON dbo.Employee.SexID = dbo.Sex.SexID INNER JOIN
    dbo.Miritial ON dbo.Employee.MiritialID = dbo.Miritial.MiritialID INNER JOIN
    dbo.Status ON dbo.Employee.StatusID = dbo.Status.StatusID INNER JOIN
    dbo.Religon ON dbo.Employee.ReligonID = dbo.Religon.ReligonID
    suppose i need to show all data from Employee table (NationalityName,BranchName,JobName) where
    NationalityID =NULL OR BranchID=NULL OR JobID=NULL
    WHAT I DO
    Notes : I mean in topic(selecting all data from view not table
    meaning i need to show all data in employee table by view
    in case of forign key(any forign key)equal null

    I think you need to change 
    FROM dbo.Nationality INNER JOIN
    dbo.Employee ON dbo.Nationality.NationalityID = dbo.Employee.NationalityID
    to
    FROM dbo.Nationality
    LEFT JOIN
    dbo.Employee ON dbo.Nationality.NationalityID = dbo.Employee.NationalityID
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • To Select the data from two table one is transp table and onther is cluster

    Hi All,
    I want to select the data from two tables
    Here i am giving with an example.
    Fileds: kunnr belnr from bseg.  table bseg
    fields: adrnr from kna1     table: kna1.
    Know i want to put these into one internal table based on kunnr and belnr.
    Thanks in advance.
    Ramesh

    Hi,
       U cant use joins on cluster table and BSEG is a cluster table so use FOR  ALL ENTRIES for taht
    refer this code
    *&      Form  sub_read_bsak
          text
    -->  p1        text
    <--  p2        text
    FORM sub_read_bsak.
    *--Select data from BSAK Table
      SELECT lifnr
             augdt
             augbl
             gjahr
             belnr
             xblnr
             blart
             dmbtr
             mwskz
             mwsts
             sgtxt
             FROM bsak
             INTO CORRESPONDING FIELDS OF TABLE it_bsak
             WHERE belnr IN s_belnr
             AND   augdt IN s_augdt.
      IF sy-subrc EQ 0.
    *--Sort table by accounting document and vendor number
        SORT it_bsak BY belnr lifnr.
      ENDIF.
    ENDFORM.                    " sub_read_bsak
    *&      Form  sub_read_bseg
          text
    -->  p1        text
    <--  p2        text
    FORM sub_read_bseg.
      IF NOT it_bsak[] IS INITIAL.
    *--Select data from BSEG table
        SELECT belnr
               gjahr
               shkzg
               kostl
               hkont
               ebeln
               ebelp
               FROM bseg
               INTO CORRESPONDING FIELDS OF TABLE it_bseg
               FOR ALL ENTRIES IN it_bsak
               WHERE belnr EQ it_bsak-belnr
               AND   gjahr EQ it_bsak-gjahr
               AND   shkzg EQ 'S'.
        IF sy-subrc EQ 0.
    *--Sort table by accounting document
          SORT it_bseg BY belnr.
        ENDIF.
      ENDIF.
    ENDFORM.                    " sub_read_bseg

  • Getting Archieved data from BSID table

    Hi Experts,
    My requirement is to fetch the archieved data from BSID table .
    I am calling the Logical database 'SDF' using the function module LDB_PROCESS.but the call back routine is not triggering.
    Please help me with this issue.
    Thanks in advance...!!
    Regards,
    Ram

    Hi Ram:
    Logical database 'SDF' don't contains BSID Table, you must to use
    DDF                    CUSTOMER  DATABASE                           
    VDF                    Customer Database with View of Document Index
    You could verify in T-CODE  SE36  /Stucture / Display  that BSID is contains into both Logical database.
    Or olso, T-CODE SE11  Database Table (BSID)  clic on  Where  user list button, select  Logical database and you see all the Logical database that used BSID.
    Regards,
    José Luis

  • How to make users to select the date from calendar control my making the date field read only in date time control in external list in sharepoint 2010

    How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
    be done through sharepoint desginer / out of the box.
    thanks.

    Congratulate you got the solution by yourself. I am new to a
    WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
    calendar date selection did me a great favor. Cheers.

  • How i can Catch perticular data from internet and update SAP R/3 data?

    Hi All,
    I want to catch data from internet and want to update those data into SAP R/3 database. So how i can catch those data ?. what will be format of data to update SAP R/3 database?

    Hi,
    You need to create your own BSP pages which would be displayed on internet/HTML.
    Transaction SE80 => Select BSP application.
    Best regards,
    Prashant

Maybe you are looking for