Refresh the Report

Hi I have to build an ALV report .. The Problem I am facing is that I need to Create a Report in which the Information for the Client Gets Updated Frequently .
Eg:- The way it is done at AIRPORT when the Information for flights Keeps on Getting Refreshed .. after every 5 mins...
1.) I know I have to Use a Function Module .. BUT which one ...
2.) How to find the compatible Function Module with any other Scenerio..
Please Help..
Thanks
Edited by: Ashutosh Sharotri on May 19, 2008 5:03 AM

Hi Ashutosh Sharotri,
Please check this code
REPORT z_alv_auto_refresh.
*>*********************************************************************
* This report displays User's info (SM04) using the FM :              *
* REUSE_ALV_LIST_DISPLAY                                              *
* The list is auto-refreshed (refresh time : 5 seconds)               *
TYPE-POOLS: slis.                      " ALV Global Types
DATA :
  gt_user LIKE uinfo OCCURS 0 WITH HEADER LINE. " User info in SM04
START-OF-SELECTION.
  PERFORM f_read_data.
  PERFORM f_display_data.
*       Form  F_LIRE_DATA
FORM f_read_data.
  REFRESH gt_user.
* Get User's info
  CALL FUNCTION 'THUSRINFO'
       TABLES
            usr_tabl = gt_user.
* Wait in a task
  PERFORM f_call_rfc_wait.
ENDFORM.                               " F_READ_DATA
*      Form  F_DISPLAY_DATA
FORM f_display_data.
  DEFINE m_sort.
    add 1 to ls_sort-spos.
    ls_sort-fieldname = &1.
    append ls_sort to lt_sort.
  END-OF-DEFINITION.
  DEFINE m_event_exit.
    clear ls_event_exit.
    ls_event_exit-ucomm = &1.
    ls_event_exit-after = 'X'.
    append ls_event_exit to lt_event_exit.
  END-OF-DEFINITION.
  DATA :
    ls_layout     TYPE slis_layout_alv,
    lt_sort       TYPE slis_t_sortinfo_alv,
    ls_sort       TYPE slis_sortinfo_alv,
    lt_event_exit TYPE slis_t_event_exit,
    ls_event_exit TYPE slis_event_exit.
* Build Sort Table
  m_sort 'ZEIT'.
* Build Event Exit Table
  m_event_exit '&NTE'.                 " Refresh
  ls_layout-zebra = 'X'.
  ls_layout-colwidth_optimize = 'X'.
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
            i_callback_program      = sy-cprog
            i_callback_user_command = 'USER_COMMAND'
            is_layout               = ls_layout
            i_structure_name        = 'UINFO'
            it_sort                 = lt_sort
            it_event_exit           = lt_event_exit
       TABLES
            t_outtab                = gt_user.
ENDFORM.                               " F_DISPLAY_DATA
*       FORM USER_COMMAND                                             *
FORM user_command USING i_ucomm     TYPE syucomm
                        is_selfield TYPE slis_selfield.     "#EC CALLED
  CASE i_ucomm.
    WHEN '&NTE'.
      PERFORM f_read_data.
      is_selfield-refresh = 'X'.
      SET USER-COMMAND '&OPT'.         " Optimize columns width
  ENDCASE.
ENDFORM.                               " USER_COMMAND
*      Form  F_CALL_RFC_WAIT
FORM f_call_rfc_wait.
  DATA lv_mssg(80).                                         "#EC NEEDED
* Wait in a task
  CALL FUNCTION 'RFC_PING_AND_WAIT' STARTING NEW TASK '001'
    PERFORMING f_task_end ON END OF TASK
    EXPORTING
      seconds               = 5        " Refresh time
      busy_waiting          = space
    EXCEPTIONS
      RESOURCE_FAILURE      = 1
      communication_failure = 2  MESSAGE lv_mssg
      system_failure        = 3  MESSAGE lv_mssg
      OTHERS                = 4.
ENDFORM.                               " F_CALL_RFC_WAIT
*      Form  F_TASK_END
FORM f_task_end USING u_taskname.
  DATA lv_mssg(80).                                         "#EC NEEDED
* Receiving task results
  RECEIVE RESULTS FROM FUNCTION 'RFC_PING_AND_WAIT'
    EXCEPTIONS
      RESOURCE_FAILURE      = 1
      communication_failure = 2  MESSAGE lv_mssg
      system_failure        = 3  MESSAGE lv_mssg
      OTHERS                = 4.
  CHECK sy-subrc EQ 0.
  SET USER-COMMAND '&NTE'.             " Refresh
ENDFORM.                               " F_TASK_END
Hope this helps...
Best regards,
raam

Similar Messages

  • While Refresh the report in webi i got database error.

    Hi All,
    I try to refresh the report in CMC i got database error . Can any one please help me how to resolve this.
    Regards,
    Arjun

    Hi Mallikarujun,
    Try selecting the values using show values for particular column in Universe.
    If that is fine and you are using SQL Server then the query is returning more that 2147483647 which is the limit for the return count by SQL Server (4 Bytes).
    There may be issue in join condition, if not try applying filter in query

  • EPM ADD in problem in refreshing the report in SAP BPC 10.0 NW

    Hello Experts,
    In my report , i have dynamic local members ,EPM Copy range ,and context based filters as well as excel filters based on local members .
    While refreshing the report the , the system is unable to refresh properly .If context is changed in the report the context member is getting fixed instead of dynamically changing.
    I am using  -  Version 10.0 SP 14 Patch 3 .net 3.5
                         Build 8424
    Is it a problem with over formulas or is the patch unstable?

    HI,
    I believe it is definitely the support pack. I posted an issue on this forum and I saw your post.  Your issue is very similar to mine. I saw Andy's reply to you about the SP 18 and looked into it.  Thanks Andy.  SP 18 resolved my issue.  See my post.  Kathy

  • Refresh the report table simultaneous

    Hi All,
    Even though I have hidden the apply button, the report tabs are not refreshed with the parameters in the bi publisher report. We have to refresh the report page manually for each tabs.Is there a way to refresh all the report tabs at once when we change the parameter in bi publisher 11g report.
    Thanks,
    Sushil

    If you removed the apply button, then the action of selecting a new parameter value automatically reruns the report. However, if you want to have the report run with the first value or default value selected, then you may want to set a default value and set the Auto Run property and then the report will be refreshed automatically.
    Thanks,
    Bipuser

  • Invalid Year error when refreshing the report with date prompt

    Hi All,
    I am working on BO XI 3.1 with Informix database.
    When refreshing the report without any date prompt the report is running fine,but when applying the date prompt it is giving the error message
    "Invalid year in the date".
    I have tried changing the value in the advance tab of the object property to 'yyyy-mm-dd hh:mm:ss'
    But it also din't work for me.
    Please suggest.
    Thanks and Regards,
    Rishabh

    Hi Experts,
    Thanks for your suggestions.
    Since changing the PRM file was not a fesiable solution for us.
    We have manged to find a work around to solve this issue
    We have created the filters at universe level with following formula for all the date objects which we ere using at report level as a prompt:
    @Select(classname\objectname)=TO_DATE(@Prompt('Enter Date:','D',,mono,free,not_persistent), '%Y/%m/%d')
    Although when we parse this formula it wil give an error message saying 'illigle operation',
    still it will work when we use this at report level.
    Thanks and Regards,
    Rishabh

  • Please Help Urgently to refresh the report on the change in data

    We want to refresh report at runtime for the Drill Down report if any user changes the Data. We changes the data from the form which is called from the report and we want to this effect on the report on the prompt.
    Is there any method to close the report while it is in the queue of Background Engine? Can we refresh the report ? Please help urgently.
    Thanks in Advance.

    Pritesh,
    Reports goes out to the database and fetches the data (not a snapshot) and returns the information, formats it and displays it. The only way to refresh, is to rerun the report.
    If your are running from the server, you need to make sure you are not fetching from cache (you determine this from destype and set the life of the cache in the servername.ora file).
    I am unaware of any way to programatically close the report once displayed. The user must take action to close the report (unless you call the operating system to kill the display). When you rerun the report from Oracle Forms, you will get fresh data.
    Regards,
    The Oracle Reports Team jls

  • How to refresh the reports in excel using macros ?

    Hi All,
    I am generating a report using MS Excel to connecting the Sql Server 2008 Database.
    In the Sql Server the reporting table is a transaction table.
    When open the Excel report and click the Refresh All button under the Data tab. Then the report  takes the more time to load the data.
    I need the less time to load the data in the Excel report.
    How can you performance to increase the report to load the data quickly.
    Thanks in Advance.
    Thanks,
    Sreekanth
    sreekanth kancharla

    Hello,
    First, this is a forum for SSRS = SQL Server Reporting Services, not for Excel or other topics of your question.
    Do you have a filter in the query to get the data?
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Automatically refresh the report tabs after selecting the parameters in bip

    Hello Everything!!
    Is there a way to automatically refresh all the report tabs once we select the parameters? The report are not refreshed automatically in each tab and users have to either hit apply button or refresh button for each report tab . Is this a lacking feature in BI publisher. I am using 11.1.1.6.6.
    Thanks,
    Uday

    Hello Everything!!
    Is there a way to automatically refresh all the report tabs once we select the parameters? The report are not refreshed automatically in each tab and users have to either hit apply button or refresh button for each report tab . Is this a lacking feature in BI publisher. I am using 11.1.1.6.6.
    Thanks,
    Uday

  • Error:After the Refresh the Report  UJO_READ_EXCEPTION_018

    Dear Expert,
    i just struct here.i got an issue while refresh my Report.
    code: UJO_READ_EXCEPTION_018
    severity: error
    description: MDX statement error: Value JDH_FB /CPMB/HDDMSTZ for characteristic /CPMB/HDDMSTZ unknown
    log id: 01fB2Fko7kEgxmHZwZm01m
    DATAVALUE:Value JDH_FB /CPMB/HDDMSTZ for characteristic /CPMB/HDDMSTZ unknown
    MDX:  SELECT NON EMPTY  {[/CPMB/HDDKBP3].[BUDGETUNIT] ,[/CPMB/HDDKBP3].[BUDGET_PY] } * {[/CPMB/HDDMWN5                 LTV_PARENTH1].[2011.INPUT] ,[/CPMB/HDDMWN5                 LTV_PARENTH1].[2012.INPUT] ,[/CPMB/HDDMWN5                 LTV_PARENTH1].[2013.INPUT] ,[/CPMB/HDDMWN5                 LTV_PARENTH1].[2014.INPUT] ,[/CPMB/HDDMWN5                 LTV_PARENTH1].[2015.INPUT] ,[/CPMB/HDDMWN5                 LTV_PARENTH1].[2016.INPUT] ,[/CPMB/HDDMWN5                 LTV_PARENTH1].[2017.INPUT] } * {[/CPMB/HDDBZ36                 PARENTH1].[ALL_AB_TYPE                     /CPMB/HDDBZ36] ,[/CPMB/HDDBZ36                 PARENTH1].[ML_PEL_TOT                      /CPMB/HDDBZ36] ,[/CPMB/HDDBZ36                 PARENTH1].[NELP] } * {[/CPMB/HDD05U2                 PARENTH1].[OFFSHORE                        /CPMB/HDD05U2] ,[/CPMB/HDD05U2                 PARENTH1].[TOTAL_SEGMENTS                  /CPMB/HDD05U2] ,[/CPMB/HDD05U2                 PARENTH1].[ONSHORE] } * {[/CPMB/HDDMSTZ                 PARENTH3].[AMD_ASSET                       /CPMB/HDDMSTZ] ,[/CPMB/HDDMSTZ                 PARENTH3].[ANK_ASSET                       /CPMB/HDDMSTZ] ,[/CPMB/HDDMSTZ                 PARENTH3].[CBY_ASSET                       /CPMB/HDDMSTZ] ,[/CPMB/HDDMSTZ                 PARENTH3].[JDH_FB                          /CPMB/HDDMSTZ] ,[/CPMB/HDDMSTZ                 PARENTH3].[MHN_ASSET                       /CPMB/HDDMSTZ] ,[/CPMB/HDDMSTZ                 PARENTH3].[WON_ASSET                       /CPMB/HDDMSTZ] } ON 0  from  [/CPMB/HDMYEEB/!!O/CPMB/HDMYEEB]  WHERE ( [Measures].[/CPMB/SDATA] ,[/CPMB/HDDWN5X                 PARENTH1].[SALES_PRICE] ,[/CPMB/HDD152C                 PARENTH1].[AUDITTOTAL                      /CPMB/HDD152C] ,[/CPMB/HDDBYM9].[TOTALSHARE] ,[/CPMB/HDD0HPX                 PARENTH1].[CRUDE_OIL] ,[/CPMB/HDDUHVD                 PARENTH1].[NO_PROD_FLOW] ,[/CPMB/HDDTZQ2].[MMT] )
    V1:Value JDH_FB /CPMB/HDDMSTZ for characteristic /CPM
    V2:B/HDDMSTZ unknown
    V3:
    V4:

    Hi,
    please post BPC related questions in the following forum:
    SAP Planning and Consolidation, version for SAP NetWeaver
    Regards,
    Gregor

  • $a_report to refresh a report but it is not picking up the bind variable

    Hi
    APEX          -     Application Express 4.1.0
    Browsers     -     All
    Database     -     11g2
    I have a tree region on a page. When a user clicks a leaf of the tree I want to be able to use the ID to refresh a report in a different region on the same page
    Code for when the user clicks the leaf
    $('div.tree li a').click( function() {
    node_id = $(this).parents('li:first').attr('id');
    if (node_id.substr(0,node_id.indexOf('|')) == 'Y')
    $s('P4_SELECTED_VALUE',node_id.substr(node_id.indexOf('|')+1));
    alert('Value Set: ' + $v('P4_SELECTED_VALUE'));
    //$a_report('28576803999973770','1','20','20');
    $a_report($v('P4_REPORT_ID'),'1','20','20');
    SQL Statement
    SELECT *
    FROM PRODS p WHERE PROD_CODE = :P4_SELECTED_VALUE
    The problem I have is that when the report is run (I know it is refreshing) the P4_SELECTED_VALUE bind variable is set to NULL.
    The alert pop contains the correct value and when I make the P4_SELECTED_VALUE visible it also contains the value?
    Any help is much appreciated
    Rob

    Rob,
    You need to insert P4_SELECTED_VALUE value into APEX session before refreshing the report.
    Add following JS function in your page
    //insert value into session using JS
    function fnSetSessionState(pItem, pValue) {
        var vAjaxDummy = new htmldb_Get(null, $v('pFlowId'), null, 0);
        vAjaxDummy.add(pItem, pValue);
        var vDummy = vAjaxDummy.get();
        vAjaxDummy = null;
    }and your code..
    $('div.tree li a').click( function() {
    node_id = $(this).parents('li:first').attr('id');
    if (node_id.substr(0,node_id.indexOf('|')) == 'Y')
    $s('P4_SELECTED_VALUE',node_id.substr(node_id.indexOf('|')+1));
    alert('Value Set: ' + $v('P4_SELECTED_VALUE'));
    fnSetSessionState('P4_SELECTED_VALUE',$v('P4_SELECTED_VALUE'));
    //$a_report('28576803999973770','1','20','20');
    $a_report($v('P4_REPORT_ID'),'1','20','20');
    });This is how I used to do in version 3.2 or before. But now I prefer to use Declarative dynamic actions..
    Regards,
    Hari

  • Error while refreshing the BO WebI report

    Dear Friends,
    I have created BO report on top of BICS Query in BO 4.0(have used aroung 15 BICS queries in to the report) and able to see the correct data.
    I have used hierarchies and also selected levels in to webI report. Last week I am able to refresh the report but since two days I am getting some strange errors.
    Errors:
    1) Unable to run the empty Query.
    2) When trying to invoke the method com.sap.ip.bi.bics.dataacess.consumer.queryview.results.et.IRsAxisTupleelement.Getcharateristicmember() of an object loaded from Local Variable 'element'(WIS00000)
    Can you please help me on this isse.
    Regards,
    Eswar

    Hi,
    Was there any recent Patch up/downgrade done in your environment?
    What is the current Patch level?
    Also, did you get a chance to look into the Fixed Issue ADAPT01626356?
    Regards,
    Muthulakshmi Ramanathan

  • Error (IES10901) (WIS 10901) while refreshing the Webi report

    Hi Gurus,
    We have created webi reports using Universe design tool on top of BEX Query based on 0SD_C03 cube and now we are facing Database error: A runtime exception has occured. (Error loading cube 0sd_c03 (catalog : % 3). (IES 10901 ) (WIS 10901) while trying to refresh the Webi report from Data Access--> Edit--> Run Query while its running fine when I refresh the report using refresh button option in Webi.
    When I run the the query in rsrt its working absolutely fine.
    Note that we are using BOBJ 4.0 SP7 and this issue has come recently.
    Any idea or help on this would be appreciated.
    Regards,
    Monil

    Hello Monali,
    are you getting this error constantly or sometimes?
    what type of connection are you using for your Webi report
    Is it Specified user name/password OLAP connection or SSO Olap connection
    If your are using Specified user name/password OLAP then try with SSO connection because SAp recommendation is not to use  Specified user name/password OLAP connections..to resolve this kind of issues please restart DSL bridge..
    Regards,
    Naveen D

  • How to use url to open report and refresh report's data,but the report's toolbar haven't "refresh data" button

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    HI,
    scenario is
    I hope use url to open the report,and refresh the report data,but I didn't the user use the "refresh data" button to refresh the report's data.How to do that?
    regards

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    Thank you for your attention, amr_foci .
    I created a Web Intelligence report,there will be more than 30 companies use.The company only allowed to see the Company Data. I want to use the url of the way, from my company in the development of the system to open report, and refresh reported Table data.but do not want users to use the toolbar of "data refresh" button to refresh the data .
    Now the question of identity authentication system, as well as statements by url open the question of Has been resolved, but it can not shield statements through the pages of "data refresh" button.
    In addition, I now used by the business object XI system is posted on the JAVA environment.
    Regards,

  • Reports in EPM version 16 to be refreshed twice to see the values in the Report

    Dear All,
    We are on BPC 10 and EPM version 16. When we try to refresh the Reports in EPM 16, the first time, it does not bring any values, but when we refresh the second time, we get the values in the Report. Has anyone faced the similar issue like this, please let me know how it can be solved? When i execute the same report in EPM 13, the report gets the values in the first refresh itself.
    Thanks in advance,
    Best Regards,
    Rama

    Hi Swapnil, Vadim,
    Thanks for your help but as per the Note, I would like to check if this will help for my Report. As per the Note it says,
    Resolution
    A solution is to select the member Context(XXXX) in the 'EPM - Member selector' for the dimension initialized in page axis for the input schedule instead of referring to Sheet1 in the EPMOlapMember formula.
    Another solution is to implement a macro via a button in the second sheet that contains the input schedule as follows:
    Point 1: I have 6 sheets in this workbook, The Input Sheet which you see below is created by using a MACRO. Going to each sheet and changing the context would not help our users because they need to just refresh from the Input sheet.
    Point 2: It says, to go to each sheet and create a MACRO which is also not feasible for our users. They require to have it in the Input sheet only.
    Below Screen shot is from Input Sheet. PRC refers to the Profit Center in the below screen shot.
    Below Screen shot is from Sheet 1
    Please let me know if I am wrong as per the Note.
    Thanks in advance,
    Regards,
    Venkata

  • Refresh the WebI report getting the Error

    Hi Friends,
    I have installed the BO4.0 sp2.Previously I created reports and refresh the reports are fine.few days back i am getting error once refresh the report. the error is:
    Caused by: com.businessobjects.sdk.core.server.ServerException: The database SQL generation parameters file could not be loaded (MS Access 2007, ODBC) .
         at com.businessobjects.sdk.core.server.common.CommonRequestHandler.newServerException(CommonRequestHandler.java:260)
         at com.businessobjects.sdk.core.server.common.CommonRequestHandler.createAllServerExceptions(CommonRequestHandler.java:238)
         at com.businessobjects.sdk.core.server.common.CommonRequestHandler.afterProcessing(CommonRequestHandler.java:121)
    Can any one please suggest me solution.
    Thanks
    Srini

    When Tomcat is stoped and restarted or application server reload is triggered, the standard Manager implementation will attempt to serialize all currently active sessions to a disk file located via the pathname attribute.All such saved sessions will then be de-serialized and activated when the applications server reload is completed.
    To resolve the issue
    Below changes need to be done on the server machine where Tomcat is installed:
    1.Stop Tomcat.
    2.To prevent the creation of the sessions.ser file which stores the content of the sessions、Make the change below (uncomment one line) in the file Tomcat55\conf\context.xml
    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    -->
    <Manager pathname="" />
    3.Check if the file 「session.ser」exists in the folder「\Tomcat55\work\Catalina\localhost\AnalyticalReporting」and if so delete it.
    Start Tomcat.
    Restart the SIA.
    Please refer the sap kb article for further reference #1543765
    Regards,
    Raja

Maybe you are looking for

  • VPN setup problem

    I have installed Snow Leopard Server on a new XServe. I have updated to 10.6.2. Other services are working Related to VPN I have configured the VPN Service using L2TP. I have no additional network routing defined. Every time I try to setup a connecti

  • Deleting an empty blank space?

    I've used the milano template on pages to create my CV, however the text at the top (i think is classed as a header) is seperated from the main text by a blank space which i can't seem to delete... I've tryed pressing backspace in case there's any sp

  • Getting error when updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1

    Hi, I`m getting error message like "None of the apps in your project can be activated in the target. The manifest file of one or more apps contain API sets or Office applications that are not supported by the target Office client. To debug those apps

  • Creating TestStand threads from a DLL

    I have a DLL function that creates a thread to maintain a LabWindows/CVI user-interface. I'm interested in having UI events trigger the execution of a sequence in TestStand. In the TestStand API, I can find methods to start a whole new Execution. But

  • Java.util.concurrent.Callable synchronized call method

    Hi all, I'm currently developing an algorithm that uses Callable Interface. I'd like to know when should I use synchronized in the Call() method signature. My scene is the following: Class Test invoke Task Class. The Task Class contains the following