Error in Interactive report in 3.1

My sql is:
select * from upload_links
The table contains 209 records.
I get no rows returned on my page and the debug shows the following:
select
FLOW_ID,
ISSUE_ID,
FILE_NAME,
BLOB_CONTENT,
MIME_TYPE,
ID,
APP_ID,
NAME,
TITLE,
DOC_SIZE,
DAD_CHARSET,
CREATED_BY,
CREATED_ON,
UPDATED_BY,
UPDATED_ON,
LAST_UPDATED,
CONTENT_TYPE,
LANGUAGE,
DESCRIPTION,
FILE_TYPE,
FILE_CHARSET,
DEV_ISSUE_ID,
count(*) over () as apxws_row_cnt
from (
select * from (
select * from upload_links
) r
) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
0.05: IR binding: ":APXWS_MAX_ROW_CNT"="APXWS_MAX_ROW_CNT" value="100000"
0.06: Printing rows. Row window: 1-15. Rows found: 1
No data found.
Any ideas why I don't see my data?

Still getting no rows returned. However, I did an install in another database and this same interactive query works fine. I'll reimport the app to see if I can still reproduce.
select
FLOW_ID,
FILE_NAME,
BLOB_CONTENT,
MIME_TYPE,
ID,
APP_ID,
NAME,
TITLE,
DOC_SIZE,
DAD_CHARSET,
CREATED_BY,
CREATED_ON,
UPDATED_BY,
UPDATED_ON,
LAST_UPDATED,
CONTENT_TYPE,
LANGUAGE,
DESCRIPTION,
FILE_TYPE,
FILE_CHARSET,
DEV_ISSUE_ID,
ISSUE_ID
from (
select * from upload_links
) r
0.04: Printing rows. Row window: 1-200. Rows found: 1
No data found.

Similar Messages

  • Pagination Reset Error on Interactive Report

    I have an interactive report that shows 15 rows per "page." My user clicks next page at the bottom to say the 3rd page (rows 31-45) and then clicks on a column header and types a valid value in the search box for the column. The interactive report then returns an error that says
    Invalid set of rows requested, the source data of the report has been modified.
    Reset Pagination
    I have an unconditional branch on the page that resets pagination. However, I don't believe the interactive report is actually submitting the page when it returns this result. Is this just a bug with interactive reports or did I miss something?
    For reference, we're using Apex 4.0.2.00.07
    Theme 11. Green Spring

    Hi,
    Bit same kind of post here
    Reset pagination with dynamic action?
    Regards,
    Jari

  • JavaScript error on Interactive Report

    When clicking on the Magnifying glass of my interactive report search bar, I receive a JavaScript error.
    Line: 2 Char: 15193 Error: Syntax Error
    The page that I am navigating to has 2 regions. The first is an interactive report and the second is an html region that has an Iframe reference to another interactive report. Based upon the selection of a radio group, the corresponding region(interactive report) displays. All other interactive reports work fine when their pages don't have a region with a Iframe reference.
    If I navigate to another page after the error occurs and then come back to the page, everything then works fine. The error only happens on the first use. I have installed the latest patch set for Apex 3.2 I currently am running 3.2.1.00.11. I read a bug on Metalink that referenced this javascript error, but applying the patch set does not seem to fix the issue. The bug was 8568894.
    Any help would be appreciated.

    This might be useful for others also...
    After hours and hours of debugging headers and responses and comparing pages to others which work, I realised that this interactive report's display condition is based on REQUEST = SUBMIT.
    As such, the actions menu will NOT set the Request parameter when clicking in the actions menu and the Apex engine refuses to send anything back to the browser - not even an error message.
    I'll raise a bug for this via Oracle Support.
    Cheers, Pete

  • XML Page cannot be displayed error on interactive reports

    Hi, I am having trouble with a user downloading an interactive report as a CSV output. When a user tries to download the interactive report (as it is displayed when the web page loads, no alterations), they are getting this error:
    The XML Page cannot be displayed.
    Cannot view XML input using XSL style sheet. Please correct the error and then click the refresh button, or try again later.
    A name was started with an invalid character. Error processing resource 'http.............'.
    This is only happening with a small group of users which doesn't include me, so it has been very hard to troubleshoot. I can download the report and open in Excel without any problems.
    I am using Apex version 3.2 and IE 8. The user did not have multiple windows or tabs open logged into ApEx at the same time.
    Has anyone ever had this problem before? I could not find a thread with the same issue.
    Thanks!

    i'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
    hope this helps,
    raj

  • Javascript error in interactive reports  chart - 3.1

    I created an application with the new interactive reports.
    http://apex.oracle.com/pls/otn/f?p=33003:1
    When I use the Chart option in IE I get a javascript error.
    'null' is null or not an object
    It is working fine in Firefox.
    I tried with 3 different themes and it is always giving me that javascript error on the charts. I also tried on different machines.
    Thanks
    Francis.

    Francis,
    I just tried with the exact same version of IE and didn't get any errors. Do you have version 9+ of the Flash Player? I'm not sure why an earlier version would cause a javascript error, but it's worth checking. You can check by right-clicking any Flash content and clicking "About Adobe Flash Player X..."
    - Marco

  • Error in Interactive reports

    Hi,
      The following error is rised when i was trying to get a report.
    Source system DM1CLNT100 does not exist Details
    Error reading the data of InfoProvider /CRMBW/CRM_C04I Details
    Error while reading data; navigation is possible
    Online analytical processing: query execution aborted Details
    Value "<ENTER LOGSYS>" is too long for variable /CRMBW/V_LOGSYS
    Specify reference currency; default is EUR
    Can any one suggest a possible solution to rectify these error.
    With Regards,
    Selvam T

    Hi,
    Interactive reporting uses a BI client installed within the same system of CRM. Check the logical system settings and it's name along with your Basis and or BI consultant, he would be able to rectify it. Hope it helps.
    BR.

  • Error creating interactive report

    Hi
    I get the following Oracle error when I attempt to create an interactive report:
    ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY, etc. ORA-02063: preceding line fromThe select statement I am trying to base the report on is:
    SELECT MAX(b.oracle_job_num)                                                          AS "Oracle Job Number"
          ,MAX(b.stream_id)                                                               AS "Stream ID"
          ,MAX(b.batch_id)                                                                AS "Batch ID"
          ,b.billing_pk                                                                   AS "Billing Reference"
          ,MAX(REPLACE(b.job_type_desc2,'_',' '))                                         AS "Job Type"
          ,MAX(b.file_date)                                                               AS "Date Recieved"
          ,MAX(b.total_docs)                                                              AS "Volume Recieved"
          ,SUM(NVL(d.total_docs_dispatched,0))                                            AS "Volume Dispatched To Date"
          ,MAX(b.total_docs) - SUM(NVL(d.total_docs_dispatched,0))                        AS "Volume Outstanding To Date"
          ,NVL(TO_CHAR(MIN(d.dispatch_timestamp),'DD-MM-RRRR HH24:MI'),'N/A')             AS "First Dispatch Date"
          ,NVL(TO_CHAR(MAX(d.dispatch_timestamp),'DD-MM-RRRR HH24:MI'), 'N/A')            AS "Last Dispatch Date"
          ,ROUND(SUM(NVL(d.total_docs_dispatched,0)) / MAX(b.total_docs) * 100)           AS "Percentage Dispatched"
          ,MAX(b.total_sheets)                                                            AS "Total Sheets"
          ,MAX(b.impressions)                                                             AS "Total Impressions"
    FROM billings b
        ,job_batch_dispatch_details d
    WHERE b.billing_pk = d.billing_pk (+)
    AND TRUNC(file_date) >= '25-APR-2008'
    AND UPPER(customer) LIKE 'B%'
    GROUP BY b.billing_pkPlease can anyone suggest what I need to do in order to get the report to work?
    Many thanks

    Paul,
    There should be more to that error message, that instructs you to change the "Unique Column" which is used to identify each row for the default drill-down link.
    If you are creating this report using the Create Page or Create Region wizard, try choosing "No" for "Link to Single Row View" below the query.
    - Marco

  • "Invalid number" error using Interactive Report search  on collection

    hi -- I have several interactive reports based on collections. In the IR reqion query definition,
    I cast the collection values as needed (number, date, etc). Everything's been working great.
    In both development and production, I can use the search feature of interactive reports
    and it finds rows containing the text I type in (as well as everything else working fine...)
    I just imported a new version of an application into our production database. Now, when I use the
    interactive report search, I always get "invalid number". This even happens on interactive reports
    that still work in the previous version of the production application... and these IRS
    have not been modified at all.
    If I create a filter and search for "elevation" in a string column, the filter works. If I create a filter
    searching for "elevation" in a number column, I get "invalid number". (In the development
    environment, I can do the latter -- it just doesn't find any rows.)
    Clearly it's choking on the types of the columns in the IR... but why now and not before, and why
    in the production database but not the development DB? Both are running 4.0.1.00.03.
    This is a pretty major loss of functionality... and it comes at a really bad time... Help?!
    Thanks,
    Carol

    hi Andy, Tony -- Completely understand about your email address. I've actually wondered at the fact that any
    of you gurus are willing to give them out.
    It's not tons of stuff, so here it is.
    1) The application process that creates the collection. This process that runs whenever an IR
    page is being rendered. The various DB names are application items. This application can affect data
    on multiple databases. You'll see see this in the process that builds the query.
    IF (apex_collection.collection_exists (      
        p_collection_name=>'IR_COLLECTION')) then
        apex_collection.delete_collection(p_collection_name=>'IR_COLLECTION');
    END IF;
    apex_collection.create_collection_from_query_b(p_collection_name=>'IR_COLLECTION', p_query=>meta_data_pkg.build_ir_collection_query(:TABLE_NAME, :MASTER_DB_NAME, :CZAR_DB_NAME, :DB_NAME));2) The database function that constructs the query. Called in the above create_collection statement.
    FUNCTION build_ir_collection_query (table_name varchar2, master_db_name varchar2, czar_db_name varchar2, ref_db_name varchar2)
    return varchar2
    IS
      query VARCHAR2(3000);
    BEGIN
      IF /* check for other table names here */ THEN
        -- build queries for other tables
       -- *** HDB_EXT_DATA_CODE
      ELSIF (upper(table_name) in ('HDB_EXT_DATA_CODE', 'HDB_EXT_DATA_CODE_SYN')) THEN
        query := 'SELECT /*+DRIVING_SITE(dcs)*/ dc.ext_data_code_sys_id, dcs.ext_data_code_sys_name, dcs.agen_id, a.agen_name, dc.primary_data_code,';
        query := query||' dc.secondary_data_code, dc.hdb_datatype_id, d.datatype_name, d.unit_id, u.unit_name, d.physical_quantity_name, to_char(dc.date_time_loaded,''DD-MON-YYYY HH24:MI:SS'')';
        query := query||' FROM hdb_ext_data_code_syn@'||master_db_name || ' dc, hdb_ext_data_code_sys_syn@'||master_db_name ||
                 ' dcs, hdb_agen_syn@'||master_db_name||' a, hdb_datatype_syn@'||master_db_name||' d, hdb_unit@'||czar_db_name||' u';
        query := query||' WHERE dc.ext_data_code_sys_id = dcs.ext_data_code_sys_id AND dcs.agen_id = a.agen_id(+) AND dc.hdb_datatype_id = d.datatype_id AND d.unit_id = u.unit_id';
       /* continue w/ other tables */
    END;3) The query that it builds for the table in question:
    SELECT /*+DRIVING_SITE(dcs)*/ dc.ext_data_code_sys_id, dcs.ext_data_code_sys_name, dcs.agen_id, a.agen_name,
    dc.primary_data_code, dc.secondary_data_code, dc.hdb_datatype_id, d.datatype_name, d.unit_id, u.unit_name,
    d.physical_quantity_name, to_char(dc.date_time_loaded,'DD-MON-YYYY HH24:MI:SS')
    FROM hdb_ext_data_code_syn@UCHDB2 dc,  hdb_ext_data_code_sys_syn@UCHDB2 dcs, hdb_agen_syn@UCHDB2 a,
    hdb_datatype_syn@UCHDB2 d, hdb_unit@UCHDB2 u
    WHERE dc.ext_data_code_sys_id = dcs.ext_data_code_sys_id AND dcs.agen_id = a.agen_id(+)
    AND dc.hdb_datatype_id = d.datatype_id AND d.unit_id = u.unit_id           4) The explain plan results on the development database
    PLAN_TABLE_OUTPUT                                                                                  
    Plan hash value: 583729845                                                                         
    | Id  | Operation                       | Name                  | Rows  | Bytes | Cost (%CPU)| Time
        | Inst   |                                                                                     
    |   0 | SELECT STATEMENT REMOTE         |                       |    97 | 16490 |    19  (16)| 00:00
    :01 |        |                                                                                     
    |*  1 |  HASH JOIN                      |                       |    97 | 16490 |    19  (16)| 00:00
    :01 |        |                                                                                     
    |   2 |   TABLE ACCESS FULL             | HDB_UNIT              |   177 |  3540 |     3   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |*  3 |   HASH JOIN RIGHT OUTER         |                       |    95 | 14250 |    15  (14)| 00:00
    :01 |        |                                                                                     
    |   4 |    TABLE ACCESS FULL            | HDB_AGEN              |    54 |  1944 |     3   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |*  5 |    HASH JOIN                    |                       |    95 | 10830 |    12  (17)| 00:00
    :01 |        |                                                                                     
    |   6 |     MERGE JOIN                  |                       |   112 |  5936 |     6  (17)| 00:00
    :01 |        |                                                                                     
    |   7 |      TABLE ACCESS BY INDEX ROWID| HDB_EXT_DATA_CODE_SYS |    15 |   405 |     2   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |   8 |       INDEX FULL SCAN           | HDB_EXT_DATA_CODE_SYS |    15 |       |     1   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |*  9 |      SORT JOIN                  |                       |   112 |  2912 |     4  (25)| 00:00
    :01 |        |                                                                                     
    |  10 |       TABLE ACCESS FULL         | HDB_EXT_DATA_CODE     |   112 |  2912 |     3   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |  11 |     TABLE ACCESS FULL           | HDB_DATATYPE          |   711 | 43371 |     5   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    Predicate Information (identified by operation id):                                                
       1 - access("A2"."UNIT_ID"="A1"."UNIT_ID")                                                       
       3 - access("A4"."AGEN_ID"="A3"."AGEN_ID"(+))                                                    
       5 - access("A5"."HDB_DATATYPE_ID"="A2"."DATATYPE_ID")                                           
       9 - access("A5"."EXT_DATA_CODE_SYS_ID"="A4"."EXT_DATA_CODE_SYS_ID")                             
           filter("A5"."EXT_DATA_CODE_SYS_ID"="A4"."EXT_DATA_CODE_SYS_ID")                             
    Note                                                                                               
       - fully remote statement                                                                         5) The explain plan results on the production database
    PLAN_TABLE_OUTPUT                                                                                                                                                                  
    Plan hash value: 583729845                                                                                                                                                         
    | Id  | Operation                       | Name                  | Rows  | Bytes | Cost (%CPU)| Time     |                                                                          
    |   0 | SELECT STATEMENT                |                       |    97 | 16490 |    19  (16)| 00:00:01 |                                                                          
    |*  1 |  HASH JOIN                      |                       |    97 | 16490 |    19  (16)| 00:00:01 |                                                                          
    |   2 |   TABLE ACCESS FULL             | HDB_UNIT              |   177 |  3540 |     3   (0)| 00:00:01 |                                                                          
    |*  3 |   HASH JOIN RIGHT OUTER         |                       |    95 | 14250 |    15  (14)| 00:00:01 |                                                                          
    |   4 |    TABLE ACCESS FULL            | HDB_AGEN              |    54 |  1944 |     3   (0)| 00:00:01 |                                                                          
    |*  5 |    HASH JOIN                    |                       |    95 | 10830 |    12  (17)| 00:00:01 |                                                                          
    |   6 |     MERGE JOIN                  |                       |   112 |  5936 |     6  (17)| 00:00:01 |                                                                          
    |   7 |      TABLE ACCESS BY INDEX ROWID| HDB_EXT_DATA_CODE_SYS |    15 |   405 |     2   (0)| 00:00:01 |                                                                          
    |   8 |       INDEX FULL SCAN           | HDB_EXT_DATA_CODE_SYS |    15 |       |     1   (0)| 00:00:01 |                                                                          
    |*  9 |      SORT JOIN                  |                       |   112 |  2912 |     4  (25)| 00:00:01 |                                                                          
    |  10 |       TABLE ACCESS FULL         | HDB_EXT_DATA_CODE     |   112 |  2912 |     3   (0)| 00:00:01 |                                                                          
    |  11 |     TABLE ACCESS FULL           | HDB_DATATYPE          |   711 | 43371 |     5   (0)| 00:00:01 |                                                                          
    Predicate Information (identified by operation id):                                                                                                                                
       1 - access("D"."UNIT_ID"="U"."UNIT_ID")                                                                                                                                         
       3 - access("DCS"."AGEN_ID"="A"."AGEN_ID"(+))                                                                                                                                    
       5 - access("DC"."HDB_DATATYPE_ID"="D"."DATATYPE_ID")                                                                                                                            
       9 - access("DC"."EXT_DATA_CODE_SYS_ID"="DCS"."EXT_DATA_CODE_SYS_ID")                                                                                                            
           filter("DC"."EXT_DATA_CODE_SYS_ID"="DCS"."EXT_DATA_CODE_SYS_ID")                                                                                                             6) This is the source query for the interactive report in question. The application process that creates the
    collection runs before this region is rendered.
    Select /*+ NO_QUERY_TRANSFORMATION */
    to_number(C001) Ext_Data_Code_Sys_Id,
    C002 Ext_Data_Code_Sys_Name,
    to_number(C003) Agen_Id,
    C004 Agen_Name,
    C005 Primary_Data_Code,
    C006 Secondary_Data_Code,
    to_number(C007) Hdb_Datatype_Id,
    C008 Datatype_Name,
    to_number(C009) Unit_Id,
    C010 Unit_Name,
    C011 Physical_Quantity_Name,
    C012 Date_Time_Loaded
    from apex_collections
    where collection_name = 'IR_COLLECTION'
    order by 1,5,7Well, maybe it is alot... !
    Happy New Year!
    Carol

  • ERROR IN INTERACTIVE REPORT

    Hello Rich Heilman,
    When i select a basicdata button in secondary list window i am getting the correct screen which i have called.  When i select salesdata,mrpdata buttons i have to get their corresponding screens, but i am getting the same basicdata screen until i  execute the program.
    Kindly help. U can execute the below code and see
    REPORT  Y_RK_REPORT_TASK2 NO STANDARD PAGE HEADING
                              LINE-SIZE 200
                              LINE-COUNT 25(5).
    *&                      I N I T I A L I Z A T I O N                    *
    TABLES: MARA,MARC,MARD,MBEW,MVKE,MAKT.
    DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF I_MARC OCCURS 0,
            MATNR LIKE MARC-MATNR,
           WERKS LIKE MARC-WERKS,
            EKGRP LIKE MARC-EKGRP,
            PSTAT LIKE MARC-PSTAT,
          END OF I_MARC.
    DATA: BEGIN OF I_MARD OCCURS 0,
           MATNR LIKE MARD-MATNR,
           LGORT LIKE MARD-LGORT,
           ERSDA LIKE MARD-ERSDA,
           LABST LIKE MARD-LABST,
           WERKS LIKE MARD-WERKS,
          END OF I_MARD.
    DATA: BEGIN OF I_MBEW OCCURS 0,
           MATNR LIKE MBEW-MATNR,
           BWKEY LIKE MBEW-BWKEY,
           STPRS LIKE MBEW-STPRS,
           PEINH LIKE MBEW-PEINH,
         END OF I_MBEW.
    DATA: BEGIN OF I_MARA OCCURS 0,
           MATNR LIKE MARA-MATNR,
           MTART LIKE MARA-MTART,
           MATKL LIKE MARA-MATKL,
           MEINS LIKE MARA-MEINS,
           MBRSH LIKE MARA-MBRSH,
         END OF I_MARA.
    DATA: BEGIN OF I_MVKE OCCURS 0,
           MATNR LIKE MVKE-MATNR,
           VKORG LIKE MVKE-VKORG,
           VTWEG LIKE MVKE-VTWEG,
           VRKME LIKE MVKE-VRKME,
          END OF I_MVKE.
    DATA: BEGIN OF I_MAKT OCCURS 0,
           MATNR LIKE MAKT-MATNR,
           SPRAS LIKE MAKT-SPRAS,
           MAKTX LIKE MAKT-MAKTX,
          END OF I_MAKT.
    DATA: BEGIN OF I_OUT OCCURS 0,
            MATNR LIKE MARC-MATNR,
            MEINS LIKE MARA-MEINS,
            MBRSH LIKE MARA-MBRSH,
            MATKL LIKE MARA-MATKL,
            MTART LIKE MARA-MTART,
            WERKS LIKE MARD-WERKS,
            EKGRP LIKE MARC-EKGRP,
            PSTAT LIKE MARC-PSTAT,
            LGORT LIKE MARD-LGORT,
            ERSDA LIKE MARD-ERSDA,
            LABST LIKE MARD-LABST,
            BWKEY LIKE MBEW-BWKEY,
            STPRS LIKE MBEW-STPRS,
            PEINH LIKE MBEW-PEINH,
            VKORG LIKE MVKE-VKORG,
            VTWEG LIKE MVKE-VTWEG,
            VRKME LIKE MVKE-VRKME,
            SPRAS LIKE MAKT-SPRAS,
            MAKTX LIKE MAKT-MAKTX,
          END OF I_OUT.
    *&             A T - S E L E C T I O N - S C R E E N                   *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-100.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR . "OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-101.
    PARAMETERS: P_WERKS LIKE MARD-WERKS.
    SELECTION-SCREEN END OF BLOCK B2.
    *&                  T O P - O F - P A G E                              *
    TOP-OF-PAGE.
    WRITE: / SY-ULINE.
             SKIP.
    WRITE : /84 'MATERIAL MASTER REPORT -- BASIC LIST',
             SY-ULINE.
    WRITE: /2 'MATNR',
            22 'MEINS',
            26 'MBRSH',
            31 'MATKL',
            42 'MTART',
            49 'WERKS',
            57 'EKGRP',
            66 'PSTAT',
            76 'LGORT',
            82 'ERSDA',
            92 'LABST',
            107 'BWKEY',
            113 'STPRS',
            126 'PEINH',
            133 'VKORG',
            139 'VRKME',
            144 'VTWEG',
            148 'SPRAS',
            151 'MAKTX'.
    *&                  E N D - O F - P A G E                              *
    END-OF-PAGE.
      WRITE: / SY-ULINE.
        SKIP.
      WRITE: /85 'PAGNO: ',SY-PAGNO,
               SY-ULINE.
    *&             S T A R T - O F - S E L E C T I O N                     *
    START-OF-SELECTION.
    SELECT MATNR EKGRP PSTAT FROM MARC INTO
    CORRESPONDING FIELDS OF TABLE I_MARC
           WHERE WERKS = P_WERKS AND MATNR IN S_MATNR.
    SELECT MATNR MTART MBRSH MEINS MATKL FROM MARA INTO
    CORRESPONDING FIELDS OF TABLE I_MARA FOR ALL ENTRIES IN I_MARC
               WHERE MATNR EQ I_MARC-MATNR.
    SELECT MATNR SPRAS MAKTX FROM MAKT INTO
    CORRESPONDING FIELDS OF TABLE I_MAKT
                FOR ALL ENTRIES IN I_MARC
               WHERE MATNR = I_MARC-MATNR
    SELECT MATNR LGORT ERSDA LABST WERKS FROM MARD INTO
    CORRESPONDING FIELDS OF TABLE
               I_MARD FOR ALL ENTRIES IN I_MAKT
               WHERE MATNR = I_MAKT-MATNR
               AND WERKS = P_WERKS.
    SELECT MATNR BWKEY STPRS PEINH FROM MBEW INTO TABLE I_MBEW
               FOR ALL ENTRIES IN I_MARD
               WHERE MATNR = I_MARD-MATNR.
    SELECT MATNR VKORG VTWEG VRKME FROM MVKE INTO TABLE I_MVKE
               FOR ALL ENTRIES IN I_MBEW
              WHERE MATNR = I_MBEW-MATNR.
    *&        E N D -- O F --  S E L E C T I O N                           *
    END-OF-SELECTION.
    LOOP AT I_MARC.
    MOVE I_MARC-MATNR TO I_OUT-MATNR.
    *MOVE I_MARC-WERKS TO I_OUT-WERKS.
    MOVE I_MARC-EKGRP TO I_OUT-EKGRP.
    MOVE I_MARC-PSTAT TO I_OUT-PSTAT.
    READ TABLE I_MARA WITH KEY MATNR = I_MARC-MATNR.
    MOVE I_MARA-MTART TO I_OUT-MTART.
    MOVE I_MARA-MBRSH TO I_OUT-MBRSH.
    MOVE I_MARA-MEINS TO I_OUT-MEINS.
    MOVE I_MARA-MATKL TO I_OUT-MATKL.
    READ TABLE I_MAKT WITH KEY MATNR = I_MARC-MATNR.
    MOVE I_MAKT-SPRAS TO I_OUT-SPRAS.
    MOVE I_MAKT-MAKTX TO I_OUT-MAKTX.
    READ TABLE I_MARD WITH KEY MATNR = I_MARC-MATNR.
    MOVE I_MARD-LGORT TO I_OUT-LGORT.
    MOVE I_MARD-ERSDA TO I_OUT-ERSDA.
    MOVE I_MARD-LABST TO I_OUT-LABST.
    MOVE I_MARD-WERKS TO I_OUT-WERKS.
    READ TABLE I_MBEW WITH KEY MATNR = I_MARC-MATNR.
    MOVE I_MBEW-BWKEY TO I_OUT-BWKEY.
    MOVE I_MBEW-STPRS TO I_OUT-STPRS.
    MOVE I_MBEW-PEINH TO I_OUT-PEINH.
    READ TABLE I_MVKE WITH KEY MATNR = I_MARC-MATNR.
    MOVE I_MVKE-VKORG TO I_OUT-VKORG.
    MOVE I_MVKE-VTWEG TO I_OUT-VTWEG.
    MOVE I_MVKE-VRKME TO I_OUT-VRKME.
    APPEND I_OUT.
    CLEAR I_OUT.
    ENDLOOP.
    LOOP AT I_OUT.
    FORMAT HOTSPOT ON.
    WRITE: /2 I_OUT-MATNR,
            22 I_OUT-MEINS,
            26 I_OUT-MBRSH,
            31 I_OUT-MATKL,
            42 I_OUT-MTART,
            49 I_OUT-WERKS,
            57 I_OUT-EKGRP,
            66 I_OUT-PSTAT,
            76 I_OUT-LGORT,
            82 I_OUT-ERSDA,
            92 I_OUT-LABST,
            107 I_OUT-BWKEY,
            113 I_OUT-STPRS,
            126 I_OUT-PEINH,
            133 I_OUT-VKORG,
            139 I_OUT-VRKME,
            144 I_OUT-VTWEG,
            148 I_OUT-SPRAS,
            151 I_OUT-MAKTX.
    HIDE I_OUT-MATNR.
    FORMAT HOTSPOT OFF.
    ENDLOOP.
    *&                A T - L I N E - S E L E C T I O N                    *
    AT LINE-SELECTION.
    SET PF-STATUS 'SELECTION'.
    CASE SY-LSIND.
    WHEN 1.
      SELECT MATNR LGORT ERSDA LABST WERKS FROM MARD
       INTO TABLE I_MARD WHERE MATNR = I_OUT-MATNR
       AND WERKS = P_WERKS.
      IF SY-SUBRC = 0.
          LOOP AT I_MARD.
            WINDOW STARTING AT 20 60.
            WRITE:/ 'MATERIAL NUMBER:'.
            WRITE: I_MARD-MATNR.
            WRITE:/ 'PLANT:'.
            WRITE: I_MARD-WERKS.
            WRITE:/ 'STORAGE LOCATION:' .
            WRITE: I_MARD-LGORT.
            SKIP.
          ENDLOOP.
      ELSE.
         MESSAGE E000(1)
             WITH 'PLEASE SELECT PLANT WHICH YOU GIVEN IN SELECTON'.
      ENDIF.
    ENDCASE.
    *&                A T - U S E R - C O M M O N D                        *
    AT USER-COMMAND.
    CASE SY-UCOMM.
       WHEN 'EXIT'.
       LEAVE PROGRAM.
       WHEN 'BASICDATA'.
          PERFORM BASIC.
       WHEN 'SALESDATA'.
         perform SALES.
       WHEN 'MRPDATA'.
         perform MRP.
    ENDCASE.
    FORM BASIC
    FORM BASIC.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=AUSW'.
    perform bdc_field       using 'RMMG1-MATNR'
                                  I_OUT-MATNR.
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                                  'X'.
    perform bdc_transaction using 'MM03'.
    ENDFORM.
    FORM SALES
    FORM SALES.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=AUSW'.
    perform bdc_field       using 'RMMG1-MATNR'
                                  I_OUT-MATNR.
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(04)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(04)'
                                  'X'.
    perform bdc_dynpro      using 'SAPLMGMM' '0080'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-WERKS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'RMMG1-WERKS'
                                  '3000'.
    perform bdc_transaction using 'MM03'.
    ENDFORM.
    FORM MRP
    FORM MRP.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=AUSW'.
    perform bdc_field       using 'RMMG1-MATNR'
                                  I_OUT-MATNR.
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(06)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(06)'
                                  'X'.
    perform bdc_dynpro      using 'SAPLMGMM' '0080'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-LGORT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'RMMG1-WERKS'
                                  '3000'.
    perform bdc_field       using 'RMMG1-LGORT'
                                  '0001'.
    perform bdc_transaction using 'MM03'.
    ENDFORM.
    FORM BDC_TRANSACTION *
    FORM bdc_transaction USING tcode.
      CALL TRANSACTION tcode USING bdcdata MODE 'E'.
    ENDFORM.
    FORM BDC_DYNPRO *
    --> PROGRAM *
    --> DYNPRO *
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdcdata.
      bdcdata-program = program.
      bdcdata-dynpro = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.
    Insert field *
    FORM bdc_field USING fnam fval.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    ENDFORM.
    Thanks and Regards
    seenu

    I think you are missing the step to clear the bdcdata.  Please add the clear and refresh here..
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BASICDATA'.
    clear bdcdata.  refresh bdcdata.
    PERFORM BASIC.
    WHEN 'SALESDATA'.
    clear bdcdata.  refresh bdcdata.
    perform SALES.
    WHEN 'MRPDATA'.
    clear bdcdata.  refresh bdcdata.
    perform MRP.
    ENDCASE.
    Regards,
    Rich Heilman

  • Error with Interactive Report Query

    Hi,
    using apex 4.1 on 11.2.0.1
    i have the following query in an IR:
    select     *
    from     v_dialer_egn
    where dtstart between :P200_STARTDATE and  :P200_ENDDATEwhen i submit the query,the following error returns:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [FreeTDS][SQL Server]Operand type clash: text is incompatible with datetime[FreeTDS][SQL Server]Statement(s) could not be prepared. ORA-02063: preceding 2 lines from DIVOSECCv_dialer_egn is defined as:
    CREATE OR REPLACE FORCE VIEW V_DIALER_EGN
       DTSTART,
       AGENTNUMBER,
       AGENTNAME,
       STRCALLEDNUMBER,
       CAMPAIGNNAME,
       CALLSTATUS,
       NDURATIONSEC,
       NSPEAKDURSEC,
       NEXTRAWORKDURATIONSEC,
       CALLTRIES
    AS
       SELECT "dtstart" AS dtstart,
              "agentnumber" AS agentnumber,
              "agentname" AS agentname,
              "strcallednumber" AS strcallednumber,
              "campaignname" AS campaignname,
              "callstatus" AS callstatus,
              "ndurationsec" AS ndurationsec,
              "nspeakdursec" AS nspeakdursec,
              "nextraworkdurationsec" AS nextraworkdurationsec,
              "calltries" AS calltries
         FROM v_ora_dialer_egn@divosecc;the query works on sqlplus/toad/sqldeveloper
    desc v_dialer_egn shows that dtstart is a date column.
    if i remove the where clause, the query is accepted by apex.
    v_ora_dialer_egn@divosecc is a view on mssql (v 10.x)
    connected using freetds and unixodbc
    Edited by: unficyp on 17.02.2012 06:31

    I think you , using a Sql Server Database, have to convert the two text fields (:P200_STARTDATE , :P200_ENDDATE).
    Check this conversions and let me know if it works:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    edit: Something like:
    SELECT *
    FROM V_DIALER_EGN
    WHERE DTSTART BETWEEN CONVERT(DATETIME,:P200_STARTDATE, 103) AND CONVERT(DATETIME,:P200_ENDDATE, 103)Edited by: Vitor Rodrigues on 17/Fev/2012 14:37

  • Hyperion Interactive reporting performance issue.

    Hi,
    We created a report in Hyperion Interactive reporting using Hyperion Essbase as database connection file .
    Report performance was good in Interactive reporting Studio we don't have any problem in studio.
    when we open the the report in Hyperion Workspace We are facing performance issue of the report and also when i hit refresh button to refresh data in the Workspace,i am getting the following error message
    *"An Interactive Reporting Service error has occurred - Failed to acquire requested service. Error Code : 2001"*
    Any suggestions to resolve this will be really helpful.
    Thanks in advance
    Thanks
    Vamsi
    Edited by: user9363364 on Aug 24, 2010 7:49 AM
    Edited by: user9363364 on Sep 1, 2010 7:59 AM

    Hi
    i also faced such an issue and then i found the answer on metalink
    Error: "An Interactive Reporting Service Error has Occurred. Failed to Acquire Requested Service. Error Code: 2001" when Processing a bqy Report in Workspace. [ID 1117395.1]     
    Applies to:
    Hyperion BI+ - Version: 11.1.1.2.00 and later [Release: 11.1 and later ]
    Information in this document applies to any platform.
    Symptoms
    Obtaining the following error when trying to process a BQY that uses an Essbase data source in Workspace:
    "An Interactive Reporting Service error has occurred. Failed to acquire requested service. Error Code: 2001".
    Cause
    The name of the data source in the CMC contained the machine name in fully qualified name format whereas the OCE contained the machine name only. This mismatch in machine names caused the problem. Making the machine name identical in both cases resolved the problem.
    Solution
    Ensure that the name of the data source as specified in the OCE in Interactive Reporting Studio matches the name specified in the CMC tool in the field "Enter the name of the data source".
    In fact, all fields need to match between the OCE and the CMC Data Source.
    regards
    alex

  • Error while scheduling a Hyperion Interactive Report

    Hi,
    I'm trying to run a scheduled Hyperion Interactive Report (version 9.3.1). The report is scheduled to run for 1st of every month. After the report is scheduled. When a user tries to run the report on demand.
    The error log states as follows:
    $ view server_messages_IRJobService.log
    "server_messages_IRJobService.log" [Read only] 38 lines, 2688 characters
    <event logger="com.brio.one.services.bqservice.SERVICE" method="ThrID(7) Logger(ZDbgPrint)" timestamp="1247269603142" level="ERROR" thread="[ORB=_it_orb_id_1,Pool=1]::id-6" sequence_no="74">^M
    <time>10 Jul 2009 16:46:43,142</time>^M
    <context subject="TIPAdmin" session_id="zRMz99t6-00000122670ef701-0000-8197-0a3f0708" originator_type="IRJobService" originator_name="InteractiveReportingService" host="tsbrit02">^M
    <info type="RESOURCE">IBQServiceImpl::runJob Job Identifier: TIPPFSMRPT Service Name: JF1_tsbrit02 Cycle Name: Cycle_0</info>^M
    <info type="RESOURCE_ID">000001225ef102a5-0000-8197-0a3f0708</info>^M
    </context>^M
    <message><![CDATA[TCApp::ExecuteJavaScript failed: ]]></message>^M
    </event>^M
    ^M
    But when the report is uploaded and when the user tries running it. It runs without any problem.
    The report has 3 filters(drop downs) on runtime.
    Could anyone please help me in this regard.
    Regards,
    Sadiq

    check your discoverer user role using:
    select granted_role from dba_role_privs where grantee=upper('<username>');
    from your database. the database to which the desktop is connecting.
    check for connect, resouce, multiorg roles.

  • APEX 4.0: error while opening a XLS file downloaded from interactive report

    Hi,
    I'm getting below error while opening a XLS file downloaded from an interactive report (APEX 4.0).
    "The file you trying to open, 'customer_2.xls', is in a different format than specified by the file extension.
    Verify that the is not corrupted and is from a trusted source before opening file. Do you want to open file."
    Yes No Help
    May be this one Apex 4.0 issue.
    please help me.
    Thanks
    Mukesh

    Hi,
    is the next part of the code correct.
    What i mean is packing of the attachment, finding out the size of pdf file and doc type as PDF.
    You can also try below link..
    Link: [http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES]
    Hope this helps.
    Regards,
    -Sandeep

  • Error opening PDF downloaded from Interactive Report

    hi -- I'm getting an error opening a PDF file downloaded from an interactive report.
    I've seen on the forum that this could be related to the size of the file, but I've tried
    this out on 10-row results (1k files) and it's still an issue.
    I save the file to my file system. If I try to open it in Adobe Reader, I get:
    File does not begin with '%PDF-'
    and
    Adobe Reader could not open <filename>.pdf because it is either not a supported
    file type or because the file has been damaged (for example, it was sent as an email
    attachment and wasn't correctly decoded).
    If I try to open in Internet Explorer, I get:
    File does not begin with '%PDF-'
    Other users are having the same problem. Download to csv and open in Excel works fine.
    Do I need to have special print attributes for this? I didn't think so... I'm just using the defaults
    (response header = report settings, content disposition = attachment).
    Ideas?
    Thanks,
    Carol

    Hi,
    I'm having the same problem that was described above, and my site does have BI Publisher installed, and it does successfully produce readable pdfs for many reports.
    But there are other reports, even reports produced using the Apex Wizard and all defaults, that just keep producing the same Adobe Reader error reported above, ie
    "Adobe Reader could not open <filename>.pdf because it is either not a supported
    file type or because the file has been damaged (for example, it was sent as an email
    attachment and wasn't correctly decoded)."
    Any suggestions?
    Cheers,
    Peter

  • Chart in Interactive Report always returns IO Error

    Hi everyone,
    Recently our company has a web application project that utilizes APEX and its powerful Interactive Report.
    However, everytime when we try to generate a chart based on the IR (by going to the "cog" and pick "chart"), we will get this "IO Error".
    For the last couple of days I have been researching on the net for solutions but still no luck on how to fix this problem.
    I have used Firefox to check into the source code of the page.
    To my surprise is that calling just the chart component is fine (the swf file does load up and wait for data), and so is calling that lengthy "...apex_util.flash2?..." xml-file under the variable "FlashVar" (an xml file is returned correctly).
    But when the chart is called in the IR it just keeps displaying "IO Error".
    This web app is hosted behind a reverse proxy server. Moreover, upon testing it is confirmed that the chart will be able to generate if the IP of the server is used to access the app... but not with the proxy domain name.
    Using the plain server IP is not an option as this IP cannot be accessed from outside of the company; all traffic is routed via the domain proxy server.
    It seems as is the proxy server is doing something in the middle, but I can't seem to find any information regarding conflicts between proxy server and anychart anywhere on the net.
    I did find some information about Flash and crossdomain data access, and had created the "crossdomain.xml" file under the root directory of the data server as instructed from Anychart documentation and Adobe Flash Support TechNote (http://www.anychart.com/products/anychart/docs/users-guide/security-error.html and http://kb2.adobe.com/cps/142/tn_14213.html).
    However it still does not solve the IO Error problem.
    Please help! My team do have a demo approaching next week.
    Sincerely,
    Nelson

    Hi,
    Try add to dads.conf
    PlsqlCGIEnvironmentList SERVER_PORT=443http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/trouble.htm#BABDFDDF
    Regards,
    Jari

Maybe you are looking for

  • Adding multiple songs to a slideshow in Iphoto......

    I know how to add a song to a picture slide show in iPhoto. But how do I add lets say several songs to one big slide show? I was asked to do it as a favor for a friend because it is her birthday. I am gonna do one song for her early years than as she

  • How could I fill in the fields in a PDF form.

    Hello, I received a form in PDF format that has fields to be filled in. I coulld not type in the fields in my computer that has Win 7 or in my Mac Book Air that has Snow Leopard. The pdf form protection -> Security Properties-> has "filling of Form F

  • Define a Web service in XI 7.1

    How can I define a web service in PI 7.1 in SOAP adapter Thanks

  • House bank information on f110 form

    I am working with the f110 printing of the "collective order" form. on our form, the user wants to see the house bank. the developer before created text variants (so10) to hold the house bank data and used an include in the form. My question that why

  • I don't quite understand the whole deal with AA3's "Temp" folder

    So, when exactly can I or should I delete the contents of Auditions temp folder?  Mine is currently at a bit over 400MB but on an 90GB partition. But, I'm wondering when it is appropriate to clear some of all of the temp files out of there. I just do