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

Similar Messages

  • 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

  • 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

  • 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

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

  • Problem running javascript in an Interactive Report

    I have a page that opens a popup window. The popup window shows a standard report. I have added a column link in this report so that the row selected will be passed back to the page that opened this popup. It is in the Column Link area, Target is URL and the URL is
    javascript:passBack('#REGULATION_COMBO_CD#'); javascript:parentRefesh() ; javascript:window.close();
    This works fine. But since I want to be able to search the report in the popup window, I migrated this standard report to an interactive one. The Column Link no longer works. It doesn't return the info or close this popup window. So it looks like the javascript iis not running.
    I tried to change the information in the Link Column area of the interactive report. I can use the target page and the Item Value fields to pass the information back to the calling page, but it won't run the javascript to close this popup window.
    Am I missing a place where the javascript should go in an interactive report? APEX 3.1.1, Oracle 10g
    Edited by: mimi_jones on Nov 20, 2009 4:44 AM
    Edited by: mimi_jones on Nov 20, 2009 8:55 AM

    Hi,
    Try creating a javascript function on your page and call that instead of running all of the code from the link
    &lt;javascript type="text/javascript"&gt;
    function passbackAndClose(v)
    passBack(v);
    parentRefesh();
    window.close();
    &lt;/javascript&gt;put that in your popup page's HTML Header setting.
    Then change the link to:
    #" onclick="javascript:passbackAndClose('#REGULATION_COMBO_CD#');When you chain javascript calls, the browser generally expects each function to do "return true;" when the function is finished. Usually, this is just assumed, but sometimes you need to add this in to your code.
    Also - you have parentRefesh() - should this be parentRefresh() ?
    Andy

  • Javascript errors with Crytical Report XI

    I am using EP6 SP2 and CR XI. And deployed the compatible iview provided by BusinessObjects. 
    If I chose to display one BW report or one Folder in the iview, such as :
    http://gdtelnotes.gd.ctc.com/businessobjects/enterprise11/sap/desktoplaunch/InfoView/CrystalEnterprise_Report/view.do?objId=2274
    Everything is OK.
    However, if I chose to display logon page of CR, such as:
    http://gdtelnotes.gd.ctc.com/businessobjects/enterprise11/sap/desktoplaunch/InfoView/logon/logon.do
    Javascript errors will occur. 
    Any instructions will be appreciated.
    Many thanks,
    Summer

    Hi,
    i have exactly the same error when upgrading tot 4.1.1.
    In APEX 4.1.0 everything is working fine, but now in 4.1.1 in every IR report i got "gReport is empty or undefined" error message.
    <script language="JavaScript" type="text/javascript">
    ;(function($){
    gReport = new apex.worksheet.ws('');
    $.htmldbIrBusyGrap=$.fn.htmldbIrBusyGrap=function(){
    /* for bind IR ajax */
    /* check do we have IR on page */
    if($('#apexir_WORKSHEET_REGION').length>0){
      /* replace apex internal function _BusyGraphic */
      gReport._BusyGraphic=function(pState){
       if(pState==1){
        /* ir ajax start trigger htmldbIrAjaxStart event and show loading icon */
        $.event.trigger('htmldbIrAjaxStart');
        /*goModal('apexir_LOADER', {position:['30%',]});*/
         html_ShowElement('waitRegion');
        //$('#waitRegion').modal({persist:true,overlayCss:{backgroundColor:'#606060'},position:['30%',]});
        }else{
        /* check is there data stored to #apexir_WORKSHEET */
        if(!$('#apexir_WORKSHEET').data('htmldb')){
          /* store data to #apexir_WORKSHEET */
          $('#apexir_WORKSHEET').data('htmldb',{irReady:true});
          /* trigger htmldbIrReady event */
          $.event.trigger('htmldbIrReady');
         /* hide loading icon and trigger htmldbIrAjaxEnd*/
             html_HideElement('waitRegion');
         //$.modal.close();
        $.event.trigger('htmldbIrAjaxEnd');
       return;
      $.event.trigger('htmldbIrReady');
    $.htmldbIrReady=$.fn.htmldbIrReady=function(fn){
    $(function(){if($.isFunction(fn)&&$('#apexir_WORKSHEET_REGION').length>0){$('#apexir_WORKSHEET_REGION').bind('htmldbIrReady',fn)}});
    })(jQuery);
    addLoadEvent(function(){$.htmldbIrBusyGrap();});
    </script>When i add the following line in the javascript just above the call of the gReport
    gReport = new apex.worksheet.ws('');then the pages are loaded without any error, but my custom icon is not displayed.

  • 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

  • JavaScript Error in Crystal Reports for Visual Studio 2013 - revisited

    With the newly-released Crystal Reports for Visual Studio 2013, I was receiving the following error:
    Unhandled exception at line 37, column 59140 in http://localhost:4486/cfb341e5bcca4ae88166b78e20276d73/browserLink
    0x800a139e - JavaScript runtime error: Syntax error, unrecognized expression: input#__CRYSTALSTATEctl00$MainContent$CrystalReportViewer1
    It turns out that this is related to the Browser Link Visual Studio add-in. You can either ignore the error, or disable Browser Link.
    Dan

    Hi Dan
    Many thanks for the heads up
    - Ludek

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

  • Javascript error on launching application from portal

    When we launch  BW reports from our portal (Netweaver 7.0) , it gives a javascript error  and the reports would not launch  for some users. The launch pad is using WEBDYNPRO-ABAP . The javascript error that we are getting  is - u2018Childnodes.lengthu2019  is Null or Not an Object .  This happens on all versions of Internet Explorer. Has any one encountered this issue ?

    Hi,
    When we launch BW reports from our portal (Netweaver 7.0) , it gives a javascript error and the reports would not launch for some users. The launch pad is using WEBDYNPRO-ABAP
    Check whether user who are facing problem are using FQDN in URL. ( FQDN of portal )
    FQDN --> http://<portalhost.<domian>.com:5nn00/irj/portal
    Thanks
    Anil

  • How to display images by using URLs in Interactive Reporting

    Hello everybody,
    My client has the Hyperion System 9.3 suite.
    We have a report in Interactive Reporting showing product data.
    The source for the report is a relational database (SQL Server).
    The data is grouped by product.
    My client needs the product's picture (jpg) in the report.
    The problem is that product images are not available in the relational database but via URL like this:
    http://client_domanin//Hyperion/id_product.jpg
    (the name of the image equals the id of the product).
    I was thinking to solve this problem using Java Script.
    I don't know Java Script and don't know how to 'integrate' the JavaScript code with Interactive Reporting.
    How should the Java Script look like?
    Any help will be extremely appreciated.
    Thank you all!
    Daniela

    You might be able to do it if you are using the iHTML view of the Report not the Interactive Reporting Web Client (Plug-in)
    I do not have a 9.x server available to test this so it is guess on how i did it once in a Proof of Concept.
    In Results section Create a Computed Item that will be the HTML tag for the Graphic
    the syntax would look something like below
    '<IMG SRC = "http://client_domanin//Hyperion/" + id_product + ".jpg">'
    WHERE id_product is a column in your Data.
    Again this will not show a graphic when viewed with Interactive Reporting Web Client or Desktop Client.
    Good Luck, hope this is helpful
    Wayne

Maybe you are looking for

  • New Macbook Pro and TechTool help

    So I jus got a new mac book pro and did a SMART scan in Tech Tool Pro - here were my results and I am concerned about the spin up retry - can someone explain what I should do or if this is normal?

  • Issue with webi report on BEx query

    Hi, I have created a universe on top of Bex query.  There is no issue in creating and exporting the universe.  But when I try to create a webi report out that BEx query, I am not able to see the values.  Say if I have a column called "Company"  I am

  • Cannot view my album titles in library window

    I must have done something stupid, but I have tried everything! My family looks forward to the slideshows I create with their photos at Christmastime. I hope that I can solve this by then! iMac   Mac OS X (10.3.9)  

  • How can I join/merge my AVCHD files that I tape with my camcorder without re-encoding the files?

    I have a lot of tapes that cut in the middle while recording more than 12 minutes. I would like to join/merge my files. What should I do? Which softwares should I use?

  • Question about default wallpaper settings on new iPhone

    The default wallpaper for the iPhone 3GS is planet Earth. I was wondering if the option for "camera roll" (to use as wallpaper) is there by default...or is it added there after you take your first photo or only after you use a photo as wallpaper the