Anyone know of an ALV report in SAP that has Hotspot logic?

Howdy,
Does Anyone know of an ALV report in SAP that has Hotspot logic?
I just need to implement this logic into my report and I thought I'd copy what was there.
Also, anyone know of a report where buttons are available in the cells of an ALV grid?
Thanksing you kindly.

Hi Steve,
it'a a report with alv grid, where i use hot spot event,
i hope it helps you.
bye
*& Report  ZMONITOR_IP                                                 *
REPORT  zmonitor_ip                             .
TABLES: mapl, plko
*****SELECTION-SCREEN.
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_matnr  FOR mapl-matnr,
                s_plnty  FOR mapl-plnty,
                s_zaehl  FOR plko-zaehl,
                s_verwe  FOR plko-verwe,
                s_plnnr  FOR plko-plnnr,
                s_plnal  FOR plko-plnal,
                s_plnty2 FOR plko-plnty.
SELECTION-SCREEN: END OF BLOCK b1.
**********TYPES:
TYPES: BEGIN OF str_data,
         matnr    TYPE mapl-matnr,
         werks    TYPE plko-werks,
         plnal    TYPE plko-plnal,
         plnnr    TYPE plko-plnnr,
       END OF str_data.
TYPES: BEGIN OF str_data2,
        prueflos TYPE qals-prueflos,
        art      TYPE qals-art,
        herkunft TYPE qals-herkunft,
        enstehdat TYPE qals-enstehdat,
        END OF str_data2.
****Global data.
DATA: tb_plko TYPE TABLE OF plko,
      wa_plko TYPE plko,
      tb_mapl TYPE TABLE OF mapl,
      wa_mapl TYPE TABLE OF mapl,
      tb_data TYPE TABLE OF str_data,
      wa_data TYPE str_data,
      pos1 TYPE i,
      pos2 TYPE i,
      pos3 TYPE i,
      pos4 TYPE i,
      pos5 TYPE i,
      okcode_100 TYPE sy-ucomm,
      tb_data2 TYPE TABLE OF str_data2.
***********************VARIABILI E STRUTTURE PER ALV********************
*       CLASS lcl_event_handler DEFINITION
CLASS lcl_event_handler DEFINITION .
  PUBLIC SECTION .
    METHODS:
*To add new functional buttons to the ALV toolbar
*Hotspot click control
handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
                     IMPORTING e_row_id e_column_id es_row_no,
*Double-click control
handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
                    IMPORTING e_row e_column es_row_no.
ENDCLASS.                    "lcl_event_handler DEFINITION
*       CLASS lcl_event_handler IMPLEMENTATION
CLASS lcl_event_handler IMPLEMENTATION.
  METHOD handle_hotspot_click.
*Handle Hotspot Click METHOD handle_hotspot_click .
    PERFORM handle_hotspot_click USING e_row_id e_column_id es_row_no .
  ENDMETHOD .                    "lcl_event_handler
*Handle Double Click
  METHOD handle_double_click .
    PERFORM handle_double_click USING e_row e_column es_row_no .
  ENDMETHOD .                    "handle_double_click
ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
*--- ALV Grid instance reference
DATA gr_alvgrid TYPE REF TO cl_gui_alv_grid.
DATA gr_alvgrid2 TYPE REF TO cl_gui_alv_grid.
*--- Name of the custom control added on the screen
DATA gc_custom_control_name TYPE scrfname VALUE 'CC_ALV'.
DATA gc_custom_control_name2 TYPE scrfname VALUE 'CC_ALV2'.
*--- Customer contanier instance reference
DATA gr_ccontainer TYPE REF TO cl_gui_custom_container.
DATA gr_ccontainer2 TYPE REF TO cl_gui_custom_container.
*--- Field catalog table
DATA gt_fieldcat TYPE lvc_t_fcat.
DATA gt_fieldcat2 TYPE lvc_t_fcat.
*--- Layout structure
DATA gs_layout TYPE lvc_s_layo.
DATA gs_layout2 TYPE lvc_s_layo.
DATA ls_variant       TYPE disvariant.
DATA gr_event_handler TYPE REF TO lcl_event_handler .
****INITIALIZZATION
INITIALIZATION.
  pos1 = 4.
  pos2 = pos1 + 20.
  pos3 = pos2 + 10.
  pos4 = pos3 + 10.
  pos5 = pos4 + 10.
*****TOP OF PAGE
TOP-OF-PAGE.
  WRITE AT /pos1 'Material'.
  WRITE AT pos2  'Plan'.
  WRITE AT pos3 'Group'.
  WRITE AT pos4 'Group Count'.
  SKIP 1.
*****AT USER COMMAND.
AT USER-COMMAND.
  CASE sy-ucomm.
    WHEN 'BACK'.
      SET SCREEN 0.
      LEAVE SCREEN.
  ENDCASE.
AT LINE-SELECTION.
  PERFORM select_line.
*****START-OF-SELECTION.
START-OF-SELECTION.
  PERFORM select_data.
  PERFORM output.
END-OF-SELECTION.
****END-OF-SELCTION.
*&      Form  select_data
*       text
*  -->  p1        text
*  <--  p2        text
FORM select_data .
  SELECT   b~werks b~plnal b~plnnr a~matnr
           FROM plko AS b
           JOIN mapl AS a
           ON ( a~plnty = b~plnty AND
               a~plnnr = b~plnnr AND
               a~plnal = b~plnal )
           INTO CORRESPONDING FIELDS OF TABLE tb_data
           WHERE
             a~matnr IN s_matnr  AND
             a~plnty IN s_plnty  AND
             b~zaehl IN s_zaehl  AND
             b~verwe IN s_verwe  AND
             b~plnnr IN s_plnnr  AND
             b~plnal IN s_plnal  AND
             b~plnty IN s_plnty2 .
ENDFORM.                    " select_data
*&      Form  OUTPUT
*       text
*  -->  p1        text
*  <--  p2        text
FORM output .
  CALL SCREEN '0100'.
ENDFORM.                    " OUTPUT
*&      Form  SELECT_LINE
*       text
*  -->  p1        text
*  <--  p2        text
FORM select_line .
  DATA line TYPE i.
  CLEAR wa_data.
  GET CURSOR LINE line.
  READ LINE line FIELD VALUE wa_data-matnr  INTO wa_data-matnr.
  READ LINE line FIELD VALUE wa_data-werks  INTO wa_data-werks.
  READ LINE line FIELD VALUE wa_data-plnnr  INTO wa_data-plnnr.
  READ LINE line FIELD VALUE wa_data-plnal  INTO wa_data-plnal.
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  SET PARAMETER ID 'MAT' FIELD wa_data-matnr.
  SET PARAMETER ID 'WRK' FIELD wa_data-werks.
  SET PARAMETER ID 'QHK' FIELD '89'.
  SET PARAMETER ID 'PLN' FIELD wa_data-plnnr.
  SET PARAMETER ID 'PAL' FIELD wa_data-plnal.
  CALL TRANSACTION 'QA01' AND SKIP FIRST SCREEN.
  SET PARAMETER ID 'PLN' FIELD ' '.
  SET PARAMETER ID 'PAL' FIELD ' '.
ENDFORM.                    " SELECT_LINE
*&      Form  prepare_field_catalog
*       text
*      -->PT_FIELDCATtext
FORM prepare_field_catalog CHANGING pt_fieldcat TYPE lvc_t_fcat .
  DATA ls_fcat TYPE lvc_s_fcat .
  ls_fcat-fieldname = 'MATNR' .
*  ls_fcat-inttype = 'C' .
  ls_fcat-outputlen = '18' .
  ls_fcat-hotspot = 'X'.
  ls_fcat-coltext = 'Material' .
  ls_fcat-seltext = 'Material' .
  APPEND ls_fcat TO pt_fieldcat .
  CLEAR ls_fcat .
  ls_fcat-fieldname = 'WERKS' .
*  ls_fcat-outputlen = '30' .
  ls_fcat-coltext = 'Plant' .
  ls_fcat-seltext = 'Plant' .
  APPEND ls_fcat TO pt_fieldcat .
  CLEAR ls_fcat .
  ls_fcat-fieldname = 'PLNNR' .
*  ls_fcat-outputlen = '6' .
  ls_fcat-coltext = 'Orig. IP' .
  ls_fcat-seltext = 'Orig. IP' .
  APPEND ls_fcat TO pt_fieldcat .
  CLEAR ls_fcat .
  ls_fcat-fieldname = 'PLNAL' .
*  ls_fcat-outputlen = '6' .
  ls_fcat-coltext = 'Orig. IP Conuter' .
  ls_fcat-seltext = 'Orig. IP Conuter' .
  APPEND ls_fcat TO pt_fieldcat .
  CLEAR ls_fcat .
ENDFORM .                    "prepare_field_catalog
*&      Form  prepare_layout
*       text
*      -->PS_LAYOUT  text
FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.
  ps_layout-zebra = 'X' .
  ps_layout-grid_title = '' .
  ps_layout-smalltitle = 'X' .
  ps_layout-sel_mode = 'B'.
ENDFORM. " prepare_layout
*&      Module  DISPLAY  OUTPUT
*       text
MODULE display OUTPUT.
***ALV.
  IF gr_alvgrid IS INITIAL AND
     gr_alvgrid2 IS INITIAL.
*----Creating custom container instance
    CREATE OBJECT gr_ccontainer
       EXPORTING
       container_name = gc_custom_control_name
       EXCEPTIONS
       cntl_error = 1
       cntl_system_error = 2
       create_error = 3
       lifetime_error = 4
       lifetime_dynpro_dynpro_link = 5
       OTHERS = 6 .
    CREATE OBJECT gr_ccontainer2
        EXPORTING
        container_name = gc_custom_control_name2
        EXCEPTIONS
        cntl_error = 1
        cntl_system_error = 2
        create_error = 3
        lifetime_error = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS = 6 .
*----creating alv grid instance
    CREATE OBJECT gr_alvgrid
    EXPORTING
    i_parent = gr_ccontainer
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    OTHERS = 5 .
    CREATE OBJECT gr_event_handler .
    SET HANDLER gr_event_handler->handle_hotspot_click FOR gr_alvgrid .
    SET HANDLER gr_event_handler->handle_double_click FOR gr_alvgrid .
*----Preparing field catalog.
    PERFORM prepare_field_catalog CHANGING gt_fieldcat .
*----Preparing layout structure
    PERFORM prepare_layout CHANGING gs_layout .
*----Here will be additional preparations
*--e.g. initial sorting criteria, initial filtering criteria, excluding
*--functions
    CALL METHOD gr_alvgrid->set_table_for_first_display
    EXPORTING
* I_BUFFER_ACTIVE =
* I_CONSISTENCY_CHECK =
* I_STRUCTURE_NAME =
is_variant = ls_variant
i_save = 'A'
* I_DEFAULT = 'X'
    is_layout = gs_layout
* IS_PRINT =
* IT_SPECIAL_GROUPS =
* IT_TOOLBAR_EXCLUDING =
* IT_HYPERLINK =
    CHANGING
    it_outtab = tb_data
    it_fieldcatalog = gt_fieldcat
* IT_SORT =
* IT_FILTER =
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4 .
  ELSE .
    CALL METHOD gr_alvgrid->refresh_table_display
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
    EXCEPTIONS
    finished = 1
    OTHERS = 2 .
  ENDIF .
ENDMODULE.                 " DISPLAY  OUTPUT
*&      Module  STATUS_0100  OUTPUT
*       text
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'MONITOR'.
*  SET TITLEBAR 'xxx'.
ENDMODULE.                 " STATUS_0100  OUTPUT
*&      Module  USER_COMMAND_0100  INPUT
*       text
MODULE user_command_0100 INPUT.
  CASE okcode_100.
    WHEN 'BACK'.
      SET SCREEN 0.
      LEAVE SCREEN.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&      Form  handle_hotspot_click
*       text
*      -->I_ROW_ID   text
*      -->I_COLUMN_IDtext
*      -->IS_ROW_NO  text
FORM handle_hotspot_click USING i_row_id TYPE lvc_s_row
                                i_column_id TYPE lvc_s_col
                                is_row_no TYPE lvc_s_roid.
  READ TABLE tb_data INDEX is_row_no-row_id INTO wa_data.
  SELECT * FROM qals INTO CORRESPONDING FIELDS OF TABLE tb_data2
            WHERE selmatnr = wa_data-matnr AND
                  werk     = wa_data-werks .
  IF gr_alvgrid2 IS INITIAL.
    CREATE OBJECT gr_alvgrid2
  EXPORTING
  i_parent = gr_ccontainer2
  EXCEPTIONS
  error_cntl_create = 1
  error_cntl_init = 2
  error_cntl_link = 3
  error_dp_create = 4
  OTHERS = 5 .
*----preparing field catalog.
    PERFORM prepare_field_catalog2 CHANGING gt_fieldcat2 .
*----Preparing layout structure
    PERFORM prepare_layout CHANGING gs_layout2 .
*----Here will be additional preparations
*--e.g. initial sorting criteria, initial filtering criteria, excluding
*--functions
    CALL METHOD gr_alvgrid2->set_table_for_first_display
    EXPORTING
* I_BUFFER_ACTIVE =
* I_CONSISTENCY_CHECK =
* I_STRUCTURE_NAME =
is_variant = ls_variant
i_save = 'A'
* I_DEFAULT = 'X'
    is_layout = gs_layout2
* IS_PRINT =
* IT_SPECIAL_GROUPS =
* IT_TOOLBAR_EXCLUDING =
* IT_HYPERLINK =
    CHANGING
    it_outtab = tb_data2
    it_fieldcatalog = gt_fieldcat2
* IT_SORT =
* IT_FILTER =
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4 .
  ELSE.
    CALL METHOD gr_alvgrid2->refresh_table_display
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
  EXCEPTIONS
  finished = 1
  OTHERS = 2 .
  ENDIF.
*  call screen 100.
ENDFORM .                    "handle_hotspot_click
*&      Form  prepare_field_catalog2
*       text
*      <--P_GT_FIELDCAT2  text
FORM prepare_field_catalog2 CHANGING pt_fieldcat TYPE lvc_t_fcat .
  DATA ls_fcat TYPE lvc_s_fcat .
  ls_fcat-fieldname = 'PRUEFLOS' .
  ls_fcat-outputlen = '23' .
  ls_fcat-coltext = 'Inspection Lot Number' .
  ls_fcat-seltext = 'Inspection Lot Number' .
  APPEND ls_fcat TO pt_fieldcat .
  CLEAR ls_fcat .
  ls_fcat-fieldname = 'ART' .
  ls_fcat-coltext = 'Inspection Type' .
  ls_fcat-seltext = 'Inspection Type' .
  APPEND ls_fcat TO pt_fieldcat .
  CLEAR ls_fcat .
  ls_fcat-fieldname = 'HERKUNFT' .
  ls_fcat-coltext = 'Inspection Lot Origin' .
  ls_fcat-seltext = 'Inspection Lot Origin' .
  APPEND ls_fcat TO pt_fieldcat .
  CLEAR ls_fcat .
  ls_fcat-fieldname = 'ENSTEHDAT' .
  ls_fcat-coltext = 'Date of Lot Creation' .
  ls_fcat-seltext = 'Date of Lot Creation' .
  APPEND ls_fcat TO pt_fieldcat .
  CLEAR ls_fcat .
ENDFORM.                    " prepare_field_catalog2
*&      Form  handle_double_click
*       text
*      -->I_ROW      text
*      -->I_COLUMN   text
*      -->IS_ROW_NO  text
FORM handle_double_click USING i_row TYPE lvc_s_row
                               i_column TYPE lvc_s_col
                               is_row_no TYPE lvc_s_roid.
  CLEAR wa_data.
  READ TABLE tb_data INDEX i_row-index INTO wa_data.
  SET PARAMETER ID 'MAT' FIELD wa_data-matnr.
  SET PARAMETER ID 'WRK' FIELD wa_data-werks.
  SET PARAMETER ID 'QHK' FIELD '89'.
  SET PARAMETER ID 'PLN' FIELD wa_data-plnnr.
  SET PARAMETER ID 'PAL' FIELD wa_data-plnal.
  CALL TRANSACTION 'QA01' AND SKIP FIRST SCREEN.
  SET PARAMETER ID 'PLN' FIELD ' '.
  SET PARAMETER ID 'PAL' FIELD ' '.
ENDFORM .                    "handle_double_click

Similar Messages

  • Does anyone know if the HDMI to DVI Adapter that comes in the Mac Mini box is DVI end male or female?

    Does anyone know if the HDMI to DVI Adapter that comes in the Mac Mini box is DVI end male or female? Should I be getting a male to male DVI cable, or will this one work out of the box? Thanks!!

    Looking at mine - the DVI end is female.

  • Report in SAP that shows me the fixed assets per vendor

    Hi,
    I have been asked to produce the following;
    Can I run a report in SAP that shows me the fixed assets per vendor?
    I need the detail of the depreciations (start and end date, purchase price, depreciation rate, methodu2026) and the fixed assets register (purchase amount, purchase date, vendor nameu2026)
    Could you kindly explain to me in simple steps what report I should run?
    Many thanks in advance.
    Alex

    Hi, there is no such report in SAP. You can develop your own, The main issue is that to get vendor for asset to which were issued material from storage. You can do it via batch(write down while purchasing to some field, or to find it via batch). Fir material for which batch management is not active it's not possible to, because you can buy one material from different vendors.

  • I would like to know the version or name of SAP that is implemented in real

    I would like to know the version or name of SAP that is implemented in real time?

    This is a very generic question and really depends on what you are implementing (modules).
    The history of the "R/3" is
    3.0D Basis 300
    3.0E Basis 300
    3.0F Basis 300
    3.1H Basis 310
    3.1I Basis 310
    4.0B Basis 400
    4.5B Basis 450
    4.6C Basis 460
    4.71 Basis 6.20
    4.72 Basis 6.20
    5.00 Basis 6.40 (ECC 5.0 - Enterprise Core components)
    6.00 Basis 7.00 (ECC 6.0) - actually in RampUp
    All of those have increased business functionality and interfaces to other systems (CRM, BW etc.)

  • Is there a Report in SAP that lists the slow moving inventory?

    Is there a Report in SAP that lists the slow moving inventory? For example: Inventory that has not sold in the last 6 months?
    Thanks.
    Points will be awarded

    Thanks so much.
    Points rewarded.
    Kathy

  • Does anyone know how to permanently remove a device that is trying to pair with my computer? I don't know what this device is or where it came from. I just want it gone. Thanks

    Does anyone know how to permanently remove a device that is trying to pair with my computer? I don't know what this device is or where it came from. I just want it gone. This is the name of the device ArbAx6h2P6.

    If it's a bluetooth device:
    Bluetooth: How to delete a paired device:
    http://support.apple.com/kb/ta27116

  • Does anyone know of a simple "to do list" that syncs between an iPhone and a Mac?

    Does anyone know of a simple "to do list" that syncs between an iPhone and a Mac?

    Not sure exactly what you are going for...
    You're aware you need to use iTunes to sync apps between your iPhone and Mac unless you are running V10.7.2 and have iCloud setup.
    BTW...  apps that are optimized for an iPhone will not run on the Mac OS X and vice versai, two different operating systems.
    It really helps to tell us which Mac OS X you have installed when you post for help. Thanks!

  • Does anyone know if there is an Apple product that will record compute screens and audio?

    Does anyone know if there is an Apple product that will record screens and audio on the Mac Book?

    Apple's Keynote does this.
    See https://help.apple.com/keynote/mac/6.0/#/tan63d61519a

  • Hi I would like to know how I can view a video that has been send via mail. When I tap on the video it only gives me the option to send iit as mail again

    Hi  I would like to know how I can view a video that has been send to me via email. When I tap on the video icon it only gives me option to send as a mail or to open in drop box which I don't want to open in.

    Welcome to the Apple community.
    If you are doing this from your phone (as you mention) then you can use the new iPhoto Photo Journal feature to do this.
    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage.

  • Does anyone know the size of the visible websites that is shown in Safari, in pixels?

    Im trying to design a page for a website to be used on safari browser, does anyone know the exact area that is seen without scrolling? In pixels please. thanks

    Search for backup software on www.macupdate.com
    SynchronizePro is just one. There are a dozen at least. SuperDuper is a volume cloning program that is popular too.

  • Has anyone received advertising for software called "Mackeeper".  Does anyone know if this is supported by Mac, and has anyone used this software?

    Has anyone reveived advertising for software called "Mackeeper".  Does anyone know if this software is supported by Mac, and has anyone used this software?

    Thanks Kappy, I let it do the scan and when it stopped halfway through and demanded registration I stopped and deleted it.  I still have the icon in the menu bar at the top of the screen and don't know how to remove it.  If this is not possible I can live with it.  I am new to Mac and have trouble divorcing myself from my old PC habits!

  • HT4899 Does anyone know when iOS5 will be available? That would efficiently solve to problem of mass deletion of email on the iPhone 4S. Michael

    Does anyone know when iOS5 will be available for the iPhone? It seems to have an efficient method for deleting emails in bulk.

    I assume you mean iOS 6.  The only official statement has been that it is coming "later this fall".  In the meantime, if you want to mass delete email you can always go to the webmail site for your email account and delete them there.

  • Years ago I bought a usb connector for my ipod to transfer photos does anyone know if this is the same connector that is sold for the ipad?

    Does anyone know if the old ipod camera usb connector is the same as the one being sold for the ipad?

    It's different. The current one (http://store.apple.com/us/product/MC531ZM/A?fnode=MTc0MjU4NjE&mco=MjEwMDgzMDY) says that it's only compatible with the iPad, and I don't think that the iPod version that you've got will work.

  • Anyone know where I can get a program that'll tell me...

    ...my mouses screen position?
    For example:
    I click...it displays somehow to me, it's x,y coords on my screen...
    I really need this badly, and hopefully soon and quickly :)
    Either someone knowing where I can get a prog that does this, or maybe someone here has made one in the past they could let me use.
    Thanks

    Start by reading this section from the Swing tutorial on "Listeners Supported by Swing Components":
    http://java.sun.com/docs/books/tutorial/uiswing/events/eventsandcomponents.html

  • How Can I Schedule a Deski Report in Infoview that has a VBA Macro

    Hi experts,
    i've made a report that has a vba Macro. I published it in infoview. If I launch it manually (clicking on the refresh button) the macro works normaly. If I schedule it the macro doesn't work.
    What can I do?
    Is it possible to make a program that simulate the opening and click on the refresh button?
    Or i there is another solution?
    Here is my Macro:
    Private Sub Document_AfterRefresh()
    Dim filtervar As Variant
    Dim filterText, Filter As Long
    Dim DocName, NewName As String
    Dim Pathing, TodaysDate As String
    Dim folderName As String
    TodaysDate = Format(Date, "DDMMYYYY")
    Pathing = "
    Ktsdwh0\c$\OutputBO\"
    DocName = ThisDocument.Name
    filterText = "Dpre Cod Produttore"
    filtervar = ThisDocument.Evaluate("=<" & filterText & ">", boUniqueValues)
    For Each sepval In filtervar
        Filter = sepval
        For n = 1 To ThisDocument.Reports.Count
            Call ThisDocument.Reports(n).AddComplexFilter(filterText, "=<" & filterText & "> = " & Filter)
            ThisDocument.Reports(n).ForceCompute
        Next n
            MkDir (Pathing & Filter & "\")
            NewName = Pathing & Filter & "\" & Filter & "-" & TodaysDate & "-" & DocName   'for Prova_Prod.rep
    '        NewName = Pathing & Filter & "-" & TodaysDate & "-" & DocName   'for Prova_Prod.rep
            ThisDocument.ExportAsPDF (NewName)           'to Save as PDF
    Next
        For n = 1 To ThisDocument.Reports.Count
          Call ActiveReport.AddComplexFilter(filterText, "=<" & filterText & "> = <" & filterText & ">")
            ' To delete a Complex Filter, you set it equal to itself...
          ActiveReport.ForceCompute
        Next n
    End Sub
    Please Help!
    Best regards
    Camillo

    Hi Philippe,
    If you are using Windows 2003 with SP2 then it might be the issue as already logged for BOXIR2.
    You can test the issue by using only Windows 2003 without SP2.
    In case your operating system is only windows 2003 then following information and code might be helpful for you to resolve the issue.
    There are a number of things to check when setting up a macro to work through Infoview or scheduled. The first thing is that the macro needs to be triggered to run. This is done by putting a call to the macro in the Document_BeforeRefresh or the Document_AfterRefresh event handler.
    The report server and job server are designed to process one report at a time. Through a macro it is possible to open more than one report, and do various processing with those additional reports. Since the report and job servers are not designed to process more than one report, your macro should not open an additional report.
    The fact that only one report is processed at a time also affects the syntax you should use when referring to a document or report object. In the DeskI client you can use the ThisDocument object to refer to the report which is running the macro. You can also use the ActiveDocument object to refer to the report that is currently displayed. Most of the time these two objects will point to the same report. When the report server or job server process a report there would never be the possibility for a different report to be active, so the ActiveDocument object does not exist. This also applies to the ActiveReport object. Instead of using ActiveDocument your macro code should use the ThisDocument object. Instead of using the ActiveReport object you should use ThisDocument.Reports.Item(1) to refer to this first report tab in a report.
    These items are the most common issues that will cause a macro not to run through Infoview or when scheduled. The best way to debug a macro which is not working in either of those places is to include code which will log the macro's progress to a file. This makes it easy to determine exactly which line of code is causing issues so that it can potentially be corrected.
    #Region u201CWeb Form Designer Generated Code "
    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    End Sub
    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
    'CODEGEN: This method call is required by the Web Form Designer
    'Do not modify it using the code editor.
    InitializeComponent()
    End Sub
    #End Region
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim myInfoStore As InfoStore
    Dim myEnterpriseSession As EnterpriseSession
    myInfoStore = CType(Session("InfoStore"), InfoStore)
    myEnterpriseSession = CType(Session("EnterpriseSession"), EnterpriseSession)
    Dim DOCUMENT_NAME As String = "document_name"
    Dim query As String = "Select SI_ID, SI_NAME, SI_SUBJECT, " _
    & "SI_COMMENTS, SI_OWNER From CI_INFOOBJECTS Where SI_KIND = 'FullClient' " _
    & "AND SI_INSTANCE=0 AND SI_NAME='" + DOCUMENT_NAME + "'"
    Dim myInfoObjects As InfoObjects = myInfoStore.Query(query)
    Dim myInfoObject As InfoObject = myInfoObjects(1)
    Dim myDeskiDoc As FullClient = CType(myInfoObject, FullClient)
    Dim mySchedulingInfo As SchedulingInfo = myDeskiDoc.SchedulingInfo
    mySchedulingInfo.Type = CeScheduleType.ceScheduleTypeOnce
    mySchedulingInfo.RightNow = True
    Dim myFullClientFormatOptions As FullClientFormatOptions = myDeskiDoc.FullClientFormatOptions
    myFullClientFormatOptions.Format = BusinessObjects.Enterprise.Desktop.CeFullClientFormat.ceFullClientFormatFullClient
    myInfoStore.Schedule(myInfoObjects)
    End Sub
    End Class
    I hope this will help you.
    Regards,
    Sarbhjeet Kaur

Maybe you are looking for

  • PC Out to 5.1 Music?

    This maybe a simple question but I am trying to figure out how to connect from my PC to my Onyko 5. system to listen to music? What I am trying to listen to is the Pandora web site which I think is putting out a stereo signal to my PC. So will a PCI

  • Import file name -   want to go back to 2008-02-22 format  HELP!

    iphoto 06 imported photos into a date formatted file such as 2008-02-22. iphoto 08 makes this -February 22, 2008. I need help in just returning to the original date format as a default process. yes, I can do this manually but this requires additional

  • Whre the data is stored when the process terminates in the GP

    Hi Experts, I have a requirement to maintain data even when the process terminates in GP. I want to use those data for reporting purpose. There is 1 approach to achieve above requirement 1) Create a ztable in R/3 and store the information at each act

  • Guest anchor WLAN and DHCP

    hi, I am trying to setup a guest WLAN using a local controller and  a controller in my DMZ using the mobility-anchor configuration. Ideally I'd like to use an external DHCP server in my DMZ, but for now, I'd be happy getting the local DHCP server on

  • Oc4j authentication&authorization

    Hi, Please any body help me on how to create oc4j authentication and authorization to application in jdev10g. Thanks NR