Using Java Web Dynpro iViews to integrate with SAP MDM

Hi,
I have already SAP MDM 5.5 supplied iViews with Enterprise Portal.
These include itemDetail iView, ResultSet iView, PicklistSearch, Hiearchy Search.
Now, I am integrating Java Web Dynpro iViews with SAP MDM.
When adding the fields using object of ResultSetDefinition Class, should we use MDM Table Name or MDM Table Name Code/MDM Field Name or MDM Field Code?
I think we should use the CODE as the name as it does not contains any space while working with Java API.
Regards
Kaushik Banerjee

Hi Kaushik ,
Yes you should use the Field and Table CODE when integrating MDM with any other system using API either Java, Abap or Com api.
Actually this is one of the main use of the code in MDM .In API.
Hope It Helped
Thanks & Regards
Simona Pinto

Similar Messages

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

  • Use of Web Dynpro ABAP as UI in SAP NetWeaver BPM?

    Hello,
    Have anybody heard of any plans by SAP to support SAP Web Dynpro ABAP as another option for the UI in SAP NeWeaver BPM?
    As SAP now delivers some Web Dynpro ABAP UI:s as part of EHP:s etc it would be good to be able to reuse these in SAP NetWeaver BPM.
    All input is welcome.
    Thanks for your help and support,
    /Markus

    i heard it can be expected in 7.3.

  • PdfSource content of interactive form in Java Web Dynpro

    Hi All,
    I am using Java web dynpro with interactive form. When I display the contents of the pdfSource of the interactive form into a text file, I see the following which is not a true binary content. Could u please let me know why the content is represented in the form other than binary?
    %PDF-1.6
    %âãÏÓ
    153 0 obj<</First 973/Length 1717/Filter/FlateDecode/N 120/Type/ObjStm>>stream
    xÚ´XɎ 7 ý C"î ` p¼ lǃ™É) „¶D˂%õ Õšxþ>¯š¤ä‰›´/9±EV½*¾zÜd gŽyÍ Â0Á™0
    0000000153 65535 f
    0000000154 65535 f
    trailer
    <</Size 156/Root 1 0 R>>
    xref
    0 0
    trailer
    <</Size 156/Prev 32208/XRefStm 2120/Root 1 0 R/Info 3 0 R/ID[<991012CC1DD111B20A00FFBFDB48FD64><991077C51DD111B20A00060100000680>]>>
    startxref
    35372
    %%EOF
    Thanks & Regards,
    Jyoti

    Hi Naidu
    I have written the contents of the pdfsource to a file in the server using the below code:
    byte b[] = wdContext.currentContextElement().getPdfSource();
    File file = new File("C:
    Severance.pdf");
    long length = file.length();
    FileOutputStream os;
    try {
         os = new FileOutputStream(file);
         os.write(b);
         os.close();                         
    catch (Exception e)
         // TODO Auto-generated catch block
         wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Some Exception "+e);
         e.printStackTrace();
    And i have added a File Download element in the Application and have implemented the below piece of code for it:
    IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("ctx_downloadpdfsrc");
    ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
    binaryType.setMimeType(WDWebResourceType.TXT);
    String fileName ="C:
    Severance.pdf";
    // path to the source file
    /* converts the binary file to a byte array and moves it to the text element */
    try
          File file = new File(fileName);
          FileInputStream in = new FileInputStream(file);
         ByteArrayOutputStream out = new ByteArrayOutputStream();
         int length;
         byte[] part = new byte [10 * 1024];
         while ((length = in.read(part)) != -1)
               out.write(part, 0, length);
          in.close();
                              wdContext.currentContextElement().setCtx_downloadpdfsrc(out.toByteArray());
    catch(Exception e)
                              wdComponentAPI.getMessageManager().reportSuccess(" !!!!!!!!!!!!! "+e);
                              throw new WDRuntimeException(e);
    Other than this, if we simply write this line in the code it will display the entire content of the pdfSource on the screen when deployed:
    wdComponentAPI.getMessageManager().reportSuccess(wdContext.currentContextElement().getPdfSource().toString());
    Regards,
    Jyoti

  • How to use EVS with different data in each row, in a Java Web Dynpro table?

    Hi all,
    I am using EVS in a column of java web dynpro table.
    Let's say the name, and context attribute, of this column is column1.
    It's filled dynamically using an RFC, that uses as input parameter the value of another column, and related context attribute, from the same table (Let's call it column2).  Obviously, from the same row. So, in other words: the values of the EVS in column1 of row1, are dependent of the value of column2 of row1. And the values of the EVS in column1 of row2, are dependent of the value of column2 of row2. And so on... Hope i could explain myself ok.
    The code I'm using works great for filling the EVS dynamically:
    IWDAttributeInfo attrInfo = wdContext.nodeDetail().getNodeInfo().getAttribute(nodeElement.COLUMN1);
    ISimpleTypeModifiable siType = attrInfo.getModifiableSimpleType();
    IModifiableSimpleValueSet<String> value = siType.getSVServices().getModifiableSimpleValueSet();
    value.clear();
    if(this.initRFC_Input(nodeElement.getColumn2())){
         for (int i = 0; i < wdContext.nodeRFCresult().size(); i++){
              value.put(wdContext.nodeRFCresult().getRFCresultElementAt(i).getLgort()
                 , wdContext.nodeRFCresult().getRFCresultElementAt(i).getLgobe());
    In this code, nodeElement is the context row of the table that is passed dynamically to the method when the value of colum2 is changed.
    HOWEVER, the problem I'm having is that after executing this code, EACH NEW ROW that is added to the table has by default the same values as the first row, in the column1 EVS. And, for example, if I refresh the values of the column1 EVS in row 2, all EVS values in the other rows are also refreshed with the same values as the ones of EVS in row 2.
    How can I make sure each row EVS has its own set of independent values, so they don't mess with each other?
    Hope you guys can help me. And please, let me know if I didn't explain myself correctly!
    Thanks!

    I just did as you said (I think), but it's still having the same behaviour as before (same data for all EVS in the table).
    Here´s what I did:
    I
    In node "Detail" (cardinality 0...n, singleton set to true), which is binded to the table, I created a child node named "Column1Values" wth cardinality 1...1 and singleton set to false.
    "Column1Values" node has an attribute called "column1", of type String.
    I did the binding between attribute "column1" and the column1 inputfield celleditor in the table.
    I created an event called Column2Changed and binded it to the column2 celleditor of the table. I added a parameter called nodeElement of type IPrivateCompView.IDetailElement to this event, and mapped it to the column2 editor in the table so that I can dynamically get the nodeElement that is being affected.
    I added the following code to the onActionColumn2Changed(wdEvent, nodeElement) method that gets created in the view:
    IWDAttributeInfo attrInfo = nodeElement.nodeColumn1Values().getNodeInfo().getAttribute("column1");
    ISimpleTypeModifiable siType = attrInfo.getModifiableSimpleType();
    IModifiableSimpleValueSet<String> value = siType.getSVServices().getModifiableSimpleValueSet();
    if(this.initRFC_Input(nodeElement.getColumn2())){
         for(int i =0; i < wdContext.nodeRFCresults().size(); i++){
              value.put(wdContext.nodeRFCresults().getRFCresultsElementAt(i).getId(),
                                  wdContext.nodeRFCresults().getRFCresultsElementAt(i).getDesc());
    And with this, I still get the original problem... When the EVS of one row is updated, ALL other EVS of the table get also updated with the same values.
    What am I missing? Sorry Govardan, I bet I'm not seeing something really obvious... hopefully you can point me in the right direction.
    Thanks!

  • How to mapping Bapi_EeCatimesheet with Web Dynpro iview

    I have problem with CATS:
    1. mapping field from Web Dynpro iview with Bapi_EeCatimesheet_Worklist
    Column: Activity = Bapi_EeCatimesheet_Worklist_input_Out.???
    Column: xxx = ???
    Variable as TimeSheet of SAP Easy View
    2. How to insert Employee timesheet into SAP System by Bapi

    Hi,
    At first time the ApplicationParameter was not displayed among the mappable properties. After that I changed the ApplicationParameter property of the WD iView (so it became different from the default one) and created a new room template. What happened ? At the new template I could map to room_id to the ApplicationParameter. Interesting, not?
    One other thing: What do you think about the following ?
    1. First creating a "Concat Strings" extension to create a string like "room_id=<room_id>"
    2. Creating an other extension and mapping the newly created string to the ApplicationParameter property
    3. Getting the parameter from WD with the help of getRequestParameter(java.lang.String key)
    I have not tried it yet, but I plan to do it.
    Regards,
    Ferenc

  • Java Web dynpro with ABAP Clients?

    Morning,
    We have a situation where we would like to use a Java Web dynpro with multiple ABAP backend data sources. This is for autorization as well as data. We are not using Enterprise Portal.
    We've created a pair of system Jcos and mapped them to the Web dynpro via the URL. This works and the correct data from the correct Client is retrieved depending on which pair of Jcos we define in the URL.
    The problem we are having is that we are only able to logon using the ABAP Client defined in the ume....master.client parameter.
    Is there a way to achieve this (again without EP) either in the system configuration or programatically in the web dynpro?
    tia
    Cheers,
    Mitch

    Hello,
    Thanks for the updates. Actually my query is we have a SCM 5.0 system which has a java stack in it. But now we are going to upgrade it  to SCM  7.0. -  Is SCM 7.0 has a java stack ?
    If it doesn't have , can we upgrade SCM 5.0 to  SCM 7.0 without Java Stack ? Is it posssible to upgrade without Java Stack or not ?
    Is it possible that  we can convert Java Stuff into ABAP web dyn pro ? If yes , how shall we can achieve it ? If not, how shall we proceed in an alternate way ?
    Thanks for your help  in advance.
    Madhu

  • What is the right  way to display a table in Java web dynpro using a node.

    Hi experts,
      I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro.  In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to  show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Please refer to my post.. you will get the answer
    Dynamic Table -  same data repeating in all rows
    Special care should be taken in designing the context for table attribute.
    The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
    Now coming to final solution :
    For designing a table in adobe interactive form you have consider following
    You have to design the view context upto three level, I am explaining you the properties
    PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
    TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
    TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
    TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
    Then under TableData value node, you have to put all your table attributes.
    This Value Node name can be anything but hierarchy should be same as I have mentioned above.
    Please try out these steps and get back to me if you have any doubt.

  • Problem with CORBA application deployed using Java Web Start 1_6_0.

    Java Web Start fans and experts:
    We have been using Java Web Start to deploy the client side of a CORBA-based application since the inception of Java Web Start ... including Java Web Start 1.0 right up through the present.
    With Java Web Start 1_6_0, we see evidence that Web Start is "tinkering with" the IOR that CORBA uses to communicate. In all previous versions of Java Web Start, independent of the JRE which the application uses, the stringified IOR have been the same size regardless of whether the application is deployed locally or via Java Web Start. With Java Web Start 1_6_0, the stringified IOR is much longer than the "real" IOR (again, regardless of the JRE used by the application itself). To me this smells like a bug in Java Web Start 1_6_0. Has anyone else observed this behavior?
    Here are some specifics .... I've run the same client application with various JREs both with and without Java Web Start as the deployment mechanism. The application was compiled and runs against servers that are running JDK 1_5_0_09.
    Here is the summary of my results from a Linux box running various JREs, various versions of Java Web Start, and also running as a non-JWS deployed application. I've listed the length of the stringified IOR in each case.
    JRE 1.5.0 non-JWS client: stringified IOR length = 344
    JRE 1.6.0 non-JWS client: stringified IOR length = 344 ... this, I think, excludes the JRE as the cause of these problems.
    Java WS 1.5.0, JRE 1.5.0 JWS client: stringified IOR length = 344
    Java WS 1.5.0, JRE 1.6.0 JWS client: stringified IOR length = 344
    Java WS 1.6.0, JRE 1.6.0 JWS client: stringified IOR length = 1568
    Java WS 1.6.0, JRE 1.5.0 JWS cleint: stringified IOR length = 1568
    In all cases, the stringified IOR length is determined by the service receiving the message and is always running JRE 1_5_9_09 and is
    always the same 344 characters in length UNLESS it was deployed
    using Java Web Start 1_6_0, in which case it in nearly 5 times as big!
    To me, it sure looks as if there is a problem with Java Web Start 1_6_0 to be adding so much to the stringified IOR. Note: it's hard to tell how different the underlying IOR is in the JWS 1_6_0 case because, unlike most other ORBs, the Sun ORB doesn't have a tool to extract the IOR into a human readable structure. However, I can think of no good reason why the identical application deployed using Java Web Start 1_6_0 should have a stringified IOR length that is different than that of the same application deployed in non-JWS form or should differ from the behavior seen in all previous releases of Java Web Start.
    Any clues or suggestions? Has anyone else observed this behavior?
    Thanks,
    John

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

  • Web Dynpro iviews integration with web page composer

    Hi,
    Can web dynpro iviews be integrated into web page composer? I was trying to integrate one ESS web dynpro iview into wpc but the system is throwing an error:
    We are on EP7.01 SP3 (Enhancement Pack1). Please advice if the integration is possible in Enhancement Pack1.

    Hi,
    According to the documentation Web Dynpro iViews are not supported : [Configuring Entry Points for iViews|http://help.sap.com/saphelp_nw70/helpdata/EN/06/4776399abf4b73945acb8fb4f41473/content.htm].
    Regards,
    Pierre

  • Using Web Dynpro iViews in Web Page Composer

    Hi all,
    is it possible to add a Web Dynpro / Web Dynpro iView in a Web Page Composer page? I'm using NW7.0 EhP1.

    Hi,
    I believe, it is not possible to add webdynpro iviews in WPC.
    Check this help.
    http://help.sap.com/saphelp_nw70/helpdata/EN/06/4776399abf4b73945acb8fb4f41473/content.htm
    Good Luck!
    Sandeep Tudumu

  • ABAP Web Dynpro V/S JAVA Web Dynpro

    We need to pick developing technology between ABAP Web Dynpro v/s JAVA Web Dynpro. Is technology better than other in terms of security, scalability? There is lot of documentation on the web but it is very old and out dated. I am pretty sure things have changed quite a bit with recent versions of SAP. Any feedback is greatly appreciated.
    Thanks.
    PS: I Used Web Dynpro for ABAP at my previous client for SAP SRM without a problem.

    Dear Sap Fan      
    This has been a long and interesting debate on SDN.
    You will find plenty of posts discussing this matter.
    But there's no clear winner, I warn you.
    ;o)
    This one in particular is very good:
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0e4940c-035c-2b10-0b9d-eb8f99674f4e]
    But you can also check these others:
    [webdynpro java or abap;
    [Webdynpro Java or ABAP;
    [Webdynpro Java or ABAP;
    [Webdynpro Java or Abap ?;
    More and more you see clients migrating from WD4J to WD4A.
    Guess SAP is also heading into that direction, perhaps because Oracle bought SUN sometime ago.
    I'm comfortable on both environments I have to say.
    I have more than 10 years with development.
    I know ABAP from inside out.
    I also know JAVA and I'm certified with this technology.
    But I personally prefer WD4A.
    Why ?
    Because you don't need to use NWDI.
    Because you don't need to configure JCO's.
    Because you integrate seamlessly the development with the transport framework (requests, etc..)
    Because debugging is great.
    Because plenty of traditional ABAP tools (trace, logs, performance analysers, etc..) can also be used with WD4A
    Because you don't need to worry with NWDS...just type SE80 and you're there... ;o)
    And I could go on and on....
    But then again, it all depends:
    Do you have a lot of good in-house JAVA knowledge ?
    Do you use a lof of Custom JAVA development in your company ?
    Are you planning to use standard SAP (ESS/MSS or others for example) ?
    I'm not saying that WD4A is "better" than WD4J.
    There's no such thing.
    Each option has its pros and cons.
    You also can't tell that WD4J is more secure or scalable than WD4A. Or the opposite.
    And, believe me, WD4J is still going strong with a lot of customers.
    But things are changing, and for me WD4A would make more sense if you want to be aligned with SAP.
    Now and in the future.
    Kind Regards
    /Ricardo Quintas

  • Nwdi-managed access of pcd-objects from java web dynpro

    Hi,
    im am trying to access portal pcd-objects from a java web dynpro component (namely getting and setting personalized iview properties). for locally managed web dynpro components this works fine with the code below.
    when i try the same with a nwdi managed web dynpro component i run into problems regarding references to used dcs. for instance, i need to reference used dc SAP_JTECHS/tc/epbc/pcm/adminapi/java because the build needs tcepbcpcmadminapijava.jar which is inside the mentioned dc. but access permissions of this dc don't allow the dependency. when i try to "add used dc ..." in nwds i get the error message: illegal dependency: access list does not allow use of ...
    has someone any solution for this problem? are there other ways of accessing pcd-objects from java web dynpro (nwdi managed!)?
    thanks
    heiko
    private static void savePersonalizationData(String value) {
         try {
              IAttributeSet attributeSet = (IAttributeSet) getIview(IVIEW);
              attributeSet.putAttribute(ATTRIBUTE, value);
              attributeSet.save();
         } catch (Exception e) {
    private static Object getIview(String pcdPath) throws Exception {
         Hashtable env = new Hashtable();
         env.put(
              com.sap.portal.directory.Constants.REQUESTED_ASPECT,
              com.sap.portal.pcm.admin.PcmConstants.ASPECT_SEMANTICS);
         env.put(
              Context.SECURITY_PRINCIPAL,
              WDClientUser.getCurrentUser().getSAPUser());
         env.put(
              IPcdContext.PCD_PERSONALIZATION_PRINCIPAL,
              WDClientUser.getCurrentUser().getSAPUser());
         InitialContext iCtx = new InitialContext(env);
         return iCtx.lookup(pcdPath);

    Hi Kust,
    To access the PCD objects the code you used looks ok for me but your main issues is related to the dc access permissions. This thread discussed about the similar issue. Please review this below thread.
    /message/979328#979328 [original link is broken]
    Regards
    Krishna Reddy

  • Eventing between Web Dynpro iView and regular DynPage iView

    I have seen, done eventing between two dynpage iviews and two webdynpro iviewsHowever, and gone through "How to Use the Portal Eventing for Web Dynpro iViews". However, I have been trying to have a webdynpro iview talk to a dynpage iview but they just won't communicate. Is this even possible?
    Ok basically I have a portal page in a popup window with no masthead and top level navigation. The page has two iviews -  the top one being an iView that points to a webdynpro application on Server A, and the bottom one being a dynpage iview on the Portal Server B.
    In the webdynpro iview, the code for when a button is clicked is
    public onSomeAction(Event event) {
        WDPortalEventing.fire("urn:myUrn","eventName","value");
    In the dynpage iview, the code i have for it is
    myServ = (IEpcfToolbox) PortalRuntime.getRuntimeResources().getService(IEpcfToolbox.KEY);
    myReceiver = myServ.getClientEventReceiver(request, "urn:myUrn", "eventName");
    form.addRawText(myReceiver.getWrappedScript());
    try {
        if (!myReceiver.isReceived()) {
            form.addComponent(createMainScreen());
        } else {
         form.addComponent(new TextView("event received!"));
    } catch (Exception e) {       
        form.addComponent(createErrorScreen());
    I tried all the things I could think of but the receiving iView just won't get the event fired.
    Can someone confirm that this should work? and correct me where I've done wrong.
    Please help. this is very urgent. your help will be greatly appreciated. thanks in advance
    PS. My environments are EP 6.0 SP2 and WAS 6.40 SP14

    > hi,
    >
    > portal eventing  works properly if all participants
    > are in the same domain. Otherwise portal eventing
    > g does not work. If the SAP J2EE
    > Engine on which the Web Dynpro application is
    > deployed is in another domain, you have to  map the
    > IP address of the SAP J2EE Engine to the domain name
    > of the
    > SAP J2EE Engine on which the SAP Enterprise Portal is
    > running, by editing the configuration file hosts.
    >
    > regards,
    >
    > Ganesh.N
    I am no direct access to the boxes so I can't try your suggestion. It really makes sense that eventing won't work if the iViews are on different domains. I know they are in the same domain but different subdomains.
    Anyway, good news I got eventing to work with the mentioned set. I found that that the SAP Java EPCFToolbox API had a bug that kept throwing javascript errors when I tried to have the web dynpro iview fire an event and the SAP one subcribed to it.
    I got around it but using the EPCF Javascript API instead.
    Code:
    response.write("<script>");
    response.write("EPCM.subscribeEvent('urn:dla.telework', 'createPdf', doSomething);");
    response.write("function doSomething() {");
    response.write("window.location = self.location + '&eventReceived=true';");
    response.write("}");
    response.write("</script>");
    So basically just output raw text through the response object and it just works.
    On a similar topic, since eventing can only pass string parameters back and forth, I'm still looking for a way to pass other more complex Java objects between web dynpro and sap iviews. From what I haven't they don't share the same session object (which I thought they did). So basically I can't just stick stuff in the session and pull it down on the other end. I'm clueless right now. If anybody has some tips, plesae share. Thanks

  • Error in SAP Web Dynpro Iview

    Hi,
    We are facing problem with iviews, created using SAP Web Dynpro iView Template. Whenever user clicks on any of SAP Web Dynpro iView , portal main page is opened instead of Web Dynpro application. Same problem is encounted on preview of the iView. Everything was working fine till yesterday and suddenly we are facing this problem.
    Also, iview created using Web Dynpro Java Application option are working fine.
    What can be the reason behind the problem?
    Need your help.
    Thanks in Advance,
    Apurva

    Hi,
    Some times we get the home page instaed of the application.
    This may be due to the application is not active.
    Test from se80.
    If it is working fine create the iview again i think there are changes made to the application.
    Thanks,
    gopal

Maybe you are looking for