Wildcards in Generic sort filter

Hi,
is it possible to use wildcards in the Generic sort filter in transactions? And if yes, which ones?
Problem is the following: I get a list of orders from SAP, and I want to select only the orders that are released, so I have to filter on Orderstatus 'REL', the rest of the status can differ according to different situations of the order, so I don't want them in my filter.

You can also perform this via XPath but it will not be quite as fast as the complied action code, here's the syntax:
JCoCall.ResponseXML{/BAPI/SomePath *Square Bracket* contains(StatusCode, "REL") *Square Bracket* /Item}
For more examples and ideas see:
[http://www.w3schools.com/Xpath/default.asp|http://www.w3schools.com/Xpath/default.asp]
Hope this helps,
Sam
PS: Sorry about the *Square Bracket* piece it interprets it as a link otherwise.

Similar Messages

  • Generic Sort filter in SAP MII 14.0.5

    Hello,
    I am trying to use Generic Sort filter in SAP MII 14.0.5 and all i need to achieve is sort the XML nodes based on values. i am trying to give input as below XML and sort based on Value. but i am getting error. Input to Generic sort filter is mentioned below. i don't see much documentation for this block. any inputs will be greatly appreciated.
    Error:-
    "[Generic_Sort_Filter_0] Unknown property: <?xml version="1.0" encoding="UTF-8"?><Address>
    <Product>MAC_Address</Product>
    <value>78FF5700E419</value>
    <value>78FF5700E418</value>
    <value>78FF5700E420</value>
    </Address>"
    Input to Generic Sort Filter:-
    Source:-
    <Address>
    <Product>MAC_Address</Product>
    <value>78FF5700E419</value>
    <value>78FF5700E418</value>
    <value>78FF5700E420</value>
    </Address>
    Filter Colum1:- Local.OutputXML{/Address/value}
    -Adarsha.K.S

    I could be wrong but I seem to recall that Action only supported the MII xml document structure: /Rowsets/Rowset/Row etc.

  • Maintenance View - Can you sort/Filter? How to create z transaction for it?

    Hi,
    I will be creating a maintenance view that will be used several times at the end of every month, eventually storing more than 500 entries.
    Is there anyway for the user to be able to sort/filter the maintenance view by field? This would be helpful, since they would like to see what similar records are stored before adding others.
    What are my options?
    Also, how do you create a transaction code to go straight to the maintenance view instead of having to go through SM30?
    Please help.
    Thanks,
    John

    Hey John,
    Is there anyway for the user to be able to sort/filter the maintenance view by field? This would be helpful, since they would like to see what similar records are stored before adding others.
    What are my options?.
    Option1:
    We canu2019t give the sort button (as we give in the nomal reports). But if you know like - based on what field user want to see the sorted output(lets say field MATNR)? then we can create an Event for the table maintainance generator using SE11 and write the code. In this code we sort the output that will be displayed in SM30 as per the requirement.
    Also, how do you create a transaction code to go straight to the maintenance view instead of having to go through SM30?.
    Go-to SE93 and choose the option u201Ctransaction with parametersu201D and give the t.code as SM30 and Check Skip initial screen.
    regards
    Shyam.

  • Sort Filter Table Matrix

    Hi,
    I like to use the Sort Filter Table function (right click on the Matrix, plus the SAP icon to be activated) in my Add-On, Matrix.
    Could you please provide me the code?
    Thank you,
    Rune

    Hi Szymon Lipnicki,
    I will open a new Forum ticket, because I cannot give you 10 points in this ticket anymore...
    I will post a new ticket and please drop your answer in the new ticket. The Subject is "Filtering User Matrix"
    Thank you very much, this is good news!!!
    Thank you,
    Rune

  • Why is EVERYTHING I put in the SORT & FILTER window of this forum resulting in "INVALID TAG" error windows?

    No matter what I put in, whether the version, my OS, or the problem, nothing I put in the sort & filter window will actually sort & filter the messages! I do not really wish to go through each one to find those relevant to my issue, computer, & version I'm running! Also, why is there no way to look up the questions I've asked, to see if there have been any responses?

    You can see the questions you have asked at https://support.mozilla.org/en-US/search?a=1&asked_by=StevenCee&sortby=1&w=2
    The sort and filter is used to filter be specific, pre-set tags. For example, all Mac 10.6 tags are, https://support.mozilla.org/en-US/questions?tagged=mac-os-x-106. You can't put whatever you want in that field, that's what the search is for.

  • How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table

    Hello,
    How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table ?
    Thanks

    hi,
    Check out this link for sorting in Table.
    Sorting option in WebDynPro ABAP UI Table
    steps to follow :
    ->Have the data in internal table (itab).
    ->Now use sort command for the particular column which ever you want to sort.
      e.g sort itab descending by <Column>.
    ->Now you can bind the internal table with the Context Node which is binded to Table.
    I hope it helps.
    Thanx.

  • Sort,filter Apexir_rollover issue in IR report

    Hi,
    I am using apex latest version, My Interactive report has several columns, to help user I have set overflow:auto;Sort,filter Apexir_rollover is working fine only for first few columns, for rest of the columns it disappears, I did refer to the several posts related to the same issue, I could not get the solution, can any one help me on this.
    Regards,
    Rajesh

    use this blog to
    Filter interactive report by clicking report cell
    Pars.

  • XML Generic Sort Action Crashes

    Hi All,
    I am using a XML Generic Sort Function to sort an MII XML Document. I am using this transaction on multiple pages and it only crashes on 1 page.
    I am getting the following error:
    com.sun.org.apache.xalan.internal.xsltc.TransletException: com.sun.org.apache.xalan.internal.xsltc.TransletException: com.sun.org.apache.xalan.internal.xsltc.TransletException: java.lang.NullPointerException
    This is the data I am passing into the action:
    <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2011-06-21T11:08:54" EndDate="2010-11-02T09:02:16" StartDate="2010-11-02T09:02:16" Version="12.1.7 Build(50)">
    <Rowset>
    <Columns>
    <Column Description="" MaxRange="1" MinRange="0" Name="ProductionOrder" SQLDataType="1" SourceColumn="ProductionOrder"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="MaterialNumber" SQLDataType="1" SourceColumn="MaterialNumber"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="SalesOrder" SQLDataType="1" SourceColumn="SalesOrder"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="SalesOrderItem" SQLDataType="1" SourceColumn="SalesOrderItem"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="Operation" SQLDataType="1" SourceColumn="Operation"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="SerialNumber" SQLDataType="1" SourceColumn="SerialNumber"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="ScheduleStartDate" SQLDataType="93" SourceColumn="ScheduleStartDate"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="ScheduleEndDate" SQLDataType="93" SourceColumn="ScheduleEndDate"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="MaterialGroup" SQLDataType="1" SourceColumn="MaterialGroup"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="Model" SQLDataType="1" SourceColumn="Model"/>
    <Column Description="" MaxRange="1" MinRange="0" Name="PowerType" SQLDataType="1" SourceColumn="PowerType"/>
    </Columns>
    <Row>
    <ProductionOrder>000002000565</ProductionOrder>
    <MaterialNumber>3000SRPX7AC2TVC-R</MaterialNumber>
    <SalesOrder>0000001063</SalesOrder>
    <SalesOrderItem>000010</SalesOrderItem>
    <Operation>1100</Operation>
    <SerialNumber>SDVN86013458</SerialNumber>
    <ScheduleStartDate>TimeUnavailable</ScheduleStartDate>
    <ScheduleEndDate>TimeUnavailable</ScheduleEndDate>
    <MaterialGroup>SRP 3000</MaterialGroup>
    <Model></Model>
    <PowerType></PowerType>
    </Row>
    </Rowset>
    </Rowsets>
    I am sorting on Operation as a number, ProductionOrder as a number, SalesOrder as a number and MaterialNumber as text.
    Any help would be appreciated.
    Jasper

    Thanks Jeremy for the help. I have submitted this to SAP as a bug and I am moving away from using this action.
    I don't quite understand your response so I will add it as a reference for others:
    "At first glance I thought maybe a data type issue was the source of the problem, since you were sorting as number type in the GenericSortFilter action, but the document columns were defined as strings.  I typically try to keep the data types as pure and consistent as possible, but that didn't seem to be the issue when I switched the sort type to text.
    The issue seems to be with the last two columns in the document (even though you are not using them in the sort action) - the source for the Row action is blank or null.  I tried used the Output from the Repeater instead of the Item node, but the same issue happened.  Deleting these columns from the document or changing the link assignments for the Model and PowerType columns to nullstring seems to do the trick.
    It would appear that you have discovered a bug, so if you could log a formal support ticket (MFG-MII component) and update the SDN thread that would be perfect.
    Best Regards,
    Jeremy Good"

  • Custom buttons in SORT FILTER  at  ALVs

    Hi all ,
    Please let me  know  how to  attach  custom   push buttons to the  Standard one  ( sort  , filter  in alvs  )
    Regards
    Aslam..

    Hi ,
    Please search SDN before posting.
    There are many threads on this topic.
    If you are using 'REUSE_ALV_GRID_DISPLAY'  then pass your PF status with desired functions to parameter i_callback_pf_status_set .
    In factory method
      CALL METHOD go_table->set_screen_status
        EXPORTING
          report        = gv_cprog
          pfstatus      = gc_gui_status
          set_functions = go_table->c_functions_all.
    Hope this helps you.
    Edited by: Harsh Bhalla on Jan 6, 2010 8:48 AM

  • Table Sort/Filter does not include in-memory data

    JDeveloper 11.1.1.2.0
    I've been developing a custom shuttle component and an issue came up regarding sort/filter property of the leading af table prior to inserts.
    Just a quick setup:
    Left table's row/s gets shuttle (inserted) to right table by creating a viewobjectrow and inserting that to it's designated viewobject, executequery after that is called.
    The issue i've encountered is that once i've added that row (in-memory), when i try to sort or filter that table that has the new rows, it seems that it only sorts the original rows that was queried from the database. The same goes for the filter, it only filters those that were originally queried.
    So far, it only joins the sorting/filtering whenever i force commit it before filter/sort.
    I've also tried creating my own criteria and adding that in my query binding, didn't help though.
    I've also tried using vo.setQueryMode and use scan view... i'm not sure if i'm using it right but it would give me either wrong filters or crash my app.

    Hi John,
    I read a similar article using the querymodes and i've been playing with it to see how it affects my rows.
    My problem arises whenever i up/down sort of the af table. I tried overriding executeQueryForCollection in the viewobjectimpl and setting
    this.setQueryMode(QUERY_MODE_SCAN_DATABASE_TABLES |
    QUERY_MODE_SCAN_ENTITY_ROWS);
    but by the time i hit the sort on the table, it ends up not sorting anything at all.
    I did use the sorting upon insert and that sorts those in memory, but by the time i use the sort on the table component the results would show the inmemory rows first, and database rows sorting in the bottom.

  • Missing checkbox in sort/filter menu of a SPGridView - SharePoint 2013

    Hi there,
    Here is my problem illustrated:
    [link=] http://postimg[dot]org/image/wcahatbl9/
    As shown above, I'd like to know how to display (and use!) checkboxes in any given filter menu of a custom SPGridView. I'm using the integrated sorting, paging and filtering features offered by SharePoint (ASP.NET). Displaying the checkboxes is the behavior
    of a standard SP List view, here in SharePoint 2013.
    I got no match on this issue after days of research. Thanks for reading.

    I see similar (but not exactly) if I enable multiple choice selection and try to filter on this field.

  • Advanced Sort, Filter (color, image size), DUPLICATES, face recognition, GUI customizeability

    Hi,
    here are some of my Lightroom Feature Requests (maybe later more):
    - Filter based on image size. Example: show me all photos with a resolution of 1600x1200 or less.
    - More complex filtering. Example: show me all photos from the Collection A that are tagged with keyword 'k1' and 'k2' but not with keyword 'k3' and that are in the date range d1-d2 and were made with camera model X.
    - Automatic portrait/human face recognition
    - Sort and filter by color! Example: show me all photos that are mostly green (blue, yellow, red, ...)
    - Intelligent recognition and optional deletion of duplicates. Calculate some kind of fingerprint for each photo (file size won't do I guess) so that it will be possible to recognize duplicates EVEN if they are of different image resolution or orientation (landscape, portrait), i.e. really based on CONTENT of the image!
    - Make the components in the side panels movable so that the user can arrange his/her own panel with the components he uses most and on that side of the screen where he wants it.
    Besides that: I LOVE Lightroom. A GREAT product!! Use it A LOT!
    Nice greetings from Germany,
    Stefan.

    I second that.
    "More complex filtering. Example: show me all photos from the Collection A that are tagged with keyword 'k1' and 'k2' but not with keyword 'k3' and that are in the date range d1-d2 and were made with camera model X."
    This should be relatively easy to do. Most other DAMs in the market, e.g. ACDSee, do have this feature. It doesn't really becomes a real database until you have this feature.
    "Intelligent recognition and optional deletion of duplicates."
    Another great feature in ACDSee. Somehow it finds duplicates, even if filenames and dates are different, shows the different photos and gives you an option on what to do.

  • Add sort, filter, export to excel and summation of tab column values in VC

    Hi,
    Can anyone help me out in providing the following functionalities in the Visual Composer tableUI element :
    1. Sort
    2. Filter
    3. Export to Excel
    4. Summation of Table Column Values
    5. Update entry in table
    6. Create entry in table
    Thanks in advance.
    Wish you great time.
    Best Regards
    Sid

    Hello Sid,
    1. Sort
    --> This is a standard functionally of tables in VC
    2. Filter
    --> Use the filter element of VC
    3. Export to Excel
    Go to: Sdn>Wiki>VC>Modeling>Export data to Excel/PDF
    4. Summation of Table Column Values
    --> This depends on your data source. If you use BI queries you have this normally automatically. If not you can use the sum element of VC.
    5. Update entry in table
    6. Create entry in table
    > see Sdn>Wiki>VC>Modeling-->Moving data between tables
    Kind regards
    Thomas

  • Sort/filter datablock based on procedure that return table type

    Hi All,
    I’ve got datablock based on procedure that return table type. In the form I have to provide ‘filter and sort records’ functionality. Previously, using tables/views based datablocks, I’ve done that by using:
    -- filter
    SET_BLOCK_PROPERTY (L_BLOCK_NAME, DEFAULT_WHERE, L_WHERE_CLAUSE);
    -- sort
    SET_BLOCK_PROPERTY(L_BLOCK_NAME ,ORDER_BY, L_ORDER_BY_CLAUSE);
    -- and then
    EXECUTE_QUERY;
    It doesn’t work with procedure that return table type. How I can do that?
    Bartek

    I agree with Andreas, from the sample you have given us, I don't see any reason why you could not merge these queries into a single UNION/UNION ALL query. Also, I would add your summation query to your main query to eliminate this extra step. The result would look something like:
    SELECT DISTINCT
         pih.id
         ,d.document_id
         ,pih.doc_serial_no
         ,pih.purch_invoice_date
         ,oh.company_name
         ,(SELECT NVL(SUM(amount),0)
              FROM "YOUR TABLE HERE" yth
              WHERE yth."YOUR COLUMN HERE" = pih.id) AS sum_amount
      FROM "YOUR TABLES HERE"
    WHERE "YOUR JOIN CONDITIONS HERE"
    UNION ALL
    SELECT DISTINCT
         sih.id
         ,d.document_ind
         ,sih.doc_serial_no
         ,sih.sales_invoice_date
         ,sih.company_name
         ,(SELECT NVL(SUM(amount),0)
              FROM "YOUR TABLE HERE" yth
              WHERE yth."YOUR COLUMN HERE" = sih.id) AS sum_amount
      FROM "YOUR TABLES HERE"
    WHERE "YOUR JOIN CONDITIONS HERE"
    [/code]
    Hope this helps.
    Craig...
    +If a response is helpful or correct, please mark it accordingly+
    Edited by: CraigB on Feb 23, 2010 1:39 PM
    It appears the CODE tags are not working as well as the URL tags.  :(                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • What's wildcards in generics for?

    To be honest, wildcards make me sick all the time. I've read through related chapters in 'core java' but still don't understand the purpose of using it.Pls take a look at the below example:
    package generics;
    import java.util.ArrayList;
    import java.util.List;
    public class CovariantArrays {
      public static void main(String[] args) {
          List<? extends Fruit> list=new ArrayList<Fruit>();
          list.add(new Apple()); //wrong
    class Fruit {}
    class Orange extends Fruit {}
    class Apple extends Fruit {}
    class Jonathan extends Apple {}
      We can't even add a Apple instance to list,why,why? '? extends Fruit' represents any subtype of Fruit, doesn't it?
    Edited by: fxbird on 2011-2-3 上午6:37
    Edited by: fxbird on 2011-2-3 上午6:39

    fxbird wrote:
    Thank Walter and other dudes:
    'core java 8th' says '? super xxx' means you can use supertype of a class,'The compiler doesn’t know the exact type of the setFirst method---void setFirst(? super Manager) but can call it with any object of type Manager, Employee, or Object, but not a subtype such as Executive.' ,on page 634. But my test prove it surely can be added subtype . Is the writer wrong?
    List<? super Fruit> sList=new ArrayList<Fruit>();
    sList.add(new Apple());and another question is , what's the difference between in '? extend or super type' and just 'List<Fruit>' way, I don't find the difference, if you use '? extends Fruit' as method parameter, the right type would be Fruit,Apple,Jonathan,Orange, but,so does List<Fruit>
    Edited by: fxbird on 2011-2-5 下午7:19Let's create a very simplified List that is a concrete class:
    public class MyList<E> {
      public void add(E e) {}
      public E get() { return null; }
    }And our Fruit classes:
    class Fruit {}
    class Apple extends Fruit {}
    class Banana extends Fruit {}Here we declare a List where E will be replaced by Fruit:
        MyList<Fruit> list1 = new MyList<Fruit>();This gives us, effectively:
      public void add(Fruit e) {}
      public Fruit get() { return null; }So this is just fine:
        Fruit f1 = new Fruit();
        list1.add(f1);
        f1 = list1.get();The add() works, because Fruit fits the (Fruit e) signature of add(), and get() works because the Fruit it promises to return fits our Fruit f1.
    Now, if we have this:
        MyList<? extends Fruit> list2 = ...; // for example, new MyList<Apple>();This gives us, effectively:
      public void add(? e) {}
      public ? get() { return null; }where all the we, or the compiler, know about ? is that it will be either Fruit or some subtype of Fruit.
    Now, we try this:
    list2.add(new Fruit());
    list2.add(new Banana());
    list2.add(new Apple());But all of those are errors. We don't know if we have List<Fruit>, List<Apple>, or List<Banana>. All the add() method knows is that it expects some particular class that is Fruit or a Subtype. It doesn't know if it's add(Fruit) or add(Apple) or add(Banana). And it can't just assume that it's add(Fruit) and allow any old Fruit in, because if it does happen to be add(Apple) (such as when we do = new MyList<Apple>()), then we could end up putting Bananas into a List of Apples. Or, more precisely, we could end up passing a Banana where an Apple is expected.
    On the other hand, this:
    Fruit f2 = list2.get();is just fine. Even though get() doesn't know if it's public Fruit get() or public Apple get() or public Banana get(), it doesn't matter, because no matter what, whatever it returns IS-A Fruit. So anything expecting a Fruit back is satisfied.
    One final note: While I've used a mini mock-up collection for this example, the rules have nothing to do with collections or add methods or get methods. They have to do with how type safety works in the Java language in any context. In this example, what matters is that we cannot pass any old Fruit as a parameter where some specific class that might be a subclass of Fruit is expected, but we can accept any Fruit as a method return value, even if that method is actually effectively declared to return Apple.
    public void foo(Apple a) {}
    public Apple bar() {return null;}
    Fruit f = ...;
    foo(f); // NOT ok
    f = bar(); // ok

Maybe you are looking for