How to get data of Oracle Applications tables in APEX

Hi all,
My requirement is to Develop Oracle apps Order Management Reports in APEX.
But when i am trying to query the table or view i am unable to get data in APEX.
Ex: If i query the Sales order form view OE_ORDER_HEADERS_V in toad i am able to get data as i am running this
begin
dbms_application_info.set_client_info('204');
end;
i.e for particular org_id. i am able to get data.
But in apex how do i get data. Are there any settings to be done. Please let me know if anyone have worked on the same.
Regards.
Chandu

My Query is like this :
SELECT DECODE (ship_loc.city, NULL, NULL, ship_loc.city || ', ')
|| DECODE (ship_loc.state, NULL, NULL, ship_loc.state ) Destination,
     party.party_name "Sold To",
     l.ordered_item Product,
     l.ACTUAL_SHIPMENT_DATE "Ship Date",
     Nvl(l.ordered_quantity,0) "Act. Tons",
     '$'||Nvl(l.ordered_quantity,0)* l.unit_selling_price||'.00' "Price"
FROM mtl_parameters ship_from_org,
     oe_order_lines_all l,
hz_cust_site_uses_all ship_su,
hz_party_sites ship_ps,
hz_locations ship_loc,
hz_cust_acct_sites_all ship_cas,
hz_cust_site_uses_all bill_su,
hz_party_sites bill_ps,
hz_locations bill_loc,
hz_cust_acct_sites_all bill_cas,
hz_parties party,
hz_cust_accounts cust_acct,
ra_terms_tl term,
oe_order_headers h,
hz_cust_account_roles sold_roles,
hz_parties sold_party,
hz_org_contacts sold_cont,
hz_party_relationships sold_rel,
ar_lookups sold_arl,
hz_cust_account_roles ship_roles,
hz_parties ship_party,
hz_org_contacts ship_cont,
hz_party_relationships ship_rel,
ar_lookups ship_arl,
hz_cust_account_roles invoice_roles,
hz_parties invoice_party,
hz_org_contacts invoice_cont,
hz_party_relationships invoice_rel,
ar_lookups invoice_arl,
fnd_currencies fndcur,
oe_transaction_types_tl ot,
qp_list_headers_tl pl,
ra_rules invrule,
ra_rules accrule
WHERE h.order_type_id = ot.transaction_type_id
AND ot.LANGUAGE = USERENV ('LANG')
AND h.price_list_id = pl.list_header_id(+)
AND pl.LANGUAGE(+) = USERENV ('LANG')
AND h.invoicing_rule_id = invrule.rule_id(+)
AND h.accounting_rule_id = accrule.rule_id(+)
AND h.payment_term_id = term.term_id(+)
AND term.LANGUAGE(+) = USERENV ('LANG')
AND h.transactional_curr_code = fndcur.currency_code
AND h.sold_to_org_id = cust_acct.cust_account_id(+)
AND cust_acct.party_id = party.party_id(+)
AND h.ship_from_org_id = ship_from_org.organization_id(+)
AND h.ship_to_org_id = ship_su.site_use_id(+)
AND ship_su.cust_acct_site_id = ship_cas.cust_acct_site_id(+)
AND ship_cas.party_site_id = ship_ps.party_site_id(+)
AND ship_loc.location_id(+) = ship_ps.location_id
AND h.invoice_to_org_id = bill_su.site_use_id(+)
AND bill_su.cust_acct_site_id = bill_cas.cust_acct_site_id(+)
AND bill_cas.party_site_id = bill_ps.party_site_id(+)
AND bill_loc.location_id(+) = bill_ps.location_id
AND h.sold_to_contact_id = sold_roles.cust_account_role_id(+)
AND sold_roles.party_id = sold_rel.party_id(+)
AND sold_roles.role_type(+) = 'CONTACT'
AND sold_cont.party_relationship_id(+) = sold_rel.party_relationship_id
AND sold_rel.subject_id = sold_party.party_id(+)
AND sold_arl.lookup_type(+) = 'CONTACT_TITLE'
AND sold_arl.lookup_code(+) = sold_cont.title
AND h.ship_to_contact_id = ship_roles.cust_account_role_id(+)
AND ship_roles.party_id = ship_rel.party_id(+)
AND ship_roles.role_type(+) = 'CONTACT'
AND ship_cont.party_relationship_id(+) = ship_rel.party_relationship_id
AND ship_rel.subject_id = ship_party.party_id(+)
AND ship_arl.lookup_type(+) = 'CONTACT_TITLE'
AND ship_arl.lookup_code(+) = ship_cont.title
AND h.invoice_to_contact_id = invoice_roles.cust_account_role_id(+)
AND invoice_roles.party_id = invoice_rel.party_id(+)
AND invoice_roles.role_type(+) = 'CONTACT'
AND invoice_cont.party_relationship_id(+) = invoice_rel.party_relationship_id
AND invoice_rel.subject_id = invoice_party.party_id(+)
AND invoice_arl.lookup_type(+) = 'CONTACT_TITLE'
AND invoice_arl.lookup_code(+) = invoice_cont.title
AND h.header_id = l.header_id

Similar Messages

  • How to get data from Oracle to SAP

    Hi All,
           I want to get data from Oracle to my internal table in SAP,
    I worked on puting  the data from SAP to Oracle, it's working fine...
    Can anybody suggest the code for accessing from Oracle with 4 primary keys in oracle.
    regards
    manish

    hi
    good
    there is two things in sap open sql and native .if you ll use the open sql than you can access any database.
    thanks
    mrutyun

  • How to get data from crosstab or table?

    hi !
    i develop my app with bib 9.0.3.1 . To customize my report,i must get data from crosstab or table component (presentation bean) and generate defined XML file ,can you tell me how to do ?

    hi paul
    the sample code like this:
    try{
         DataAccess dataAccess = thinDataview.getModel().getDataAccess();
    int rowCount = dataAccess.getEdgeExtent(DataDirector.ROW_EDGE);
    int colCount = dataAccess.getEdgeExtent( DataDirector.COLUMN_EDGE );
         for ( int i=0; i<rowCount; i++ )
         for( int j=0; j<colCount; j++ )
                   String dataValue = dataAccess.getValue( i,j,DataMap.DATA_UNFORMATTED).toString();
    }catch( Exception e ){
    System.out.println( e.getMessage() );

  • How to get data  from an internal table in some other program

    I would like to get data from the internal table in the other program. When I using FM "LIST_FROM_MEMORY" to get the data, it doesn't work and the exception is not fount.
    If any special code need in the other program, like write data to memory .
    Many thx .
    From Ross Wang

    Hi
    <li>You need to have interaction if you want to use EXPORT/IMPORT statments.
    <li>The internal tables in both programs must be same
    <li>Program one ..Calling program
    REPORT ZTEST_NOTEPAD.
    DATA: BEGIN OF it_t001 OCCURS 0,
            bukrs TYPE t001-bukrs,
            butxt TYPE t001-butxt,
          END OF it_t001.
    START-OF-SELECTION.
      SUBMIT ztest_notepad1 AND RETURN.
      IMPORT it_t001 FROM MEMORY ID 'ZTEST_T100'.
      LOOP AT it_t001.
        WRITE:/ it_t001.
      ENDLOOP.
    <li>Program two ...Called program
    REPORT ztest_notepad1.
    DATA: BEGIN OF it_t001 OCCURS 0,
            bukrs TYPE t001-bukrs,
            butxt TYPE t001-butxt,
          END OF it_t001.
    START-OF-SELECTION.
      SELECT * FROM t001 INTO CORRESPONDING FIELDS OF TABLE it_t001 UP TO 10 ROWS.
      IF sy-dbcnt > 1.
        EXPORT it_t001 TO MEMORY ID 'ZTEST_T100'.
      ENDIF.
    I hope that it gets you some idea.
    Thanks
    Venkat.O

  • How to get data from hierachy lookup table

    there is a hierachy lookup table A, and I want to get data from A.
    but the following code does work properly:
    WebTreeNode result = catalog..GetHierarchy(tableName,nodeID);
    could anybody give some suggestion or solution of getting data from hierachy lookup table,
    3x

    Hi fei,
    Please look at the following code.
    I hope it will give you some clues...
    private void showHierarchy() throws StringException
        ResultSetDefinition rsd = new ResultSetDefinition(<code name of your hierarchy table>);
        rsd.GetFields().Add(<code name of a field in your hierarchy table>);
        Search search = new Search(<code name of your main table>);
        WebTreeNode treeNode = catalogData.GetResultTree(search, rsd, 0);
        printHierNameRecursive(treeNode, 0);
    private void printHierNameRecursive(WebTreeNode root, int level) throws StringException
        WebTreeNodeArray arr = root.GetChildren();
        for (int i = 0; i < arr.GetSize(); i++)
            for (int tab = 0; tab < level; tab++)
            System.out.print("t");
            String catName = arr.GetWebTreeNodeAt(i).GetValueAt(<code name of a field in your hierarchy table>).GetStringValue();
            System.out.println(catName);
            printHierNameRecursive(arr.GetWebTreeNodeAt(i), level + 1);
    Regards,
    Nir

  • Confused How to push Data from Oracle DB Tables into Hyperion Planning?

    HI
    I m Newbie to ODI. My DataSource is Oracle 11g Database (HR Tables) and my Target is Hyperion Planning.
    I successful imported Oracle DB HR tables into ODI and Hyperion Planning Dimensions Like(Employee) but i dont understand in " ODI Interface" how i am going to do Mapping between Oracle tables and Planning application Dimension, am i doing wrong way?
    I am confused if i have to push Data from Oracle 10g HR Tables into Hyperion Planning am i following right approach ?
    Looking for your guideline...
    Regards
    Sher

    Hi John
    Well i have working knowledge in ODI, i did whole complete cycle and i did customization project for Oracle EBS to Data warehouse though ODI.
    What, I am NOT able to figure out How to LINK Hyperion Planning Outline to Oracle EBS HR Tables. cause in Hyperion Outline i m able to view Dimensions Not particular Column to map with EBS HR Table (column).
    Eample:
    In EBS HR we have Employee Number in Per_all_people_f but in Hyperion Planning Dimension is ONLY Employee.
    Your response highly appreciated.
    Chreeez
    Sher

  • How to get data from Oracle using Native SQL in SAP.. Problem with date

    Hi Masters.
    I'm trying to get data from an Oracle DB. I was able to connect to Oracle using tcode DBCO. The connetion works fine
    I wrote this code and it works fine without the statement of where date > '01-09-2010'
    But i need that statement on the select. I read a lot about this issue, but no answer.
    My code is (this code is in SAP ECC 6.0)
    DATA: BEGIN OF datos OCCURS 0,
          id_numeric(10),
          component_name(40),
          comuna(10),
          record_id(10),
          status,
          sampled_date(10),
          END OF datos.
    DATA: c TYPE cursor.
    EXEC SQL.
      connect to 'LIM' as 'MYDB'
    ENDEXEC.
    EXEC SQL.
      SET CONNECTION 'MYDB'
    ENDEXEC.
    EXEC SQL PERFORMING loop_output.
      SELECT ID_NUMERIC, COMPONENT_NAME, COMUNA, RECORD_ID, STATUS, SAMPLED_DATE
      into :datos from lims.SAMP_TEST_RESULT
      where     date > '01-09-2010'
    ENDEXEC.
    EXEC SQL.
      disconnect 'MYDB'
    ENDEXEC.
    How can i get the data from that date?? If i delete the where statemet, the program works well, it takes 30 mins and show all the data, I just need the data from that date.
    Any help
    Regards

    Please refer the example in this link which deals with Oracle date format.
    You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
    Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804]

  • How to get data from three tables (A,B,C) having one to many relation between A and B .and having one to many reation between b and c

    i have  three tables A,B,C.  there is one to many relation between A and B. and one to many relation existed between table b and c . how will get data from these three tables

    check if this helps:
    select * --you can always frame your column set
    from tableA a
    left join tableB b on a.aid=b.aid
    left join tableC c on c.bid=b.bid
    This is just a general query. However, we can help you a lot more, if you can post the DDL + sample data and required output.
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • JSON - get data from Oracle table

    Hi all,
    I hope it is correct thread...
    My need is to get data from oracle table using JSON and show output at html table. I'm very new to JSON (got some experience in PL/SQL and basic html knowledge). Could someone direct me to manual or give me simple example?

    JSON is a way to format data, not a way to fetch data. Call it an alternative to XML.
    Are you perhaps talking about doing an ajax request to fetch data?

  • How to get data to internal table from function module tr_inspect_objects

    How to get data from funtion module to an internal table .
    function module name is tr_inspect_objects(code inspectore  se10)
    how top collect all   task request data into one internal table using this fm or we have to create another fm .
    If you have already made FM please give us the code .

    Hi,
    You can use tables E070 or E071 to get data into your internal tables instead of a function module.
    Hope this helps.
    BR
    Dep

  • How to load text file data to Oracle Database table?

    By using Oracle Forms, how to load text file data to Oracle Database table?

    Metalink note 33247.1 explains how to use text_io as suggested by Robin to read the file into a Multi-Row block. However, that article was written for forms 4.5 and uses CREATE_RECORD in a loop. There was another article, 91513.1 describing the more elegant method of 'querying' the file into the block by transactional triggers. Unfortunately this more recent article has disappeared without trace and Oracle deny its existence. I know it existed as I have a printed copy in front of me, and very useful it is too.

  • OC4J - How to get data from large table (more than 9 million rows) by EJB?

    SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS
    O I use Jdeveloper to create EJB that has finder methods to get data from a big table (more S than 9 million rows). Deploy is OK but when run client program I always get timeout
    O error or not enough memory error,
    S Can any one help me?
    O urgent
    SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS SOS

    Your problem may be that you are simply trying to load so many objects (found by your finder) that you are exceeding available memory. For example if each object is 100 bytes and you try to load 1,000,000 objects thats 100Mb of memory gone.
    You could try increasing the amount of memory available to OC4J with the appropriate argument on the command line (or in the 10gAS console). For example to make 1Gb available to OC4J you would add the argument:
    -Xmx1000m
    Of course you need have this available as hard memory on your server or you will incur serious swapping.
    Chris

  • How to get the size of the table

    Hi All,
    How to get the size of the table in Oracle 10g?
    Is there any script which needs to be run?
    Regards,
    Apoorv

    Hi All,
    Sorry but somehow the table user_segments is not populated in my case. But we have another table SYS.ALL_TABLES whose structure is given below. Would I be able to calculate the table size based on the columns given below:
    ColumnName     Data Type
    OWNER     VARCHAR2 (30 Byte)
    TABLE_NAME     VARCHAR2 (30 Byte)
    TABLESPACE_NAME     VARCHAR2 (30 Byte)
    CLUSTER_NAME     VARCHAR2 (30 Byte)
    IOT_NAME     VARCHAR2 (30 Byte)
    STATUS     VARCHAR2 (8 Byte)
    PCT_FREE     NUMBER
    PCT_USED     NUMBER
    INI_TRANS     NUMBER
    MAX_TRANS     NUMBER
    INITIAL_EXTENT     NUMBER
    NEXT_EXTENT     NUMBER
    MIN_EXTENTS     NUMBER
    MAX_EXTENTS     NUMBER
    PCT_INCREASE     NUMBER
    FREELISTS     NUMBER
    FREELIST_GROUPS     NUMBER
    LOGGING     VARCHAR2 (3 Byte)
    BACKED_UP     VARCHAR2 (1 Byte)
    NUM_ROWS     NUMBER
    BLOCKS     NUMBER
    EMPTY_BLOCKS     NUMBER
    AVG_SPACE     NUMBER
    CHAIN_CNT     NUMBER
    AVG_ROW_LEN     NUMBER
    AVG_SPACE_FREELIST_BLOCKS     NUMBER
    NUM_FREELIST_BLOCKS     NUMBER
    DEGREE     VARCHAR2 (10 Byte)
    INSTANCES     VARCHAR2 (10 Byte)
    CACHE     VARCHAR2 (5 Byte)
    TABLE_LOCK     VARCHAR2 (8 Byte)
    SAMPLE_SIZE     NUMBER
    LAST_ANALYZED     DATE
    PARTITIONED     VARCHAR2 (3 Byte)
    IOT_TYPE     VARCHAR2 (12 Byte)
    TEMPORARY     VARCHAR2 (1 Byte)
    SECONDARY     VARCHAR2 (1 Byte)
    NESTED     VARCHAR2 (3 Byte)
    BUFFER_POOL     VARCHAR2 (7 Byte)
    ROW_MOVEMENT     VARCHAR2 (8 Byte)
    GLOBAL_STATS     VARCHAR2 (3 Byte)
    USER_STATS     VARCHAR2 (3 Byte)
    DURATION     VARCHAR2 (15 Byte)
    SKIP_CORRUPT     VARCHAR2 (8 Byte)
    MONITORING     VARCHAR2 (3 Byte)
    CLUSTER_OWNER     VARCHAR2 (30 Byte)
    DEPENDENCIES     VARCHAR2 (8 Byte)
    COMPRESSION     VARCHAR2 (8 Byte)
    DROPPED     VARCHAR2 (3 Byte)

  • Defining and Viewing BLOB Data in Oracle Application Express 3.2

    Hello All,
    There is a nice tutorial for working with images in Application Express 3.1 entitled "Defining and Viewing BLOB Data in Oracle Application Express 3.1". I have 3.2 and I am finding that I can't follow this tutorial... Is there any similar how to for 3.2?
    Thank you,
    Daniel

    Hi,
    I have just gone through the first steps in my OTN workspace app, and I do get the Implementation option (showing Interactive or Classic). In fact, my page at this point matches exactly the image shown in the tutorial.
    My OTN workspace app uses Apex version 3.2. The Interactive reports are relatively new, so older versions of Apex would not have this option. But you say that you are using version 3.2? If you just try to create a report page on, say, EMP, do you get the option to select Interactive or Classic?
    Andy

  • How to copy customer in oracle applications in R12

    how to copy customer in oracle applications in R12

    When I copy (as in original example) 4 cells in Excel, the exact 4 cells paste correctly in another Excel, but on my web it post the 4 cells and then clear the cell below it. So the same data in the clipbord paste correctly into Excel, but incorrectly in the web.
    When I copy (as in original example) 4 cells from the web, the exact 4 cells paste correctly into Excel, and it then post correctly on my web solution.
    So, in summary this is what I find:
    - Copy from web and paste to Excel = no problem
    - Copy from web and paste to web = no problem
    - Copy from Excel and paste to Excel = no problem
    - Copy from Excel and paste to web = problem (first cell below pasted data get cleared)
    We have a SAP NetWeaver BI 7.0 system, I use Bex (WAD) Support pack 7 with Patch 1 and I have Internet Explorer (version 8) - on IE the compatibility view does not make any differance. Users with IE 7 experiance the same issue.

Maybe you are looking for

  • NWDI in the XI scenarion, SLD

    Experts, I have created a track to transport the XI content. We are currently using 2 SLDs. the first for the XI which contains all the XI business system details and the second SDL only for NWDI. The SLD for NWDI currently has only the Software Comp

  • Locating EJB classes from JSP

    Hi all, I have some JSP that invoke Session Beans. My question is: what is the right place to put EJB classes in order to be found by JSP ? I have found the following solutions but they both slow down during development phase: 1) Build an EAR and let

  • Help!!:Where is my 25-character production key

    My new T500 nees a 25-character production key to start word2007?where it is?

  • Hyperion Planning 11.1.2.1 ... changing Years to be tagged as "Time" dim

    I am creating a new Classic Planning application and am looking to do some year over year calculations in the app.  I have successfully created this year over year formula in an Essbase cube by switching the dimension tagged as "Time" to be my Year d

  • Mac os x plus quick cams using UVC = slow frame rates...

    well i took your advice and picked up a logitech 9000 pro quickcam. this camera is uvc compatible and works out of the box on my macbook running 10.5.2. the issue i am now having is that the uvc driver is bare bones and doesn't give any way to change