Searching multiple values in Preview ("OR" search)

I have a list of numbers, copied to my keyboard, for example 20 43 80 101 168 288 296 392 547 834.
In my PDF files I have many items, numbered.
Since I have over 1000 items, and I need to review only 20 43 80 101 168 288 296 392 547 834, is there any way that I will paste it to the search and it will sort me those items? Searching each one in a separate way is wasting me a lot of time.
I tried using commas, plus signs, "or", but nothing seems to work.

Hi,
Do you want to use that in case statement or if statement.
If it is for if (as mentioned in repOne's post)
IF PRD_NR IN (12,14,15,25) THEN
ELSE
END IF;If you want to use it in a case statement, then
CASE WHEN PRD_NR IN (12,14,15,25) THEN 'A' ELSE 'B' END-Arun

Similar Messages

  • Return multiple values from a search help

    Dear All,
    I have a table control on screen with fields:
    doc.no
    doc.type
    doc.ver
    doc.part
    I've coded a search help for doc. no. which returns a single value i.e. doc. no from the search help.
    But my reqmt. is that when the user selects a particular doc.no from search help, it should also return doc. type/ver/part
    and the corresponding table control field should be populated.
    I mean i require multiple values to be returned and populated in my screen.
    Thanks in anticipation

    Hi ,
    Please check this thread where i had done some coding and the OP himself has found the solution
    automatic population of search help value to another field in module pool ... if its a table control you have get the selected line by  using fm DYNP_GET_STEPL. Then update the values to the respective fields using DYNP_VALUES_UPDATE.

  • Selecting multiple values from a search help

    Hi Experts
    Anyone knows if it is possible to select multiple values from a search help?
    Thanks
    Gaurav

    Hi,
    You cannot select mutiple values from search help as it is linked to inputfield and hence it will accept single value only. But at the same time, you may able to pass row of values to different inputfields.
    Refer http://help.sap.com/saphelp_dm40/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
    Thanks,
    Chandra

  • How to search for multiple values with Bex Prompts

    Hi,
    I would like to know  if it is possible to search for multiple values at the same time with Bex Prompts instead of searching one value at a time (please see the screen shot below). I searched the forum couldn't find any relevant answers. please let me know  how  to achieve?
    Thanks,
    Charvi.

    Hi Charvi,
    You can use wild card search to ensure you get multiple similar values listed as search output.use * for multiple characters and ? for single character.
    For Example, Ravi * would result you all employees with first name as Ravi
    You can use various search formats such as * Ravi * and * Ravi and Ra?? etc.
    Thanks
    Mallik

  • Search with multiple values in only one field

    Hello there,
    I have this query to get the results when the user make a search query:
    select * from (
    select
    "ID",
    "ID" ID_DISPLAY,
    "SHIFT_DATE",
    "SHIFT",
    "OFFENSE_ID",
    "DESCRIPTION",
    "ANALYST",
    "STATUS",
    "SUBSTATUS"
    from "#OWNER#"."IDSIEM_OFFENSES")
    where
    OFFENSE_ID IN(:P223_OFFENSES) AND
    instr(upper("DESCRIPTION"),upper(nvl(:P223_DESCRIPTION,"DESCRIPTION"))) > 0
    AND
    instr(upper("SHIFT"),upper(nvl(:P223_SHIFT,"SHIFT"))) > 0
    AND
    instr(upper("SUBSTATUS"),upper(nvl(:P223_SUBSTATUS,"SUBSTATUS"))) > 0
    AND
    instr(upper("ANALYST"),upper(nvl(:P223_ANALYST,"ANALYST"))) > 0
    AND
    instr(upper("SHIFT_DATE"),upper(nvl(:P223_SHIFTDATE,"SHIFT_DATE"))) > 0
    AND
    instr(upper("STATUS"),upper(nvl(:P223_STATUS,"STATUS"))) > 0
    ORDER BY OFFENSE_ID DESC
    The thing that I want to do is to put multiple values on the field P223_OFFENSES when I search. For example an offense is a number, so I would like to put in the search field 1111, 3333, 4444, 5555 and the report shows me those 4 offenses in the report. The search operation works only when I put only 1 offenses, but when I put more than 1 separated by comma, it shows me this error: report error:ORA-01722: invalid number. That's why because is a number and the comma character is not allowed, how can I achieve this? Thank you in advance.
    Regards, Bernardo

    Try this one please
    select *
      from (select "ID",
                   "ID" ID_DISPLAY,
                   "SHIFT_DATE",
                   "SHIFT",
                   "OFFENSE_ID",
                   "DESCRIPTION",
                   "ANALYST",
                   "STATUS",
                   "SUBSTATUS"
              from "#OWNER#"."IDSIEM_OFFENSES")
    where (instr(upper("DESCRIPTION"),
                  upper(nvl(:P223_DESCRIPTION, "DESCRIPTION"))) > 0)
       AND (instr(upper("SHIFT"), upper(nvl(:P223_SHIFT, "SHIFT"))) > 0)
       AND (instr(upper("SUBSTATUS"), upper(nvl(:P223_SUBSTATUS, "SUBSTATUS"))) > 0)
       AND (instr(upper("ANALYST"), upper(nvl(:P223_ANALYST, "ANALYST"))) > 0)
       AND (instr(upper("SHIFT_DATE"),
                  upper(nvl(:P223_SHIFTDATE, "SHIFT_DATE"))) > 0)
       AND (instr(upper("STATUS"), upper(nvl(:P223_STATUS, "STATUS"))) > 0)
       AND regexp_like(offense_id,'^('||
                       regexp_replace(regexp_replace(:P233_OFFENSES,'[[:space:]]'),
                                      '|')||')$','i')
    What I am trying to achieve is this
    *** I expect your user to put in the values separated by commas like 27823, 27815, 27834 ****
    1. from the input the user gives back via :P233_OFFENSES, remove SPACES.
    2. Replace all "," with "|"
    3. do a regexp_like search by boxing in the input values with a "^" and "$" so that it does not select values like 278157  which contains the value you searched for viz. 27815
    You can better understand this if you try this query out
    with q1 as
    ( select 1 as id, 27823 as offense_id from dual
      union
      select 2 as id,  27815 as offense_id from dual
      union
      select 3 as id  ,27834 as offense_id from dual
      union
      select 11 as id, 227823 as offense_id from dual
      union
      select 12 as id,  278157 as offense_id from dual
      union
      select 13 as id , 278347 as offense_id from dual
      union
      select 21 as id, 278233 as offense_id from dual
      union
      select 22 as id,  278156 as offense_id from dual
      union
      select 23 as id  ,627834 as offense_id from dual ),
      q2 as (
    select regexp_replace(regexp_replace('27823, 27815, 27834','[[:space:]]'), ',','|') as P233_OFFENSES from dual )
    select * from q1 q, q2 g
       where regexp_like(q.offense_id , '^('||P233_OFFENSES||')$','i') ;
    This should return only the first 3 rows

  • Search help multiple values selection problem

    Hello Friends,
    I am using FM f4_if_int_table_value_request FM to display multiple values on selection screen
    in AT-selection-screen on value request event.
    Multiple values are getting displayed perfectly .
    Then after that I am using DYNP_VALUES_UPDATE FM to return the values back to screen.
    But the problem is in the select-option field . It only picks the last value selected.
    I have a row:
    I EQ 'last value selected from F4 help screen''.
    Is there a way to update multiple rows in the select option selection screen field.
    Thanks.

    Hi Suhas,
    you may try the following:
    TABLES spfli.
    SELECT-OPTIONS: s_carrid FOR spfli-carrid.
    SELECTION-SCREEN: PUSHBUTTON /1(20) but1 USER-COMMAND carr.
    INITIALIZATION.
      but1 = 'Choose CARRID(s)'.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
        WHEN 'CARR'.
          TYPES: t_return_tab  TYPE ddshretval.
          TYPES: BEGIN OF ty_line,
            carrid   TYPE spfli-carrid,
            carrname TYPE scarr-carrname,
          END OF ty_line.
          DATA: it_list TYPE STANDARD TABLE OF ty_line,
                wa_return_tab TYPE t_return_tab,
                i_return_tab TYPE STANDARD TABLE OF t_return_tab,
                v_repid TYPE sy-repid,
                v_dynnr TYPE sy-dynnr.
          v_repid = sy-repid.
          v_dynnr = sy-dynnr.
          SELECT carrid carrname
          FROM scarr
          INTO TABLE it_list.
          IF sy-subrc = 0.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
              EXPORTING
                retfield        = 'CARRID'
                dynpprog        = v_repid
                dynpnr          = v_dynnr
    *        dynprofield     = 'S_CARRID-LOW'
                value_org       = 'S'
                multiple_choice = 'X'
              TABLES
                value_tab       = it_list
                return_tab      = i_return_tab
              EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
            IF sy-subrc = 0.
              s_carrid-sign = 'I'.
              s_carrid-option = 'EQ'.
              LOOP AT i_return_tab INTO wa_return_tab.
                s_carrid-low = wa_return_tab-fieldval.
                APPEND s_carrid.
              ENDLOOP.
              READ TABLE s_carrid INDEX 1.
            ENDIF.
          ENDIF.
      ENDCASE.
    What I have done is:
    - not linking the result of the F4 search to field S_CARRID-LOW
    - inserting this F4 search into event AT SELECTION SCREEN. This allows to see the select-options filled when its contents are actually populated.
    I hope this helps. Kind regards,
    Alvaro

  • Searching Web Apps with Data Source fields containing multiple values

    I have a Web App with a field allowing multiple values to be entered similar to the checkbox list. I need to restrict allowed values to a large, finite list of values currently stored in another Web App as the data source. I can't apply the Data Source field type as that only allows single value selection. I also need to be able to use the Web App Search form to search for items containing 1 OR more values in this field (the search functionality of a checklist field type). Here's what I've tried for field types:
    Text (string) or Text (multiline) field type - By saving a list of comma separated values (the same way that checkbox list outputs) to a text input or textarea, the search logic only searches for exact string (including commas) and doesn't parse the individual values.
    List (checkbox list) field type - This allows me to search multiple values using OR logic, but the web app will only store values that have been entered as options in the actual web app field setup. I tried using a checkbox list with minimal or empty options hoping that whatever values I sent over in a comma separated string value would still get stored, but because the values came from my Web App data source and not the list of options stored with the field, they were not saved.
    Has anyone found a way to do this?
    My other question is about how I might use a similar multi-value field as described above but return search results containing items with ALL selected values for that field (AND logic).
    Can anyone enlighten me to the inner workings of BC web app search logic?

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • BOL multiple values search

    Hi Experts!
    I have a very simple question. I have a list of partner guids, so how can I process the searching for appropriate business partners' entities via CL_CRM_BOL_DQUERY_SERVICE methods (or something else)? So I just need to make a search for multiple values for one search criterion at the same time (logical OR), how?
    Thank you!
    Edited by: Mr.Tourette on Jan 12, 2012 8:38 AM

    Hi,
    Seems like you are right Mr. Tourette.
    I've created a small FM to test performance of both methods of working and one BOL query containing all the guids outperforms the GET_ROOT.
    Afterwards, this seemed logic to me as well (what was i thinking?!). The BOL query will only use one SQL query, as the GET_ROOT will use multiple.
    I will insert the code of my test FM, so you can compare both methods and implement the query.
    DATA: lt_guids TYPE TABLE OF crmt_object_guid.
      DATA: lr_core TYPE REF TO cl_crm_bol_core.
      DATA: lr_col TYPE REF TO if_bol_bo_col.
      DATA: lr_entity TYPE REF TO cl_crm_bol_entity.
      DATA: lr_qs TYPE REF TO cl_crm_bol_dquery_service.
      DATA: lv_low TYPE string.
      DATA: lv_start TYPE timestamp.
      DATA: lv_end TYPE timestamp.
      DATA: lv_diff TYPE timestamp.
      FIELD-SYMBOLS: <guid> LIKE LINE OF lt_guids.
    *startup
      SELECT partner_guid UP TO 1000 ROWS FROM but000 INTO TABLE lt_guids WHERE name_last LIKE 'A%'.
      lr_core = cl_crm_bol_core=>get_instance( ).
      lr_core->start_up( iv_appl_name = 'ALL' ).
    *with get root entity:
      CREATE OBJECT lr_col TYPE cl_crm_bol_bo_col.
    if scenario = 1.
      GET TIME STAMP FIELD lv_start.
      LOOP AT lt_guids ASSIGNING <guid>.
        TRY.
            CALL METHOD lr_core->get_root_entity
              EXPORTING
                iv_object_name = 'BuilHeader'
                iv_object_guid = <guid>
              RECEIVING
                rv_result      = lr_entity.
            lr_col->add( lr_entity ).
          CATCH cx_crm_genil_model_error .
            RETURN.
        ENDTRY.
      ENDLOOP.
      GET TIME STAMP FIELD lv_end.
      rv_get_root = lv_end - lv_start.
    else.
    *search for all entities at once
      lr_qs = cl_crm_bol_dquery_service=>get_instance( iv_query_name = 'BuilHeaderAdvancedSearch' ).
      lr_col->clear( ).
      GET TIME STAMP FIELD lv_start.
      LOOP AT lt_guids ASSIGNING <guid>.
        lv_low = <guid>.
        lr_qs->add_selection_param( iv_attr_name = 'PARTNER_GUID'
        iv_sign = 'I'
        iv_option = 'EQ'
        iv_low = lv_low
      ENDLOOP.
      lr_col = lr_qs->get_query_result( ).
      GET TIME STAMP FIELD lv_end.
      rv_query = lv_end - lv_start.
    endif.

  • Multiple values in querytext REST SharePoint search

    I'm trying to put multiple values in querytext in my rest call to SP search.
    This is my url: "/_api/search/query?querytext='" + queryText + "'";
    queryText can contain several values, and I need to add OR between them.
    I want the queryText to be value1+OR+value2+OR+value3, the var queryText will be filled (data from another source) with 'value1+OR+value2+OR+value3' etc but if there is only one value return from the other source it should just
    be this.
    Code:
    var queryText;
    if (dataFromOtherSource.length = 1) {
    queryText = dataFromOtherSource[0].Title;
    else {
    for (var i = 0; i < dataFromOtherSource.length; i++) {
    queryText += dataFromOtherSource[i].Title + '+OR';
    The thing is here, even the last of dataFromOtherSource gets +OR after, so the rest returns an error.
    Is there any bette way to solve this?

    Now, using http://sp2013searchtool.codeplex.com/, I've found the syntax by chance.
    It should be like:
    ..query?querytext='path=path1+path=path2'source:http://stackoverflow.com/questions/17697540/sharepoint-rest-query-with-multiple-variable-for-a-query-tag

  • Search Help and Multiple Value Selection?

    Hello
    Is it possible to select more than one entry in a search help popup? If so, what do I have to do in the context attribute to be able to handle multiple return values from the search help popup?
    Regards,
      Mathias

    hi matthias.....
           you cannot select multiple lines in a search help. because... you are going to return to only one field... else what you can do is. have a small button which acts as a search help and pop up a window which has  a table in it. so you can select multiple values.
    ---regards,
       alex b justin

  • Need Search help to appear on Multiple Value Screen - Monitor SC

    Hello All,
    We have a requirement where we need to add a new field in Monitor Shopping Cart screen. This field is at the item level and should be able to take in multiple values.
    The problem we face is - On getting the multiple value screen, the search help for the field is dissappearing.
    We already have a standard field 'Purchase Group' for which this functionality is provided and the search help works for the multiple value screen.
    Please provide any pointers to how to fix the problem. Would the problem be on the ABAP side or the HTML side?
    Thank you.
    Johnson

    Hi,
    Jsut to see in the error is on abap side, sign on in SRM sapgui and run /n then bbp_mon_sc to enter the monitor SC application.
    Navigate till your Zdevelopment field and check it
    Kind regards,
    Yann

  • Searching a Table field with multiple values using a shuttle item

    Hello All,
    I have a shuttle item whhich of course users can select multiple values:
    eg: Orange:Pear:Banana
    Now I have a table where I want to get the Crate Numbers where these fruit items reside.
    The Fruit field has multiple stored values
    eg:
    Crate Fruits
    === ====
    12487 Apple:Orange:Pear:Banana
    17653 Orange:Pear:Grapes
    12874 Apple:Banana
    13655 Grapes:Watermelon:Pineapple
    87643 Pear:Banana
    53626 Strawberries:Apple
    I would like to see a final report similiar to this
    Crate Fruit
    === ===
    12487 Orange
    12487 Pear
    12487 Banana
    17653 Orange
    17653 Pear
    12874 Banana
    87643 Pear
    87643 Banana
    I thought maybe this needs to be done using collections but I am not familiar with this function, if their is another way I would appreciate it
    Hope u can help
    Frank

    Hi Frank,
    I find that in this sort of case, it is easier to create a link table containing the individual values rather than lumping them into one column.
    so the data is stored in the 'Crate, Fruit' format, rather then the 'Crate Fruits' format.
    It is a bit more work maintaining the link table when the values are amended and populating the shuttle, but it is a 'proper' relational table then.
    Regards
    Michael

  • Searching for a multiple-value returning popup.

    Is there a possibility to return multiple values from the popup LOV?
    That means for example, when I pick an employee on the popup, I want empno,empname, and sal to be returned, each in its textbox.
    Thank you, Ivica.

    Hi Ivica,
    What you want to do can be done but is a bit involved, combining JavaScript and PL/SQL.
    If you do not have a workaround send me an email and I will send you an example.
    I would put an example on the discussion group but there are so many HTML tags that it will probably not display properly.
    Regards Michael.

  • Query for multiple value search

    Hi
    I got struck when I try to construct SQL query to fetch multiple values in WHERE clause.
    SELECT columnName from someTable
    WHERE someValue = {here is the problem, I have multiple values here which I get from some array}
    Is there any way I can put multiple values to where clause?

    here we go
    this????
    SQL> var LIST varchar2(200)
    SQL> EXEC :LIST := '10,20';
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL>  SELECT items.EXTRACT('/l/text()').getStringVal() item
      2   FROM TABLE(XMLSEQUENCE(
      3   EXTRACT(XMLTYPE('<all><l>'||
      4   REPLACE(:LIST,',','</l><l>')||'</l></all>')
      5  ,'/all/l'))) items;
    ITEM
    10
    20
    Elapsed: 00:00:00.04
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT empno,
      2         ename
      3    FROM emp
      4   WHERE dno IN (SELECT items.EXTRACT ('/l/text()').getStringVal () item
      5                   FROM TABLE (XMLSEQUENCE (EXTRACT
      6*                   (XMLTYPE ('<all><l>' || REPLACE (:LIST, ',', '</l><l>') || '</l></all>'), '/all/l') ) )
    SQL> /
         EMPNO ENAME
          7934 MILLER
          7839 KING
          7782 CLARK
          7902 FORD
          7876 ADAMS
          7788 SCOTT
          7566 JONES
          7369 SMITH
    8 rows selected.

  • Search for multiple values separated by carriage return and not commas

    I have developed a report in BI Publisher that allows a user to enter multiple values that are separated by commas.
    Is there any way of entering multiple values that are separated by carriage return and not commas?
    Any help would be appreciated.
    Thanks

    Here below, without function :
    SQL> with tbl as
      2  (select 0 c1, 'j' c2 from dual union all
      3   select 1 c1, 'k' c2 from dual union all
      4   select 2 c1, 'l' c2 from dual union all
      5   select 3 c1, 'm' c2 from dual union all
      6   select 4 c1, 'n' c2 from dual )
      7  select *
      8  from   tbl
      9  where   c1 in (select substr(mystring,instr(mystring,',',1,rownum)+1,instr(mystring,',',1,rownum+1)-instr(mystring,',',1,rownum)-1)
    10                 from   (select ','||'&str'||',' mystring from dual)
    11                 connect by  level <= length(mystring)-length(replace(mystring,','))-1);
    Enter value for str: 1,2,3
    old  10:                from   (select ','||'&str'||',' mystring from dual)
    new  10:                from   (select ','||'1,2,3'||',' mystring from dual)
            C1 C
             1 k
             2 l
             3 m
    SQL> /
    Enter value for str: 0
    old  10:                from   (select ','||'&str'||',' mystring from dual)
    new  10:                from   (select ','||'0'||',' mystring from dual)
            C1 C
             0 j
    SQL> Nicolas.

Maybe you are looking for

  • Check printing with out bank details amount etc

    Hi Gurus, When I am running APP it is running perfectly when I am looking in own spool request I am getting the check details but in check column Bank Details XXXXXX Check Number XXXXXX  Void I am not able to get the check details

  • Lightroom (Vista):  Reversed/Mirrored Images in Preview!

    New user to Lightroom 1.2 here using a Vista PC. When I connected the camera (Canon G9 or Canon SD870is) to my PC via the USB, Lightroom was already opened (as recommended by the Kelby Lightroom book). At this point, a pop up dialog box opens up and

  • QuickLook causing system-wide freezes/hanging the Finder

    Hello -- Just picked up a brand new MacBook Pro 2.5 GHz, 2GB RAM, 250 MB HD. Running 10.5.2. QuickLook is causing my entire system to lock up and become completely unresponsive. Here's what is happening: Using the Finder, I open a folder containing i

  • Autodiscover does not return UserSettingName.GroupingInformation for Office 365 through EWS

    Hi, I am using the following code to access GroupingInformation using AutoDiscover in Office 365.  AutoDiscoverService.GetUserSettings(Mailbox, UserSettingName.ExternalEwsUrl, UserSettingName.GroupingInformation); This returns ExternalEwsUrl while Gr

  • Parameter selection

    Post Author: vandersee CA Forum: General Hello I'm stuck on what I'm sure should be a simple formula for selecting data using a parameter. I need to use one parameter to interrogate two fields.  In this case I have two fields (company name and surnam