Doubts while doing  example on WDJ-Using Web Dynpro Component Interface

Hi
I am doing the example mentioned in the PDF file WDJ - Using Web Dynpro Component Interface Definition.
In the PDF file its mentioned the following code inside onActionCreateDC1:
g_Usage.createComponent("com.sap.wd.childdc1comp.ChldDC1Comp");
wdThis.wdGetWDCompInterfInstInterface().passInfo(
"Created Child DC 1");
I have one query that what is com.sap.wd.childdc1comp.ChldDC1Comp?Is it the component name of DC or the package name of DC?
I have deployed the application.When i click on button Create Child DC1 i am getting follwing exception:
com.sap.tc.webdynpro.services.sal.deployment.api.WDDeploymentException: Failed to load deployable object part 'com.wartsila.test.ChileDC1Comp', type 'Component' of deployable object 'wartsila.com/DP_TutWDInterfaces'.
When i click on Create Child DC2 i am getting follwing exception:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException:Failed to create delegate for custom controller com.wartsila.test1.ChildDC2CompInterfaceCfg. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
Can anybody tell how can i solve it?
Is it required to deploy the two child component also that is ChildDC1Comp and ChildDC2Comp?If yes then how to deploy these two child DC as when i am tryng to create application for these two component then default plug is showing blank thats why i am unable to deploy these child Dcs.
Thanks
Susmita

Hi Susmita,
                  Is it required to deploy the two child component also that is ChildDC1Comp and ChildDC2Comp?
Yes , u have to deploy both the components.
when i am tryng to create application for these two component then default plug is showing blank thats why i am unable to deploy these child Dcs.
U need not create an Application for deploying the component .Right Click on ur project --> Deploy.
The problem is with ur Component, while creating a Component u should have created a Interface view and default StartUp plug.
Just check whether u have Created the startup plug for ur interface view.
Open the controller editor of ur interface view --> Select Plugs Tab .
and in the plug tab , check whether u have Default Start plug (in Inbound Plugs Table).
if there is no Default Start Plug , then click the Button New to create a Default Plug .
in the pop up window -- select Stsrt Up and Give the name of the plug as "Default".
After doing this , select the default plug and Right click on the plug -->copy  and Open the window Controller editor -- > select Plugs Tab --> check whether u have default plug (in Inbound plugs) in the Window controller .
if the plug is not there , then paste the plug in the Window's Inbound Plug Table .
Hope it helps
Thanks and Regards

Similar Messages

  • Context from Web-Dynpro-Component-Interface & Customer Extention Fields

    Hello all,
    A main component uses a Web-Dynpro-Component-Interface and defines an external maping to it. Web-Dynpro-Component-Interface has a context and a window. At runtime implementaion of Web-Dynpro-Component-Interface is provided.
    All works fine, but how can i create an implementation with view which contains customer extention fields? Unfortunately only fields from context of Web-Dynpro-Component-Interface are visible. I can not even extend the context of Web-Dynpro-Component-Interface via enchancement framework.
    I assume, it is possible with dynamic programming, but why is it not possible in declarative way?
    thanks
    regards
    Paul

    Hello,
    I found this documentation:
    Implementation of Interfaces for Customer Developments
    Using interfaces in a Web Dynpro component benefits customers by giving them a clean basis for their own further developments. When creating a local development, you can implement a used interface in a separate component and add your own aspects to an application delivered by SAP.
    http://help.sap.com/saphelp_nw70/helpdata/en/a9/19eebc1e2943dbb2d443095d017ae9/content.htm.
    I think it must be a correct way to extend SAP programms with customer fields. Please reply, issue is very important.
    Regards
    Paul

  • Web dynpro component interface, can't create a instance

    Hi guru,
    I have created a web dynpro component interface, and implemented it through some components.
    But when I use the interface in another component, there comes a runtime error. The following is the error message.
    Error when Creating Component YHREFM_OBJSEL_INTERFACE. YHREFM_OBJSEL_INTERFACE Is a Component Interface, Therefore, an Instance Cannot Be Created. Name of Component May Not Be Specified. (Using Component: YHREFM_PRINT_FORM_SE, Component Usage: USAGE1)
    Need your help!
    Best Regards,
    Guo Guo Qing

    Hi,
    I have found the cause of the problem. I have mapped some context in the component interface to componenet_A. Then I active component_A, and test it. Then the exception on the top of the Thread is raised.
    What's wrong with it? Could someone give me a solution?
    Thank you very very much.
    Best Regards,
    Guo Guo Qing

  • How to use the Web Dynpro Component Interface

    Hi, All
    Error when processing your request
    What has happened?
    The URL http://erp2005.besuretech.com:8000/sap/bc/webdynpro/sap/zz_test5/ was not called due to an error.
    Note
    The following error text was processed in the system E05 : Error when Creating Component ZZ_TEST6. ZZ_TEST6 Is a Component Interface, Therefore, an Instance Cannot Be Created. Name of Component May Not Be Specified. (Used Component: ZZ_TEST5, Component Usage: MYCOMPUSAGE)
    The error occurred on the application server erp2005_E05_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_COMPONENT_USAGE~CREATE_COMPONENT of program CL_WDR_COMPONENT_USAGE========CP
    Method: RESOLVE_MAPPING of program CL_WDR_CONTEXT_NODE_INFO======CP
    Method: MAP of program CL_WDR_CONTEXT_NODE_MAP=======CP
    Method: MAP of program CL_WDR_CONTEXT_NODE_MAP=======CP
    Method: IF_WD_CONTEXT_NODE~GET_ELEMENT of program CL_WDR_CONTEXT_NODE_MAP=======CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system E05 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server erp2005_E05_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server erp2005_E05_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 600 -u: LIPEI -l: E -s: E05 -i: erp2005_E05_00 -w: 0 -d: 20070120 -t: 212436 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    How can i do?
    Thanks

    Hi,
    There is something wrong in the definition of component usage in your component. Maybe you forgot to instantiate the use component, maby the name you are using is not correct. Try to find it in that direction.
    Good Luck,
    Ben

  • Cannot make entry in used web dynpro components

    Hi,
    I have added public part in Used DCs
    But when i try to add the used Web Dynpro Component , i dont see the DC i have added when i click browse button
    what dependencies should be given while adding the public part in Used DCs ? i have given only default ie build time
    thanks.

    Hi,
    Follow this way, hope it will helps you
    1:Add Component of childDC to PublicPart and build it (RightClick on DC>DevelopmentComponent>Biuld)
    2: Expand parentDC>DC MetaData>DC Definition>RightClick on UsedDcs>Add used DC>Select childDC>Finish.
    Build parentDC as above (not Rebuild)
    3:Now expand ParentComponent>RightClick on Used Web Dynpro Components>Add UsedComponent> give name and choose browse >select childDC component> Ok>Finish
    Regards
    LN

  • When to use 'Web dynpro ABAP' and when to go for 'Web Dynpro Java'

    Hi,
    I am trying to learn 'Web dynpro ABAP' from tutorials available on SDN as i am presently working in ABAP. I am also Java learned.
    Please tell me the selection criteria for using Web Dynpro component / application using ABAP or JAVA.
    Regards,
    Tanaya

    Hi,
    Go through this
    Web Dynpro: ABAP or Java?
    WebDynpro for ABAP Vs Java
    Re: Javascript future in Webdynpro (JAVA and ABAP)
    Javascript future in Webdynpro (JAVA and ABAP)
    PradeeP

  • Warning and Error encounter while building web dynpro component

    Hi,
    I encounter this while building the web dynpro component. I am currently using NWDI 2004s SPS11. can advise? Thanks in advance
    [Warning]: Path in Classpath for file webdynproadmin.jar not found.
    [Warning]: Path in Classpath for file webdynproclientserver.jar not found.
    [Warning]: Path in Classpath for file webdynpromodel_dynamicrfc.jar not found.
    [Warning]: Path in Classpath for file webdynpromodelimpl.jar not found.
    [Warning]: Path in Classpath for file webdynproprogmodel.jar not found.
    [Warning]: Path in Classpath for file webdynproruntime_designtime_coupling_api.jar not found.
    [Warning]: Path in Classpath for file webdynproruntime_designtime_coupling.jar not found.
    [Warning]: Path in Classpath for file webdynproruntime_repository_pmr.jar not found.
    [Warning]: Path in Classpath for file webdynproruntime_repository.jar not found.
    [Warning]: Path in Classpath for file webdynproservices.jar not found.
    [Warning]: Path in Classpath for file SapDictionaryTypeServices.jar not found.
    [Warning]: Path in Classpath for file SapDictionaryTypesRuntime.jar not found.
    [Warning]: Path in Classpath for file SapMetamodelWebdynproContent.zip not found.
    [Warning]: Version for file webdynproadmin.jar not found.
    [Warning]: Version for file webdynproclientserver.jar not found.
    [Warning]: Version for file webdynpromodel_dynamicrfc.jar not found.
    [Warning]: Version for file webdynpromodelimpl.jar not found.
    [Warning]: Version for file webdynproprogmodel.jar not found.
    [Warning]: Version for file webdynproruntime_designtime_coupling_api.jar not found.
    [Warning]: Version for file webdynproruntime_designtime_coupling.jar not found.
    [Warning]: Version for file webdynproruntime_repository_pmr.jar not found.
    [Warning]: Version for file webdynproruntime_repository.jar not found.
    [Warning]: Version for file webdynproservices.jar not found.
    [Warning]: Version for file SapDictionaryTypeServices.jar not found.
    [Warning]: Version for file SapDictionaryTypesRuntime.jar not found.
    [Warning]: Version for file SapMetamodelWebdynproContent.zip not found.
    Error The project was not built due to "Resource already exists on disk: / /bin/ProjectProperties.wdproperties.". Fix the problem, then try refreshing this project and rebuilding it since it may be inconsistent.
    And have this error encounter:
    Development Component Build (2007-07-02 15:14:00)
      Component name: timeoff/gp/ui
      Component vendor: test
      SC compartment: test.sap.com_CAF-TIMEOFF-TST_1
      Configuration: Tst_CAFDEV_D
      Location: Tst_CAFDEV_D
      Source code location: cocomo@cocomo
      DC root folder: D:\projects\ExitMgt\1\DCs\test\timeoff\gp\ui\_comp\
      DC type: Web Dynpro
      Host: cocomo
    DC Model check:
       All used DCs are available locally
       ERROR: Check for used DCs failed: Illegal component usage: compartment "test.sap.com_CAF-TIMEOFF-TST_1" does not use compartment "sap.com_SAP_JTECHS_1" of used DC "sap.com/tc/cmi"; using DC: test/timeoff/gp/ui(test.sap.com_CAF-TIMEOFF-TST_1)
       Build failed with errors.

    Hi,
    Make sure you have all these jars located in the folder C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.webdynpro.runtime_2.0.0\lib.
    If they are not there, search for them in the plugins folder. They should be available at some other location. Copy them to the folder I mentioned above. Or you can modify the class path to point to the existing location.
    Thanks
    Ram

  • Error While uplaoding a EXCEL file in Web dynpro - HR_KR_XSTRING_TO_STRING

    Hi,
        I am getting an error while uploading an excel file in web Dynpro application. i am using the HR_KR_XSTRING_TO_STRING this function. I am getting the following error message 'Unable to interpret    as a number'.

    First of all, are you sure you know what you are working with here.  If this is standard Excel file in the Microsoft binary/propriatery format there is not function module or class in ABAP that can magically just transform this to a character string.  You should search the forums as this has been discussed extensively.  On that topic, please also do not post duplicate threads.  I have already locked your other thread with the same basic question.
    Instead of the binary/propriatery format of Excel, the file should be saved on the client as a text based format - like XML or Text Tab Delimited. You can then use several different options on the server to convert the XSTRING to STRING and process the content (becuase it was text based to begin with).  You could use CL_BCS_CONVERT, the function modules in the function group SCMS_CONV, or the class CL_ABAP_CONV_IN_CE.

  • Overwriting a File in the KM using web dynpro

    Hello,
    im using the createresource method to upload files into the km using web dynpro.
    (using the following tutorial: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70a60afe-d576-2a10-68bf-9ce3988dc39e )
    however, if i try to upload a file which is already there, it doesnt overwrite it, instead it throws an exception without any additiona info.
    is there any way of doing this?
    many thanks,
    Eli.
    Edited by: Eli Eren on Nov 24, 2008 11:22 PM

    Hi,
    first check, if the resource exists, then decide to create or update content:
        IResource resource = (ResourceFactory.getInstance().getResource(rid, ctx));
        ICollection aCollection=(ICollection)resource;
        // get new resource RID
        RID newResRid = RID.getRID(repository+RID.PATH_SEPARATOR+resourceName);
        // try to find the resource
        IResource newResource = (ResourceFactory.getInstance().getResource(newResRid, ctx));
        if(newResource!=null)  {
          // does exist - update content
          newResource.updateContent(content);
        else  {
          // does not exist - create
          newResource = aCollection.createResource(resourceName, null, content);
    Hope that helps,
    Romano

  • Creating a Sales Order using Web Dynpro

    Hi SDN,
      I want to create a Sales Order using Web Dynpro application. For that i have used "Bapi_Salesorder_Createfromdat2" as a adaptive RFC model. Every thing is fine and i could able to create a sales order for a single line item. But my intension is to create a sales order for multiple line items. So in the "Intialview" i have used a "Table" UI element to pass multiple line items. When i execute this application i could pass only single line item from this table. The table UI contol is not allowing to enter the second line item in the second row of the table. Can any one suggest me to solve this problem.
    Thanks in advance.
    Regards
    Basha

    Hi Basha,
    You need to create new element for the model node manually. For example: Create button "New item" and in action handler put someting like described here:
    Add row to table
    How to add more values in a Table in WD appl
    How to add a row to table dynamically?
    How to add a column to a table dynamically.
    add row to table bound to rfc model
    Best regards, Maksim Rashchynski.

  • Getting and Printing A PDF Document From R/3 Using Web Dynpro

    I would like specific information on getting and printing a document residing R/3 using web dynpro.  My environment is Netweaver 04s SR2, an it will not include ITS or the ABAP stack. It connects to remote R/3.  I will not be using Adobe Interactive Forms.       I only need get/render/print the doc.  My question is in 3 parts.
    1) Getting the PDF from R/3
         a) In terms of the RFC ABAP module, how should it return the pdf (a table?)
         b) How should the document be stored within the Component Controller context
             for display.
    2) Converting the R/3 returned binary into a form that is renderable within
        Web Dynpro.  (Does the Form UI Element Require it to be converting and if so
                              what is the best way to do this)
    3) Printing the PDF from the corresponding iView in the portal. (If I am using the
        form ui element to display it, how can printing be initiated in the portal)
    Thanks

    Hi,
    In webdynpro there s a fecility to convert the general data to PDF by uisng th InterativeForm UI Element.
    This for u need to do the following things.
    1. Need to configure the ADS(Adobe document services) in your VA(Visual Admin).
    2. Once ADS is configured we  can utilize the UI element Interactiveform It has contain the Adobedesigner by using this we can design the PDF and binding with the model nodes.
    3. Develop the Function module in the r/3 side and import into WD side and those are created as Model nodes and we canutilize in the 2 step.
    4.When u run the application u can display the pdf with how u design ur PDF form.
    This is generally doing the PDF by using PDF.
    Or do u think any other way post ur issues.
    Thanks,
    Lohi.

  • Adobe form to save data using Web Dynpro ABAP

    Hi. I am pretty new to SAP world and trying to learn and work on a task given to me relate to
    creating Adobe offline form using Web Dynpro ABAP same time.
    I have several questions and hopefully, many gurus like you will provide answers.
    I noticed there are many examples creating and using Adobe interactive forms (though not many newer version),
    but I didn't see (at least I didn't find any) any detail example on saving data to an internal table (such as fixed assets, vendor master, etc)
    using interactive form. Is there any detail explanation/example on this?
    I have ask this question in another forum (before I found this forum) but didnu2019t get the answer yet.
    2. When I tried to see graphic layout and modify the layout from Web Dynpro, I can't see the graphic layout.
    All I see is text list of fields/buttons that I created, but can't see section for graphic layout where I can modify layout.
    I am sure I didn't install/configure something correctly.
    Anyone has any idea what I didn't do?
    I have another question, but I will wait till later after I figure out above ones first.
    Thanks for all your help in advance.
    John

    Hi John,
    In the WD4A view, there is a button "Show/Hide Layout Preview".
    Click on that button to be able to see the Layout.
    Note that this button is next to the Pretty Print button.
    regards,
    Reema.

  • Generic Object Services using Web Dynpro

    I am using Web Dynpro for ABAP and would like to access Generic Object Services (GOS) to view attachments to an SAP Business Object.  Using the cl_gos* classes does not work when running WebDynpro as it uses the controls framework. 
    How can I access the functionality of GOS from a Web Dynpro application?
    Regards,
    Bob

    Hi,
    I assume that you wantted to have the attachements in a mail.
    Please check out the Adobe Forms(ie PDF attachements) and Office Control UI elements in WDA.
    Regards
    Lekha

  • Eclipse environment does not appear the options "Web Dynpro Project"

    Hi all,
    I installed the SAP NetWeaver 7.1 Composition Environment SP03
    But in my eclipse environment does not appear the options "Web Dynpro Project" and not "Development Component Project".
    That is, I can not do a Web Dynpro project
    I have to do some more configuration in eclipse, for example, carry some plugin?
    How to do this, please help me
    Thanks,
    Vivian

    Hi,
             I think you are suffering from the problem below.
    Problem Statement:
    No Webdynpro Perspective is Visible
    only perspectives available are
        Debug
        Resource(default)
        Team Synchronizing
    How to Solve:
    There are many ways that this kind of error can occur.
    1.   It may occur due to "improper installation of NWDS"                                        
    How to Check and Resolve :    Is NWDS is displayed in intalled list in Control panel? If 'yes' then it is properly installed. If 'No' then reinstallation is needed.
    2.  It may occur due to "installation of Skeleton alone"
    How to Check:
                                      you can check if your installation includes Web Dynpro by selecting
    Help->Software Updates->Manage Configurations.
    When installing Developer studio 7.1 you only get the bare eclipse installation (Skeleton). You have to add web dynpro and all, after the initial install is complete.
    The installer installs the kernel of the Developer Studio. The kernel contains Eclipse and a few SAP additions, but is not equipped with the SAP features necessary for the Composition Environment. In order to install the required SAP features you have to install the SAP features.
               How to Resolve:
    Updating the NWDS software will resolve the problem.
    Go to Help->Software Updates->Find and Install. This will install the default SAP plugins that came with your NWDS CE 7.1 setup source and also the additional updates that are needed.

  • How to create dictionary table using web dynpro?

    Dear Experts,
    Please clarify my doubts.Im new in this EP development.
    Im using EP6 portal with NWDS6 for dev.
    My Doubts are :
    Im trying to develop a web dynpro application which captures some data and insert/update in Table.
    => If we create a structure Dictionary in web dynpro application will that automatically create the table in Portal database?
    => If it is automatically created how to insert or update that table.
    can any one plz help.
    thanks and regards,
    Viswes.

    Hi Visweswara
    This will use the concept of EJB.
    Refer these for creating Dictionary tables...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    As far as answer to your second question is concerned,
    => If u create a structure Dictionary in web dynpro application  it will not create the table in Portal database..
    You can access that table via creating a web dynpro iview in Portal..
    Only application can accessed after deployment via iviews in Portal..
    Thanks...
    Rewards Appreciated...

Maybe you are looking for

  • Is there an easy way to implement a confirm dialog?

    Hi All,     I'm wondering is there an easy way to show an confirm dialog to user with out create a new view manually?     Thanks, YiNing

  • USER EXIT used in transaction ML81N

    Hallo experts, my task is to jump into another transaction after service entry sheet has been released. Is there some UE which I can use? Thanks a lot. Edited by: Marek Ferencak on Dec 16, 2008 9:02 AM Edited by: Marek Ferencak on Dec 16, 2008 9:02 A

  • Merging two Prime Infrastructure instances

    Hi, We have two separate CPI 2.0 servers with one managing the wired network and the the other manages the wireless components. One option is manual device export, template creation etc from source CPI to target CPI. But is it possible to selectively

  • Exp. Items prior to Start date

    Hi Dina, I have a project where expense items are booked (travel expenses) prior to start date of the project. As project is starting two days after the consultants are reaching to the site, since consultant are travelling from a different place/loca

  • On labtop.............

    can I install 9i database server and internet developer suite in my labtop .....which have XP os....