Named Searches and Java API

Hi All,
Does anyone know if its possible to execute Named Searches using the Java API?  If so, how would you set up that call?
Best Regards,
Mark

Hello Mark,
                 SAP does provide with some methods related to Named Searches just have a look at these links
1. <a href="https://help.sap.com/javadocs/MDM/current/com/sap/mdm/search/SearchDimension.html#NAMED_SEARCH">Named search</a>
2. <a href="https://help.sap.com/javadocs/MDM/current/com/sap/mdm/security/AccessPermission.html#NAMED_SEARCH_OBJECT">Named Search Object</a>
3. <a href="https://help.sap.com/javadocs/MDM/current/com/sap/mdm/search/NamedSearchSearchDimension.html#NAMED_SEARCH_SEARCH_DIMENSION">Named Search Search Dimension</a>
I hope this solves ur problem.
Regards Dollar Man

Similar Messages

  • Create Named Search with Java API

    Hi,
    is it possible to create or modify a named search with the Java API?
    Best regards,
    Roman

    Hi Olof,
    You can use the below code for searching a value in lookup table:
                   ResultDefinition objResultDefinition = new ResultDefinition(Lookup Table Id);
                   objResultDefinition.addSelectField(Lookup Field ID);
                   StringValue [] objStringValue = new StringValue[1];
                   objStringValue[0] = new StringValue("Value to search");
                   RetrieveRecordsByValueCommand objRetrieveRecordsByValueCommand = new RetrieveRecordsByValueCommand(objConnectionAccessor);
                   objRetrieveRecordsByValueCommand.setSession(strUserSessionID);
                   objRetrieveRecordsByValueCommand.setResultDefinition(objResultDefinition);
                   objRetrieveRecordsByValueCommand.setFieldId(lookup field id);
                   objRetrieveRecordsByValueCommand.setFieldValues(objStringValue);
                   objRetrieveRecordsByValueCommand.execute();
                   RecordResultSet objRecordResultSet = objRetrieveRecordsByValueCommand.getRecords();
    Now using the objRecordResultset in a loop you can get the record id by calling the getRecord(i).getId() method.
    Hope this helps!!
    Cheers,
    Arafat

  • How to do exact word search using Java API

    Hi,
    Can someone tell me how can I write a search query using Ultra Search Java API to return data containing a full word that is sent as a search
    parameter. e.g. If I want to search for a word 'Dictionary' I need to get all the results conatining full word Dictionary for example if I
    have following 4 records
    1. Dictionary
    2. English Dictionary
    3. French Dictionary
    4. AllDictionary
    How can I write a query that returns me first 3 records only as they contain the word 'Dictionary' and not the fourth record as it's not a word.
    Here is what I need to get back and ordered in that way as the 'Dictionary' needs to be first record because the search is on Dictionary.
    1. Dictionary
    2. English Dictionary
    3. French Dictionary
    Any help is appreciated.
    Thanks

    Looks like we can not do an exact word search using Java API.

  • Difference in event handling between Java and Java API

    could anyone list the differences between Java and java-API in event handling??
    thanks,
    cheers,
    Hiru

    the event handling mechanisms in java language
    features and API (java Application Programming
    Features)features .no library can work without a
    language and no language has event handling built in.
    I am trying to compare and contrast the event
    handling mechanisms in the language and library
    combinations such as java/ java API.
    all contributions are welcome!
    thanks
    cheersSorry, I'm still not getting it. I know what Java is, and I know what I think of when I hear API. (Application Programming Interface.) The API is the aggregation of all the classes and methods you can call in Java. If we agree on that, then the event handling mechanisms in Java and its API are one and the same.
    So what do you want to know?
    %

  • How to transport the validations, assignments, named searches, and workflow

    Hi Experts
    How to transport the validations, assignments, named searches, and workflow
    between two repositories.
    Thanks
    Vickey.

    Hi Vickey,
    In MDM 5.5 you can use the Archive /Unarchive option for it
    You can refer the below link:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20751e78-f81f-2a10-228f-eb3a16421b4d(Export/Import Schema)
    Note:Export/Import schema can also be used for Transportation in MDM however as of MDM 5.5 the maps,validations and workflows cannot be transported.
    From MDM 7.1 version onwards you can use the Export/Import Schema as well
    You can refer the below link:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0dd1ae0-36e5-2b10-f8b4-e6365e643c0b
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • ESS and Java API documentation.

    Hi!We are just starting our first project with EES and java API.The documentation which comes with the package, does seems adequate.Does any other set exist? For example what is domain in EES interpretation?(domain essbase is used in all examples provided with in EES)?Vlad.

    Domain is the top level object within an "Essbase Deployment Services ("EDS") server object tree which is organized like this:Domain Accounts Users <user objects..> Servers Enterprise Servers 192.168.1.20 OLAP Servers 192.168.1.20 Sample Basic Exchrate etc.. Demo Basic 192.168.1.21 Appname DBname Take a look at the treeview in the EDS GUI console..Tim TowApplied OLAP, Inc

  • Help!! wms and java api

    hi!, i`m newie on oracle, and i`m using mapviewer with java api but i have problems with the addWMSMapTheme function:
    Object vsp = new Object[]{new String[]{"DATASOURCE", "example"}, new String[]{"antialiasing", "true"}};
    mv.addWMSMapTheme("wmstheme","http://onearth.jpl.nasa.gov/wms.cgi?","false","1.1.1","BMNG","default","EPSG:4326","image/jpeg","false","0xFFFFFF","application/vnd.ogc.se_inimage", vsp);
    it return a exception (that the object vsp is not define).
    does i have to use the xml request?? how can do it??

    Hi,
    you can use the API which will generate and send the map request to MapViewer. Your vsp parameter looks strange. The following is a sample code that use the MVDEMO data set, just to give you an idea of the definition for vsp parameter.
        mapViewer.setImageFormat(MapViewer.FORMAT_PNG_URL);
        mapViewer.setDataSourceName("mvdemo");
        mapViewer.setCenterAndSize(-70.,44.,20.);
        mapViewer.setMapTitle("WMS");
        mapViewer.deleteAllThemes();
         Object []vsp = new Object[]{new String[]{"DATASOURCE", "mvdemo"}  };
         mapViewer.addWMSMapTheme("wms_theme", "http://localhost:7001/mapviewer/wms",
                                  new String[] {"THEME_DEMO_STATES"}, new String[] { "asdf"},
                                  "SDO:8265", "image/png","0xffffff", vsp);             
         System.out.println("Current request: " + mapViewer.getMapRequestString());    
         boolean response = mapViewer.run();
         if (response)
              double[] mbr = mapViewer.getMapMBR();
              System.out.println("mbr="+mbr[0]+","+mbr[1]+" "+mbr[2]+","+mbr[3]);
              System.out.println("URL: " + mapViewer.getGeneratedMapImageURL());
          }For you case, make sure the WMS server at http://onearth.jpl.nasa.gov/wms.cgi? is running and accepting requests. I tried a GetCapabilities request to this server, and got an exception message that the system was overloaded and not processing requests.
    Joao

  • Error message when listing activities with Oracle BPEL Control and Java API

    I'm implementing some BPEL processes in an Oracle Application server 10.1.3.3 environment.
    I use the Oracle BPEL Process Manager Client Java API to access some BPEL instances but when I want to list their activities with IInstanceHandle.listActivities() (I've tested the IInstanceHandle and it contains an open process instance) I receive the following error message:
    "Activity error:ORABPEL-04003 Cannot find work items. An attempt to fetch the work items using the where condition "cikey = ? AND ( wi_state = 1 OR wi_state = 2 OR wi_state = 3 ) " from the datastore has failed. The exception reported is: [ODBC S1002] invalid column number Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid. sql statement: SELECT * FROM admin_list_wi WHERE ci_domain_ref = 0 AND cikey = ? AND ( wi_state = 1 OR wi_state = 2 OR wi_state = 3 )"
    When I try to use the BPEL control to list the activities I also receive an error, which I think is related:
    "[javax.servlet.ServletException]
    Cannot find work items.
    An attempt to fetch the work items using the where condition "" from the datastore has failed. The exception reported is: [ODBC S1002] invalid column number
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: SELECT * FROM admin_list_wi WHERE ci_domain_ref = 0 ORDER BY wi_modify_date desc"
    Has anyone found a solution to this error? There are a couple of developers in our team that has the same problem and also have a similar problem when trying to purge instances from the BPEL control. The problem started when we patched to 10.1.3.3.

    When you upgraded to 10.1.3.3 did you run the SQL scripts that modified the SOA suite schemas?
    SOA_ORACLE_HOME/bpel/system/database/scripts/upgrade_10131_10133_oracle.sql
    cheers
    James

  • LDAP, ADS, and Java API???

    Hi buddies,
    I am to design a web-page (basically a servlet or JSP page) that accepts a username and pwd. The deal is to authenticate this user against the Active Directory Service which is basically on win 2003 server machine. Now how do I achieve this???
    I have some assumptions of ADS and LDPA here...
    1. ADS uses LDAP, or to be more specific LDAP can be used for ads services, right or wrong?
    2. Are their built in API for LDAP services?
    3. If no, does the implementation vary from platform to platform...
    4. What is the difference between ADS and LDAP, will I be wrong if I say ADS is platform dependent and LDAP is much a protocol implementation of the same?
    Any ideas suggestions???

    Active Directory is a LDAP compatible directory service and is accessible via a number of directory service protocols which can be accessed programmatically with;
    LDAP 'C' API's,
    Active Directory Services Interface (ADSI, a set of COM interfaces to access Active Directory, NT Domains, Netware Directory services etc.)
    Microsoft's Messaging API (MAPI used by Microsoft Exchange clients)
    Microsoft Win32 Net" API's (aka LAN Manager API's)
    and as you are about to discover,
    via JNDI and the LDAP Name Service Provider.
    Here is a list of posts that I have submitted to the forum (although I think some may have disappeared into the ether).
    JNDI, Active Directory and Authentication (Part 1) (Kerberos)
    http://forum.java.sun.com/thread.jspa?threadID=579829&tstart=300
    JNDI, Active Directory & Authentication (part 2) (SSL)
    http://forum.java.sun.com/thread.jspa?threadID=581425&tstart=50
    JNDI, Active Directory & Authentication (part 3) (Digest-MD5)
    http://forum.java.sun.com/thread.jspa?threadID=581868&tstart=150
    JNDI, Active Directory & Authentication (part 4) (SASL EXTERNAL)
    http://forum.java.sun.com/thread.jspa?threadID=641047&tstart=0
    JNDI, Active Directory & Authentication (part 5) (LDAP Fast Bind)
    http://forum.java.sun.com/thread.jspa?threadID=726601&tstart=15
    JNDI, Active Directory, Paging and Range Retrieval
    http://forum.java.sun.com/thread.jspa?threadID=578347&tstart=0
    JNDI, Active Directory, Referrals and Global Catalog
    http://forum.java.sun.com/thread.jspa?threadID=603815&tstart=15
    JNDI, Active Directory (Creating new users & demystifying userAccountControl
    http://forum.java.sun.com/thread.jspa?threadID=582103&tstart=15
    JNDI, Active Directory & Changing Passwords
    http://forum.java.sun.com/thread.jspa?threadID=592611&tstart=50
    JNDI, Active Directory and Group Memberships
    http://forum.java.sun.com/thread.jspa?threadID=581444&tstart=150
    JNDI, Active Directory and objectGUID's
    http://forum.java.sun.com/thread.jspa?threadID=585034&tstart=150
    JNDI, Active Directory and SID's (Security Identifiers
    http://forum.java.sun.com/thread.jspa?threadID=585031&tstart=150
    JNDI, Active Directory and Error codes
    http://forum.java.sun.com/thread.jspa?threadID=578674&tstart=200
    also refer to
    http://msdn.microsoft.com/library/en-us/debug/base/system_error_codes.asp
    JNDI, Active Directory and Server Side Sorting
    http://forum.java.sun.com/thread.jspa?threadID=628857&tstart=0
    JNDI, Active Directory & Persistent Searches (part 1)
    http://forum.java.sun.com/thread.jspa?threadID=578338&tstart=200
    JNDI, Active Directory and Persistent Searches (part 2)
    http://forum.java.sun.com/thread.jspa?threadID=578342&tstart=200
    Code on searching for disabled accounts buried in the post:
    http://forum.java.sun.com/thread.jspa?threadID=588430&messageID=3045217
    The one that may be of interest for your specific problem is the post available at:
    http://forum.java.sun.com/thread.jspa?threadID=726601&tstart=15
    Hopefully these will keep you smiling....

  • Search Measurement field using Java APIs

    Hi All
    I have a measurement field in the repos, which has to be searched using Java APIs. Can you please put in the code to search a measurement field using Java APIs
    Thanks
    Suresh

    HI,
    I have the following environments.
    - SAP Portal 7.01 SP5
    - SAP MDM 7.1 SP3
    - SAP NWDS 7.01.05
    --> I created a Development Component of Type "External Library" and add all MDM Jars in library folder, created Public Parts for Compilation & Assembly with both Build Time & Run Time.
    --> Created a new Development Component of Type J2EE Server Component (Library) and add the above two Public Parts as used DCs with only Build Time. Deployed this project in Portal Server (I can see the MDM Jars files when i view the project in Visual Administrator)
    --> Created a new Development Component of Type WEBDYNPRO, and add the above J2EE Server Component DC as a Used DC with Build Time only. Add an entry under Library References for the above J2EE DC. Build the project and deployed in Portal. When i run the project, i get "NoClassDefFoundException".
    We downloaded MDMJ71003_13-10006189.zip from Service Marketplace in which u201Cmdm-api-7.1.03.62-java1.4.2.zipu201D has MDM Jars.
    Could any one please help me? Your help is really appreciated.
    Thanks
    Vijay Budati

  • Req. Sample code for the Updation of Master record in MDM using Java API..

    Hi All,
    Can anyone provide me the same code for Updation of master record in MDM using Java API ??

    Hi SakthiNarayananD,
    You can additionally go through the following links to work with MDM and Java API:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49  (Java API)
    http://help.sap.com/javadocs/MDM/SP05/(Java api programs)
    https://help.sap.com/javadocs/MDM/current/index.html  (java api codes)
    http://help.sap.com/javadocs/MDM/SP06P2/index.html (Java Docs for SP06)
    Reg: Using JAVA API - Search
    Re: Retrieving Drop Down List Value using JAVA API - Lookup values
    How to retreive records from Lookuptable of type flat - Lookup Values
    Reg: MDM with webdynpro - READ,INSERT,MODIFY
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Named search

    Hi ,
    As we know that MDM provide a "Named search" facility i.e. we can save our search criteria.
    As MDM provide this facility so i want to utilize this and provide the user the facilty to save his search
    and also later use this saved searches.
    So i just want to know that if i save some search as named search and is i later use that saved search
    then can i show the search criteria that is saved in named search or not.
    If yes please provide the API to retrieve  that.
    For example:
    my search criteria is :
    supplier = xyz
    product= y78u
    so i save this as "namesearch1"
    and later if i use this search van i show the search criteria corresponding to selected name search i.e.
    when i select "namesearch1" in UI the i can show their search criteria to user i.e.
    my search criteria is :
    supplier = xyz
    product= y78u
    please help me on this issue
    Thanks ,
    sudhanshu

    Hi sudhanshu,
    To the best of my knowledge, I don't think so we can get it in that way. I too had a requirement where we required the searched criteria from a named search but we could'nt. 
    Cheers,
    Cherry.

  • Wanted: StarOffice 6.0 Java API

    Hi,
    I've read some good stuff about the new 6.0 StarOffice, most interestingly of which is the fact that it exposes its features through a Java API! The problem however is that when searching for "Java API StarOffice" at Sun's website I don't get to see any documents that explain the Java API for StarOffice 6.0 to me. I also checked the "Products and APIs" drop-down list at the top left, but with similar result.
    Does anyone know where I can find development documents on StarOffice 6.0 - specifically its Java API overview?

    Thanks GrayMan, that's quite an interesting link. I'm not sure though how much of the OpenOffice API is incorporated in StarOffice 6.0? Is it an exact match? Does StarOffice 6.0 feature more in its API or different things?
    I'm just a bit surprised as well to see that Sun doesn't put out Java API documentation for SO6 on this website. After all, this is the #1 source for Java technology...

  • Restrict users from saving own search in existing Named Searches

    Hello,
    I have created some Named Searches that will be used by the MDM users. These users are only allowed to use these named searches (in their search selections) but they are not allowed to 'overwrite' any of the named searches by their own search criteria.
    How can I prevent the user from 'overwriting' the Named Searches? 
    Because even when I set the user role to "None" for all functions and "Read-Only" for all tables and fields, the user can still make their own search and Save that as Named Search (and thus 'overwriting' the existing Named Search which impacts also the other users that make use of these Named Searches).
    We are using MDM 5.5 SP5 (5.5.42.106).
    Or is this an autorisation bug in MDM?
    Thanks for your answers!
    Regards,
    Marcel

    All,
    Just for your information:
    We have upgraded to MDM 5.5 SP06 Patch 3 (build 5.5.63.57) and they have introduced new role feature to protect named searched to be overwritten (see also release notes of patch 3 - OSS Note 1234675).
    So you can now change the Role (in MDM Console) and under section MDM Data Manager, you can set None or Execute for the function of Saving a Named Search.
    If you set it to None, then the menu option in the MDM Data Manager of saving an search as a Named Search (and hence overwriting the named search) is greyed out. Only when you set it to Execute (which is automatically set during upgrade to thi snew version when the role has set it's Default function to Execute), then the user can overwrite the named search with his own search.
    So, issue solved!
    Regards,
    Marcel

  • Named Searches in SRM-MDM

    Dear Experts,
    I try to create Named Searches On the SRM-MDM Catalog.
    I created named searches and assigned each named search do CATALOG_ID.
    I assigned the relevant CATALOG_ID to the organizational unit in the organizational stracture.
    In the Search UI the user sees the link to the named search I assigned, but he still see all the Items and not only the items I assigned to the named search.
    I guess I did not assign the items I picked properly.
    Can someone help?
    Thanks & Regards,
    Keren

    Hi,
    In SRM MDM data manager select the current table as Named search in record mode.Right click -Add -Say NamedSearchS1.Then Select your main table as current table.Select the records which you want to display to particular user.Then go to menu Search-Add to named search S1.
    Go to Console under roles table-select the particular role-under tables and field tab-Named search-add constraint as S1.
    MDM support 400 named searches.
    In EBP then add the s1 in call structure.
    Regards
    Nisha

Maybe you are looking for