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

Similar Messages

  • 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

  • Htmldb_application array reset based on interactive report filter

    Hello
    I was searching various forums on this topic and did not find usefull answer. I must be doing something wrong or just do not understand how come that others do not have this problem?? Anyway, here it is.
    I have interactive report where first column is checkbox. Using submit process , I perfrom inserts/ deletes in database based on checbox array (htmldb_application). Everything works well untill I do not use filter on one of the columns. Such action results in resizing the report ( so number of rows is re-ordered / changed ). I want to run the same submit process on resized list, but it is not possible, because the array points to different/non-existing rows. I would expect that the array gets "reseted" accrording to the new result list, but it does not??
    Example:
    I load the page with the report, where I have 10 records. Two of them, row 5 and 7, have in column X value '1'. If I leave the report as is, check checkbox on any line and run submit process, action is succesfull.
    Now I change the filter and I will display only rows where column X=1. Report now have 2 rows. I check checkbox on the first one, submit the process, but the arrays refers to row 5 ( the old resultset), which is not present in the report now ??
    Can I somehow achieve arrays reset based on the interacitve report filter applied? Or any other solution?
    Thanks in advance
    Ludek

    Ludek
    The query for the IR is constructed as below select "LINK", "UNLINK", "INST_CD", "CUSTOMER_CD", "DESCRIPTION", "COUNTRY_CD"
          , "Link Status", count(*) over () as apxws_row_cnt
          from (
          select *
          from (
          select
          htmldb_item.checkbox (1,rownum, DECODE( (select bind.bc_id from BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd  and bind.customer_cd = big.customer_c and bind.bc_id = :P2_BC_ID )C , :P2_BC_ID,'DISABLED','UNCHECKED') ) Link,
          htmldb_item.checkbox (2,rownum, DECODE( (select bind.bc_id from BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd and bind.customer_cd = big.customer_cd and bind.bc_id = :P2_BC_ID ),:P2_BC_ID,'UNCHECKED','DISABLED') ) Unlink,
          htmldb_item.display_and_save(3,inst_cd) inst_cd,
          htmldb_item.display_and_save(4,customer_cd) customer_cd,
          htmldb_item.display_and_save(5,description) description,
          htmldb_item.display_and_save(6,country_cd) country_cd, DECODE( (select bind.bc_idfrom BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd and bind.customer_cd = big.customer_cd and bind.bc_id = :P2_BC_ID ) , :P2_BC_ID,'Allready Linked','Available') "Link Status"
          from REF_CUSTOMER_UNIQ big ) r ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)As you can see, the 'rownum' is gotten in the inner query. I suspect that when you apply a filter, the filter is applied to the outer query. Hence, the rownums will not be as you expect them to be. Instead of using the 'rownum' as the values for checkbox 1 and checkbox 2, I suggest you use a concatenation of
    inst_id and customer_cd. In the after submit process you can then just loop through the f01 and f02 arrays , split the concatenated values back into their inst_id and customer_cd components and perform the Insert or Delete.
    Varad
    Edited by: varad acharya on Jan 10, 2011 4:49 PM

  • 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

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

  • Pagination on interactive report - how to move it on my layout

    okay, I am working with the basic interactive report, no tweaks. My end user doesn't seem to worry about much horizontal scrolling, although it goes against my personal web dev standards to do that without significant necessity. But with the templates as they are, the pagination for the next/prev set of records is WAAAY over to the right. I find this bothersome, and for the benefit of my user, I would like to left-align this. I've looked on Google, done a search in this forum, and checked the APEX docs, not much leaping out at me. I suspect I can tweak a div class on some template, not having an easy time finding that.
    helpful thoughts on this? TYIA, and points for a working idea.

    Hi,
    Have you try change "Pagination Display Position" from Interactive Report Attributes?
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • 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

  • Setting the APEX interactive report items

    Hi,
    I need to reset the APEX interactive report items like apex_ir_APP_USER to some value.
    I put the below jQuery code in the javascript header page it did not work:
    <script type="text/javascript">
    $document.ready(function() {
    $('#apexir_APP_USER').val('NEW VALUE');
    </script
    Any suggestions ??
    Thanks

    The reason of me trying to set the apex interactive item is:
    For the interactive report, we enabled the subscription service, so that users can subscribe for the selective reports.
    So, when a user clicks the Actions button and selects the subscription option, then the couple of fields like email address, subject etc., are populated, with the default values.
    The email address field is auto populated with the user id like abc.efg.
    And, the email address field i would like to manipulate and change to [email protected]
    Now i was able to change the value of the hidden variable, apexir_APP_USER with the below code but when i select subscription option i still see the same user id populated in the
    email address field.
    <script type="text/javascript">
    $(document).ready(function() {
    alert('test'+ $("#apexir_APP_USER").val());
    $("#apexir_APP_USER").val("Value changed");
    alert('changed value '+ $("#apexir_APP_USER").val());
    </script>

  • Pagination error when filtering in an Interactive Report

    Hi All,
    I'm getting a pagination error, when filtering from the column header in an Interactive Report.
    Report error:
    Invalid set of rows requested, the source data of the report has been modified.*
    Reset Pagination*
    The steps to recreate:
    1. Run an Interactive Report
    2. Click the next button to go to the second page of data.
    3. From the column header select a data element that will return less than 15 rows. Note -- if the there are 15 or more rows of data, the error will not occur.
    The Report will fail with the error shown above.
    It looks like the pagination needs to be reset after the column filter, but how is this done?
    I'm using the canned interactive report with no customizations. Is there a fix for this issue?
    Thanks

    This «bug» is known for a long time unfortunately...
    I never find any solution for IR report filtering.
    Maybe you can use some JQuery to change the link when clicking a value in the list, (add a code that will update pagination).
    Something like :
    $('#apexir_rollover_content').load(function() {
         $(this).find('a').click(function(){
              gReport.search('SEARCH');
    });But I don't think it will work, as they already use JQuery to bind that &lt;a> events.
    In case you update your report using a button, you can simply use a "reset pagination" process called on button click.
    In case you use column link you simply have to tick the «Reset Pagination» checkbox.
    I hope Apex team will fix that one day.
    Good luck.
    Yann.

Maybe you are looking for

  • Application does not open and not display errors.

    The application is CoView.  It worked perfectly, but one day try to use it and did not work.  The process starts and then ends without displaying any error window.  I have two files .WER I ran the application on other computers and works smoothly. WE

  • I can not open Excel (97, 2000, or 2003) spreadshee​t in Win98 OS PC using LabVIEW 7.0 Runtime Engine

    Hi, I have a problem opening an Excel spreadsheet by a LabVIEW application that is using Runtime Engine 7.0 in a Windows 98 OS environment . I tried LabVIEW 7.1, it will not install on Win98. Meanwhile, I installed  Excel 97 and 2000 (Excel 2003 does

  • Gracenote problems: open socket fai

    Hello im having problems with regsitering on gracenote, it has come up with Open Socket: Failed, when i complete the registration. I think it has something to do with the proxy address, i have tried automatically detecting the address, and tried manu

  • Heads up regarding iOS 4.2 and Photoshop images

    It took me a while to track down, and it may not be a problem for you, but after upgrading my 3GS to iOS 4.2, I get the message "The required file cannot be found" when iTunes attempts to sync an album containing a Photoshop image to my iPhone. YMMV

  • Make shared Onedrive file download automatically (not Office Online)

    How can I make a shared document in OneDrive automatically download to a user not logged in Office 365? I want MS Office 2013 file tos download and not show up in Office online.  Is that possible. It happens for MS Office 2003 and pdf files; when "Vi