National characters and new Java API

Hi All,
I'm looking for your experience with new java api and national characters (like: ü, ś, ć, etc.). The problem is that when record was updated using MDM Data Manager, and retrieved using new java api - national character are invalid (in java string the national character are represented incorrectly).
It's strange due to fact that when I create or update this record from java API it's looks fine. Second finding is that old java api (MDM4J) works fine on text fields with national characters.
Maybe I forget to set something in server configuration / repository / or on java api connection - any help appreciated...
Regards, marcin

While retrieving data via the Java API 2,
you should set the Unicode Normalization after the user session is authenticated.
I guess this is available in SP5 patch.
The documentation for this is available at
https://help.sap.com/javadocs/MDM/current/index.html
Package: com.sap.mdm.commands
SetUnicodeNormalizationCommand cmd = new SetUnicodeNormalizationCommand(connectionAccessor);
cmd.setSession(userSession);
<b>cmd.setNormalizationType</b>(SetUnicodeNormalizationCommand.NORMALIZATION_COMPOSED);
cmd.execute();
This command is used to set the Unicode normalization.  This is used for the lifetime of the session. It should be set after the session is authenticated.
Unicode normalization is important when a text string is represented differently depending on the normalization used. The MDM server always store text strings in one normalization format. An user providing a text string to the MDM server and later on tries to retrieve back the same text string might get the text string back in a different normalization. To resolve this issue, the user can use this class to specify the normalization the user wants to work with. The MDM server will always return text strings in the normalization specified by this class.

Similar Messages

  • Boolean Search Constraint in new Java API doesn't work for value of false

    I'm developing an application that interfaces with MDM via the new Java API.  We're on MDM version 5.5 SP 4 and have the latest patches installed.  I can do searches fine on the repository, but have run into one problem with the Boolean Search Constraint.  I have a set of records in the main table that have several boolean fields.  I've discovered that when searching these records using a Boolean Search Constraint on any of the fields, I'm always receiving records that match the boolean value of true.  This is even when I specify the Boolean Search Constraint value as false.  Is anybody else seeing this problem?

    It's a bug in MDM 5.5 SP04.  The fix is in MDM 5.5 SP05.

  • How and where to install MDM Connector and MDM Java API

    Hi all
    I am installing MDM Server 5.5 and refering to Installation gude
    MDM 5.5 SP06 installation guide (Document Version 1.1 – December 10, 2007).  While installing Development and Portal components , We have to install MDM Connector and MDM JAVA API. I want to know whether the file JAVAAPI<version>.sca file is to extracted on MDM Server or SRM Server ( Using SDM). Please let me know
    Thanks in advance.
    Vitthal prabhu

    Hi Vitthal,
                 We have to install MDM Connector and MDM JAVA API.
    All these sca files that u got along with the business content needs to be deployed onto Web Application Server (recommended WAS 7.0 ).
    U can deploy these files with the help of SDM.
    Hope dis solves ur problem.
    Regards Tejas..............

  • JavaFX 8 and new Java 8 libraries

    JavaFX 2 was clearly designed with an eye on new features coming in Java 8, particularly lamba expressions. As a result, there are some JavaFX APIs which have anticipated Java 8 library enhancements. For example, the javafx.util.Callback interface is basically identical to the proposed java.util.function.Function interface (see [url http://cr.openjdk.java.net/~briangoetz/lambda/sotc3.html]here or [url http://sett.ociweb.com/sett/settFeb2013.html]here).
    Are there plans to retrofit JavaFX APIs to support the new Java 8 libraries (so I can pass a Function instead of a Callback to a setCellFactory(...) method)? It would seem to make sense to unify around the new Java APIs rather than having JavaFX versions of them. Should we expect Callback to eventually be deprecated in favor of Function?

    I guess I was envisioning scenarios where a (FX agnostic) business layer exposed Functions for manipulating data in the model. But I suppose "converting" these to Callbacks becomes completely trivial using function references... I was still thinking with my Java 7 hat on.
    It still seems a bit unwieldy to have different core APIs replicating identical functionality, though.

  • Java API for images retriveal, Create and update in New Java API for SP05 ?

    Hello Everyone,
        Does any one know Which Java API Can be used to Display an Image in main table & API to add an image to Image table and link to Main Table in new release of Java API for MDM SP05.
    Really Appreciate all help.
    Thanks
    Vinita

    Hello Everyone,
        Does any one know Which Java API Can be used to Display an Image in main table & API to add an image to Image table and link to Main Table in new release of Java API for MDM SP05.
    Really Appreciate all help.
    Thanks
    Vinita

  • How to search with multiple constraints in the new java API?

    I'm having a problem using the new MDM API to do searches with multiple constraints.  Here are the classes I'm trying to use, and the scenario I'm trying to implement:
    Classes:
    SearchItem: Interface
    SearchGroup: implements SearchItem, empty constructor,
                 addSearchItem (requires SearchDimension and SearchConstraint, or just a SearchItem),
                 setComparisonOperator
    SearchParameter: implements SearchItem, constructor requires SearchDimension and SearchConstraint objects
    Search: extends SearchGroup, constructor requires TableId object
    RetrieveLimitedRecordsCommand: setSearch method requires Search object
    FieldDimension: constructor requires FieldId object or FieldIds[] fieldPath
    TextSearchConstraint: constructor requires string value and int comparisonOperator(enum)
    BooleanSearchConstraint: constructor requires boolean value
    Scenario:
    Okay, so say we have a main table, Products.  We want to search the table for the following:
    field IsActive = true
    field ProductColor = red or blue or green
    So the question is how to build this search with the above classes?  Everything I've tried so far results in the following error:
    Exception in thread "main" java.lang.UnsupportedOperationException: Search group nesting is currently not supported.
         at com.sap.mdm.search.SearchGroup.addSearchItem(Unknown Source)
    I can do just the ProductColor search like this:
    Search mySearch = new Search(<Products TableId>);
    mySearch.setComparisonOperator(Search.OR_OPERATOR);
    FieldDimension myColorFieldDim = new FieldDimension(<ProductColor FieldId>);
    TextSearchConstraint myTextConRed = new TextSearchConstraint("red",TextSearchConstraint.EQUALS);
    TextSearchConstraint myTextConBlue = new TextSearchConstraint("blue",TextSearchConstraint.EQUALS);
    TextSearchConstraint myTextConGreen = new TextSearchConstraint("green",TextSearchConstraint.EQUALS);
    mySearch.addSearchItem(myColorFieldDim,myTextConRed);
    mySearch.addSearchItem(myColorFieldDim,myTextConBlue);
    mySearch.addSearchItem(myColorFieldDim,myTextConGreen);
    the question is how do I add the AND of the BooleanSearchConstraint?
    FieldDimension myActiveFieldDim = new FieldDimension(<IsActive FieldId>);
    BooleanSearchConstraint myBoolCon = new BooleanSearchConstraint(true);
    I can't just add it to mySearch because mySearch is using OR operator, so it would return ALL of the Products records that match IsActive = true.  I tried creating a higher level Search object like this:
    Search topSearch = new Search(<Products TableId>);
    topSearch.setComparisonOperator(Search.AND_OPERATOR);
    topSearch.addSearchItem(mySearch);
    topSearch.addSearchItem(myActiveFieldDim,myBoolCon);
    But when I do this I get the above "Search group nesting is currently not supported" error.  Does that mean this kind of search cannot be done with the new MDM API?

    I'm actually testing a pre-release of SP05 right now, and it still is not functional.  The best that can be done is to use a PickListSearchConstraint to act as an OR within a field.  But PickList is limited to lookup Id values, text attribute values, numeric attribute values and coupled attribute values.  It works for me in some cases where I have lookup Id values, but not in other cases where the users want to search on multiple text values within a single field.

  • Forms 6i and the JAVA API

    Hello,
    I have scanned this forum for the above subject and don't think there is a similar message that anyone else has submitted.
    We have a Client/Server application that has been built upon Forms 6i. We're running against an Oracle 8i, rel 8.1.5 database.
    I want to write some Java modules that will scan through all our source fmb's building up an inventory of useful info. This will enable us to judge the impact of such things as dictionary (table/view/package) changes.
    Is there a Java API available out there that I could use for my forms 6i forms? I know that there is a C API available - but I don't know C and neither do I have a C compiler!
    thank you,
    Mohan

    The Java API to Oracle Forms is a new feature of Oracle9i Forms. So you'll need to upgrade to Oracle9i Forms and then you will be able to use the Java API instead of the C API.

  • Help with Essbase 9 and the Java API

    Hi, I am trying to connect to Essbase from a Java desktop application and I am unable to do so. I need to know if I am in principle doing the right things and if I have the correct environment set up.
    We have a server with Essbase version 9.3.1. We normally use essbase via the Excel Addin, and I have already written Excel applications that utilise both the addin and the Essbase VB API. Now I need to connect to Essbase but from outside Excel and using the Java API. I have no idea what APS is nor does my Essbase Administrator.
    My application has the following code (adapted from a post in this forum) -
    public static void main(String[] args) {
    String s_userName = "user";
    String s_password = "password";
    String s_olapSvrName = "ustca111";
    String s_provider = "http://localhost:13080/aps/JAPI";
    try{
    IEssbase ess = IEssbase.Home.create(IEssbase.JAPI_VERSION);
    IEssDomain dom = ess.signOn(s_userName, s_password, false, null, s_provider);
    IEssOlapServer olapSvr = dom.getOlapServer(s_olapSvrName);
    olapSvr.connect();
    System.out.println("Connection to Analyic server '" + olapSvr.getName() + "' was successful.");
    olapSvr.disconnect();
    }catch(EssException exp){
    System.out.println(exp.getMessage());
    I am running my application on my computer, not on the Essbase server, and the username I am using is the same one I use (as a user of Essbase) via the Essbase Addin in Excel, not an admin login.
    When I run the app I get:
    "Cannot connect to Provider Server.Make sure the signon parameters are correct and the Provider Server is running."
    Please can you confirm:
    1) Do I need an admin login for my client application to connect to the Essbase server or can I use a normal read-access login, like the one I use in Excel?
    2) Is the provider always the same regardless of the computer, i.e. "http://localhost:13080/aps/JAPI"; How do I know what this has to be? Where do I get this information from?
    3) How can I make sure that the Server is running the necessary "Provider Server", is this just a service that will show on services.msc of the server? What should I ask the Essbase Administrator for him to tell me what I need?
    Thank you very much.
    Leo

    Tim, when I look in my computer's Essbase installation path I can only find the following jar files (from the ones you have listed).
    C:\Hyperion\AnalyticServices\JavaAPI\external\css\log4j-1.2.8.jar
    C:\Hyperion\AnalyticServices\JavaAPI\lib\ess_es_server.jar
    C:\Hyperion\AnalyticServices\JavaAPI\lib\ess_japi.jar
    I do not have css-9_3_1.jar or interop-sdk.jar.
    In order to try the embedded mode, I added the three jars I have to the classpath, and have re-built and ran with "embedded" as the provider. This is what I got in my output screen:
    run:
    Error accessing the properties file. essbase.properties: essbase.properties (The system cannot find the file specified). Using default values.
    Hyperion Provider Services - Release 9.3.1.0.0 Build 168
    Copyright (c) 1991, 2007 Oracle and / or its affiliates. All rights reserved.
    connection mode : EMBEDDED
    essbase.properties: essbase.properties
    domain.db location: domain.db
    console log enable : false
    file log enable : false
    logRequest : false
    logLevel : ERROR
    java System properties -DESS_ES_HOME: null
    Scenario Markets Total Legal Entities Products
    Jan Feb Mar
    Standard Units 1.053264054859E7 1.60849856762E7 2.6234553348270003E7
    BUILD SUCCESSFUL (total time: 2 seconds)
    As you can see, this has worked (as I get the data I was looking for at the end), but when I had the url in the provider string, I just get the below, without the initial errors:
    run:
    Scenario Markets Total Legal Entities Products
    Jan Feb Mar
    Standard Units 1.053264054859E7 1.60849856762E7 2.6234553348270003E7
    BUILD SUCCESSFUL (total time: 2 seconds)
    Now that I can get both modes to work I intend to write a Windows application, place it in a shared drive, and allow multiple users to use it. Which mode should I use?
    By the way, I found the essbase.properties file in C:\Hyperion\AnalyticServices\JavaAPI\bin, but when I add it to my app and test it in embedded mode, I get even more errors, but it still gives me the result...output below:
    run:
    java.io.FileNotFoundException: ..\bin\apsserver.log (The system cannot find the path specified)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
    at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:96)
    at org.apache.log4j.RollingFileAppender.<init>(RollingFileAppender.java:60)
    at com.hyperion.dsf.server.framework.BaseLogger.addAppender(Unknown Source)
    at com.hyperion.dsf.server.framework.BaseLogger.setFileLogEnable(Unknown Source)
    at com.hyperion.dsf.server.framework.DsfLoggingService.sm_initialize(Unknown Source)
    at com.essbase.server.framework.EssOrbPluginDirect.setupLoggingService(Unknown Source)
    at com.essbase.server.framework.EssServerFramework.<init>(Unknown Source)
    at com.essbase.api.session.EssOrbPluginEmbedded.<init>(Unknown Source)
    at com.essbase.api.session.EssOrbPlugin.createPlugin(Unknown Source)
    at com.essbase.api.session.Essbase.signOn(Unknown Source)
    Hyperion Provider Services - Release 9.3.1.0.0 Build 168
    at com.essbase.api.session.Essbase.signOn_internal(Unknown Source)
    at com.essbase.api.session.Essbase.signOn(Unknown Source)
    at esstest.Main.main(Main.java:22)
    Copyright (c) 1991, 2007 Oracle and / or its affiliates. All rights reserved.
    connection mode : EMBEDDED
    log4j:WARN No appenders could be found for logger (com.hyperion.dsf.server.framework.BaseLogger).
    essbase.properties: essbase.properties
    log4j:WARN Please initialize the log4j system properly.
    domain.db location: ./data/domain.db
    console log enable : false
    file log enable : true
    logFileName : ../bin/apsserver.log
    logRequest : false
    logLevel : WARN
    java System properties -DESS_ES_HOME: null
    Scenario Markets Total Legal Entities Products
    Jan Feb Mar
    Standard Units 1.053264054859E7 1.60849856762E7 2.6234553348270003E7
    BUILD SUCCESSFUL (total time: 3 seconds)
    Thank you
    Leo

  • PI 7.11 - Where can I get the NEW java API's

    Hi,
    We use PI 7.0 in productive environment, but we plan a release update to PI 7.11. We have several Java Mappings for PI 7.0 with Java 1.4. So we have to upgrade this also to Java 1.5.
    We are using following SAP Java libs:
    - aii_map_api.jar
    - aii_mt_rt.jar
    - guidgenerator.jar
    - sapxmltoolkit.jar
    Where can we get the equivalent libraries of the PI 7.11 system. Are there new API's? Is there a documentation where to get this?
    Thx in advance
    Michael

    Thx !!!
    Quick answer )

  • PHP MYSQL and DW Question: Invalid characters and new lines entry/viewing

    Hello all,
    I have followed David Powers' two php/dw/mysql books and I've
    set up PHP
    pages that insert, edit, delete, etc. listings. Everything
    works fine
    except for invalid characters being inserted into the
    database, and then
    displaying with a question mark in firefox.
    Is there a trick to cleaning up the data that a user may
    paste into a
    textbox on a web page for insertion in the database before
    the data is
    inserted or as it is inserted? Em dashes, en dashes, 'curly
    quotes' etc.
    are giving me problems.
    Also, when I enter new lines into the php page while I'm
    typing out
    information for a record, these new lines are not being
    displayed either
    in the database (using phpmyadmin to view) or on the
    resulting details
    pages, even though I'm using nl2br, etc. Is there a way to
    make this
    work reliably?
    Thank you for any help you may give me!
    -John

    Hello all,
    I have followed David Powers' two php/dw/mysql books and I've
    set up PHP
    pages that insert, edit, delete, etc. listings. Everything
    works fine
    except for invalid characters being inserted into the
    database, and then
    displaying with a question mark in firefox.
    Is there a trick to cleaning up the data that a user may
    paste into a
    textbox on a web page for insertion in the database before
    the data is
    inserted or as it is inserted? Em dashes, en dashes, 'curly
    quotes' etc.
    are giving me problems.
    Also, when I enter new lines into the php page while I'm
    typing out
    information for a record, these new lines are not being
    displayed either
    in the database (using phpmyadmin to view) or on the
    resulting details
    pages, even though I'm using nl2br, etc. Is there a way to
    make this
    work reliably?
    Thank you for any help you may give me!
    -John

  • Is there any Documentation about MDM4J (Java API) ?

    Hello to all,
    I was wondering... Is there any possibility to get documentation about the classes in the MDM4J.jar ?
    We can not use the other Java Api, and we need to understand this one.
    Thanks in advance,
    Mariano.-

    Dee Bishnu wrote:
    You're looking for documentation in addition to the javadoc included with MDM4J, right?.-
    Exactly, but, I don't have the javadoc that are included with MDM4J. Are the javadocs always shipped with the MDM4J.jar?
    RDNPrasad wrote:
    Hi Mariano,
    all the documentation is available via the MDM documentation center on SAP Service Marketplace:
    http://service.sap.com/installMDM
    Yes, but in that adress you only see the last documentation, and I want an old documentation that isn't found there.
    Nico Razlow wrote:
    hier is the link to the Java API SP3 (mdm4j):
    https://websmp209.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700007403222005E
    Thanks !! That PDF was really helpful !!!
    Sudheendra Puth wrote:
    To work on java api using MDM4J use the below link on javadoc
    http://help.sap.com/javadocs/MDM/SP06P2/index.html
    Kindly award points if it was helpful
    That adress is the documentation for the "New Java API", not the MDM4J.
    I'm going to put the question as answered because the PDF that Nico provided is like a javadoc. If anyone has any more information, please contact me privately.
    Thanks to all for the Answers !!!
    Mariano.-

  • How to use SessionManager (MDM 5.5 SP06 JAVA API 2) with TrustedConnection

    Hello MDM 5.5 SP06 JAVA API Experts,
    Is it possible to Use the SessionManager in conjunction with TrustedConnections ? The trusted connection is setup properly (adding the client IP to the allow.ip file on MDM-Server).
    I tried a lot but I didn't succeed with the new JAVA API 2 SessionManager functionality.
    I'm initializing a UserSessionContext object and set the field for trusted connections to true.
    Later I request an instance of SessionManager and call the createSession() method.
    Although I've set the trustedConnection (=true) field of UserSessionContext, I get an exception, if the password is not set correctly. Due to my understanding, the password should be ignored if the UserSessionContext --> trustedConnection field is set to true. Is this a bug or am I missing any important step ?
    I have also used several constructors of UserSessionContext but no chance.
    Could anyone use the SessionManager with trusted Connections ?
    Any help would be greatly appriciated.
    Best regards.
          public static void main(String[] args)
            Settings settings = new Settings();
            RepositoryIdentifier repId = new RepositoryIdentifier(settings.repository,
                                                                  settings.dbServer,
                                                                  settings.dbmsType);
            //Create a UserSessionContext
            //UserSessionContext sessionContext = new UserSessionContext("<servername>", "<repositoryName>", "<userName>");
            UserSessionContext sessionContext = new UserSessionContext( "<servername>", repId, "English [US]", "<userName>");
            sessionContext.setConnectionType(ConnectionTypes.LOCAL_POOL_CONNECTION);
            sessionContext.setRegionLocale(Locale.US);
            sessionContext.setTrustedConnection(true);
            //Get an instance of SessionManager
            SessionManager sessionManager = SessionManager.getInstance();
            //Create user session
            String userSession =
            sessionManager.createSession(sessionContext, SessionTypes.USER_SESSION_TYPE, "<any pwd !!!>");
            System.out.println("Created user SessionID: " + userSession);

    Hello Jitesh Talreja,
    thanks for your reply and hint. The trusted connection configuration on MDM server is already setup correctly.
    My concrete problem is to establish a trusted connection using the SessionManager.
    If I use the TrustedUserSessionCommand, everything works.
            CreateUserSessionCommand createUserSessionCommand = new CreateUserSessionCommand(connection);
            createUserSessionCommand.setRepositoryIdentifier(repId);
            createUserSessionCommand.setDataRegion(dataRegion);
            createUserSessionCommand.execute();
            session = createUserSessionCommand.getUserSession();
            state = STATE_SESSION_ESTABLISHED;
            try
                TrustedUserSessionCommand tuscTrustedUser = new TrustedUserSessionCommand(connection);
                tuscTrustedUser.setUserName(userName);
                tuscTrustedUser.setSession(createUserSessionCommand.getUserSession());
                tuscTrustedUser.execute();
                session = tuscTrustedUser.getSession();
             catch (com.sap.mdm.commands.CommandException e)
                /* In Case the Connection is not Trusted */
                System.out.println("Could not established trusted connection!!!");
                e.printStackTrace();
    But I want to make use of the SessionManager advantages see [MDM Java API Guide|http://help.sap.com/saphelp_mdm550/helpdata/en/47/9f23e5cf9e3c5ce10000000a421937/frameset.htm] -> API Structure and Basic Concepts

  • Java API: IFS Document Versions

    Hello,
    I'm trying to list all versions of a document in an web page, and provide a link to each document version (I'm currently using JSP and IFS Java API Classes as interface from Web to the IFS system).
    To download a specific document version I need to know it's version because we are using different version atribution and I need to match our versions with IFS versions.
    How can I get the version of a specific Document (Java API)?

    okay folks, I've tried something and it seems to work:
    Selector sel=new Selector(IFSSession);
    PublicObject result=(PublicObject)sel.nextItem();
    pw.println(result.getAnyFolderPath());
    and voila !
    typecasting is the key to OOP ;-)))
    regards, F. Leeber

  • How do I resolve connection error with Java API listener?

    I have created a listener using the new Java API (see How do I implement a listener using new MDM Java API? for background). When I run it, I get this error message
    Mar 19, 2008 3:57:58 PM com.sap.mdm.internal.net.ConnectionImpl finalize
    INFO: Disconnect was not called. Cleaning up connection in finalize.
    This message is triggered whenever I generate a data event that I would otherwise expect to be captured and handled by the listener. I have tried a number of things, including setting the connection to NO_TIMEOUT and trying SimpleConnection versus ConnectionPool, but always with the same result.
    Here is some sample code for the listener:
    public class DataListenerImpl implements DataListener {
         public void recordAdded(RecordEvent evt) {          
              System.out.println("===> Record Added Event");
              System.out.println(evt.getServerName());
         public void recordCheckedIn(RecordEvent evt) {
              System.out.println("===> Record Checked In Event");
              System.out.println(evt.getServerName());          
         public void recordCheckedOut(RecordEvent evt) {
              System.out.println("===> Record Checked Out Event");
              System.out.println(evt.getServerName());               
         public void recordModified(RecordEvent evt) {
              System.out.println("===> Record Modified Event");
              System.out.println(evt.getServerName());
    And here is the code for the Event Dispatcher:
    public void execute(Repository repository) {
         DataListener listener = new DataListenerImpl();
         try {
              EventDispatcherManager edm = EventDispatcherManager.getInstance();
              EventDispatcher ed = edm.getEventDispatcher(repository.getServer().getName());
              ed.addListener(listener);
              ed.registerDataNotifications(SystemProperties.getUserName(), SystemProperties.getPassword(),
                        repository.getIdentifier(), repository.getLoginRegion());
              ed.registerRepositoryNotifications(SystemProperties.getUserName(), SystemProperties.getPassword(),
                        repository.getIdentifier());
              ed.registerGlobalNotifications();
              while (true) {
                   Thread.yield();
                   try {
                        Thread.sleep(1500);
                   } catch (InterruptedException ex) {
                        System.out.println("Interrupted Exception: " + ex.getMessage());
         } catch (ConnectionException e) {
              e.printStackTrace();
         } catch (CommandException e) {
              e.printStackTrace();
    Has anyone else encountered this message? Could it be related to a TCP configuration on the server? Or is this a bug in the Java API?
    As I mentioned in the forum posting linked to above, I have not encountered this problem with the MDM4J API.
    Any help is greatly appreciated.

    I resolved it. We are switching over to SP6, Patch 1 and the listener code works fine with this version of the Java API.
    Just one thing to note, though: make sure that you register data notifications through MetadataManager in your initialization code:
    metadataManager.registerDataNotifications(userSessionContext, repositoryPassword);
    For information on the changes to the SP6 Java API, especially with regard to connecting to MDM with the UserSessionContext, please review Richard LeBlanc's [presentation|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20073a91-3e8b-2a10-52ae-e1b4a10add1c].

  • Deleting DataLocationGroups (with MDM Data Manager or MDM Java API)

    I´ve a lot of DataLocationGroups which are results of tests (importing pictures into the images tables but not stored as BLOB). I can´t see that the underlying table is exposed within MDM Data Manager. So i tried to delete the useless nodes with the DeleteGroup command.
    However this seems not to be supported by the API
    com.sap.mdm.commands.CommandException: Deleting of data location groups is currently unsupported
         at com.sap.mdm.group.commands.DeleteGroupCommand.execute(DeleteGroupCommand.java:91)
    I´m using the new Java API with MDM 5.5SP6.
    No chance to remove the nodes?

    Thanks for your answer. I would possibly open a service call to check if there is a hotfix available. Maybe you have some idea how i can check if the a Location is already existent? From experiments when importing with the MDM Data manager, it seems that a path is represented by a tree of HierLocationGroupNodes.
    For example: I´ve imported from
    cde271480MMPPpictures.jpg using the Data Manager. When using the RetrieveGroupTree Command, i can see that there are two nodes named cde271480 (Id: GN39) with child node named MMPP (Id: GN89).
    Maybe i now want to use the API to import a picture from
    cde271480     estlocation into the images table. To get a locationID usable for the setDataLocationId i had to compare the pathname of the picture with elements of the GroupTree from the root. If one element of the path is not existent in the tree, i have to create this new element and connect it to the parent. And i can then use the ID of the Leaf node for the DataLocationId. Is this correct?

Maybe you are looking for