BP_HEAD_Search results filter

Hi All,
We have a scenario to search for BP's  with multiple values of same search criteria. But BP search does an "OR"(join)  by default on search instead of an "AND". How can I change it to force an "AND". I know this solution was suggested in this forum sometime back but I am not able to find it. If you can provide me with the link that would be great. If you are thinking why a BP have multiple values for same search - this is marketing attribute field and BP's do have multiple values.
Thanks,
Kumar

Hi Sid,
You are right, I thought about this BADI we already enhanced it for BP authorization (like many people did in this forum). However my concern is that this BADI gets called like a million times before it gets back to the search result page and I am just not sure of the impact on performance. So I was thinking if anything else is possible at UI level. But may be I don't have many options here :(.  Also if I select the multiple values for the field in the BADI it comes up in debug mode
MARKETINATTR   I EQ  "VALUE1"
MARKETINATTR   I EQ  "VALUE2"
it is searching for both individually, so it is basically working as a select option, not sure how I can combine them both.
Also you mentioned that searching BP on marketing attr is not possible in standard, but I think it is possible and we are searching on it. I know we have enhanced BP search for some other purposes but not for marketing Attr. as I can clearly see a standard field for MARKETINATTR  in the  context of  BPMAINSEARCH IMPL class and when I use it in the search field it does pop up another view when I hit f4 on the possible values where I can select my attr set, attribute & value. I am on 7.0 by the way.
Thanks,
Kumar

Similar Messages

  • Search Results - Filter Results By: - Show More ...

    When I use the "Show More ..." option under one of the "Filter Results By:" groups, it works as expected. When I then select one of the items to filter by, it again works as expected. However, if I hit the back browser function or select the "Unfilter" option, the "Show more ..." expansion is restored. I suggest it return to the "Show Top 5..." presentation (as before the individual filter was selected).

    Hi Sid,
    You are right, I thought about this BADI we already enhanced it for BP authorization (like many people did in this forum). However my concern is that this BADI gets called like a million times before it gets back to the search result page and I am just not sure of the impact on performance. So I was thinking if anything else is possible at UI level. But may be I don't have many options here :(.  Also if I select the multiple values for the field in the BADI it comes up in debug mode
    MARKETINATTR   I EQ  "VALUE1"
    MARKETINATTR   I EQ  "VALUE2"
    it is searching for both individually, so it is basically working as a select option, not sure how I can combine them both.
    Also you mentioned that searching BP on marketing attr is not possible in standard, but I think it is possible and we are searching on it. I know we have enhanced BP search for some other purposes but not for marketing Attr. as I can clearly see a standard field for MARKETINATTR  in the  context of  BPMAINSEARCH IMPL class and when I use it in the search field it does pop up another view when I hit f4 on the possible values where I can select my attr set, attribute & value. I am on 7.0 by the way.
    Thanks,
    Kumar

  • Result filter behavior differerent in ATML vs HTML

    Hi,
    We recently updated our teststand to 2012.  I noticed the default report format was ATML, and left it like that, because it actually looks a little nicer and has a couple nice features over HTML, what we've used. 
    We then noticed that we were missing results from a step, the result text of that step being a hyperlink to addition failure data.  This step is executed in a sequence called by the main test case sequence, so the call heirarchy is
    Testcase sequence
         Subsequence
               Step <-result is masked in ATML, not HTML
    We have our report filter set to "exclude passed, done, skipped".  The way we have forced the Step to show up in the report, is hard code it's status to "ReportMe".  Step is only executed when Testcase failed, it's status is passed down via parameter.  It has worked for a long time this way, we've always had our reporting set to HTML.  In HTML it does not seem to matter that the status of the Subsequence is "Done", Step is reported if executed.  This is not the same behavior in ATML, step is not recorded at all.  It does execute though, I single stepped through the sequence, and made sure the ReportText contains the proper hyperlink string.
    So in experimenting trying to get the step to show up the same way in ATML, I hardcoded the Subsequence step whose results are normally "Done" to "ReportMe".  In this way I can get the Step results to show in ATML.  However this has the disadvantage of having a whole bunch of "Subsequence" calls with a status of "ReportMe" showing up , on the iterations where Step did not execute (test passed). 
    So I'm wondering why the difference in behavior?  HTML seems to allow results in it's report when status passed the filters underneath steps that do not, ATML does not.  ATML seems to prioritize the status filter of the callers, and masks all the substeps regardles of their status, where HTML does not.

    Hi,
    I've managed to successfully replicate this by editing the existing sequenced down to bare minimum.  With the attached sequences I get different results by merely changing the report format.  It should work if you unzip them  to the same directory.  Top.seq is the top level sequence.  I've also included a couple images of the two results.  I am still stumped by this behavior...
    Attachments:
    ATML Report debug.zip ‏46 KB
    reports.zip ‏83 KB

  • Query result filter another query

    Hello Guru
    I want to create a query A (List of PM_ORDER) filter by status.
    and another query B based on the list of query A.
    Query A became "filter" of query B.
    How handle this ?
    Message was edited by:
            laurent plichta

    Hi Laurent,
    You can attempt this using replacememtn path variable for the char you need to filter by. This is called Result Set Query. See here for details:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
    Hope this helps...

  • BP_HEAD_SEARCH RESULT SORT

    Hi,
    I have enhanced the component, BP_HEAD_SEARCH/ MAINSEARCHRESULT, 
    when the user searches the account,  the output of the search should be sorted by partner_type,  can anyone guide me
    how to get the result.
    thanks
    dhinesh

    Hi,
    in eh_onsearch
    result = qs->get_query_result( iv_adjust_params = lv_adjust_param ).
    After the above statement you  can sort the result by partner_type
         CALL METHOD result->sort
              EXPORTING
                iv_attr_name  = -
    > give on which attribute you want to sort
                iv_sort_order = if_bol_bo_col=>sort_descending.
    me->typed_context->searchresult->collection_wrapper->set_collection( result ).
    Regards,
    Gangadhar.S
    Edited by: gangadhar rao on Nov 26, 2010 7:37 AM

  • Use Database result filter to remove sequence calls

    I am using a DatabaseOptions callback in TestStand 4.0 to configure my Access test database. One of the things I'm attempting to do is modify the ResultFilterExpression to prevent the logging of SequenceCall type steps. I've used the following with no runtime problems but also no success:
    Step.Result.Status != "Done" && Step.Result.Status != "Skipped" && Step.StepType != "SequenceCall"
    I've also tried Step.StepType.Name != "SequenceCall" (ran but didn't help) and Logging.StepResult.TS.StepType != "SequenceCall"  (caused a runtime error).
    I can't turn off the Record Results in Run Options because that blocks the subsequence results.
    Anybody have a solution?
    Thanks,
    Steve S.

    Hi Steve,
    The purpose of the backslash is to escape the double quotation mark. You are assigning the filter expression to some sort of string which is characterized by double quotation marks. If you want to use the double quotation mark inside your expression string (in this case around the term SequenceCall) you have to escape it by using the backslash.
    Adam
    National Instruments
    Applications Engineer

  • Use Date Group (Month) in a Results Filter

    Hyperion IR v 9
    I want to filter my results set by the Month Date Group.  I want Displayed in the column filter Jan, Feb, Mar....and so on.  However, when I drag that field to the filter and ask to "show values" it shows my actual dates, not the three character month value.  This monthly filter is essential for what I'm doing.  I tried creating a computed column off the month date group and set the datatype to text. All that did was retain the original date value again.  Is there a way around this?
    How can I do this?

    I've said it before in these forums:  To the maximum extent possible, avoid the built-in functions in computed items in Results.
    I've contacted Oracle about your specific deficiency (Month(column_name) returning a date rather than a month).  They say it's working as designed -- something about sorting properly.
    Use JavaScript.  Here's a definition for your computed item:
    ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"][date_column.getMonth()]

  • Can you create a test online and get the results filter in the report tab?

    Im brand new to this software and i had a big concern about it.
    This is a great tool to create surveys and forms to fill out but i was wondering if you can create a quiz.
    By a quiz i mean that instead of sending me back the data the user click in the multiple choice is it
    possible for me to get instead if they got it right or wrong.
    I want to retun if they got it right a boolean variable (true or false)
         logic ex)
         if (answer == true)
             return "correct"
         else
              return" "incorrect"

    Hi;
    You can certainly create a Quiz using FormsCentral but there is nothing built in to "grade" the quiz and no integration with any grading systems like flubaroo.
    You might be able to use "Formulas" on the "View Response" tab to identify correct/incorrect answers. 
    This describes a bit about how to use Formulas (they can be done in a column as well as a row): http://acrobatusers.com/tutorials/how-to-work-with-formulas-in-formscentral
    This is a list of the forumulas available in FormsCentral: http://helpx.adobe.com/acrobat-com/formscentral/help/formula-syntax-built-in-functions.htm l
    Thanks,
    Josh

  • S_ALR_87011994 - Asset Balances, filter

    Hello,
    I have met problem with this report. Don't understand why in already opened report by setting filter according Cost center report is empty. Filter according other fields is working. I tried to find something in OAVI transaction, changed setting there but there was no result:
    Filter variant '0014'
    OAVI settings:
    table///////field name////description////////////////Offs/////Lng/////Total////Statistcs/////Page
    ANLAV////ANLHTXT///Asset main no. text////////////////////////////////////////////////////////x
    ANLAV////SERNR//////Serial number             
    ANLAV////KOSTL//////Cost Center             
    ANLAV////INVZU////////Inventory note             
    ANLAV////STORT///////Location             
    Regards,
    Denis

    Hi Denis,
    yes you are right, it is a pilot note.
    Symptom                                                              
    You try to make the filter settings according to the "Cost center"   
    criterion in the output list of a standard asset report using the SAP
    list viewer (ALV). However, the system does not display any assets for
    the selected cost center.                                                                               
    Reason and Prerequisites                                             
    You start a standard asset report (for example, RAGITT_ALV01) with a 
    sort version that contains the field ANLAV-KOSTL (cost center).                                                                             
    If you think, this is your symptom could you please ask sapsupport to release this note for you?
    regards Bernhard

  • Can't filter community query by custom property

    I'm trying to search for a community through the objectManager based on a custom property value (part of a LoginPEI that redirects the user on login to a personalized community).  The Query() call is failing with the following exception:
        ParseQueryFilter error on clause #0
        (0x80070057) Invalid property ID specified (0xc8)
    where 0xc8 is the ID of the property I'm filtering by.
    The same code works correctly if I filter by PT_PROPIDS.PT_PROPID_NAME instead, making me think it's something about either that property in particular, or just filtering managed objects by extended props in general.   I've confirmed that the property has been added to the community object through the Global Object Property tool.
    Code shown below (and, yes, I'm aware that the results if there are more than one matching object are undefined).  Any advice appreciated.
    Thanks,
    Pete
        private int lookupObjectBySingleProperty(IPTSession session, int classId, int propertyId, Object value) {
          IPTObjectManager objectManager = session.GetObjectManagers(classId);
          Object[][] filter = {
                                new Object[] { propertyId },
                                new Object[] { PT_FILTEROPS.PT_FILTEROP_EQ },
                                new Object[] { value }
          IPTQueryResult results = objectManager.Query(
            PT_PROPIDS.PT_PROPID_OBJECTID, //Property properties
            -1, // search all folders -- might want to restrict this later
            PT_PROPIDS.PT_PROPID_OBJECTID, //sort
            0, // start at first result
            -1, // return all results
            filter); // filter
          if (results.RowCount() == 0) {
            return -1;
          return results.ItemAsInt(0, PT_PROPIDS PT_PROPID_OBJECTID);

    can you try filter this way:
    var sURI = 'http://<host>:<port>/sap/opu/odata/sap/ZTESTODATA_SRV/';
      oModel = new sap.ui.model.odata.ODataModel(sURI, false),
      sap.ui.getCore().setModel(oModel);
      var sRead = "/pdfset(customer='" + oTF.getValue() + "')"  ;
    oModel.read( sRead, null, null, true, function(oData, oResponse){
      var pdfURL = oData.url;

  • Difference between drill down and filter using navigation attributes?

    hi all,
    can anyone let me know the difference between filter and drilldown options using navigational attributes. pls explain with examples for filter and drill down and how it varies.
    thanxs
    haritha

    Jst to add up with an example :
    Say you have a cost center variance analysis report with cost elements in the filter. ( not present in the default report result )
    Filter - You can right click on a particular cost center & say " Keep Filter Value " - it will result in only showing that cost center & you can wish to select other filter value doing " Select Filter Value ".
    Drill Down - If u wish to see the cost elements associated with cost centers you can right click on Cost Center & do " Drill Down To - Cost Element " or Drill Across.

  • Need to add a filter to imported SQL

    I used the File\Import-SQL menu option to import an existing query from another application. The query runs and creates a results table. I do not see an option in the Query\Request section to add a filter so that the user can select a range of values at runtime. I am using BI + Interactive Reporting Studio version 9.3.

    The short answer is, "It can't be done."
    Here's the JavaScript coder's answers.
    You can add a result filter and provide dashboard controls to enable the user to enter or select values, then use scripting to modify the filter and navigate to the results.
    You can provide dashboard controls to enable the user to enter or select values, then use scripting to modify the sql file, re-import it, then process the query.

  • Inconsistency between get-childitem -include and -exclude parameters

    Hi,
    Powershell 2.0
    Does anyone else consider this a minor design bug in the Get-ChildItem command?  
    # create dummy files
    "a","b","c" | % {$null | out-file "c:\temp\$_.txt"}
    # this "fails", returns nothing
    get-childitem c:\temp -include a*,b*
    # this "works", returns desired files
    get-childitem c:\temp\* -include a*,b*
    # this "works", excludes undesired files
    get-childitem c:\temp -exclude a*,b*
    # this "fails", excludes undesired files BUT RECURSES sub-directories
    get-childitem c:\temp\* -exclude a*,b*
    I'm writing a wrapper script around the GCI cmdlet, but the inconsistency between the two parameters is problematic.  My end user will surely just type a path for the path parameter, then wonder why -include returned nothing.  I can't unconditionally
    add an asterisk to the path parameter, since that messes up the exclude output.
    I'm just wondering why Microsoft didn't make the parameter interaction consistent???  
    # includes desired files in the specified path
    get-childitem -path c:\temp -include a*,b*
    # excludes undesired files in the specified path
    get-childitem -path c:\temp -exclude a*,b*
    # combine both options
    get-childitem -path c:\temp -include a*,b* -exclude *.log,*.tmp
    # same as above, the asterisk doesn't matter
    get-childitem -path c:\temp\* -include a*,b*
    get-childitem -path c:\temp\* -exclude a*,b*
    get-childitem -path c:\temp\* -include a*,b* -exclude *.log,*.tmp
    # same as above, but explicitly recurse if that's what you want
    get-childitem -path c:\temp\* -include a*,b* -recurse
    get-childitem -path c:\temp\* -exclude a*,b* -recurse
    get-childitem -path c:\temp\* -include a*,b* -exclude *.log,*tmp -recurse
    If I execute the "naked" get-childitem command, the asterisk doesn't matter...
    # same results
    get-childitem c:\temp
    get-chileitem c:\temp\*
    If this isn't considered a bug, can you explain why the inconsistency between the two parameters when combined with the -path parameter?
    Thanks,
    Scott

    The Get-ChildItem cmdlet syntax is horrific for advanced use. It's not a bug in the classic sense, so you shouldn't call it that. However, feel free to call it awful, ugly, disastrous, or any other deprecatory adjective you like - it really is
    nasty.
    Get-ChildItem's unusual behavior is rooted in one of the more 'intense' dialogues between developers and users in the beta period. Here's how I recall it working out; some details are a bit fuzzy for me at this point.
    Get-ChildItem's original design was as a tool for enumerating items in a namespace -
    similar to but not equivalent to dir and
    ls. The syntax and usage was going to conform to standard PowerShell (Monad at the time) guidelines.
    In a nutshell, what this means is that the Path parameter would have truly just meant Path - it would not have been usable as a combination path specification and result filter, which it is now. In other words
    (1) dir c:\temp
    means you wanted to return children of the container c:\temp
    (2) dir c:\temp\*
    means you wanted to return children of all containers inside
    c:\temp. With (2), you would never get c:\tmp\a.txt returned, since a.txt is not a container.
    There are reasons that this was a good idea. The parameter names and filtering behavior was consistent with the evolving PowerShell design standards, and best of all the tool would be straightforward to stub in for use by namespace
    providers consistently.
    However, this produced a lot of heated discussion. A rational, orthogonal tool would not allow the convenience we get with the dir command for doing things like this:
    (3) dir c:\tmp\a*.txt
    Possibly more important was the "crash" factor.  It's so instinctive for admins to do things like (3) that our fingers do the typing when we list directories, and the instant failure or worse, weird, dissonant output we would get with a more pure Path
    parameter is exactly like slamming into a brick wall.
    At this point, I get a little fuzzy about the details, but I believe the Get-ChildItem syntax was settled on as a compromise that wouldn't derail people expecting files when they do (3), but would still allow more complex use.  I think that this
    is done essentially by treating all files as though they are containers for themselves. This saves a lot of pain in basic use, but introduces other pain for advanced use.
    This may shed some light on why the tool is a bit twisted, but it doesn't do a lot to help with your particular wrapping problem. You'll almost certainly need to do some more complicated things in attempting to wrap up Get-ChildItem. Can you describe some
    details of what your intent is with the wrapper? What kind of searches by what kind of users, maybe? With those details, it's likely people can point out some specific approaches that can give more consistent results.

  • Is it possible to replace the iTunes (Mac) 10 band EQ with Apple's 31 band EQ?

    Apple supplies a very nice 31 band graphic equalizer as part of its Audio Units. This is the same Audio Unit as the 10 band graphic EQ. You choose to use 10 octave bands or 31 1/3 octave bands from within the module. So I guess it should be possible to use the 31 band EQ from inside iTunes Mac. Anybody figured out how?.
    Why do I need it?. My current stereo music palyback system is comprised by a MacBook Pro, a PreSonus FireBox D/A converter and a pair of Meridian M2 active speakers, which, good as they are, have an annoying, narrow 3 dB peak at 3 kHz. The nearest bands on the iTunes 10 band EQ fall exactly to each side of this peak (2 & 4 kHz), so to attenuate the 3 kHz peak I need to push down the 2 & 4 kHz bands a bit, but the resulting filter is far too broad and the outcome is never pleasing. I tried with Apple's AU's 31 Band Graphic and the Parametric EQs from within Fidelia and the result is quite good. But I don´t like Fidelia's interface and limited library management capabilities, so I prefer to use iTunes as the main music player.
    I tried running the iTunes audio through AU Lab using SoundFlower, and it does work when using the Mac's Buit-in output, but when I choose the FireBox output AU Lab stops receiving any audio. Switching back the AU Lab output to built-in audio resumes the audio input to the AU Lab document. I tried all sorts of combinations with no luck. Maybe this is because the FireBox is also an audio input interface?. Anybody knows how to fix this issue?.
    But all this fuss would be saved, and a lot of people around the world would have a much better life using iTunes in their Macs, if Apple allowed choosing to use the 31 band graphic EQ from within iTunes, which has the narrow 3.1 kHz band that I need to flatten out the frequency response of my speakers. Many other users mught also benefit from the finer control to correct loudspeaker or room acoustics defficiencies.
    Any ideas?. Would Apple please allow users to choose the rpeferred EQ: 10 or 31 band?. Thanks in advance!

    This is perfect: https://www.rogueamoeba.com/audiohijackpro/
    Even in trial mode, it allows you to insert every AU plugins you want, configuring each application with a specific audio chain you desire.
    I'm currently using it for music (Itunes or Spotify, 31 band Eq as you said), but for watching movies could be a good choice as well.
    I find it particularly useful when I watch movies at night. In order not to **** off the neighbors, I put a compressor at the beginning of the audio chain to reduce the dynamics, allowing me not to have crazy volume jumps.
    Best,
    Luca

  • List with user data from User Profile Service

    Hi there!
    I got SP intranet site up and running with more then 2000+ users on it.
    User Profile Services is getting users attributes from Active Directory.
    How can i make a list with all of those users and columns like Department, Manager, Office number, etc.. 
    After that i'm going to apply a filter by current user department.
    I would really appreciate some offer.
    Thanks!

    There is a sharepoint hidden list called User Information List , if you want to filter by current user department I recommend that you use ser search API and search People using SourceID 
    public static ResultTable SearchUsers(string query,int limit,string [] selectproperties)
    KeywordQuery kq = new KeywordQuery(SPContext.Current.Site);
    //select properties
    foreach (string property in selectproperties)
    kq.SelectProperties.Add(property);
    kq.SourceId = new Guid("B09A7990-05EA-4AF9-81EF-EDFAB16C4E31");
    kq.QueryText = query;
    kq.RowLimit = limit;
    ResultTableCollection results = new SearchExecutor().ExecuteQuery(kq);
    return results.Filter("TableType", KnownTableTypes.RelevantResults).FirstOrDefault<ResultTable>();
    you need to pass the query Department:CurrentUserDepartment and to get current user department 
    UserProfileManager manager = new UserProfileManager(SPServiceContext.GetContext(SPContext.Current.Site));
    UserProfile currentUser = manager.GetUserProfile(SPContext.Current.Web.CurrentUser.LoginName);
    string department=currentUser["Department"].toString();
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

Maybe you are looking for