Webdynpro with MDM thru JAVA MDM API

Hi all
i have the requirement with webdynpro MDM JAVA API which interacting with MDM system.
i have one repositoty in the MDM console i.e DEMO_CUSTOMER
i have one table in that repository called CUSTOMER_ADDRESS .
i want to access the customer address details information from the MDM table into Webdynpro application.
can you please send the sample code to the following operations with MDM table which retrieves the information in the webdynpro application.
1) displying the table data
2) inserting the record from the table
2) deleting the record from the table
3) updating the record from the table.
it is very helpful to me if anybody would have to send the sample code to me to the above operations.
Regards
Suresh babu

If you are using the MDM Java Connector from Web Dynpro application, you have to set the properites accordingly.
Go to <b>properties of Project</b> and there choose "<b>Webdynpro reference</b>". Here, choose <b>library reference</b> and there give your library reference.

Similar Messages

  • Performance issue with Business Objects Java JRC API in CRXI R2 version

    A report is developed using java JRC API in CR XI release 2. When I generate the report in the designer, it took less than 5 seconds to display the results in crystal report viewer inside the designer. But in the QA environment, when I generate the same report from the application, it takes almost 1 to 1.5 minutes to display the same results in PDF. I also noticed that if the dataset contains bigger volume of data, then the reports are taking even longer almost 15 to 20 minutes.
    While generating the report from the application, I noticed that most of time is taken during the execution of the com.crystaldecisions.report.web.viewer.ReportExportControl Object method as shown in following line of code
    exportControl.processHttpRequest(request, response, context, null)
    We thought the delay in exporting the report to PDF might be the layout of the report and data conversion to PDF for such a bigger volume of data.
    Then we investigated the issue and experimented quickly to generate the same report with same result set data from the application using XML, XSL and converted the output XSL-FO to PDF using Apache FOP (Formatting Objects Processor) implementation. The time taken to export the report to PDF is less than 6 seconds. By doing this experiment, it is proved that the issue is not with conversion of data to PDF but it is the performance problem with Business Objects Java JRC API in CR XI R2.
    In this regard, I searched for the above issue in the SAP community Network Forums -> Crystal Reports and Xcelsius -> Java Development -> Crystal Reports. But I did not find any answers or solutions for this kind of issue in the forums.
    Any suggestion, hint in this matter is very much appreciated.

    Ted, The setReportAppServer problem is resolved. Now I could able to generate the report with hardcoded values in the SQLs in just 6 seconds where as the same report was generated in CRXI R2 in 1 minute 15 seconds as mentioned in the earlier message.
    But, our exisiting application passes the parameter values to the SQLs embedded in the report. For some reason the parameters are not being passed to the report and the report displays only the labels without data.
    As per the crj 12 samples codes, the code is written as shown below.
    1. Created ReportClient Document
    2. SetReportAppServer
    3. Open the report
    4. Getting DatabaseController and switching the database connection at runtime
    5. Then setting the parameters as detailed below
    ParameteFields parameterFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
    parameterFieldController.setCurrentValue("", "paramname",paramvalue);
    parameterFieldController.setCurrentValue("", "paramname",paramavalue);
    byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF); 
    6. Streaming the report to the browser
    Why the parematers are not being passed to the report?  Do I need to follow the order of setting these parameters?  Did I miss any line of code for setting Params using  crj 12?
    Any help in this regard would be greatly appreciated.

  • KM Scheduler job with MDM APIs

    Hi,
    I am trying to write a background job that makes use of MDM APIs. I created a Portal Application Project and put in the required code. I added the required MDM jar fiels in to the java build path. How ever, I don't know how to add Library Reference with value "com.sap.mdm.tech.mdm4j" since this is not a Webdynpro project. Without this the KM Scheduler fails to run the job thowing an exception ''NoClassDefFoundError...".
    Can any one tell me how do I go about?
    Thanks,
    Sudheer

    Trying to post the question under different category

  • WebDynpro with ABAP or JAVA?

    Hi all,
    I am a veteran in ABAP. I wish to learn web dynpro. I never worked on JAVA. Can anybody advice me which programming language i should use to learn WebDynpro development. Also let me know which companies have webdynpro projects in India?
    Thanks in advance..

    Hi Buddy,
             Welcome to intresting world of Web Dynpro.
             As veteran ABAPer you should go for WebDynproABAP .
             Now why ?
    Point 1:
    In my view WebDynpro ABAP and Wd Java are not same.
    Basically WebDynpro ABAP and Java are two different webDynpro provided by NetWeaver Stack.
    Basic conceptual base of WD ABAP and WD Java is same.I mean to say concepts like Context binding , node , elements , Layout both support are same.
    But when you provide background functionality to your Web Screen then Java or ABAP come in to picture.Just take case , you want do some thing on click of some button then
    1) in case of java may you will call some ejb or you will may write some java code on click.
    2) but in case of WD ABAP you have to do same thing with ABAP classes . You will call some call or some method of some system defined class.
    Ulimately point I want make
    1) WD ABAP and WD java 's Base is same but you code in completely different way.
    2) Purpose for which SAP came with two different WDynpro is different. Java can be used for developing quite sophistcated Web services.
    Point 2:
    another help for you .Just go thr' following thread
    How much of oops ABAP is required for ABAP Webdynpro .
    Point 3:
    You can start with tutorials and all
    Web Dynpro for ABAP
    http://help.sap.com/saphelp_erp2005/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm
    best tutorials in wbdynpro for ABAP to start with :
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]

  • WebDynpro with MDM Java Connector

    Hi,
    I'm trying to setup the JCA in MDM5.5 SP4 patch 3 in a Java Stack Engine 6.40.
    I'll be trying to access it from a standalone Webdynpro application.
    In the documentation I got it talks about setting a file:
    application-j2ee-engine.xml
    which only exist in J2EE apps, and not WebDynpro apps.
    Any ideas?
    Cheers,
    Michael

    If you are using the MDM Java Connector from Web Dynpro application, you have to set the properites accordingly.
    Go to <b>properties of Project</b> and there choose "<b>Webdynpro reference</b>". Here, choose <b>library reference</b> and there give your library reference.

  • 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?

  • Abap MDM API query with OR operation

    Hi experts,
    not sure this is the proper section for the thread, anyway; dealing with ABAP MDM API, is there a way to build up a query which involves several clause in OR conjunction?
    This is the scenario: I've got to extract several items on the basis of exact product codes. Tipically, I've got huge vectors of hundreds of product codes; actually, I could easily retrieve data by looping over them and, for each code, perform a query on MDM via QUERY method building the clause as follows:
          ls_query-parameter_code  = 'MDMSRM_PART_NO'. "Field code
           ls_query-operator        = 'EQ'.   "Contains
           ls_query-dimension_type  = mdmif_search_dim_field.      "Fieldsearch
           ls_query-constraint_type = mdmif_search_constr_text.    "Text search 
           lv_text = wa_codes-product_code.
           GET REFERENCE OF lv_text INTO ls_query-value_low.
           APPEND ls_query TO lt_query.
    This will however result in hundreds of query in the LOOP itself.
    Is there any way to build a query with OR operators ?
    Thanks,
    M.

    Hi,
    I see you are not clearing your local structure "ls_query".  This could be reason of problem,  try this and let us know the result:
    DATA lt_query                  TYPE mdm_query_table.
    DATA ls_query                 TYPE mdm_query.
    DATA lv_search_text       TYPE string.
    DATA lt_result_set            TYPE mdm_search_result_table.
    DATA ls_result_set           LIKE LINE OF lt_result_set.
    Fill query structure with FIRST parameter
        ls_query-parameter_code  = 'Name'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = 'BMW'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    CLEAR ls_query.
    Fill query structure with SECOND parameter
        ls_query-parameter_code  = 'Model'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = '2009'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    CLEAR ls_query.
    Query on records (search for value 'BMW' model '2009' in table Products)
        CALL METHOD lr_api->mo_core_service->query
          EXPORTING
            iv_object_type_code = 'Products'                  
            it_query            = lt_query
          IMPORTING
            et_result_set       = lt_result_set.

  • Using MDM API

    Hi all
    how the data has to be retrieved and strored between webdynpro and MDM using MDM java APi?
    can u explain it with any sample example?
    Regards
    Sunil

    Hi Suresh,
    Thie following links provides information on interfaces for accessing MDM Data directly from other applications using Web Services, ABAP technology, and Java API technology.
    [http://help.sap.com/saphelp_mdm550/helpdata/en/45/50b345af8e3be6e10000000a1553f7/frameset.htm]
    [http://help.sap.com/saphelp_mdm550/helpdata/en/45/50b378af8e3be6e10000000a1553f7/content.htm]
    I hope this will be helpful to you.
    Rgds,
    Krutarth

  • Does MDM APIs work in CE 7.2 landscape?

    Hello Experts,
    We have a requirement to fetch data from MDM tables and display in WD Java applications. We have to use MDM APIs for that. Our landscape is as follows:
    Portal server is on CE 7.2
    MDM Server version is 7.1 SP05
    Now, the major problem is, in order to establish a connection to repository by MDM API, we need to provide "MDM System Alias" in the code. This alias is for the system of type MDM created in portal system administration --> System Config.
    As far as I know, we need this alias created if we want to establish a connection. But following documentation on help.sap.com says that MDM Business Package isn't supported for CE 7.2 version. And until we deploy MDM BP, system template of type MDM isn't avaialble on portal.
    http://help.sap.com/saphelp_mdm71/helpdata/en/5e/48a04270600d31e10000000a1550b0/frameset.htm (See the Prerequisites section)
    What should we do in this case? Is it so that MDM APIs are not supported for CE 7.2 version at all? Or is there any other way to achive it?
    Please help me with your valuable inputs.
    Thank You,
    Ameya
    Edited by: Ameya Pimpalgaonkar on Jun 21, 2011 12:12 PM
    Edited by: Ameya Pimpalgaonkar on Jun 21, 2011 12:14 PM

    Hello Kanstantsin Chernichenka,
    Thank you very much for the reply. There is no way I can do this in SP 05? or do I have to upgrade to SP7 only? I am not sure if we can upgrade to SP7 that's why I am a bit concerned.
    And it is supported in SP07 means that I can deploy a business package for MDM on CE 7.2, only if MDM SP is 07?
    Ameya
    Edited by: Ameya Pimpalgaonkar on Jun 21, 2011 12:54 PM

  • Using ABAP Web dynpro for connecting EP with MDM

    Hi All,
    We have an architecture landscape in which EP User interface (iviews) need to integrate with MDM import manager. Is it possible to achieve this using Web dynpro? If any company has implemented this kind of scenario before, please gave us the tips.
    Thanks,
    Anand

    Hi Anand,
    You can use MDM Java API in WD. ABAP API for MDM is is currently in process.
    Just wondering what kind of business scenario do you have which allows portal users to use import manager`s functionality.
    Best regards, Maksim Rashchynski.

  • Issues with MDM installation - Windows + MaxDB 7.7

    I list here some observations resulting from the installation of MDM on Windows with MaxDB
    You can find the documentation here:
    http://service.sap.com/installMDM
    Important is the Installation Guide.
    1) only two files are needed:
    MDM:  51032724.zip (more then 1GB)
    MaxDB: http://service.sap.com/swdc
    Support Packages and Patches, Additional Components, MaxDB, MAXDB 64-BIT, MAXDB 7.7 64-BIT -> MAXDB7702_16-10004357.SAR
    2)
    the installer propose sometime the path sdb and sometimes sapdb
    I always used M:\sapdb\....
    install the maxdb as explained in the inst. guide of mdm
    http://service.sap.com/installMDM
    ( first client , then client+server)
    mdm installation is straightforward
    (3x server + some clients)
    3) Install OSS 684106 (paragraph 3.2.1 in the installation guide)
    4) restart the system after installing
    5) start the console and use only the DB-User SAPMDMDB with password SAP
    6) After creating a repository, log in using the user Admin and no PW
    7) capital letter are in general important

    Hi Manish,
           Here are other some problems you may face...
          1) 7.1 does not support some of the database charset which was supported in 5.5, which may lead to re-installation of database...
          2) Multiple workflows on single record was supported in 5.5 but its no longer possible with 7.1, which may lead to redesign of existing scenarious...
          3) A strict ristriction is added in Import manager xml maps, which requires single root element in xml. There is autimatic transformation step for doing this, but dont know how much it works accuretly...
          4) Tuple is added as new structure, but is has more restriction than the qualified lookup, validation are applicable for qualified lookup but you cannot write validation and assignment on multivalued tuple...
          5) PI Adapter is marketed as "it can directly intereact with MDM", but as such there is no advantage because only ftp will get replaced with java api calls, and PI/XI cannot directly read-from or write-to MDM. all the file transfer via import and syndicator remain same continuing "BLACK BOX Communication" bettween MDM and PI/XI.
    Regards,
    - Shailesh.

  • 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

  • Portal with MDM

    Hi
    i am going to work on the project which have the components like EP and MDM. it is going to start soon.
    so far i have not worked in this combination.
    can u tell me what are the requirments will come between EP and MDM ?
    how are the interactions will be happend between EP and MDM
    can u tell me more about that MDM and portal combinations???
    i am not aware of MDM but knows abt portal
    it is very helpful to me if any body gives good suggestions.
    Regards
    Sunil

    Hi Sunil,
    Portal with MDM is a very hot area now as everything is moving to  ESOA .
    Before starting with the integration you need to do some prior installation setup on EP side
    - Business packages which will contain MDM connector,Java API's etc needed to set up the connection between these two systems.
    You can work on different scenarios using the EP MDM combination.
    1)Basic Scenario: Accessing MDM repositories from Portal.
    You can use std iviews provided and connect o MDM system by doing the basic req config on EP side like creating sytem aliases,system objects etc and access the MDM rep from EP .You can view the Master data ,create it,edit it,delete it etc all the MDM activities can then be carried out from EP side.
    2) UWL:Running MDM workflow through Guided procedures.
    You can create MDM Workflow and run these from Ep side through Guided procedures.This will give single point of acces to Master data.
    The workflow jobs will be displayed in the UWl and by doing User Mapping workflow jobs can be handled by different user Roles.Control is passed from Ep workflow to MDM workflow through Java Api's
    Hope this helps
    Thanks & Regards
    Simona

  • Error when creating record from portal into MDM using MDM API's

    Hi All,
    When trying to create a new record from Portal we are getting the below error. It is working fine till yesterday.
    We are using MDM API's from webdynpro java for creating.
    What could be the reason for this. Not sure whether this error is ocuring for all the users or for single user.
    "Exception: CommandException com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: Database command execution error. A SQL statement failed to execute. The actual error may have been written to a log file."
    Please help to resovle this.
    Thanks
    Satish

    Hello Satish
    Suppose your Portal was upgrated
    if it right -  search and deploy new mdm packages
    Regards
    Kanstantsin

  • Can we use MDM 7.1 Web Dynpro UI with MDM 5.5 ?

    Dear Experts,
    Is there any possibility to use new MDM Web Dynpro UI (which has got released with MDM 7.1 SP04).
    with MDM 5.5 SP6 as a backend.
    I wonder, if we deploy MDM 5.5 Java API with MDM 7.1 Web Dynpro components,
    then it should work with MDM 5.5 setup also!
    Any thoughts on this?
    Regards,
    Shailesh.

    Hi Shailesh,
    Is there any possibility to use new MDM Web Dynpro UI (which has got released with MDM 7.1 SP04).
    with MDM 5.5 SP6 as a backend.
    As per my knowledge is concern for MDM7.1 will support .NET API,ABAP API.......
    I wonder, if we deploy MDM 5.5 Java API with MDM 7.1 Web Dynpro components,
    then it should work with MDM 5.5 setup also!
    I dont think so....
    Thanks
    Yugandhar

Maybe you are looking for

  • Execute external program from java in the same virtual machine

    hello, I need some help. here is what i need: i'm developing a test tool and i need to execute the application to be tested from my test tool in the same virtual machine so that i can be able to connect to that application and catch events like click

  • I know this is easy.... but

    i dont really understand recursion all that well. Im not sure but i think that im correct about setting largest to 0, and i gotta create a base state using an if statement correct? And then following else statements to index through the array? Is thi

  • Making a Blog in Muse

    I want to make a blog website using Creative Cloud on a Mac.  I'd prefer to use Muse, but if it would be easier to use a different app, that would be fine as well.  Any recommendations on how to post articles that can show up in RSS feed?  Thanks!

  • During the installation of the rpm package of Oracle 11g XE,  Error occur "cpio:digest mismatch"

    It is not possible to install the following error occurs. [root @ localhost Disk1] # rpm -ivh --nodigest oracle-xe-11.2.0-1.0.x86_64.rpm preparing... ################################# [100%] Updating / Installing ...     1: oracle-xe-11.2.0-1.0 #####

  • Is sharing resources between MIDlets possible?

    Hello. I was wondering if it is possible to share the resources that are packaged with MIDlets with other MIDlets. If it isn't, then is there a way to "update" the resources within a midlet package without actually deleting and reinstalling the whole