Constructor undefined , while initiating model node in component controller

Hi Team,
I am getting constructor undefined error, when i am trying create an object of model node in component contrloller.
i tried the solution provided in this Undefined constructor and model nodes but it is working.
can any one suggest me?
Regards
Bala

Hi Akshaya,
here is my code.
i am just intatiating the model node in component contrlloer.
the below method id in component controller.
public void wdDoInit()
    //@@begin wdDoInit()
try {
        AnyType_Item atm = new <b>AnyType_Item()</b>
wdContext.nodeAnyType_Item().bind(atm);
catch (RuntimeException e) {
     // TODO Auto-generated catch block
      e.printStackTrace();
      wdComponentAPI.getMessageManager().reportWarning(e.getMessage());
The above bold one is error, saying constructor is undefined.
regards
Bala

Similar Messages

  • Instantiating Model Node in Component Controller with new Abstractlist()

    Hi All,
    We have the following issue.
    When we instantiate a Node - Po_Items using Element.setPo_Items( new AbstractList() )
    We get an error "The Type AbstractList Cannot be instantiate" .
    So how to successfully instantiate AbstractList()  so that ultimately the BAPI_NODE_INPUT can be instantiated.
    Best Regards,
    Roby...

    Hi Murtuza,
    Thanks alot for the response.
    I tried initializing Node using
    Element.addPo_Items(new Bapiekpoc());
    But its not getting initialized and I get following errror when I run the application.
    500   Internal Server Error
    Web Dynpro Container/SAP J2EE Engine/6.40 
    Failed to process request. Please contact your system administrator
    Is there any other way to initialize the Po_Items Node which which is inside the Model Node BAPI_PO_CREATE_INPUT.
    BAPI_PO_CREATE_INPUT ( Model Node )
        -- Po_Items ( Subnode which is an input table inside the BAPI )
    Thanks again & Best Regards,
    Roby....

  • How to populate context node of component controller

    Dear People,
    Is there any way i could access my custom context node of component controller in the context node class of my custom controller.
    I am navigating from one component to another, Upon initial launch everything is working fine, however if i go to home page and come back. the assignment block is coming empty.
    In WD_USAGE_INITIALIZE i m binding my custom controllers context node with the component controller's context node of the other component and it works fine when i load the UI. however if i go to home page and come back. the assignment block is coming empty.
    Following code is in method of DO_VIEW_INIT_ON_ACTIVATION of the other componenet.
    METHOD do_view_init_on_activation.
      DATA:   lv_btstatus_parent TYPE REF TO cl_crm_bol_entity,
            lv_comp_ctrl      TYPE REF TO cl_btstatus_bspwdcomponen_impl.
      CONSTANTS:
            lc_us_header      TYPE crmt_relation_name VALUE 'BTStatusHUserAll',
            lc_us_item        TYPE crmt_relation_name VALUE 'BTStatusIUserAll'.
      lv_comp_ctrl ?= me->comp_controller.
    check if relationname has been passed from outside
        gc_relation_name = lv_comp_ctrl->get_relation_name( ).
      IF gc_relation_name IS INITIAL.
      check type of parent to determine relationname
        *lv_btstatus_parent ?= lv_comp_ctrl->typed_context->btstatusparent->collection_wrapper->get_current( ).*
       check lv_btstatus_parent is bound.
        CASE lv_btstatus_parent->get_name( ).
            WHEN 'BTStatusH'.
              gc_relation_name = lc_us_header.
            WHEN 'BTStatusI'.
              gc_relation_name = lc_us_item.
        ENDCASE.
      ENDIF.
    CALL METHOD super->do_view_init_on_activation.
    ENDMETHOD.
    Here lv_btstatus_parent is bound during initial launch, however after navigating back to the same page, its blank leading to exception.
    any suggestions would be helpful.
    regards,
    pradeep

    solved myself

  • Error while importing model in NWDS 7.1

    Hi All,
    I am trying to consume a Web Service in NWDS 7.1.
    Following are the steps which I have followed for consuming the web service :
    Create a model in the DC using 'Adaptive Web Service model' template.
    Create component and reference this model as used model in it.
    In the custom coontroller apply the 'service controller' template to the model.
    In this 3rd step, its giving the following error while applying the template in component controller:
    Status ERROR
    Plugin : com.sap.ide.metamodel.common.services.eclipse
    code=0
    Internal error
       Plugin name: Metamodel Common Services for Eclipse
       Internal error  : com.sap.ide.metamodel.common.services.eclipse
       Class      : com.sap.ide.mmservices.common.eclipse.internal.template.apply.ApplyTemplateWizard$1
       Method     : performFinish()
       Message    : Error in template generation
       Exception  : java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.RangeCheck(ArrayList.java:546)
    at java.util.ArrayList.get(ArrayList.java:321)
    at com.sap.ide.metamodel.core.collection.MetamodelOrderedCollectionImpl.get(MetamodelOrderedCollectionImpl.java:188)
    at com.sap.ide.metamodel.webdynpro.implementation.ModelRelationProxy.getModelRelationRole(ModelRelationProxy.java:590)
    at com.sap.ide.webdynpro.template.simplescenario.generation.servicecontroller.ModelGeneration.createNestedStructure(ModelGeneration.java:350)
    at com.sap.ide.webdynpro.template.simplescenario.generation.servicecontroller.ModelGeneration.createNestedStructure(ModelGeneration.java:385)
    at com.sap.ide.webdynpro.template.simplescenario.generation.servicecontroller.ModelGeneration.generateCoding(ModelGeneration.java:131)
    at com.sap.ide.mmservices.common.eclipse.internal.template.generation.GenerationStartup.generateFragments(GenerationStartup.java:246)
    at com.sap.ide.mmservices.common.eclipse.internal.template.generation.GenerationStartup.generate(GenerationStartup.java:87)
    at com.sap.ide.mmservices.common.eclipse.internal.template.apply.ApplyTemplateWizard$1.run(ApplyTemplateWizard.java:64)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at com.sap.ide.mmservices.common.eclipse.internal.template.apply.ApplyTemplateWizard.performFinish(ApplyTemplateWizard.java:61)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at com.sap.ide.mmservices.common.eclipse.template.actions.ApplyTemplateAction.run(ApplyTemplateAction.java:28)
    at com.sap.ide.mmservices.common.eclipse.template.TemplateInvoker.startApplyTemplateAction(TemplateInvoker.java:78)
    at com.sap.ide.mmservices.common.eclipse.template.TemplateInvoker.startApplyTemplateWizard(TemplateInvoker.java:34)
    at com.sap.ide.webdynpro.wdexplorer.actions.other.ApplyTemplateAction.run(ApplyTemplateAction.java:48)
    at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseDelegateSingleAction.runInternal(BaseDelegateSingleAction.java:65)
    at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseDelegateSingleAction.run(BaseDelegateSingleAction.java:58)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Please do let me know how to resolve this error .
    Thanks.

    Hi Yogita,
    I suggest you get in touch with the SAP support team via an OSS message to help you resolve this issue. Please don't forget to attach the DC that you have created so that the support team can help in resolving this at the earliest. You could raise the issue via the OSS component BC-DWB-WD-JAV.
    Without details of the DC that you are working on and the model that you have imported, I doubt if anybody in SCN would be able to help you out.
    Thanks and Best Regards,
    Pradyut.

  • Binding 2 Models in the Same component controller

    I'm using 2 Import Adaptive RFC Models. I want to bind both the models in the component controller of the same web dynpro component.
    But when I try to do model binding for the second model, it does not allow me to do so. If I try to bind the same model in a different project, it happens perfectly and works fine. That means the model i.e. the BAPI is perfectly ok.
    Can anyone please tell why is it not allowing to bind 2 models in the component controller of the same web dynpro component?

    Hi Satyadev,
       If I undersatand your description properly, you have 2 models nodes in a webdynpro component, and you want to bind these two together. If this is the question, then, yes you cant do the bindings declaralatively, you have to do it dynamically...
    Look at the code snippet below, it may help you...
    Suppose ChildNode1 and ChildNode2 are the model node in the context of the component controller. Then you can map these two nodes dynamically....
    wdContext.wdGetAPI().reset();
         IWDNodeInfo testNodeInfo1 = wdThis.wdGetAPI().getContext().getRootNode().getChildNode("ChildNode1", IWDNode.LEAD_SELECTION).getNodeInfo();
         IWDNodeInfo testNodeInfo2 = wdThis.wdGetAPI().getContext().getRootNode().getChildNode("ChildNode2", IWDNode.LEAD_SELECTION).getNodeInfo();
         testNodeInfo2.setMapping(testNodeInfo1, true);
         testNodeInfo2.addAttributesFromDataNode();
    Hope this helps,
    Please let me know if I have not understood your question properly...
    Regards,
    Vishnu Prasad Hegde

  • Binding model nodes - seeming repetition?

    Hello,
    When creating a WD app using Adaptive RFC Model (or any model I assume), it is necessary to create a data link between the Model and Component Controller.  Visually, the fields of the nodes of the Model and the fields of the model nodes of the Controller are linked.  Why, then, is it necessary to again bind the model node of the Controller to the model object using the ".bind" method?
    Code as shown here is a classic example:
         Bapi_Usr01Dohr_Getemployee_Input bapiInput = new Bapi_Usr01Dohr_Getemployee_Input();
         wdContext.nodeBapi_Usr01Dohr_Getemployee_Input().bind(bapiInput);
         bapiInput.setId("MY_USERID");
         try {
              bapiInput.execute();
         } catch (Exception exc) {
              IWDMessageManager msgManager = wdComponentAPI.getMessageManager();
              msgManager.raiseException(exc.getMessage(), true);
    Clearly the visual binding in the diagram view of the component controller and the programmatic binding using the .bind method of the model node are doing different things.  My question is, what is the difference?  Why are both required?

    Michael,
    There are actually 3 activity types, and sadly one of them has not the best name:
    1. Map at run-time / design-time model to context node (make metadata structure, that mimics model structure, possibly with renaming of target attributes / sub-nodes)
    2. Map at run-time / design-time (or as you say "link") 2 nodes in different controllers (make metadata structure, that mimics structure of node's metadata in another controller, possibly with renaming of target attributes / sub-nodes)
    3. "Bind" at run-time-only data to node, that was previously described as metadata either using IDE at design-time or at run-time.
    So, there is no repetition: you create metadata once (ok, more logically "once" then physically), then you may assign different data to resulted node via bind several times.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Activation Failed: The context model node has not been bound to a model cla

    Hi Experts,
    I have created a DC for Models and created a DC for the Application.
    Have done all the steps that are required for getting the Model DC into the Application DC.
    Have made all the binding to the Controller and View, But durring the activation, I am receiving an error as given below
    [wdgen] [Info]    Initialize generation templates from configuration jar:file:/usr/sap/NWI/JC63/j2ee/cluster/server1/temp/CBS/22/.B/11457/DCs/sap.com/tc/bi/extwd/_comp/gen/default/public/def/lib/java/SapWebDynproGenerationCore.jar!/WebDynproGenerationConfigurationCompiled.xml
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelNode Zmm_Bapi_Get_Material_Input [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Im_Maktg [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Im_Werks [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Im_Matnr [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelNode Output [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    XXX.sampledc.CN_SAMPLEDC --> ContextModelNode Output [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Ex_Message [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Ex_Flag [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelNode It_Outtab2 [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    XXX.sampledc.CN_SAMPLEDC --> ContextModelNode It_Outtab2 [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Picture [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Waers [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Infnr [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Netpr [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Inco1 [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Ekorg [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Lifnr [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Price_Unit [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Maktx [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Name1 [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Filep [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Matnr [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Werks [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Inco2 [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelNode It_Outtab [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    XXX.sampledc.CN_SAMPLEDC --> ContextModelNode It_Outtab [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Picture [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Ebeln [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Waers [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Netpr [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Inco1 [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Lifnr [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Price_Unit [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Ebelp [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Name1 [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Filep [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Matnr [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Txz01 [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   XXX.sampledc.CN_SAMPLEDC --> ContextModelAttribute Inco2 [referencedProperty]: The context model attribute has not been bound to a model property
    Thanks & Regards,
    Palani

    Hi Palani,
    May be something is missed while checking in the activity. This is what you can do:
    1) Note the error.
    2) You will have to forcefully activate the activity since its already checked in.
    3) Create a dummy activity and do the following:
                              Right click on the DC in the Webdynpro Perspective and Click on Repair and chose Project Structure and Classpath.
                              Right click on the DC in the Webdynpro Perspective and Click on Rebuild.
                              Right click on the DC in the Webdynpro Perspective and Click on Reload.
                             Close the DC and then open the DC again.
             Add these files to repository in the following way: Go to DC Perspective Expend the DC node Right Click on the src folder Chose DTR Chose Add Chose
                             Subtree. It will add the changes to the central repository and now if you Checkin the activity and see the results the changes will be effective.
    4) Also map the context attribute once again.
    5) Now check in the activity and try to activate.
    Regards.
    Rajat

  • Activation error : context model node has not been bound to a model class

    Hi All,
    I have DC project, which i am able to run without error, But when i try to activate this DC project, I am getting below error in activation log : Please help me out, It's very urgent...
    [wdgen] [Info]    Generating packages/com/ltli/crtmachineord/models/zp3019_dealer_default_valuesmodel/Zp3019_Dealer_Default_Values_Output.java
         [wdgen] [Error]   com.ltli.crtmachineord.components.crtmachineordcomp.CrtMachineOrdComp --> ContextModelNode Zp3019_Salesorder_Mac_Texts_Input [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Error]   com.ltli.crtmachineord.components.crtmachineordcomp.CrtMachineOrdComp --> ContextModelNode Output_Text [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    com.ltli.crtmachineord.components.crtmachineordcomp.CrtMachineOrdComp --> ContextModelNode Output_Text [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Error]   com.ltli.crtmachineord.components.crtmachineordcomp.CrtMachineOrdComp --> ContextModelNode T_Contract_Note_Text [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    com.ltli.crtmachineord.components.crtmachineordcomp.CrtMachineOrdComp --> ContextModelNode T_Contract_Note_Text [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Error]   com.ltli.crtmachineord.components.crtmachineordcomp.CrtMachineOrdComp --> ContextModelNode Zp3019_Get_Employee_Name_Input [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Error]   com.ltli.crtmachineord.components.crtmachineordcomp.CrtMachineOrdComp --> ContextModelNode Output_Name [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    com.ltli.crtmachineord.components.crtmachineordcomp.CrtMachineOrdComp --> ContextModelNode Output_Name [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Info]    com.ltli.crtmachineord.components.crtmachineordcomp.CustnoView --> Caption grp_equipmentnumber_Header: UIElement does not have a label
         [wdgen] [Warning] com.ltli.crtmachineord.views.longtextview.LongTextView --> TextEdit txe_LongText: UIElement does not have a label
         [wdgen] [Info]    com.ltli.crtmachineord.components.crtmachineordcomp.MatnoView --> Caption grp_equipmentnumber_Header: UIElement does not have a label
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label SalesDocType_Lbl [labelFor]: Value is not valid
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label SalesOrg_Lbl [labelFor]: Value is not valid
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label DistChannel_Lbl [labelFor]: Value is not valid
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label Division_Lbl [labelFor]: Value is not valid
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label SalesOffice_Lbl [labelFor]: Value is not valid
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label SalesGroup_Lbl [labelFor]: Value is not valid
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label Plant_lbl [labelFor]: labelFor is not set
         [wdgen] [Error]   com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> TextView txv_Ename [text]: Context element and property are not compatible
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label lbl_CustNo [labelFor]: labelFor is not set
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label lbl_ConsigneeTo [labelFor]: labelFor is not set
         [wdgen] [Warning] com.ltli.crtmachineord.views.crtmachineordview.CrtMachineOrdView --> Label lbl_Pin [labelFor]: labelFor is not set
    Thanks
    Sandy

    We could resolved the problem by creating new DC project
    and copying the content of existing Dc project into new DC.
    (Also created new activity for this new DC), Build & Deploy the project.
    Now we are able to activate the new activity without any error.
    Thanks
    Sandy

  • Error in model node binding

    Hi All,
    I am facing some strange problem of model node binding.I have bound the model node to a model class.I am using Wizard to generate this model node binding.
    To deploy this DC I am using NWDI .But the activation step is failing because of some build errors.moreover these build errors are not appearing at design time!!
    CBS error log is as below :
    [Error]   com.bhc.nextgen.sales.suppcatapp.SuppCatLookupComp --> ContextModelNode Zrfc_Sd_Quote_Supplier_Search_Input [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
    Dose anyone know how to solve this?
    Thanks,
    Kanchan

    Hi
    I'm not sure if I understand you completely but instead of manually creating a model node which you bind to your model you could - in Diagram View - right click on the Data link and drag and drop your model from right to left and it will automatically create the needed model class references etc.
    Br
    Göran

  • Accessing component controller node

    Hi..Experts,
    How to access component controller node from  WINDOW (please give me a sample code ) .
    I want to set data to component controller node.
    please help me.
    Regards,
    Siva

    Hi siva,
       Its very easy u need not to do any extra coding to share data between window context and component controller context.
    Step 1) u create the node in component controller and map this node with window context.
    step 2) Now in any method of window u write the set_attribute or bind_table statement ,your data will automatically transported to component controller .
    So u dont need to do any extra coding for this.
    Hope this will help your requirement.
    regards
    Pankaj Giri

  • Issue in Binding Custom controller to Component Controller

    Dear All,
    I have enhanced a standard component ERP_H.
    I created a custom controller with context nodes BTSTATUS, BTSTATUSH
    I enhanced the component controller with context node BTSTATUS, BTSTATUSH
    Now when i try to bind the custom controller to component controller using this code in the context class of my custom controller
    bind to component controller
      owner->do_context_node_binding(
               iv_controller_type = CL_BSP_WD_CONTROLLER=>CO_TYPE_COMPONENT
               iv_target_node_name = 'BTSTATUS'  " component controller context node
               iv_node_2_bind = BTStatus ).
    its not working since this context node in component controller is not the standard one but the custom added one.
    Am i missing something, or is there any way to bind customer context node in custom controller to customer context node in component controller.
    regards,
    pradeep

    Hi pradeep,
        Try the other way round go to the context class in the component controller and paste the following code in the
    create_contextnode( context node = name of the node to be linked).
    *owner->do_context_node_binding(
            iv_controller_type = cl_bsp_wd_controller=>co_type_custom   <-----linking from component to custom
            iv_target_node_name = 'BUILHEADER' "target node: component controller node
            iv_node_2_bind = BUILHEADER ). "source node: current node.
    See if this works.
    Thanks

  • Web Dynpro - How to set and get info from Component Controller

    Hi Gurus!!!
    Im having some problems getting and setting info in component controller of my Web Dynpro.
    I can't see the difference between View Context and Global Context.
    How can i create a Global Context Between two views?
    Thanks!
    Regards.
    Polakinho.-

    hii
    difference between view context and global context is we can use the same component controller for all the views in the same application.but when when we create node in view context then it will be available for that view only not for any other view...so if we want to use the same node for all the views we need to create that view in the component controller.so it will become global for that application.
    for using global node you need to map that context in view controller.for that you need to go to that view then click on context tab and drag and drop node from component controller.so it will be available for that view.i hope it helps you.
    regards
    twinkal

  • Setting and getting values to the viewcontroller from component controller

    Hi,
    I'm having a model node in the controller  and the value node int he view which are binded to the UI elements.
    How to set the values in the model nodes to the value nodes in the view through setter method and get the values from the view using getter???
    Could you help me in, how to call a viewController's value node in componenet controller, and set and get the values to it.
    Thanks & Regards,
    Suresh

    Thanks Murtuza..
    i have one more question regarding checkbox by group.
    I have binded the texxt property of the checkbox by group to a context contribute and its type property is selected from a simple type.
    In the view layout on NWDS its showing the label names which i hav given in the simple type. but when i deploy it and run it in browser its just showing only one check box. its not showing the label names.
    how to get the label names, using simple types. i,m able to get it using code.
    how to get it by simpletype??? 
    thanks, suresh

  • Mapping from component controller context and view context

    Hi to all experts.
    im trying to create my first webdynpro . Im stuck up here please help me .... How to map the node from component controller context and view context i have searched the forum....got the answers as Drag and Drop...But it is not working ....

    Hi
    Check out this links and check saptechnical site
    WDA in SAP Help
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/3545415ea6f523e10000000a155106/frameset.htm
    Web Dynpro for ABAP in SDN
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
    Developing ABAP Applications Using Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
    Web Dynpro ABAP: Development in Detail
    http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
    WDA Sample programs & tutorials
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Web Dynpro ABAP Demonstration Videos
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    Web Dynpro ABAP Wiki's
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdabap/main&
    New to Webdynpro
    Thanks,
    Tulasi Palnati

  • How to work with the component controller.

    I Created a Z component.
    In that component controller i ceated a context node by using value node with BUT000 with the attribute NAME_ORG1.
    I created a view in the same component.
    In the view i created a Context Node BUT000 wiht NAME_ORG1.
    I bind this view context node with compnent controller context node.
    I want set the value from the view context node to component controller context node. How it is possible?
    I created another Z component.
    I created compoent controller like same context node above.
    I created the view also.
    I want display the first compoent controller data in the second component controller.
    How it is possible.
    For one component to another component we can pass the data based on component controller only?
    Please give me how i can set/display the component controller context node with the data?
    Thank You.
    Regards,
    B. Krishna.

    Hi Manish.
        Thank you for reply Manish. I need some more information.
    I created ZCOMP1 with view V1 and ZCOMP2 with view V2.
    In both component controllers I created Context node by usng NAME_ORG1 of BUT000.
    I provide the Navigation link from ZCOMP1 to ZCOMP2 as well as ZCOMP2 to ZCOMP1.
    In Run Time Repository I provied two components as a INTERFACE VIEWS and
    I provide ZCOMP2 as component Usage in ZCOMP1 as well as ZCOMP1 as a Component Usage in ZCOMP2.
    Now, what ever data I entered in ZCOMP1 like NAME_ORG1 is "HELLO" then
    This infomation I want display in ZCOMP2 - V2.
    In ZCOMP2 method  wd_usage_initialize
    I write like this.
    IF IV_USAGE->USAGE_NAME = 'CompUsage'.
        iv_usage->bind_context_node( iv_controller_type  = cl_bsp_wd_controller=>co_type_component
                                       iv_target_node_name = 'BUT000'       
                                       iv_node_2_bind      = 'BUT000' ).    
      ENDIF.
    But it is displaying the Exception like this
    Cannot display view ZCOMP2/MainWindow of UI Component ZCOMP2
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - The view controller or custom controller "" was implemented incorrectly 
    Method:  CL_BSP_WD_COMPONENT_USAGE=>IF_BSP_WD_COMPONENT_USAGE~BIND_CONTEXT_NODE 
    Source Text Row:  24
    Please tell me how to solve this Problem.
    Regards,
    B. Krishna.

Maybe you are looking for