Search in mdm

Hi,
I want to perform search using field X where i need to exclude values 100,200,300.I do something like this :
FieldSearchDimension fieldSearchDimension =
               new FieldSearchDimension(
                    repository.getSchema()
                         .getField(Table,X)
                         .getId());
TextSearchConstraint textSearchConstraint2 =
          new TextSearchConstraint("100", TextSearchConstraint.EXCLUDES);
search.addSearchItem(fieldSearchDimension2, textSearchConstraint2);
This returns me records with values which are not 100 for X.How about other values?How do i add them to the search I cannot create too many objects for the same field.Please let me know.
Thanks,
Rekha

The memory exception comes if you do not close the objects and is picked up by your java garbage collector. Thus increasing the heap size.
Just adding to Jitesh's code
//you may want to see how many values you want to exclude, if there are too many values to exclude,
// possibility is you want to revisit your design. nevertheless.
String xvalues = {100,200,300,400}; //create the array of all the values to be excluded
FieldSearchDimension fieldSearchDimension =
new FieldSearchDimension(repository.getSchema().getField(Table,X).getId());
for(int i=0;i<xvalues.length;i++)
//constraint doesnt take the array so has to be for each element.
TextSearchConstraint textSearchConstraint2 =
new TextSearchConstraint(xvalues<i>, TextSearchConstraint.EXCLUDES);
search.addSearchItem(fieldSearchDimension2, textSearchConstraint2);
//add this line. this will set the object to null and hence will not be required to picked up by your garbage collector.
textSearchConstraint2 = null ;
or modifying above code a bit
//you may want to see how many values you want to exclude, if there are too many values to exclude,
// possibility is you want to revisit your design. nevertheless.
String xvalues = {100,200,300,400}; //create the array of all the values to be excluded
FieldSearchDimension fieldSearchDimension =
new FieldSearchDimension(repository.getSchema().getField(Table,X).getId());
TextSearchConstraint textSearchConstraint2 = null ;
for(int i=0;i<xvalues.length;i++)
textSearchConstraint2  = new TextSearchConstraint(xvalues<i>, TextSearchConstraint.EXCLUDES);
search.addSearchItem(fieldSearchDimension2, textSearchConstraint2);
textSearchConstraint2 = null ;
After returning the search constraint or after end of try catch,
close / nullify all the objects you instantiated other than the one you are returning.
Regards,
Nitin
Edited by: Nitin Mahajan on Jun 16, 2009 5:39 PM

Similar Messages

  • How to configure TREX to enable search in MDM?

    Hi All,
    Has anyone configured TREX to enable search in MDM before?
    Can it be done?
    Please provide help on this.
    Thanks
    Rajat.

    Hi Rajat,
    For the configuration of TREX to enable search in MDM, check the below link which gives the complete information of TREX 6.1
    Link : https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1545e1bf-0d01-0010-a5ab-f80e574423bf
    Hope this would be helpful!!!!!!!!
    Regards,
    Parul

  • Qualified table search in MDM

    Hello All,
    I am trying to do drill down search in Data manager on qualified table.
    when in search critieria i am selecting qualified table ,I am not getting all qualifiers in search tab.(we have 6 qualifiers and i am only getting 3 of them )
    and in values as well when i am selecting say for
    qualifier                  Value
    country                  USA
    if i am selecting this combination i am not getting any records whereas there are more than 1000 records of country USA .
    any suggestions.!
    Kunal

    Hi Kunal,
    Check the below statements from MDM Reference Guide and check whether you have designed the repository in the same way or not.
    It permits drilldown search by qualifier lookup values even before you have selected a single qualified table record in the qualified lookup field search tab.
    It permits free-form search by qualifiers (both lookup and non-lookup) when Sort Index is enabled.
    In above statements "It" is nothing but when you enable the Cache property of qualifiers.
    Kindly update us on your issue.
    Regards,
    Jitesh Talreja

  • CRM 7.0 Material Search and MDM

    How could MDM be used in CRM 70 , in order to have a better/quicker material search functionality ? can the same be done for ECC ( pre-requisite, having all the characteristic defined in MDM) . Any presentation on the topic will help . Thank you.

    Hi Christophe
    this can be done. You can call MDM web services for either doing a Free form search or even run a MDM matching strategy to find potential duplicates defined based on rules in MDM.
    In one of our projects we have used Web services call from CRM ecommerce portal to MDM for doing a Customer search.
    Thanks-Ravi

  • SRM 7.0 cross catalog search transparent punch out and MDM

    Hi,
    I have problems with transparent punch out and OCI.
    We are using HTTP POST, but when we create a SC what should we recieve in SAP. I suppose we should use HTML (the vendor suppose submitted HTML), but as far as I see it, SAP expect to recieve HTMÆ, right? http://www.attsuppliers.com/downloads/OCI_40_EN20030611.pdf
    <form name="ociform" action=" https://eprocurement.site.com/RecieveOCI.jsp" method="post" enctype="application/x-www-form-urlencoded; charset=UTF-8">
    <input type="text" name="NEW_ITEM-DESCRIPTION[1]" value="Java developer"/>
    <input type="text" name="NEW_ITEM-QUANTITY[1]" value="1"/>
    <input type="text" name="NEW_ITEM-UNIT[1]" value="EA"/>
    <input type="text" name="NEW_ITEM-PRICE[1]" value="15000.00"/>
    <input type="text" name="NEW_ITEM-CURRENCY[1]" value="EUR"/>
    <input type="text" name="NEW_ITEM-LEADTIME[1]" value="1"/>
    <input type="text" name="NEW_ITEM-VENDOR[1]" value="8c7d1ea0-7823-1000-b356-c0a87c200001"/>
    <input type="text" name="NEW_ITEM-VENDORMAT[1]" value="112233"/>
    <input type="text" name="NEW_ITEM-MATGROUP[1]" value="8800000"/>
    <input type="text" name="NEW_ITEM-EXT_PRODUCT_ID[1]" value="448f129ad5ebd8903ae85708c1316dbb"/>
    <input type="text" name="NEW_ITEM-CUST_FIELD6[1]" value="20"/> <!-- VAT -->
    <input type="text" name="NEW_ITEM-CUST_FIELD7[1]" value="1"/> <!-- Open Market Place -->
    <input type="text" name="NEW_ITEM-CUST_FIELD8[1]" value="1"/> <!-- Request -->
    <input type="text" name="NEW_ITEM-CUST_FIELD9[1]" value="0"/> <!-- Search Engine -->
    <input type="text" name="NEW_ITEM-CUST_FIELD10[1]" value="0"/> <!-- Web Shop -->
    <input type="text" name="NEW_ITEM-ZZ_E_MAIL[1]" value="[email protected]"/> <!-- email address as entered by user in eRequest -->
    <input type="text" name="NEW_ITEM-LONGTEXT_1:132[]" value="Request: The description of0000004 v 1. Quote: quote-0000001. Description: Pet Dogs"/>
    </form>
    Furthermore, is it possible to do cross catalog search accross MDM and a transparent punch out catalog?
    /Jimmy

    We are having problems with Transparent Punch Out and OCI.
    We are using HTTP POST, but when we create a SC what should we receive in SAP??
    Should we receive raw HTML or submitted/posted HTML?? As far as I can see, we should receive raw HTML...or?
    Furthermore, is it possible to do cross catalog search across MDM and a Transparent Punch Out Catalog?

  • Passing Search Parameter to SRM-MDM Through the URL

    Greeting all,
    I would like to know how I can pass a search parameter to SRM-MDM using the URL in the web browser. This is needed to display the result directly instead of listing the whole catalog contents.
    I am trying to pass a search parameter (Text string) to the catalog through an R/3 SAP system. As a result, it should give only the material that I am looking for.
    I tried the "Background Search" as described in the OCI-specification paper but still couldn't get it!
    By using the parameters mentioned in chapter 3.2.4 of OCI-specification paper, I did the recommended configuration and use the following URL but still failed to pass the parameter:  http://....&FUNCTION=BACKGROUND_SEARCH&SEARCHSTRING=searchterm
    Can anyone help me on that?!
    Regards,
    Yousif

    Hi Yousif,
    Why dont u save the search as a named search in MDM and then pass it onto the SRM MDM.
    Save the records  as Named search in MDM Data Manager
    For eg:
    Named Search name -->> search1
    Now while passing the parameters to the SRM MDM Catalog specify the Named Search in its url.
    http://J2EESERVER:PORTNO/SRM-MDM/SRM_MDM?sap-locale=EN&HOOK_URL=&mask=&namedSearch=search1&username=Admin&password=PASSWORD&catalog=REPOSITORYNAME&server=MDMSERVERIPADDRESS&datalanguage=EN
    After passing the named search in the hook url the you will be able to see only the search which was saved in Data Manager.
    Hope dis helps u
    Regards Tejas.........

  • SRM MDM Installation and Configuration

    Hi,
    I have been asked to install/configure SRM MDM. Ive gone through lot of documentation on SAP service marketplace and am struggling to understand the components I need to install.
    I have SRM system already installed and the customer wants to use SRM MDM 5.5.
    I was going through the Architecture guide and what I understood from it is that I will have to install the MDM 5.5 Server, clients, a database and a WAS. Now that SMR is already in place do I still have to install WAS on the MDM system ? will the MDM sever use the SRM systems WAs and database ?
    Regards,
    Hasnain

    Hi Hasnain,
    MDM is a "stand-alone" component. You do not need a separate WAS.
    You need a database instance (the usual SAP supported Databases work) and the MDM Software.
    The MDM Client Software (Import Manager, Console, Clix, Workflow, Data Manager) must run on Windows Client. As far as I know the MDM Server can also run on Unix.
    For searching the MDM Catalog you need a SAP J2EE (Java) Instance. If you have a EP running this will work for the beginning.
    HTH
    Roman

  • Restriction of inactive items using named search

    Hi experts,
    I am working in SAP MDM and facing following issues.
    In catalog displayed in shopping carts, when i need to remove inactive items (items with inactive value in item status field) from that catalog i simply remove the mask for those items.
    However for the catalog displayed in purchase orders those items still displayed because i'm using named searches.
    Does anyone know how i can remove inactive items from this catalog using named searches?
    Thanks

    To create a named search in MDM follow below mentioned steps:
    1. login to data manager and open Named searches table.
    2. add a new record in this table and specify name for the named search.
    3. Once you save the named search, go back to Catalog Items table. Now from the Search Parameters pane or Free form search specify filter criteria as Status = Active.
    4. You can see result in the status bar of the data manager. It will display some thing like "XX records out of YY records displayed". This means filter criteria is set successfully.
    5. Now go to  "Search" menu in the menu bar and click on "Save as Named Search". This will display all named searches in the side pane.. Select your named search which you just created. this will save your filter criteria (status= active) in your named search.
    6. now you are good to define this name search in SRM Web service.
    Revert if any further questions.
    Best Regards,
    Shiv
    2

  • Searching in xml using JDom or XPath

    Hii Javaties
    I need to search my xml file,so that i can retreive all the clerks under a particular manager
    say all the clerks under manager 1.
    Right now i am using DOM.
    What will be the best approach to do searching .
    Should i use XPAth ?
    My xml structure is
    <ROWSET>
    <ROW num="1">
    <Manager_Name>M1</Manager_Name>
    <Clerks>
    <Clerk_Item>
    <Clerk_Name>M1C1</Clerk_Name>
    </Clerk_Item>
    <Clerk_Item>
    <Clerk_Name>M1C2</Clerk_Name>
    </Clerk_Item>
    </Clerks>
    </ROW>
    <ROW num="2">
    <Manager_Name>M2</Manager_Name>
    <Clerks>
    <Clerk_Item>
    <Clerk_Name>M2C1</Clerk_Name>
    </Clerk_Item>
    <Clerk_Item>
    <Clerk_Name>M2C2</Clerk_Name>
    </Clerk_Item>
    </Clerks>
    </ROW>
    </ROWSET>

    Hi Anirban
    I think you are looking for same info which is asked in this thread:Search using MDM java API
    Have a look on this article as well to get the better understanding on MDM Java API Search: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9039f92b-714b-2c10-d49f-a0cdf4e27dc6
    Cheers/ -Tarun

  • Can't check out in the MDM catalog

    Dear ,Expert :
        I work in SRM 7.0 and SP09 NWBC scenario
        I used the web-dispatcher to interview the SRM server .I maintain the service structure as following :
    10 http://www.SAPwebDIS.com:8106/SRM-MDM/SRM_MDM? URL
    20 username Master Fixed Value
    30 password ******* Fixed Value
    40 server 192.168.8.176 Fixed Value
    50 catalog SRM_MDM_Catalog Fixed Value
    51 namedsearch CS2000 Fixed Value
    52 PORT 2345 Fixed Value
    60 uilanguage SY-LANGU SAP Field
    70 datalanguage SY-LANGU SAP Field
    71 BYPASS_OUTB_HANDLER X Fixed Value
    72 BYPASS_INB_HANDLER Fixed Value
    80 HOOK_URL Return URL
    90 ~target _top Fixed Value
    91 ~caller CTLG Fixed Value
    92 ~OkCode ADDI Fixed Value
    Now ,I can search the MDM catalog ,and select the item in the MDM catalog .Then I click the "check out "button ,get the error message "this page can't display" .I find the the IE address is the srmprd.***.( that is just can interview in the intranet ).
      If I work in the intranet ,it works well .
    Any one can give me some suggestions ?
    Thanks  a lot !
    Alex

    Hi,
    After checking in the activity make a habit of activate the same activity.
    Ask the other person to activate his activity.
    After the activation of all previous activities. sync the dc it should effect the changes to dc in your nwds.
    If the above procedure doesnot work then delete the dc from workspace and nwds. goto dc perspective->sync your project in inactive dc's>create project from inactive dc's, this will create the dc's in your nwds will the current changes in edit mode.
    Regards,
    Kiran Kumar

  • MDM JAVA API ERROR

    Hi,
    we are calling mdm java methods from webdynpro code.
    We are executing java successfully from main method. but,when we try to execute it from webdynpro we are getting the follwing error.
    What this exception means to mdm?
    Unexpected exception:Unexpected field type -1

    Hi Ramu,
    the specified exception may be due to wrong fieldCode or Table Code in MDM Java API which you are using ;
    As per my understanding, you might be searching for MDM data from WebDynpro,so look at your resultset or Search object building , some where you coded with wrong FieldCode;
    problem may not be at your WebDynpro but may be at your MDM JAVA API Code;
    give detail information on your question, if you have still problem on that;
    regards
    Rajasekhar k

  • Keyword Search using the SOUNDS_LIKE modifier, Java API

    Hello guys:
    Does anyone have a piece of code that shows how can I do a search, using the keyword and the SOUNDS_LIKE mod, like on the Data Manager?
    I've seen the blog "Performing Free Form Searches with MDM Java API" but I'm afraid this doesn't apply (it's about free-form, as the name says)
    Thanks!
    Alejandro

    Hi Alejandro,
    maybe this piece of code helps you a bit. The most important is the static attribute SOUNDS_LIKE of the TextSearchConstraint class.
    Also try to find the MDM Java Example files @ service.sap.com/installMDM . There is a complete introduction on how to search against an MDM repository which is very useful.
              // assumption:
              // you have connected to some repository which contains a field "Material Number"
              // with a session and you have already read the MainTable properties to identify
              // the MainTableID, as well as some fields yo want to read.          
              // set search conditions
              Search search = new Search(<yourMainTableId>);
              String fieldname = "Material Number";
              ResultDefinition rd = new ResultDefinition(<yourMainTableId>);;
              FieldId field = <someFieldFromYourRepository>;
              rd.add(field);
              // add some additional fields you want to select here ...
              FieldSearchDimension searchDimension = new FieldSearchDimension(field);
              TextSearchConstraint searchString =     new TextSearchConstraint(materialNumber, TextSearchConstraint.SOUNDS_LIKE);
              search.addSearchItem(searchDimension, searchString);
              RetrieveLimitedRecordsCommand limitingCommand = new RetrieveLimitedRecordsCommand(<yourConnection>);
              limitingCommand.setSession(<yourSession>);
              limitingCommand.setResultDefinition(rd);
              limitingCommand.setSearch(search);
              limitingCommand.setPageSize(10);
              try {
                   limitingCommand.execute();
                   RecordResultSet rs = limitingCommand.getRecords();
              catch(Exception e){
                   e.printStackTrace();
    If you need more help, let me know
    Best regards,
    Martin

  • Help in MDM Api use

    Hi ,
    I'm starting to develop a integration with MDM, i already connection with MDM server, but i cant make a search and retrieve the values from the results
    i have tried this example: http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/examples/RetrieveLimitedRecords.java
    ok .. it works .. returns a RecordResultSet, but i cant retrieve the values from RecordResultSet.
    can anoyne help-me with a example code to seach on a main mdm table by one field, change a value and save the change ?
    and how can i use the multilanguage when getting and setting values on the fields ?
    tks !
    Edited by: Diogo  Palermo Tobler on Aug 29, 2008 8:50 PM

    Hi Diogo,
    Here are some links which will give reasonable amount of info on working with Java Api's for various functionalities:
    Working with Java Api's
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70a7afe4-9e3e-2b10-de8d-b105d0b8c79e
    Retrieving Data from MDM using Java APi's- Part 1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/421718aa-0501-0010-d3b0-de6b02aa269b
    Getting insight in the New MDM Java Api's
    Getting Insight in the New MDM Java API
    Populating Lookup Fields using Java Api's
    Populating Lookup Fields using Java API - Has sample Code
    SAP NetWeaver Master Data Management Java API u2013 New features in SP06 Webinar Details
    https://www.sdn.sap.com/irj/sdn/event/webinars?rid=/library/uuid/209cad46-e080-2a10-7390-a5a43bd0ad2f
    SAP Network Blog: Performing Free Form Searches with MDM Java API
    https://www.sdn.sap.com/irj/sdn/event/webinars?rid=/library/uuid/209cad46-e080-2a10-7390-a5a43bd0ad2f
    SAP Network Blog: MDM Java API 2 an introductive series part I
    MDM Java API 2 an introductive series part I
    http://help.sap.com/saphelp_mdm550/helpdata/en/47/9f23e5cf9e3c5ce10000000a421937/frameset.htm
    http://help.sap.com/javadocs/MDM/SP06P2/index.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10337d07-e54a-2b10-4fbd-9caeb2c151ef
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30d211f2-964b-2b10-609b-98bba3713586
    https://www.sdn.sap.com/irj/sdn/event/webinars?rid=/library/uuid/7067866e-e734-2b10-3d83-b86080d3cefb
    Referencing the MDM Java API during development and runtime
    How to work with Command in the new MDM Java API
    MDM Java API documentation
    The specified item was not found.
    MDM Java API 2 an introductive series part IV
    Hope it helps.
    Thanks and Regards
    Nitin Jain

  • Searching in VB using ADODB

    is there any special ado connection need to specify before using CONTAINS statement in VB with ADODB. I have a table which can be search in SQL/Plus but not in VB with ADO.
    (Oracle 8.1.7 for Windows2000)
    null

    Hi Anirban
    I think you are looking for same info which is asked in this thread:Search using MDM java API
    Have a look on this article as well to get the better understanding on MDM Java API Search: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9039f92b-714b-2c10-d49f-a0cdf4e27dc6
    Cheers/ -Tarun

  • MDM Material Data and BI

    I have a customer that will be sending material data from MDM to BI.  In BI, they will be doing reporting using certain navigational attributes we've developed.  From our experience, the process of using the navigational attributes seems slow as you step through and give each one a criteria. 
    Does it makes sense to do the lookup in MDM and send a list of material numbers to BI.  I am thinking that might be faster but, he have no idea how this could be accomplished technically. Do you have any thoughts on using MDM to perform a quick search to get a list of materials and then sending the list to BI as the source for the reports.
    Thanks
    Paul

    Hi Paul,
    I have a customer that will be sending material data from MDM to BI. In BI, they will be doing reporting using certain navigational attributes we've developed. From our experience, the process of using the navigational attributes seems slow as you step through and give each one a criteria.
    Does it makes sense to do the lookup in MDM and send a list of material numbers to BI. I am thinking that might be faster but, he have no idea how this could be accomplished technically. Do you have any thoughts on using MDM to perform a quick search to get a list of materials and then sending the list to BI as the source for the reports
    In case of MDM and BI integration, there are several ways to perform the same.
    1. Using File transfer system - As you have mentioned that in BI we define navigational attributes and transfer the Master data in the form of a .CSV file to BI, which then can report on both the Local Id's and the Global Id's.We had done this scenario with MDM SP04 and the reporting seemed to be good at that time.
    2. With higher versions of MDM, there is a direct integration of MDM with BI using ABAP APi's. INfact the repository was created from BI in MDM server and only Data Manager is used in that case. You can go for this method as well. Plese find the link below to understand the same.
    Integrating MDM with BI 7.0 Using Logical Connection Object, Part 1:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b01e4269-f744-2b10-929b-fa7b49aac540
    Integrating MDM with BI 7.0 Using Logical Connection Object, Part 2:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d06a92de-614e-2b10-4989-d913c2154a64
    Integrating MDM with BI 7.0 Using Logical Connection Object, Part 3:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00f0d853-936f-2b10-1880-d3deb1fbd858
    http://help.sap.com/saphelp_nw70/helpdata/en/45/5d3bfaa9ef3bdfe10000000a1553f7/frameset.htm
    3. Now coming to your requirement, if you want to use searches in MDM, then you can definitely do that in MDM. The records which get selected in the search creteria can be then syndicated to BI using the File transfer mechanism. This might increase up the speed as only few records will be syndicated as per the search creteria set. You can set the search in Syndicator directly.
    Hope this info helps.
    Thanks and Regards
    Nitin Jain

Maybe you are looking for

  • MS Exchange 2007 - 64 bit and Entourage Client issue

    Hi guys - I'm a new one with Mac and I have got this problem so far: I have Exchange 2007 on 32 and 64 bit platforms from the Entourage I can see all mailboxes that are on Exchange 32 bit server and no issues at all here... I just go and add Exchange

  • Screen-touch issues

    The left side of my screen is not responding to any touch and I have tried all the troubleshooting suggestions (reboot, restore, etc.). I cannot 'slide to open' my Ipod and I cannot enter my password on the left side of the screen but the right side

  • Can I use mp3 ringtones on a iPhone 5?

    I would like to use my own MP3 songs on my iPhone 5. Is there an option to do that in the settings? This is my first iPhone so I'm not really sure how that would work.

  • Can't create URL's

    i am trying to use pm 6.5 to write something with pic.'s and links  and turn it into a pdf.  I am having trouble creating links in pm. could  you help me figure this out? I highlight the text i want to make into a link. then window>show hyperlinks>ne

  • PO Delivery schedule

    when creating PO item via PR, i find one PO item have several ve delivery schedule item, and each delivery item generate from same PR. Example, Item 10 Material A 37 Qty's I am getting Delivery schedule with multiple schdule lines with splitting the