MDM Connection

Mr Heil Bernd(SAP) has coutersly installed the MDM SP5 5.5.41.70 but when I try a simple example :
report ZFDOMDMTEST3.
DATA log_object_name TYPE mdm_log_object_name.
DATA language        TYPE mdm_cdt_language_code.
log_object_name   = 'MYQASMDM'.
language-language = 'eng'.
language-country  = 'US'.  language-region = 'USA'.
CALL FUNCTION 'MDM_ACCESSOR_CONNECT'
  EXPORTING
    is_repository_language = language
    iv_log_object_name     = log_object_name
  EXCEPTIONS
    ex_api_usage_error     = 1
    OTHERS                 = 6.
I've always a lv_rc in the provider class: -2174565.. so <> 0.
My class provider is: MDM5.5  SP05 Patch 0, Server Build  5.5.40.79  -  5.5.40.xx
As I know there's no upper version of MDM ABAP API.
Thanks in advance for the help.
Francesco

Hello Guys,
First, thanks for your quick answers.
I looking for this patch but I didn't find on the SAP market place. Did you have the url path.
And to answer to Thomas. Yes, it's a new installation and only, SRM is connected until now to MDM.
Thanks again,
BRs Francesco

Similar Messages

  • ABAP MDM Connection Pool

    Hi,
    I'm trying to write a report that extracts information from MDM. Everytime it's called, it has to establish a new connection to MDM where the hand-shake takes about 20-30 secs.
    I was wondering if ABAP MDM Connection Pooling exist.
    In Java MDM, you can configure J2EE with connection pool, so that you can reuse a connection rather than re-establishing a new connection on every call.
    I've read Thomas Jung's WIKI on "How do you implement a MDM Connection Help Class?", however I cannot reuse this class. The static attribute in the class is not persisted.
    Did I do something wrong?
    I tried turning it into a shared memory root class, however it complains about an object reference still exist and would not allow me to do "dettach_commit( )".
    Don't know any other ways to store the connection handle in memory.
    Export/Import, SPA/GPA are not OO friendly.
    Cheers
    Michael

    Hi Andreas,
    Thanks for your reply, it is good to confirm my understanding of the ABAP API connection.
    For your interest, I have changed part of the connection code to increase the speed of the connection significantly.
    Firstly to clarify, the connection from the ABAP stack to MDM is actually quite fast.
    Upon the first call, the method CL_MDM_PROVIDER_SP04_PL03->_LOAD_FIELD_INFORMATION is called which reads the META-DATA from MDM for every table and every field. This could normally take 1 minute in our system landscape. I've changed to code to buffer the meta-data.
    In a production/stable environment, it is unlikely for the META-DATA to change rapidly. Hence reading this on every connection is a waste of time.
    This could be useful only if we are in implementation phase where this changes all the time.
    1) In transaction MDMAPIC, I've added the ABAP implementation for MDM Version Support as my own MDM provider class ZSP04_PL03 with provider type ZCL_MDM_PROVIDER_SP04_PL03.
    ZCL_MDM_PROVIDER_SP04_PL03 is a copy of CL_MDM_PROVIDER_SP04_PL03.
    2) In ZCL_MDM_PROVIDER_SP04_PL03, the method LOADFIELD_INFORMATION is changed to read from buffer first before calling MDM. If the buffer is empty, it will read from MDM and store result into buffer etc.
    I'm storing the information in a transparent table at the moment.
    I buffer the three class attributes:
    - mt_field_meta_data,
    - mt_mdm_field_meta_data,
    - mt_field_code2id_map.
    As MT_FIELD_META_DATA is a complex structure (i.e. tables within table), I had to split it up into many different tables.
    I can provide the code if you are interested.
    Cheers,
    Michael.

  • MDM connection check

    How to check the MDM connections and services from Enterprise portal

    Hi,
    You use the System Connection test to check connectivity of all the system objects that you created to the system defined in the portal, for example MDM.
    First of all server and repository should be up and running in MDM BOX.
    Then
           1.      Log on to the portal as a system administrator(who have sufficient rights)
           2.      Navigate to System Administration - System Configuration - System Landscape
           3.      In the Portal Catalog, navigate to the folder in which your system object is located.
           4.      Perform a connection test for all system objects that you created.
    A confirmation message appears if the test was successful.
    so you can make out that cannection is successful. or from MDM side you can also check as Priti suggessted in upper post.
             If the test does not succeed
    ○       Check network connectivity
    ○       Check that the MDM Server is running and that the repository is loaded
    ○       Refer to the Builds Default Trace File Logs to review error messages.
    Hope it helps.
    Deep

  • ABAP MDM Connection Pool concept? Slow Performance in call

    Hi,
    I'm playing around with the MDM ABAP API, and I found the performance a bit disappointing.
    I followed the guide "How To identify master data records using SAP MDM 5.5 ABAP API's" and wrote a test program.
    The program makes a connection, triggers an MDM query, and disconnects.
        CREATE OBJECT api
          EXPORTING
            iv_log_object_name = logical_object_name.
        api->mo_accessor->connect( language ).
    * Query parameters
        ls_query-parameter_code = 'Material_Number'.
        ls_query-operator = 'CS'.
        ls_query-dimension_type = 1.
        ls_query-constraint_type = 8.
        ls_value = '70'.
        GET REFERENCE OF ls_value INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
        CLEAR ls_query.
    * Search
        CALL METHOD api->mo_core_service->query
          EXPORTING
            iv_object_type_code = 'Products'
            it_query            = lt_query
            iv_hits_max         = 10
          IMPORTING
            et_result_set       = lt_result_set.
    Connection is really fast (a split second)
    First time triggered 'query' method took about 30-50 seconds.
    Second time triggering 'query' method took a split second.
    Further to my investigation, I found out the most expensive code lies in
    CL_MDM_PROVIDER_SP04_PL03->IF_MDM_CORE_SERVICES~QUERY
    *--- load field meta data ---*
      IF mt_mdm_field_meta_data IS INITIAL
      OR mt_field_meta_data     IS INITIAL.
        CALL METHOD me->_load_field_information.
      ENDIF.
    Within this method loadfield_information, it rips all the table and structure information
    from MDM, and ALL language texts and so on.
    It has many loops, and within the loops querying MDM for more information.
    Is there anyway to speed this up?
    Why aren't these data cached? (They don't change so often in a production environment)
    I also found a shared memory class CL_MDM_METADATA_ACCESS but it is not used anywhere.
    No shared memory area relevant is delivered by SAP as well.
    Any ideas?
    Cheers,
    Michael.

    Hi Michael,
    you're welcome.
    I'm not sure how the Connection Pooling to MDM is really done by the ABAP APIs as I'm unfortunately not an API developer but just use the API for my programms.
    What I learned during this process is that the repository meta data (meaning table descriptions, and so on) have to be loaded at least once for each connection. This makes sense because a repository can always be changed manually by any user. And I don't think that it would be faster to hold the meta data persistent in the ABAP layer because then you would need to compare the ABAP available meta information with the current meta information of the repository. This could take even longer.
    I've solved this "issue" in a way that I really rely on the connection because a single connection is very stable. So I call the "CONNECT" only once in the very beginning, run through my coding and the very last step is the "DISCONNECT". As long as a connection is available, the meta data is cached in the API layer (at least this is the case for SP05).
    BR Michael

  • PI to MDM Connection Problem.

    Hi Experts;
    I have a connection Problem. I Sent data from r3 to PI System.PI System Convert Idoc to xml and sent to mdm server but PI cannot connect to mdm server. I Controled my connection information ip and mdm repository name is true . but I dont see ServerUser Id .
    How I see and change this server user ?
    Can you help me !
    "MDM Adapter listener could not start due to: Can not create repository session '<server=192.168.10.35 serverUser=Admin repository=p0349 user=Admin>' caused by: Connection Failed: Cannot create connection to MDM Server '192.168.10.35' for one of the following reasons: (1) server does not exist, (2) server is not started, or (3) input/output problem while creating connection, error code: UnknownServer"

    Hi Turgut,
    How I see and change this server user ?  As scenario is R/3>PI>MDM.
    You need to look into your receiver Communication channel in Integration Directory (Integration Builder) where you have settings for defining MDM Server, Repository , Repository User and Password , Port Code of the Outbound MDM port etc.
    Please find the below link to check settings for  Setting Up Inbound Messaging into MDM.
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/48/9854884d3217cee10000000a421937/content.htm
    There is no Server User ID but it is Repository User and Password along with other parameters in Communication channel.
    Note: Make Sure that your MDM Import Server is also running.
    Regards,
    Mandeep Saini

  • BW - MDM connectivity Error

    Hi, we have a problem in the connection between MDM (7.1) and BW (7.0).  If we execute the function module MDM_ACCESSOR_CONNECT, this shows an error:
    Internal Error: Bean MDM_RFC_INIT not found on host aesalmopodqa, ProgId=AESLMODEV01.MDS: Object not found in lookup of MDM_RFC_INIT
    The gateway is "aesalmopodqa" and the RFC generated automatically ( MDM_API_GEN_AESLMODEV01 ) works fine in trx SM59 .
    The MDM server is "aeslmodev01".
    The program ID of this RFC (AESLMODEV01.MDS) has be registered in BID system which is AS ABAP, how
    can I register the program ID in an abap system? I know that programs for
    RFC connection have to be done in Jco in Visual Administrator (JAVA).
    I have found an comand:
    rfcexec -aAESLMODEV01.MDS -gAESLMOBIDQA -xsapgw03
    with this comand the RFC connection works but only works temporaly, if
    I close the CMD windows the connection is broken.
    how can I make this comand work permantly?
      Maybe registering directly
    the program in the ABAP system the MDM functions works.
    Could you help me with this error?
    Thanks in advance,

    Hello User_GL_BI
    Sap mdm has allow.ip  and deny.ip files where you should set ip address for trusted or not trusted system
    Are you sure that ip address your BW system is present in allow.ip file?
    Regards
    Kanstantsin Chernichenka

  • Assertion file: causes drop in MDM connection?

    Hi,
    We are seeing some intermittment problems in MDM and the only thing that really correlates are these entries in the Assertions log file.  The following log entry will show up multiple times at a given time:
    <Assert ts="2009/05/12 16:43:05.497 GMT" tid="19864" entry-no="491136" file="..\..\..\Database\A2iDbConnection\OLEDB_DBConnection.cpp" line="1777">false</Assert>
    Can someone explain what could be the cause of this?  And could this cause a Java API connection to drop? 
    Thanks in advance.

    Hi Charinde
    1)You need check network connection to MDM Server and from MDM Server to Oracle DBMS
    how to do it see at:
    https://websmp201.sap-ag.de/~sapidb/011000358700001119842007E
    2)Maybe you install different(new) version of SAP MDM applications or services? Check it too.
    Best regards

  • MDM Connection API

    Hi friends,
    I am new to MDM, i just want to connect to standalone MDM. Can anyone please send me some Java API to connect to MDM. I have a jar file named MDM5J.jar.
    Please help...

    hi,
    this is simpleConnection code to connect MDM server..
    SimpleConnection connection = null;
    try {
    connection = SimpleConnectionFactory.getInstance("localhost");
              } catch (ConnectionException e) {
                   e.printStackTrace();
    use mdm-core.jar also...
    Edited by: Vijaya Sekhar Reddy Alla on Mar 26, 2008 9:43 AM

  • MDM connectivity using JCA

    hi friends,
    I want to connect MDM server using JCA
    can you please provide me the sample code for that.
    Regards,
    Venki

    Hi Venki,
    I'm trying to connect to SAP systems from my webservice provider with the help of JCA, could you help on this.

  • SRM-MDM Connection Failed

    Hi All,
    When we open the following url http://<localhost>:50000/SRM-MDM/SRM_MDM?
    and when we enter the server name, and click on "Connect", it says connection to server failed.
    Can anyone help in:
    1. What password do we enter here?
    2. We have deployed all the required business packages, JAVA APIs from SRM-MDM Catalog 2.0. Is any other component required to be deployed?
    Thanks and Regards,
    Kaushik

    Hi,
    For open the following url http://<localhost>:50000/SRM-MDM/SRM_MDM
    Have you deployed the following files in listed order:
    1. SCA file with API and Connector (File Name: MDMJAVAAPIXX_X.sca)
    2. SCA file for search and configuration UI (File Name: SRMMDMCATXX_X.sca)
    which could you know about exact version by using SAP NOTE 1083126 for version mapping of SRM-MDM CATALOG 2.0.
    Aftyer deploying the files, Restart your WEBAS
    You need to put Server name of your MDM (HostName or IP Address) and Password = your MDM Server if you have set any otherwise leave it blank. once you able to Connect to your MDM Server you need to select your corresponding Repository and Put the User = Master and Pwd leave it as blank. then you could move to screen of configuration.
    Hope it solve your Problem,
    Thanks,
    Mandeep Saini

  • SAP MDM Connection with WebDynpro Java

    Hi,
    I am working with SAP WebDynpro Java (UI) and SAP MDM (Database). I had added the respective jars-
    a) I want to test whether I am able to make a connection to the MDM server. Let me know input parameters (sample source code required) which I need to pass from SAP WebDynpro Java (UI) to make a successful connection to MDM (DB). Please let me know this in details.
    b) After making connection to MDM, I need to write a query where I need to pass Lot No1 & Lot No2 from WebDynpro Java (UI) & check in a MDM table numbers of records existing and later display  the corresponding records details  (sample source code required) in the screen.
    Your inputs will be highly appreciated.
    Thanks.

    Anmol,
    Depending on what version of WAS you are on...you might have WDJ components available that you can use. Just to offer a different view on your question.
    Otherwise follow the links above or the following link to get sample code.
    Read MDM ItemDetail Record in WDJ
    You should get lots of sample code on SDN.
    Thanks,
    Praveen.

  • Establish MDM connection from Java class

    Hi all,
    I am trying to connect to MDM from a local Java class inside a DC. I know I need to add the JAR files in the DC properties. I need to know if it is possible to establish the connection, if the landscape set-up uses a MDM destination for connecting to MDM; and I need to refer the same in the Java class. 
    I am doing this so that I need not deploy the DC each time to check the logic. MDM version is 7.1 SP 09.
    Any help is appreciated. Thanks.
    Regards
    Subathra M

    Why do you have the Class.forName() in a separate try-catch block than the DriverManager.getConnection()?
    Try placing everything in the same try-catch block to see if that resolves your problem.
    You may also want to try using an OracleDataSource.
    OracleDataSource ods = new OracleDataSource();
    String url = "jdbc:oracle:thin:@//hostname:port/SID",
    ods.setURL(url);
    ods.setUser("apps");
    ods.setPassword("password");
    Connection conn = ods.getConnection();
    Refer to http://st-doc.us.oracle.com/11/111/java.111/b31224/getsta.htm#i1008334 for details on how to connect to the database using a Data Source.

  • Issue with MDM connection

    Hi,
    I am trying to connect to MDM 7.1 SP08 by using MDM destination created through MDM Destination Administration Tool.
    RepositorySessionContext userSession = ConnectionManagerEx
                   .connectWithUserSession("DEST_SAPVENDOR","SEARCH",null,null,0,false,null);
    but I am getting below error.
    com.sap.mdm.session.SessionException: Can not authenticate 'repository session' '[server=devmdm1.eu.novartis.net serverUser=Admin repository=SAPVENDOR region=null user=null]' because user name is not specified at com.sap.mdm.internal.session.InternalSessionManager.validateUserNameAndPassword(InternalSessionManager.java:1453) at com.sap.mdm.internal.session.InternalSessionManager.createUserSession(InternalSessionManager.java:1064) at com.sap.mdm.internal.session.InternalSessionManager.innerGetSession(InternalSessionManager.java:762) at com.sap.mdm.internal.session.InternalSessionManager.createSession(InternalSessionManager.java:212) at com.sap.mdm.session.SessionManager.createSession(SessionManager.java:65) at com.sap.mdm.connector.connection.MdmManagedConnectionFactory.connectToMdm(MdmManagedConnectionFactory.java:466) ... 63 more
    Anybody any idea on this issue..........
    Thanks
    Ravindra

    Hi Abhishek,
    Thanks for your response.
    Yes in error it states that user is null but I am using trusted connection by Client IP . Repository is up and running and  User is created in users table in MDM.
    The API is provided by sap to connect to MDM by using MDM Destination where we have no option to provide userid. It should internally fetch the login user id but not able to.

  • Issue in PI-MDM Connection

    Hi Experts,
    We are using MDM 7.1 and PI 7.1. When PI is trying to post file in to MDM Port we are getting error as " Error accessing file--sharing violation". If any one know the solution plz hep out.
    Thanks
    Narendra

    Hello Narendra
    1)If you used MDM PI Adapter for connect to MDM you should be sure that only one MDM receiver configured to that MDM inbound port.
    The same situation with MDM outbound ports.
    Only one adapter engine can working with mdm port at the same time.
    2)If you put file directly(without MDM PI Adapter) your PI User should have premissions by writting to MDM inbound/outbound directory.
    3) another application open file during writting process.For example - when source file has very big size.
    It is may be MDIS.If it is true - increase time interval for import process. 
    Regards
    Kanstantsin  Chernichenka

  • SRM MDM connection problem

    Hello,
    When I try to create a SC in SRM wizard the following error appears:
    java.lang.NoClassDefFoundError: com/sap/mdm/blobs/BlobCacheException
    Thank you.

    please check this NOTE
    Note 1015201 - SRM-MDM Catalog 1.0 Patch02 Release Note
    for Bug-Fixes

Maybe you are looking for

  • Enhancing 2LIS_04_P_ARBPL with Shift

    We need to report production data by shift in our BW system.  It is not available in the 2LIS_04_P_ARBPL datasource.  I planned to costomize this extractor to include the shift from AFRU-KAPTPROG.  But the 2LIS_04_P_ARBPL extractor did not have the c

  • Displaying Image on the Front screen

    Hi all, I am developing a screen programming. it has 10 screens. I have uploaded image using SMW0 transaction code and cl_gui_docking_container, cl_gui_picture classes in the 1st screen. But it is replicating into all the remaining screens also. I ha

  • Problem with instaling windows

    I tried to install windows on my laptop earlier tonight. When I turned on my computer the message I got was "non-system disk-press any key to continue " however pressing any key does NOTHING. No idea what to do? Any suggestions?

  • Where do I find restore to factory settings in new iTunes

    Any help???

  • Using NI-XNET session with FGV

    Hello, I want to use NI-XNET session in a FGV and I've got the following error : 0xBFF6309C. I also try with Global variable same error. it's not possible to save XNET session ? I'm using Labview 2012 SP1 and NI-XNET 1.7 Thank you for your help JP