Accessing model node with cardianlity 1 to 1 throwing error

Hello All,
I'm try ing to set values to a model node in the request for a mass update.
in teh model nodes, one of the model node is mandatory with 1:1 cardinality.
i cannot call the currentElement() nor the create and addelement
both throwint the same error as below.
I'm using CE 7.2 engine, and its very critical for me to complete this update.
com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for mandatory target role 'Position' of model class 'uk.co.apps.bertha.wdj.model.wd.models.managets.PositionWrapper' with cardinality 'ONE' maintained
    at com.sap.tc.cm.base.model.BaseGenericModelClass.getRelatedModelObject(BaseGenericModelClass.java:436)
    at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass.getRelatedModelObject(WSTypedModelClass.java:82)
    at com.sap.tc.webdynpro.progmodel.context.DataNode.doSupplyElements(DataNode.java:162)
    at com.sap.tc.webdynpro.progmodel.context.DataNode.supplyElements(DataNode.java:106)
    at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:244)
the generated code, i have a list to which i have to bind this node to, there is no code generated as i see it.
i tried regenerating and it doesnt help.
the following is the complete stack
com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for mandatory target role 'Position' of model class 'uk.co.apps.bertha.wdj.model.wd.models.managets.PositionWrapper' with cardinality 'ONE' maintained
  at com.sap.tc.cm.base.model.BaseGenericModelClass.getRelatedModelObject(BaseGenericModelClass.java:436)
  at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass.getRelatedModelObject(WSTypedModelClass.java:82)
  at com.sap.tc.webdynpro.progmodel.context.DataNode.doSupplyElements(DataNode.java:162)
  at com.sap.tc.webdynpro.progmodel.context.DataNode.supplyElements(DataNode.java:106)
  at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:244)
  at com.sap.tc.webdynpro.progmodel.context.Node.getElements(Node.java:251)
  at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:390)
  at com.sap.tc.webdynpro.progmodel.context.Node.getCurrentElementInternal(Node.java:689)
  at com.sap.tc.webdynpro.progmodel.context.Node.getCurrentElement(Node.java:696)
  at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.wdp.IPublicTeamStructComp$IPositionUpdateNode.currentPositionUpdateElement(IPublicTeamStructComp.java:10729)
  at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.TeamStructComp.saveMyChildren(TeamStructComp.java:920)
  at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.TeamStructComp.saveNewChangedTeam(TeamStructComp.java:882)
  at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.wdp.InternalTeamStructComp.saveNewChangedTeam(InternalTeamStructComp.java:925)
  at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.TeamStructEditView.onActionSubmitSuccess(TeamStructEditView.java:481)
  at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.wdp.InternalTeamStructEditView.wdInvokeEventHandler(InternalTeamStructEditView.java:523)
  at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:142)
  at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:75)
  at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:159)
  at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.execute(ProcessingEventPhase.java:94)
  at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)
  at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)
  at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseLoop(WindowPhaseModel.java:101)
  at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processPhaseLoop(WebDynproWindow.java:547)
  at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.handleWindowHierarchyChanges(AbstractClient.java:108)
  at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:56)
  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1652)
  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1466)
  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:884)
  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:856)
  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:343)
  at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:315)
  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
  at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:76)
  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:400)
  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:203)
  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:438)
  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:427)
  at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:80)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:268)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
  at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
  at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:54)
  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
  at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:264)
  at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)
  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)
  at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:315)

Thanks for reply,
but i can't understand what is myModel indicates in the below code?
Request_EmployeeManagementLocal_updateEmployee reqMod =
      new Request_EmployeeManagementLocal_updateEmployee(myModel);
//Check empl model class will be there , create an object for that
      Employee objEmpl=new Employee(myModel);
regards,
Pradeep Kumar

Similar Messages

  • Help req for check customer table maintenance with XD02 if not throw error

    hello ABAP GURUS,
    check customer of the table maintenance with XD02 if not throw error i have given the codition for passing the values in the table but before that it has to check whether the customer i am passing in to the table is a customer from xd02.Here whatever no i am passing it is accepting it should not happen, but when i give the customer which is not a customer it should not accept but it has to throw the message as 'customer does not exist.Its urgent please help me
    TYPES: BEGIN OF TY_KNVI,
    KUNNR TYPE KUNNR,
    TATYP TYPE TATYP,
    TAXKD TYPE TAKLD,
    END OF TY_KNVI.
    DATA : VALIDFROM TYPE GUEBG,
    VALIDTO TYPE GUEEN.
    DATA : IT_KNVI TYPE STANDARD TABLE OF TY_KNVI,
    WA_KNVI TYPE TY_KNVI OCCURS 0 WITH HEADER LINE.
    DATA : V_NAME TYPE SYUNAME.
    SELECT KUNNR
    TATYP
    TAXKD
    FROM KNVI
    INTO TABLE WA_KNVI
    WHERE KUNNR = YYV_CFORM-KUNNR
    AND TATYP = 'ZCST'
    AND TAXKD = '1'.
    V_NAME = SY-UNAME.
    YYV_CFORM-ENTEREDBY = V_NAME.
    IF SY-SUBRC NE 0.
    MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'.
    ENDIF.
    I have used the following code to enter the data into the table maintenance it is working fine and throwing the error when the tax type is not the one which i have given in the select statements but the problem is when i have given the customer no which is not there in the XD02 tcode, it is accepting and showing the error message as MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'. now i have to check the customer no from XD02 and if it is existing in that tcode it should allow to save in the table maintenance otherwise throw a message as the 'Customer no does not exist, this I am unable to write so how can i check please help me .
    thankx in advance.
    Edited by: soni khadary on Apr 22, 2008 7:55 AM

    Hi Kelly,
    I guess <wa_tab>-handle_style is of type lvc_t_styl therefore you can do the following:
    ls_edit-style = cl_gui_alv_grid=>mc_style_enabled.
    "I assume you know your non-key fields' names so you can use subrotuine to perform update on each of them
    ls_edit-fieldname =  'First field name' .
    PERFORM update ls_edit.
    ls_edit-fieldname =  'Second field name'.
    PERFORM update ls_edit.
    ls_edit-fieldname = 'Third field name'.
    PERFORM update ls_edit
    FORM update USING fs_edit type lvc_s_styl.
    field-symbols: <style_tab> type lvc_t_styl,
                         <style_wa> type lvc_s_styl.
    LOOP AT <tab> ASSIGNING <wa_tab>.
       if e_row = sy-tabix .
         "get you style table
         assign component 'HANDLE_STYLE' of structure <wa_tab> to <style_tab>.
         "as <style_tab> is typed fully you can read the row you are interested in
         read table <style_tab> assigning <style_wa> with key fieldname = fs_edit-fieldname
         if sy-subrc = 0.
           "update this entry
            <style_wa> = fs_edit.
    *        modify table <style_tab> from <style_wa>. 
         endif.
       endif.
    endloop.
    endform.
    Note!
    Though, this should work, the use of RTTI as Uwe suggested would be best practise approach as far as dynamic programming is concerned. Anyhow it is still up to you which one you pick.
    Regards
    Marcin
    I noticed now that this line is not necessary
    modify table <style_tab> from <style_wa>. 
    as we simply are working with field symbols, so changes made to <style_wa> are already visible in that table <style_tab>.
    Edited by: Marcin Pciak on Mar 15, 2009 12:44 PM

  • Populate model node with an internal table

    Dear experts
    I have an internal table. I have a model node. I need to populate the data in my internal table onto my model node.
    In case of a value node, I know how to do this.
    I would appreciate if somebody can give me some 'code snippet' on how to do this in case of a model node.
    I tried looking into some standard components but its bit confusing.
    Any replies will be greatly appreciated.
    Thanks in advance.
    Raj

    Hi Masood
    Thanks for the reply. Actually I am familiar with using the method 'set_properties'. But my main confusion is on how to create an instance before calling this 'set_properties' method.
    For eg: in case of value node, we will use
    FIRST CREATE OBJECT
    create object lv_value_node
    exporting = ls_struct
    THEN SET THE PROPERTY
    lv_value_node->set_propety ( ).
    But in the case of model node, I wont be able to use the statement
    "create object lv_model_node
    exporting = ls_struct"
    So I need to create an instance of the BOL. This is where I am confused. And my BOL  is FUSearchRes. It is a 'Search Result object' in Genil_model_browser. So I cannot create a root object. Also I don't see any parent for this.
    So I am not sure of how to create objects for this particular BOL. Plz throw some light on this.
    Thanks
    Raj

  • Problem in mapping model node with cardinality

    Hi,
    I have a requirement where the RFC  which is being called has cradinality 0..n.
    I imported the RFC model in a different DC and then added the model to public part.
    Then, I used that model in the second dc.
    Now, I did context mapping with the component controlller by dragging the model context to the
    component controller. The view is also mapped with the component controller.
    The RFC has input field BUS_PART_NO which is a 12 character input field.
    I passed String in it.
    There is no error while I build the DC. But while I run the application, the input field is coming Read Only.
    I can't changed the component controller to 1..n or 1...1.
    I think I need to create a context node and attribute in the view or component controller and then programmatically add this
    to the model node.
    Please send some SDN links and urls.
    Regards
    Neha Singh

    Hi Neha,
    Please create the custom context node/attribute same structure as RFC model node. then populate the data using below following code :
    - get the size of the RFC model node which you want to populate in the costom node like
    int xxx =  wdContext.node<XXX node>().size;
    - Create onject for custom node like
      I<Custyom Name>Element element = null;
    -  then use for loop for fetching data from Model node and populate in custom node
    for(int i =0; i<xxx; i++)
             element = wdContext.create<Custyom Name>();
             element.set<Attribute Name>(wdContext.node<XXX>().get<XXX>ElementAt(i).get<>Attribute name for model())
             wdContext.<Custyom Name>().addElement(element);
    It will populate in your custom node from model node.
    Hope it will helps you.
    Regards
    Arun

  • Unable to add value to model node with cardinality 0..n

    Hi All,
       Im working with Webdynpro Java.i have an issue here.i have a input field item named customer and a drop down box item location.when i give customer and location as inputs,a WSDL (named Equipment WSDL) is called.the result is a  drop down list containing equipments id
    i took a custom node location with cardinaliy 0..n.i gave static values as input for location.i need to set the location values to model node location.when i m giving a single value to custom node location,that static value is not accepted by model node location(in WSDL) whose cardinality is 0..n.
    Please suugest a solution for this issue
    With Regards,
    Ushasri.

    HI Ushashri,
    What do you mean by 'static value is not accepted by model node location'
    how you have done the mapping
    send me the hierarchy of rfc and ur value node
    With Regards
    Naidu

  • Copy values from model node to another model node with different structure

    Hi,
    I am getting detils from RFC1 and update some of the data into another RFC2.
    the first RFC1 having the strucutre
    context
    NodeName
    nodel
    arrtibutes
    the second RFC2 having the different strucutre
    context
    NodeName1
          | nodel2
               | arrtibutes2
               | arrtibutes3
          | nodel5
               | arrtibutes4
               | arrtibutes5
    I need to copy the values from first one to second one.
    Both are different structures.
    Can any one tel me how to do it.
    Thanks
    Ravi

    Hi,
    Create 1 custom controllers for each Model.
    1.Cust COntroller1:
            Node one.
            ->Attr1(type:String)
            ->Attr2(type:long)
    2.Cust COntroller2
            Node one.
            ->Attr1(type:String)
            ->Attr2(type:long)
    Through the component controller only u can send the data by mapping.
    In component controller:
      Node one.
            ->Attr1(type:String)
            ->Attr2(type:long)
    Step1:Map the elements from custControler1.
    Before mapping make sure that u have data in CustController Context=>value node.
    (Note:cust controler node s model node means copy the elements to value node using copyservice)
    step2:Go to cust controller2 goto value node and map it.
    if ur nt getting,Plz let me knw,
    Thanxs,
    Lavanya.G

  • How to search for a text node with a particular value in an xml document with labview

    supposing i have the following xml document:
    <head>
    <book>
    <bookname>zio</bookname>
    <author>dan</author>
    </book>
    <book>
    <bookname>the spear warrior</bookname>
    <author>britney</author>
    </book>
    <book>
    <bookname>the beard</bookname>
    <author>derrick</author>
    </book>
    </head>
    i want to search for the author of the book "the beard" using for example the V.I Get first match  of labview to access the the node with value "the beard" and then use Get next sibling  V.I  and Get node text content to get get the author of this book..so my question is how do i write the xpath expression for Get first match so as to access the node with bookname "the beard" instantyly?  am trying to minimise the use of loops because they increase the time duration,..thank you (NB:i dont want to use Get all Matched V.I because it obliges me to use a loop in order to access the name derrick and this increases the time duration for my v.i)
    Solved!
    Go to Solution.

    Since it's all text, why not use a real quick Match Pattern (or Regular Expression, but you don't need that much power here), see attached.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ
    Attachments:
    Two-stage match demo.vi ‏8 KB

  • 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

  • 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

  • Looking for expert who can highlight 3d model node in adobe reader with external program

    I need to select and highlight 3d model node in adobe reader with my program.from outside of adobe reader. it seems there is no out-of-box API in stndard SDK. I want to outsource this task fully or partly. If you have the solution or able to provide consultant in this area, please send message to me.

    You would indeed need a plug-in to actually select and highlight but you can easily call attention to a part by temporarily changing the color via JavaScript which you can access from external applications.
    I can provide more specific advice if you explain the exact user interaction you're looking for. Is this a desktop application? Is the PDF in a browser? etc.
    J-

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

  • Difference among Model node creation, model attribute creation and the field creation in database through AET?

    Hello Friends,
    To display the field on the View, we can create the field via 3 ways:
    1) By creating the model attribute
    2) By creating the model node using the GENIL object and using its attributes in view
    3) Creating the field in Database structure using AET
    But, i am not aware that in exactly what kind of business scenarios we use the above 3 methods to create the field.
    Could you help me out to clarify the same.

    Hi Dev,
    1). By creating the model attribute: we will use this option in case of the field is avaibla in stanadrd sap system. It might be in another under child context nodes and we will use BOL relations to access the attribute.
    2).  By creating the model node using the GENIL object and using its attributes in view: We will use this option incase of there is no standard provision to use. Means you want to create any custom assignment block with custom attributes then you can go for this option. More over we can use AET to create custom genil object. We have an option Create Table in AET.
    3).Creating the field in Database structure using AET: We will use this option incase of there is no attribute in database relevant to your requirement then we will go for AET enhancement.
    Hope this might give you little clarification..
    Best Regards,
    Dharmakasi.

  • How to set value to Model Node of cardinality 0..N

    hi
    I am looking for a way to set value to a model node of cardinality 0..N
    i imported a WSDL into my applicaion , which has the following Node Structure.
    Context
    --- ModelNode_Request
          ---ModelNode2_Input
          ---ModleNode3_Roles  [ cardinality 0..n singleton 1..1]
               ****Model_Attribute RoleID     <<<<<<<<<<<<
               ****Model_Attribute SysID      <<<<<<<<<<<<
      ---ModelNode_Response
    i tried with the below code  but effort went in vain.
    i tried following ways to set the value but , i get Nullpointer expection error.
         wdContext.nodeRequest__SubmitRequest().nodeRequestDetails().nodeRoles().
              currentRolesElement().setRoleId("BASIC");
         wdContext.nodeRequest__SubmitRequest().nodeRequestDetails().nodeRoles().
              currentRolesElement().setSysId("R3_220");
    i aslo looked into the forum  https://www.sdn.sap.com/irj/scn/thread?messageID=2035342 but couldnt find any solid solution.
    It would be great if some one can throw some snippets on the same.
    Thanks
    Edited by: RR on Dec 22, 2008 5:48 PM

    Hi RR,
    As far as i know u can set model nodes and values nodes are different. whats shown in the link is for values node. u should do differently for model node..
        Since this is a model node...u first need to create an object of the node type. then create an arraylist for that and then add values..
    try this..
    // Create an object for structures in the node to be used
    Yweb_Po_Items objPOItems = null; // where Yweb_Po_Items is the structure of the node...
    // Create an abstractlist for structures in the RFC node to be used, if u are planning to give single or multiple rows (in node/table) as input to the RFC
    AbstractList POObjAbsList = new Yweb_Po_Items.Yweb_Po_Items_List();
    objPOItems = new Yweb_Po_Items();
    //    /set first set of values
    objPOItems.setColumn1(u201Cabcu201D); // here hard codede for example
    objPOItems.setColumn2(u201Cabcfghu201D);
    // add the object to the abstract list
    POObjAbsList.add(objPOItems);
    //    /set second set of values
    objPOItems.setColumn1(u201Cnewabcu201D);
    objPOItems.setColumn2(u201Cnewabcfghu201D);
    // add the object to the abstract list again
    POObjAbsList.add(objPOItems); // now u got 2 records
    // now set the abstractlist to the node in the RFC
    objGoodsReceiptPO.setPo_Items_In(POObjAbsList);
    Hope this information is useful...
    Thanks
    Md. Yusuf

  • Handle model nodes in a generic way

    Hello,
    Is there any way to manage model nodes and model attributes in somewhat generic way?
    I am trying to build a generic component which can handle generic model objects execution. For example, using a generic method executeModelObject(IWDNode node) who initilialize a model node, populates it and execute it, but without using specifical custom classes generated by WebDynpro Framework. I think, that the code must be specifical to a particualr model node.
    Any help?

    David,
    You can switch off 'TypedAccessRequired' property for any node at design time and then these nodes can be accessed with generic API - you need to know the name of node and element index though.
    See [this presentation|http://www.google.com/url?sa=t&source=web&ct=res&cd=7&url=http%3A%2F%2Fwww.bus.ucf.edu%2Frhightower%2Fism4154%2FNotes%2FWD%2FContext%2520Programming.ppt&ei=L1tNSa-BPJiU8wT47uiZDw&usg=AFQjCNGlcTAwGMrxidkcothQOl-U6Kf6rw&sig2=3M03WTUxex4EBWJCeCfIIA] (Slides 6 and 7 in particular).
    Hope this helps.
    Vishwas.

  • Access current node in XPathFunction implementation

    Hello,
    When implementing an XPathFunction, is there a way to access current node?
    For example,
    "//*[local-name()='test123']"
    in the above example, the built-in function, local-name, take current node as its argument.
    However, from the API of XPathFunction:
    public Object evaluate(List args) throws XPathFunctionException
    It is not apparent how to access the current node.
    I've tried:
    "//*[myFunction()=1]"
    the input arg length is zero.
    Looking forward to any suggestions!
    Thanks!

    Thanks for the reply.
    Allow me to further clarify my problem with the following example:
    //*[local-name()='foo']/*[local-name()='bar']As shown in the above example, in the second call to the "local-name" function, the implementation
    of the function should unavoidably require the reference of currently navigated xml node (a "foo" node in
    the above example).
    However, it does not seem obvious how to achieve the same functionality with XPathFunction interface.
    So, what is the proper strategy if we want to implement our customized local-name-like functions?
    Thanks!
    Looking forward to suggestions.

Maybe you are looking for

  • Accessing the service desk message from satellite system

    gurus  , after creating a creating a service desk message to solution manager system via HELP->CREATE SUPPORT MESSAGE , how does the message creator from satellite system will view/change the message created by them at late point of time ?

  • Service 'Apple Mobile Device' failed to start while trying to install iTunes !!

    My iTunes cannot start lately after Windows 7 upgrade with the following error message: APS Daemon.exe - System Error The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this program. As such

  • Getting sum of each column in 2D array

    hi, i want to get sum of each column from 2D array. i did public static void main(String[] args) {           double sum=0.0;                int[][] arr={                          {1,2,8},                          {2,2,3},                          {2,

  • Using QT Pro for TV commercial

    Initially, I thought my question would be a common one for this forum, but I searched and haven't found the answer. I would like to email a Quicktime movie – a TV commercial – but the file I have is too large. Currently the file is 156MB, DV/DVCPRO –

  • Recover a deleted video in photos

    I accidentially deleted a video in my photos that I want to recover. How do i do this! help:/