Sorting event on view cluster possible?

Hi,
Can anyone please tell me if it is possible to create a event for view cluster for sorting on a non key field of one of the underlying maintenence views.
Thanks..

Some events are triggered when exportingthe changed data,
- 10 After creating the change request header entries (E071)
- 11 After changing a key entry in the change request (E071K)
- 12 After changing the key entries in the change request (E071K)
which are suitable to add a XPRA entry in the request
But many events (AFAIK those without dialog) are triggered during import (and we can check if the program is called via transaction or import via flag VIM_IMPORT_MODE_ACTIVE, eg. do not execute a form which fill hidden fields like created by and created at.)
Regards,
Raymond

Similar Messages

  • Events in View cluster

    Hi .. i have a scenario where i created a view cluster with two tables/views.. so when i display data .. i dont want to see all the entries of my table.. i want to restrict data according to some conditions? how to do that? i have checked there are some events..but how to use it..i checked, but didnt get any help..i dont want to put events in my individual views, only in view cluster events? any ideas..

    Hi
    I don't think it can do it by event of the view cluster, but probably it cna't do it by event of the view of the single table.
    If you want to load all data in according to certain condition, you should create a table view and insert your condition there and so create the claster view based on this table view
    Max

  • Sorting of a field in view cluster

    Hi All,
    Is there any way to sort a field in main screen of view cluster.
    SE54->Edit view cluster->Test.  I want to sort a field in main screen, after pressing test.
    Is there any event for this?
    I know the events which get called after pressing test, but tables TOTAL and EXTRACT are blank in these events so I can't sort them.
    Pointers will be highly appreciated.
    Regards,
    Seema

    hi
    In your method there would be a parameter ie ON_TOGGLE where you can write the name of your event .
    Whenever your checkbox will be clicked that event wil be called.
    You can write your code in that event itself.
    Regards
    Kuldeep

  • Event in maintainance view not working in View cluster

    Hello All,
                I have created a view for a student table, which contains three fields. The third field should be automatically incremented, based on the entries in the first two fields. The functionality is working fine in the view created, as i have used the event01 in
    table maintainance generator->environment->events; with the codes for incrementing the third field automatically.
               After getting this functionality working, i have created a view cluster with the particular view also.
    The problem now is that, when i try to enter values to the table via view in the view cluster, the same event is not functioning for auto-incrementing. While saving the entries, the third field is remaining blank.
    The internal table 'total' which i am using in the view is displaying the table entries in the view created, but the same table is showing null value in the view cluster.
    Can anybody guide me in this?
    Thanks in Advance,
    Shino.

    Hi Shino,
    Let`s say you have a table ZTEST_TABLE1. You create a maintenance view on it ZTEST_VIEW1. You generate the maintenance dialog for the view with Function Group ZTEST_FUGR1. After this you will be able to maintain the table from SM30 using view ZTEST_VIEW1.
    You create view cluster ZTEST_CLUSTER1 and include your view ZTEST_VIEW1 in it. After this you can maintain the table from the view cluster as well. You then create a subroutine pool for the event routines like ZTEST_PROG1. In this program you include the program I mentioned: INCLUDE lsvcmcod.
    Now you create the event 04 - Before saving the data in the database. You specify the routine name eg BEFORE_SAVE and assign the subroutine pool as the main program. There you create the FORM. Example code below.
    I suggest to check the SAP Library, there you`ll find more details as well.
    http://help.sap.com/saphelp_nw04/helpdata/en/62/c302c7de8e11d1a5960000e82deaaa/frameset.htm
    FORM before_save.
      DATA: viewname TYPE vclstruc-object,
            error_flag TYPE vcl_flag_type,
            header TYPE vimdesc,
            wa_total(1000) TYPE c,
            wa_extract(1000) TYPE c.
      FIELD-SYMBOLS: <view>    TYPE ANY,
                     <view_x>  TYPE x,
                     <ent_x>   TYPE x,
                     <viewkey> TYPE x.
    " assign data of current view to global field symbols (<vcl_total>, <vcl_extract> etc.)
      viewname = 'ZTEST_VIEW1'.
      PERFORM vcl_set_table_access_for_obj USING    viewname
                                           CHANGING error_flag.
    " get view name (if you`ll use several views to make it dynamic)
      READ TABLE <vcl_header> INTO header INDEX 1.
    " assign field symbols
      ASSIGN: wa_total                TO <view>    CASTING TYPE (header-maintview),
              <view>                  TO <view_x>  CASTING,
              <view_x>(header-keylen) TO <viewkey>.
    " <vcl_extract> is not sorted
      SORT <vcl_extract>.
      LOOP AT <vcl_total> INTO wa_total.
    " your checks and modifications on the record using <fs_view>
    "    IF <fs_view>-fieldxy...
    " apply the changes to the EXTRACT table as well
        READ TABLE <vcl_extract> INTO wa_extract WITH KEY <viewkey> BINARY SEARCH.
        IF sy-subrc = 0.
    "     apply your changes to <vcl_extract>
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "before_save

  • How to create EVENTS for a View Cluster.

    Hi Tech Gurus,
    I have created a view cluster on 5 tables. I need to do a validation and this can be done by using events. But i am unable to create a EVENT for the View Cluster. Could anyone please tell me how to create events for a View Cluster.
    Thanks in advance for your esteemed replies.
    Regards,
    Raghavendra Goutham P.

    Hello Pasapula
    When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
    Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
    For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
    report zus_0120_u1.
    * Common Data und access routines for user exits in VC maintenance
    include LSVCMCOD.
    include  zus_0120_f1. "FORM routines for VC events
    Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
    Regards
      Uwe

  • Query on view cluster event trigger during transport

    Hi SAP Gurus,
    I would just like to ask if the subroutines set in events for view clusters would also get triggered upon transport.
    We had created a function module which is meant to regenerate a dynamic program when changes are made to a particular table.  We're planning to call this function module in a subroutine that is called during an event in the view cluster (set to "before saving the data to database").  However, we would also like for this dynamic program to be regenerated automatically once the table changes are transported to the test/prod systems.  Thus, I wondered if setting up the event is sufficient, and that it would also be triggered automatically prior to saving the changes to the database during transport, or if we still need to set up XPRA for this.
    Thanks!

    Some events are triggered when exportingthe changed data,
    - 10 After creating the change request header entries (E071)
    - 11 After changing a key entry in the change request (E071K)
    - 12 After changing the key entries in the change request (E071K)
    which are suitable to add a XPRA entry in the request
    But many events (AFAIK those without dialog) are triggered during import (and we can check if the program is called via transaction or import via flag VIM_IMPORT_MODE_ACTIVE, eg. do not execute a form which fill hidden fields like created by and created at.)
    Regards,
    Raymond

  • How to customize SORT event in the View Form ?

    I'm using Jdevelper 9.0.3 with BC4J+UIXML, and I need customize the View Object Query, including "bind variables" as:
    SELECT A.COD_CLIENTE,
    A.NUM_TESTE,
    A.NOM_TESTE
    FROM TESTE A
    WHERE A.COD_CLIENTE = :1
    I create the java class for prepare assign values to View Object as:
    //Nome da Package da Tela Detail
    package br.com.siadem.siaed.ed00010;
    // Importa as Bibliotecas necessárias
    import oracle.jbo.ViewObject;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.event.EventResult;
    import oracle.cabo.data.jbo.servlet.bind.*;
    import oracle.cabo.ui.data.BoundValue;
    import oracle.cabo.ui.data.DataBoundValue;
    import br.com.siadem.siaed.util.*;
    public class FunPreQuery
    public static EventResult FunConfiguraQuery(BajaContext context, Page page, PageEvent event) throws Throwable
    TrataDadosSessao varDadosSessao = new TrataDadosSessao();
    // Configura os Parametros
    String valor1 = varDadosSessao.getCodCliente();
    // Cria o objeto ViewObject para a difinição dos parametro na Query
    ViewObject view = ServletBindingUtils.getViewObject(context);
    // Configura os parametros na query do ViewObject
    view.setWhereClauseParam(0,valor1);
    // Executa a Query
    view.executeQuery();
    // Retorna o Resultado para a Página
    return new EventResult(page);
    This works very well customizing the "Search" event in the View form as:
    <event name="search" >
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="TesteView1AppModule" >
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="TesteView1" >
    <!-- search for the view criteria -->
    <bc4j:findByExample>
    <bc4j:exampleRow ignoreCase="true" >
    <bc4j:exampleAttribute>
    <bc4j:nameBinding><bc4j:parameter name="attrName" /></bc4j:nameBinding>
    <bc4j:valueBinding><bc4j:parameter name="attrValue" /></bc4j:valueBinding>
    </bc4j:exampleAttribute>
    </bc4j:exampleRow>
    </bc4j:findByExample>
    <method class="br.com.siadem.siaed.ed00010.FunPreQuery"
    method="FunConfiguraQuery"/>
    <!--<bc4j:executeQuery/>-->
    <!-- store the current search criteria as page properties -->
    <bc4j:setPageProperty name="attrName" >
    <bc4j:parameter name="attrName" />
    </bc4j:setPageProperty>
    <bc4j:setPageProperty name="attrValue" >
    <bc4j:parameter name="attrValue" />
    </bc4j:setPageProperty>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    I'm use the sortable columns with <bc4j:sortablecolumn> as:
    <bc4j:column attrName="NomTeste">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>
    But, the "Sort" event does not enable a manual control for call Java Class. When user click in any sortable column, occur the follow error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT A.COD_CLIENTE, A.NUM_TESTE, A.NOM_TESTE FROM TESTE A WHERE a.cod_cliente = :1 ORDER BY A.NUM_TESTE ASC
    Anybody know to implement this functionality ?

    Ok, the solution:
    Sort BC4J table with reduced view objects

  • Hiding a Maintenance View in a View Cluster

    Hello ABAP Experts,
    We have a scenario where we would like to hide a maintenance view to an existing view cluster based on condition.
    Is it possible via events of a view cluster, where i can hide the view at runtime based on some condition before the view cluster is displayed ?
    Is there any way as well, which help achieve this hiding of views ?
    For example in the below View Cluster, i would like to hide "Define object links" view from the main view cluster "Define document Types".
    Thanks,
    Naresh

    Hi Naresh,
    Yes, you can do it in events of a view cluster, define a subroutine and bounding it to event(02) in SE54,
    when you define the subroutine, it will ask you creat a mian program, in this main program, you need  'INCLUDE lsvcmcod'.
    Then you can access some standard data, http://help.sap.com/saphelp_nw04/helpdata/en/62/c302c7de8e11d1a5960000e82deaaa/frameset.htm
    INCLUDE lsvcmcod.
    FORM yourSubroutineName.
    DATA: viewname TYPE vclstruc-object,
            error_flag TYPE vcl_flag_type,
      viewname = 'ZTEST_VIEW1'.
    *  PERFORM vcl_set_table_access_for_obj USING    viewname
    *                                       CHANGING error_flag.
      ----> according your condition to change the view.
    IF xxx = yyy.
      DELETE vcl_struc_tab WHERE object = viewname.
    ENDIF.
    ENDFORM.
    regards,
    Archer

  • IPhoto fails to sort events by title

    Hi everyone, and thank you in advance for any support you may be able to provide.
    I have been plagued by this issue for some time and it is truly infuriating. If I have not provided enough information please say so and I would be happy to add more info.
    The issue is this: events do not sort by title.
    Let me go more in depth:
    It is possible for me to sort them by title, using the menu options in the status bar. (View>Sort Events>By Title)
    But, if I combine events, delete or create new events, all havoc breaks loose. The events are then in no discernable order, even while it says they are sorted by title in the status bar.
    I am running the latest version of Mac OSX, Mountain Lion 10.8.2, and the latest version of iPhoto, 9.4.2. I have a 27" Late 2010 iMac with Intel i7 and 12 GB of RAM.
    Please, please, please help me?

    Have you tried going back to the Sort menu and changing Ascending to Descending or the orther way around and back again to see if that will jump start the sort by title?
    If that doesn't help try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • Error while saving a Entry through view cluster ( getting TK 319 message)

    We are  facing an issue while saving the entry in one of the view at the lowest level of the three level View cluster.
    Please find the Details of view Cluster below.
    1)First level- Key  => MANDT( CLNT, 3) + RULE_ID( CHAR , 20) .
    2)Second level-Key =>MANDT( CLNT, 3) + RULE_ID( CHAR , 20) + LOCATION_TYPE (CHAR , 20) + START_DATE( DATS ,8).
    3)Third level (Lowest level  )-key => MANDT( CLNT, 3) + RULE_ID( CHAR , 20) + LOCATION_TYPE (CHAR , 20) + MEAL_RULE_TYPE( INT1 ,3) +  START_DATE( DATS ,8) .
    we are not able to save the Entry at the Third level  and is getting the  Message "Fill table key for table ITC_CALCRULE_ML only up to position 044 only " .
    As per our understanding problem is that " the transport interface is called with a incorrect object key for table ITC_CALCRULE_ML  "  . we thaught of either reduce the width of the key or if we want
    to define also  the date, by  changing the order of MEAL_RULE_TYPE and START_DATE .Also we could use a CHAR1 instead of the INT1 for the MEAL_RULE_TYPE.
    After analyzing  this  we came to a conclusion that we have two solutions for solving it.
    1) Database Design Change : Which is generally not preferable.
    2) Apply the Event  12  ( After changing the key entries for the change task (E071K) ) on the view and in its code we reduce the Object key width for the Transport Organizer  and
        would be able to save the entry in the database  and would be able to transport the entries to our Q-system.

    Hi. Were you able to fix the error?

  • How to create wizard for a custom mainenance view/view cluster

    Hi Experts,
    I have created 5 custom maintenance view and have maintained all the views sequencially and have made the first mainenance view as the start view & header entry and all other views are child or subview of the header view in a custom view cluster. But I want a wizard to help the user / end user successfully enter all the required values for all child views, it will help  the user to navigate  from the start view to all the child views where the fields of the wizard will be associated to the child maintenance views.
    Please suggest how to create wizard for view cluster.
    I'll give max reward point for the helpful answer.
    Thanks in advance
    koustav

    Hello Pasapula
    When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
    Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
    For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
    report zus_0120_u1.
    * Common Data und access routines for user exits in VC maintenance
    include LSVCMCOD.
    include  zus_0120_f1. "FORM routines for VC events
    Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
    Regards
      Uwe

  • IPhoto 09 not sorting events by date

    iPhoto events were sorted by date, with most recent at the top. iPhoto has started putting new events at the bottom of the stack so I have to scroll down to find them. What can I do to get the sort order restored?

    in event view view menu ==> sort events
    LN

  • Sorting in Discoverer *Viewer* ?

    The on-line help for Discoverer Viewer says that it is possible to sort values in a column by clicking on a triangle, and also mentions a "sort link."
    I don't see such things. Where is that?

    We have also encountered the same question. I have been able to find the sort link on a tabular layout, but not on a cross tab layout.
    The question remains...How does one sort in Discoverer Viewer.

  • Display Description from Text table on View Cluster

    Hello All,
    I have the below requirement for creating a view cluster to maintain customizing data -
    V_TAB_1 has been created for table TAB_1. TAB_1has a text table associated with it.
    V_TAB_2 has been created for table TAB_2. TAB_2 has a field which has foreign key relationship with the key field of table TAB_1.
    I have created view cluster using above views V_TAB_1 and V_TAB_2. Now while maintain the data using view cluster, description is no visible on the UI.
    First Level of Data: This maintains the data in table TAB_1 and its text table.
    Now, If I select any record and click on the sub node of the view cluster - Following appears
    Second Level of Data -
    If we look at the data in the second screen shot, description 'Nitesh' is not coming against the reason code '1'. this is highlighted in the second screen shot
    I have tried to populated with Events as well. But could not succeed. Any help would be highly appreciated.
    Regards,
    Nitesh

    Hi
    I try to see the data of CSKS by SE16 and I can't see the text field (my release is 6.00) but I can see that field by SE16N, so just the situation like yours.
    Probably the fields of this table are too much, because SE16 can display the text field of other tables having a text table
    Max

  • How to access sort direction and filter value of columns?  Can I catch the 'filtered' or 'sorted' event?

    We have some columns being added to a table.  We have set the sortProperty and the filterProperty on each of our columns.
    This allows us to both filter and sort.
    We want to be able to access the columns filter value and sort value after the fact.  Can we access the table and then the columns and then a columns properties to find these two items?  How can I access the sort direction and filter value of columns?
    We would also like to store the filter value and the sort direction, and re-apply them to the grid if they have been set in the past.  How can we dynamically set the filter value and sort direction of a column?
    Can I catch or view the 'filtered' or 'sorted' event?  We would like to look at the event that occurs when someone sorts or filters a column.  Where can I see this event or where can i tie into it, without overwriting the base function?

    Hey everyone,
    Just wanted to share how I implemented this:
    Attach a sort event handler to table - statusReportTable.attachSort(SortEventHandler);
    In this event handler, grab the sort order and sorted column name then set cookies with this info
    function SortEventHandler(eventData)
        var sortOrder = eventData.mParameters.sortOrder;
        var columnName = eventData.mParameters.column.mProperties.sortProperty;
        SetCookie(sortDirectionCookieName, sortOrder, tenYears);
        SetCookie(sortedColumnCookieName, columnName, tenYears);
    Added sortProperty and filterProperty to each column definition:
    sortProperty: "ColName", filterProperty: "ColName",
    When i fill the grid with data, i check my cookies to see if a value exists, and if so we apply this sort:
    function FindAndSortColumnByName(columnName, sortDirection (true or false))
        var columns = sap.ui.getCore().byId('statusReportTable').getColumns();
        var columnCount = columns.length;
        for(var i = 0; i < columnCount; i ++)
            if(columns[i].mProperties.sortProperty == columnName)
                columns[i].sort(sortDirection);

Maybe you are looking for

  • Error in RFC Receiver Adapter: functiontemplate from repository

    Hi Experts, i am working on JDBC -> RFC Scenario, JDBC Sender Adapter is working fine, but RFC Receiver Adapter is throwing this error message... can some one help me to solve this issue... Message processing failed. Cause: com.sap.aii.af.ra.ms.api.R

  • DPI and "Zoom" Setting Reset In Microsoft Office

    I recently purchased a new laptop that comes with a 15.6" screen and 1920 x 1080 resolution. Native, it makes it very hard to read text. I was flipping back and forth between a variety of different DPI / zoom settings to find one that was a good fit.

  • Videos from istore on videos app

    Argh-How do I delete them? when i press and hold and the little X's appear, they only appear on a few. Then when i delete the ones with the X's, the pic is still there. When I try to move them to icloud the round circle just appears indefinitely. I'm

  • Why Using Web Service

    I'm currently constructing a helpdesk system using JSP and Servlet I'd read some articles about Web Services, (WSDL, JAXP, JAX-RPC, SAAJ and so on) Since I'm still a newbie using Java Technology and web development, Can anybody please tell me why sho

  • SharePoint Servers join, disjoin and re-join in Domain?

    Hi, I have a query that what will happen If any SharePoint servers disjoin from domain and again re-join to the same domain. Will this affect any SharePoint service? Or any will be down?