Context binding of property value cannot be resolved. not contain any eleme

I have a binding of a inputelment to a context element. the context can be empty. when it is empty it throws the error only when i have that binding. I thougt its not interesting for an inputfield to have a value or? 
Following error occurs: The following error text was processed in the system DBW : Adapter error in &VIEW_ELEMENT_TYPE& "ZPM_PROJ" of view "ZPM_MD_PMON.STARTVIEW": Context binding of property VALUE cannot be resolved: Node STARTVIEW.1.PROJ does not contain any elements

Hi,
The thing is that you're trying to access node which might be from 0 to 1 or n records (cardinality). And at runtime point you have 0 records with 0 elements. That's why you have problem.
There might be something wrong with logic how you trying to display some data in your text fields.
At runtime there is no context element from which system could take values.
Or you have to change parent node cardinality to 1..1 if that meets logic or review your logic.

Similar Messages

  • TREE --Context binding of property TEXT cannot be resolved:

    I have the following Error
    Adapter error in &VIEW_ELEMENT_TYPE& "OBJID" of view "YFIDOA_YEAR_EVAL.MAIN": Context binding of property TEXT cannot be resolved: Node MAIN.1.TREE_NODE.1.MAIN_ORGEH.1.ORGEH.1.PERNR does not contain any elements
    Requirement
    I have two group ( TREE section , Detailed Section )
    Tree Section  have a 4 Top Org Units loaded initially when clicking on each Top org, it expands as a Tree and goes deep strucure. No trouble in populating Tree, 
    when I bind the Text element in the Detailed section  with the PERNR, I get the Above Error.
    Configuration & Code
    All cardinalities are 0..N, initailization Lead selection is set for all the NODES.
    TREE_NODE > MAIN_ORGEH > ORGEH > PERNR > OBJEC
    Main_ORGEH has ORGEH,  the attribute TOP_ORG and the SUpply function GET_MAIN_ORGEH
    ORGEH has PERNR, attribute OBJID and the Supply function GET_ORGEH.
    PERNR has OBJEC structure , attributes PERNR, CALC_AMT, ENAME and supply Function GET_PERNR
    OBJEC has the structure objec strucutre
    Question
    I dont understand why PERNR > Pernr is not being read ? why is it telling me it is empty?
    Any suggestions ?

    The testing Org unit does not have any pernrs , as a result it was not allowing NULL values at the NODE PERNR level ( though NULL VALUE for the PERNR attribute is set).
    On passing some dummy values, the Error is cleared.
    I was even populating the Chief of the Org values as default to avoid NULL Values.

  • Constant PCORP for Ledger !* does not contain any value

    Dear SAP Guru's,
    I have a user attempting to process a credit memo via t-code FB75 and is receiving the following error message while attempting to post the transaction.
    Constant PCORP for Ledger !* does not contain any value
    The user was able to post to other customer accounts but this one.  The customer master looks fine. 
    POINTS AWARDED.
    Thanks!

    Hi,
    Pls go to the following path
    GL accounting(new)-business transaction-Doument Spiltting-Activate doument spiltting.
    Praobaly you would have chosen the standary a/c assignment check box and constant.
    That's y this error occured even i have got same error and it resolved now.

  • Context node does not contain any elements

    Hi Masters,
                     I create a node dynamically from structure using CL_WD_DEMO_DYN_MODEL->create_nodeinfo_from_struct method. my code as
    nd_field_info = nd_field->get_node_info( ).
    wd_this->zwd_assist->create_nodeinfo_from_struct( EXPORTING
      parent_info = nd_field_info
      structure_name = dotablename
      is_multiple = abap_true ).
    When am set the data to context then it gives the error like node does not contain any elements, but i verified the attributes using nodeinfo then all attributes will be displayed, but when value inserting time it throws error.
    Waiting for Your Response...
    Advance Thankyou
    Regards,
    Sathya

    Hi sathya ,
    the method you using is absolute , the replacement for the methos is  if_wd_context_node_info->add_new_child_node
    pls refer the sample code to create a dynamic Node .
    DATA: pa0001  TYPE REF TO cl_abap_structdescr,
               comp_tab     TYPE cl_abap_structdescr=>component_table,
               struct_type     TYPE REF TO cl_abap_structdescr,
              ls_pa0001   ?= cl_abap_typedescr=>describe_by_name('P0001').
              comp_tab      = p0001->get_components( ).
              struct_type   = cl_abap_structdescr=>create( comp_tab ).
      struct_type = cl_abap_structdescr=>create( comp_tab ).
    * now the nodeinfo is created
      node_info = wd_context->get_node_info( ).
      node_info = node_info->add_new_child_node(
        name                         = 'MY_NODE'
        IS_MANDATORY                 = ABAP_true
        IS_MULTIPLE                  = ABAP_true
        STATIC_ELEMENT_RTTI          = struct_type
        IS_STATIC                    = ABAP_false
    refer DEMODYNAMIC component for dynamic creation of node
    regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Dec 15, 2010 2:07 PM

  • Selected model does not contain any target value prior

    Hi ODM experts,
    I have tried to apply the SVM alg in order to find anomalous records.The table source have rows like that:
    uniq_rec ID NAME A1 A2 A3 A4 A5 data
    577     2052956018     NAMEHDRCP8     2.27     0.4     85.46     0.01     14.54     24-JAN-13
    578     1250914484     NAMEDJDRVP3     11.45     1.24     56.24     0.01     43.77     24-JAN-13
    579     1968689283     NAMEDKEND12     0.000011     6.78     0.000029     0.01     0.091     24-JAN-13
    580     2063389130     NAMEDNMXG14     0.000011     0.65     36.65     0.02     0.091     24-JAN-13
    unq_rec is the pk, id is the id for the generic name and A1 .. A5 attributes ,data when collection occur etc
    I'm trying to execute the following code:
    drop table ALG_SET;
    exec dbms_data_mining.drop_model('SVMODEL');
    create table ALG_SET (setting_name varchar2(30), setting_value varchar2(4000));
    insert into ALG_SET values ('ALGO_NAME','ALGO_SUPPORT_VECTOR_MACHINES');
    insert into ALG_SET values ('PREP_AUTO','ON');
    commit;
    Begin
    dbms_data_mining.create_model('SVMODEL', 'CLASSIFICATION', 'ODM_PAR_FIN_HIST', 'UNQ_CRT', null, 'ALG_SET');
    end;
    The results is the following error:ORA-40104: invalid training data for model build ( if I run the code) .If I run from graphical interface I have obtained this
    error code " Selected model does not contain any target value prior"(using the similar model - SVM for anomaly detction plus the same source table )
    Please advice what is missing or wrong and if possible how to bypass this issue.
    Thanks in advance for support.
    Best Regards,
    Bogdan

    Here is also a newer example of creating a SVM Anomaly model from ODM sample code (12.1 version but this applies to 11.2):
    Rem
    Rem $Header: rdbms/demo/dmsvodem.sql /main/6 2012/04/15 16:31:56 xbarr Exp $
    Rem
    Rem dmsvodem.sql
    Rem
    Rem Copyright (c) 2004, 2012, Oracle and/or its affiliates.
    Rem All rights reserved.
    Rem
    Rem    NAME
    Rem      dmsvodem.sql - Sample program for the DBMS_DATA_MINING package.
    Rem
    Rem    DESCRIPTION
    Rem      This script creates an anomaly detection model
    Rem      for data analysis and outlier identification using the
    Rem      one-class SVM algorithm
    Rem      and data in the SH (Sales History)schema in the RDBMS.
    Rem
    Rem    NOTES
    Rem   
    Rem
    Rem    MODIFIED   (MM/DD/YY)
    Rem    amozes      01/23/12 - updates for 12c
    Rem    xbarr       01/10/12 - add prediction_details demo
    Rem    ramkrish    06/14/07 - remove commit after settings
    Rem    ramkrish    10/25/07 - replace deprecated get_model calls with catalog
    Rem                           queries
    Rem    ktaylor     07/11/05 - minor edits to comments
    Rem    jcjeon      01/18/05 - add column format
    Rem    bmilenov    10/28/04 - bmilenov_oneclass_demo
    Rem    bmilenov    10/25/04 - Remove dbms_output statements
    Rem    bmilenov    10/22/04 - Comment revision
    Rem    bmilenov    10/20/04 - Created
    Rem
    SET serveroutput ON
    SET trimspool ON 
    SET pages 10000
    SET echo ON
    --                            SAMPLE PROBLEM
    -- Given demographics about a set of customers that are known to have
    -- an affinity card, 1) find the most atypical members of this group
    -- (outlier identification), 2) discover the common demographic
    -- characteristics of the most typical customers with affinity card,
    -- and 3) compute how typical a given new/hypothetical customer is.
    -- DATA
    -- The data for this sample is composed from base tables in the SH schema
    -- (See Sample Schema Documentation) and presented through a view:
    -- mining_data_one_class_v
    -- (See dmsh.sql for view definition).
    --                            BUILD THE MODEL
    -- Cleanup old model with the same name (if any)
    BEGIN DBMS_DATA_MINING.DROP_MODEL('SVMO_SH_Clas_sample');
    EXCEPTION WHEN OTHERS THEN NULL; END;
    -- PREPARE DATA
    -- Automatic data preparation is used.
    -- SPECIFY SETTINGS
    -- Cleanup old settings table (if any)
    BEGIN
      EXECUTE IMMEDIATE 'DROP TABLE svmo_sh_sample_settings';
    EXCEPTION WHEN OTHERS THEN
      NULL;
    END;
    -- CREATE AND POPULATE A SETTINGS TABLE
    set echo off
    CREATE TABLE svmo_sh_sample_settings (
      setting_name  VARCHAR2(30),
      setting_value VARCHAR2(4000));
    set echo on
    BEGIN      
      -- Populate settings table
      -- SVM needs to be selected explicitly (default classifier: Naive Bayes)
      -- Examples of other possible overrides are:
      -- select a different rate of outliers in the data (default 0.1)
      -- (dbms_data_mining.svms_outlier_rate, ,0.05);
      -- select a kernel type (default kernel: selected by the algorithm)
      -- (dbms_data_mining.svms_kernel_function, dbms_data_mining.svms_linear);
      -- (dbms_data_mining.svms_kernel_function, dbms_data_mining.svms_gaussian);
      -- turn off active learning (enabled by default)
      -- (dbms_data_mining.svms_active_learning, dbms_data_mining.svms_al_disable);
      INSERT INTO svmo_sh_sample_settings (setting_name, setting_value) VALUES
      (dbms_data_mining.algo_name, dbms_data_mining.algo_support_vector_machines); 
      INSERT INTO svmo_sh_sample_settings (setting_name, setting_value) VALUES
      (dbms_data_mining.prep_auto, dbms_data_mining.prep_auto_on);
    END;
    -- CREATE A MODEL
    -- Build a new one-class SVM Model
    -- Note the NULL sprecification for target column name
    BEGIN
      DBMS_DATA_MINING.CREATE_MODEL(
        model_name          => 'SVMO_SH_Clas_sample',
        mining_function     => dbms_data_mining.classification,
        data_table_name     => 'mining_data_one_class_v',
        case_id_column_name => 'cust_id',
        target_column_name  => NULL,
        settings_table_name => 'svmo_sh_sample_settings');
    END;
    -- DISPLAY MODEL SETTINGS
    column setting_name format a30
    column setting_value format a30
    SELECT setting_name, setting_value
      FROM user_mining_model_settings
    WHERE model_name = 'SVMO_SH_CLAS_SAMPLE'
    ORDER BY setting_name;

  • Weblogic Portal 10.3 CMS node property value update issue resolved

    Hi Everybody,
    issue resolved
    Edited by: user1993265 on Aug 7, 2009 1:04 AM

    set all the properties appropriately.
    Even after setting those values also, it will give the same error in WL 10.3
    In the build scripts, instead of having workspace = ${workspace}/workspace.xml, replace it as workspace = ${workspace} (for WL 10.3)
    Its working for me.
    Also, if the build.xml for ear application is generated through "workshop ant scripts", then u have to comment the code to cleanup archive.dir and archive. file.
    Otherwise, the ear file will be generated and immediately deleted( you can see this in build log file)

  • HTTPBC POST does not contain any values on the recieving end.

    I have a BPEL which reads the content of a file as String and send it to a Servlet using the HttpBC Post method.
    But when I want to get this value on the recieving end (The Servlet), the httpRequest object is empty and it returns Null value?
    If I do the same thing using HttpBC Get method, it works fine (I can't use the Get method because the content of the file is sometimes too long, and for that reason I HAVE to use the Post method).
    I was just wandering where the Object is, when I use the Post method? How do I have to read the httpRequest object if I used the Post on HttpBC?
    Thanks in advance.
    Here is more info about my code:
    The WSDL:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="caPostOverHttp"
    xmlns:tns="caPostOverHttp" xmlns:ns="http://j2ee.netbeans.org/wsdl/bpPostOverHttp/wsdlABSFile" xmlns:file="http://schemas.sun.com/jbi/wsdl-extensions/file/" xmlns:ns1="http://j2ee.netbeans.org/wsdl/bpPostOverHttp/wsdlError" xmlns:ns2="http://j2ee.netbeans.org/wsdl/bpPostOverHttp/wsdlHttp" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:fi="http://java.sun.com/xml/ns/wsit/2006/09/policy/fastinfoset/service" xmlns:tcp="http://java.sun.com/xml/ns/wsit/2006/09/policy/soaptcp/service" xmlns:wsp="http://www.w3.org/ns/ws-policy">
    <import namespace="http://j2ee.netbeans.org/wsdl/bpPostOverHttp/wsdlABSFile" location="../jbiServiceUnits/bpPostOverHttp/wsdlABSFile.wsdl"/>
    <import namespace="http://j2ee.netbeans.org/wsdl/bpPostOverHttp/wsdlHttp" location="../jbiServiceUnits/bpPostOverHttp/wsdlABSHttp.wsdl"/>
    <portType name="dummyCasaPortType"/>
    <binding name="casaBinding1" type="ns:wsdlABSFilePortType">
    <file:binding/>
    <operation name="wsdlABSFileOperation">
    <file:operation verb="poll"/>
    <input name="input1">
    <file:message fileName="EP.xml" pollingInterval="1000" part="file_IN"/>
    </input>
    <output name="output1">
    <file:message fileName="output.xml" part="file_OUT"/>
    </output>
    </operation>
    </binding>
    <binding name="casaBinding2" type="ns2:wsdlHttpPortType">
    <http:binding verb="POST"/>
    <operation name="wsdlHttpOperation">
    <http:operation location=""/>
    <input name="input1">
    <http:urlEncoded/>
    </input>
    <output name="output1"/>
    </operation>
    </binding>
    <service name="casaService1">
    <port name="casaPort1" binding="tns:casaBinding1">
    <file:address fileDirectory="C:\Temp\input" lockName="filebc.lck" workArea="filebc-in-processing" seqName="filebc.seq"/>
    </port>
    </service>
    <service name="casaService2">
    <port name="casaPort2" binding="tns:casaBinding2">
    <http:address location="http://localhost:8080/waPollFileToHttp/Process"/>
    </port>
    </service>
    <wsp:Policy wsu:Id="casaBinding2Policy">
    <wsp:ExactlyOne>
    <wsp:All/>
    </wsp:ExactlyOne>
    </wsp:Policy>
    </definitions>
    The Servlet:
    public class Process extends HttpServlet {
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    String httpIn = request.getParameter("http_IN"); // http_IN is the string variable used in the BPEL which contains the content of the file. Using Post returns null for this parameter, but using GET it returns the actual value.
    System.out.println("SERVLET PROCESS:");
    System.out.println(request.getQueryString()); // using POST returns null but using GET returns the actual value.
    System.out.println("HTTP_IN:");
    System.out.println(httpIn);
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    }

    you are using request.getQueryString() in servlet to read the content however as per the specification it returns the query string that is contained in the request URL after the path. To read the content of the post request, use getInputStream method or any open source API.
    Edited by: Adhir_Mehta on Mar 4, 2010 3:57 AM

  • HOW TO have LOV display values from a table not contained in parsing schema

    I am using DAD to log in and have been able to get around the problems associated with the login schema being different than the parsing schema. However, I want to have a list of values to be shown to the user based on a table in the DAD schema that they log into rather than the parsing schema.
    Anyone know how this might be done?

    GOT IT:
    RETURN 'select xxxxxxx' does it

  • Migo cannot be done " PO does not contain any selectable items"

    Dear SAP Gurus
    We have a very urgent issue, while trying to do MIGO for a particular standard PO.
    Some down payments have been done to this PO already and now when we try to do the MIGO, system is giving the error "PO does not contain any selectable items"
    The accounting document which is created when the down payment is done can be seen in the purchase order History.
    Please suggest soem solution
    Thanks
    kk

    Hi Kavitha,
    Please check whether all the po item quantities are received. If any open line items are there then go to item detail po tab in that Select Confirmation Tab and Check whether the confirmation is Z001. Change it to 0001 etc and save.
    Try this, if unresolved revert back.
    Reg,
    Ashok
    Assign points if useful.

  • 1099 Misc reporting for US in SAP Standard report not containing any value

    HI All,
    In my current clients requirement is to get the SAP Standard reprort for 1099 Misc reporting for US
    1) Accordingly i have done configuration for Withholding tax for US with tax type FE
    2) There are 14 WHT Tax codes under FE , like 01 = Rent , 02 = royalty, 03 = other income etc.
    3) Assigned Tax type  with Co. Code
    4) Activated WHT tax at Co. code
    5) Created WHT country US
    And also assign WHT tax type FE and respective tax code to vendors in Accounting info in Vendor Master
    Posted couple of vendor invoices and made payment for those also
    Then after this when i run the SAP Standard report for 1099 Misc reporting for US , then the output contains with no data..  but only contains vedor names and WHT tax code which i have assigned..
    I think i have missed some configuration may be . Can any one let me know the detail step by step config and process how to get proper out put in 1099 Misc reporting for US in Standard reporting..
    Regards,
    Sandip

    Hello auroar,
    I followed the path that you provided and that lead me to this part of the tree: Define File Format for Withholding Tax Reporting...This is where I found the information that I needed.
    Thank you very much.
    -Patrick
    Edited by: Patrick Smith on Oct 22, 2009 8:41 PM

  • Context server not started - ULOG does not contain any errors

    Hello, please, could anyone help us?
    If I try to boot server, only folowing processes are started :
    exec BBL -A :
    process id=296400 ... Started.
    Booting server processes ...
    exec TMUSREVT -A :
    process id=296516 ... Started.
    exec TMSYSEVT -A :
    process id=296087 ... Started.
    exec contextserver -A -e /d2/mimstst/mims_run_t/log/error.log
    The last process doesn't finish, no other processes start, in ULOG are only info
    about started processes :
    ULOG content...
    Do you have any idea?

    Petr,
    There is nothing called "contextserver" that ships as part of Tuxedo. The
    servers that started OK are all supplied out of the box with Tuxedo.
    You need to get the source to "contextserver" and see what it is doing. I
    suspect the problem might be in whatever code it provided as a tpsvrinit() routine.
    Regards,
    Peter.
    Petr wrote:
    Hello, please, could anyone help us?
    If I try to boot server, only folowing processes are started :
    exec BBL -A :
    process id=296400 ... Started.
    Booting server processes ...
    exec TMUSREVT -A :
    process id=296516 ... Started.
    exec TMSYSEVT -A :
    process id=296087 ... Started.
    exec contextserver -A -e /d2/mimstst/mims_run_t/log/error.log
    The last process doesn't finish, no other processes start, in ULOG are only info
    about started processes :
    ULOG content...
    Do you have any idea?

  • Error in context binding for text property

    Hello experts,
    I receive this error in my WD4A application:
    The following error text was processed in the system XXX : Context binding for property TEXT of "T_MONTHTO"
    cannot be resolved: Node MAINVIEW.1.TEMPVAL2 does not contain any elements
    The error occurred on the application server sapxxxxx_XXX_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE_FOR of program CX_WDR_ADAPTER_EXCEPTION======CP
    Method: RAISE_BINDING_EXCEPTION of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
    Method: GET_BOUND_ELEMENT of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
    TEMPVAL2 has cardinality 0..1, selection 0..1, Inizialization Lead Selection false and the ST22 dump says:
    33
    34   if l_adapter->m_view_element is bound.
    35     l_component ?= l_adapter->m_view_element->view->if_wd_controller~get_component( ).
    36     l_view_name = l_adapter->m_view_element->view->name.
    37     l_view_element_id = l_adapter->m_view_element->id.
    38     l_component_name = l_component->component_name.
    39   endif.
    40
    41   if l_adapter->m_context_element is bound.
    42     l_path = l_adapter->m_context_element->get_path( ).
    43   endif.
    44
    >>   raise exception type cx_wdr_adapter_exception
    46     exporting
    47         textid          = textid
    48         previous        = previous
    49         component_name  = l_component_name
    50         view_name       = l_view_name
    51         view_element_id = l_view_element_id
    52         adapter_stack   = l_adapter_stack
    53         path            = l_path
    54         p1              = l_p1
    55         p2              = l_p2
    56         p3              = l_p3
    57         p4              = l_p4
    58         reason          = reason.
    59 endmethod.
    Could anybody please tell me why exactly this error is occuring?
    Many regards,
    Martin

    Hi Martin,
    I am getting the same error. can you please help me resolve this error.
    Error:
    Note
    The following error text was processed in the system RS2 : Adapter error in &VIEW_ELEMENT_TYPE& "VBELN" of view "Z_MYFIRST_WEBDYNPRO.MAIN": Context binding of property VALUE cannot be resolved: Node MAIN.1.NODE_VBAK does not contain any elements
    My Code is in the Method for the action is created for a button on MAIN VIEW
    METHOD onactionaction_find .
    wd_this->fire_to_alv_table_plg(  ).
      DATA: node_node_vbak TYPE REF TO if_wd_context_node,
            elem_node_vbak TYPE REF TO if_wd_context_element,
           stru_node_vbak TYPE if_main=>element_node_vbak .
    stru_node_vbak type wd_this->element_node_vbak.
    navigate from <CONTEXT> to <NODE_VBAK> via lead selection
    break dasarikb.
      node_node_vbak = wd_context->get_child_node( name =
    wd_this->wdctx_node_vbak ).
    get element via lead selection
      elem_node_vbak = wd_context->get_element(  ).
    get all declared attributes
      elem_node_vbak->get_attribute(
      exporting
      name = 'VBELN'
        IMPORTING
          value = stru_node_vbak ).
      DATA: ls_where(72) TYPE c,
            lt_where     LIKE TABLE OF ls_where,
            lt_vbak      TYPE STANDARD TABLE OF vbak.
    create where condition
      IF NOT stru_node_vbak-vbeln EQ ''.
        CONCATENATE 'VBELN = ''' stru_node_vbak-vbeln '''' INTO ls_where.
        APPEND ls_where TO lt_where.
      ENDIF.
      IF NOT stru_node_vbak-erdat EQ '00000000'.
        CONCATENATE 'ERDAT = ''' stru_node_vbak-erdat '''' INTO ls_where.
        IF stru_node_vbak-vbeln NE ''.
          CONCATENATE 'AND' ls_where INTO ls_where SEPARATED BY space.
        ENDIF.
        APPEND ls_where TO lt_where.
      ENDIF.
      SELECT *
             FROM vbak
             INTO TABLE lt_vbak
            WHERE (lt_where).
      DATA: node_node_alv TYPE REF TO if_wd_context_node,
            stru_node_alv TYPE if_main=>element_node_alv.
    navigate from <CONTEXT> to <NODE_ALV> via lead selection
      node_node_alv = wd_context->get_child_node( name =
    if_main=>wdctx_node_alv ).
    get all declared attributes
      node_node_alv->bind_table( lt_vbak ).
    ENDMETHOD.
    Thanks,
    Kiran

  • Context binding error in Dynamic UI element creation

    Hi,
    I am new to Webdynpro. I am trying to build an app for dynamic table data in an ALV,so creating an input field for table name dynamically.
    I am facing a issue while binding the dynamic input field to the dynamically created context node attribute. The error description is: ERROR: Error in INPUT_FIELD "IF" of view "ZVK_DYNAMIC1.MAIN": Context binding of property VALUE cannot be resolved: The MAIN.1.INPUT node does not contain any elements (termination: RABAX_STATE).
    Following is the code written in wdinit( ) method and wdmodifyview( ) method of the view controller.
    METHOD wddoinit .
       DATA: lr_root_node_info  TYPE REF TO if_wd_context_node_info.
       DATA: lr_input_node_info TYPE REF TO if_wd_context_node_info.
       DATA: ls_attribute_info  TYPE wdr_context_attribute_info.
       lr_root_node_info = wd_context->get_node_info( ).  " get the root node
       CALL METHOD lr_root_node_info->add_new_child_node
         EXPORTING
           name                         = 'INPUT'
           is_multiple                  = abap_false
           is_multiple_selection        = abap_false
    *      is_initialize_lead_selection = abap_false
         RECEIVING
           child_node_info              = lr_input_node_info.
       CLEAR ls_attribute_info.
       ls_attribute_info-name          = 'TABLE_NAME'.
       ls_attribute_info-type_name     = 'STRING'.
       CALL METHOD lr_input_node_info->add_attribute
         EXPORTING
           attribute_info = ls_attribute_info.
    ENDMETHOD.
    METHOD wddomodifyview .
       DATA: lr_ui_root     TYPE REF TO if_wd_view_element.
       DATA: lr_container   TYPE REF TO cl_wd_uielement_container.
       DATA: lr_input_field TYPE REF TO cl_wd_input_field.
       DATA: lr_flow_data   TYPE REF TO cl_wd_flow_data.
       IF first_time EQ 'X'.
         lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
         CALL METHOD cl_wd_input_field=>new_input_field
           EXPORTING
    *       activate_access_key        =
    *       alignment  = E_ALIGNMENT-AUTO
    *       bind_alignment             =
    *       bind_display_as_text       =
    *       bind_display_only          =
    *       bind_enabled               =
    *       bind_ime_mode              =
    *       bind_input_prompt          =
    *       bind_length                =
    *       bind_password_field        =
    *       bind_read_only             =
    *       bind_state =
    *       bind_style_class_name      =
    *       bind_suggest_filter_method =
    *       bind_suggest_values        =
    *       bind_suppress_value_help   =
    *       bind_text_direction        =
    *       bind_tooltip               =
             bind_value = 'INPUT.TABLE_NAME'
    *       bind_visible               =
    *       bind_width =
    *       context_menu_behaviour     = E_CONTEXT_MENU_BEHAVIOUR-INHERIT
    *       context_menu_id            =
    *       date_picker_reference_id   =
    *       display_as_text            =
    *       display_only               =
    *       enabled    = 'X'
    *       explanation                =
             id         = 'IF'
    *       ime_mode   = E_IME_MODE-AUTO
    *       input_prompt               =
    *       length     = '20'
    *       multi_field_suggest        =
    *       no_history =
    *       on_enter   =
    *       on_table_paste             =
    *       password_field             =
    *       read_only  =
    *       state      = E_STATE-NORMAL
    *       style_class_name           =
    *       suggest_filter_method      =
    *       suggest_values             =
    *       suppress_value_help        =
    *       text_direction             = E_TEXT_DIRECTION-INHERIT
    *       tooltip    =
    *       view       =
    *       visible    = E_VISIBLE-VISIBLE
    *       width      =
           RECEIVING
             control    = lr_input_field.
         CALL METHOD cl_wd_flow_data=>new_flow_data
           EXPORTING
    *       cell_design = E_CELL_DESIGN-PADLESS
             element = lr_input_field
    *       id      =
    *       v_gutter    = E_V_GUTTER-NONE
           RECEIVING
             control = lr_flow_data.
         CALL METHOD lr_input_field->set_layout_data
           EXPORTING
             the_layout_data = lr_flow_data.
         CALL METHOD lr_container->add_child
           EXPORTING
    *       index     =
             the_child = lr_input_field.
       ENDIF.
    ENDMETHOD.
    Please help.

    Hi Vishal,
    Actually, for an input field the node should be with cardinality either 1...1 / 1...n. i.e. at least one element should exist. So you need to pass "is_mandatory = abap_true" while creating node.
    Please modify your code as below
    CALL METHOD lr_root_node_info->add_new_child_node
         EXPORTING
           name                         = 'INPUT'
           is_mandatory = abap_true
           is_multiple                  = abap_false
           is_multiple_selection        = abap_false
    *      is_initialize_lead_selection = abap_false
         RECEIVING
           child_node_info              = lr_input_node_info.
    Hope this helps you.
    Regards,
    Rama

  • Error with the context binding

    hi friends,
    i am binding input_feild with the attribute vkorg
    it was giving error
    The following error text was processed in the system ECC : Adapter error in &VIEW_ELEMENT_TYPE& "IP" of view "ZZZ_TEST13.MAIN": Context binding of property VALUE cannot be resolved: Node MAIN.1.SALES does not contain any elements
    The error occurred on the application server csslecc_ECC_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    but i am giving the cardinality 1 to 1  for the node it was giving solution..
    why we are giving 1to1 here...?
    i am in confusion what is cardinality & what is selection..?
    can anyone explain me in detail,,,,,
    regards,
    karunakar

    Hi Karunakar,
    Collection Cardinality or Node Cardinality is a set of two values that define the minimum and maximum number of elements that a node may hold at run-time and is represented as 0..1, 1..1, 0..n, 1..n.
    The value on left denotes the minimum number of elements that a node must have at runtime and the value at right denotes the maximum number of elements that a node may have.
    Selection Cardinality is again a set of two values like node cardinality but denotes the number of elements that may be selected at run-time. Selection cardinality must not violate Node collection cardinality i.e. if node cardinality is 0..1 0r 1..1, it is invalid to specify 0..n or 1..n as selection cardinality.
    Pleae check this...
    http://help.sap.com/saphelp_erp2005/helpdata/en/7a/787e40417c6d1de10000000a1550b0/content.htm
    Cheers,
    Kris.

  • Spaces in property values result in values bein enclosed in quotes (Linux)

    G'day,
    I couldn't find this mentioned in the bugs database (or anywhere else) so it might be a new bug.
    If a property value in a JNLP descriptor contains spaces then the resulting property value returned by System.getProperty() is enclosed in quotes, e.g.
    <property name="jnlp.blah" value="foo bar"/>
    results in System.getProperty("jnlp.blah") returning the value +{color:#ff0000}"{color}foo bar{color:#ff0000}"{color}+ instead of the expected foo bar (without quotes).
    In the Java console I see the following:
    jnlpx.vmargs = {color:#ff0000}"{color}-Xmx512m -Xms256m ... -Djnlp.blah={color:#ff0000}\"{color}foo bar{color:#ff0000}\"{color} ... {color:#ff0000}"{color}
    This only affects Linux (tested with JRE 6.0_20 on Ubuntu 10.04). The same JNLP launched with Java Web-Start on Windows (JREs 6.0_12 & 6.0_21 on Vista) produces the following:
    jnlpx.vmargs = -Xmx512m -Xms256m ... {color:#ff0000}"{color}-Djnlp.blah=foo bar{color:#ff0000}"{color} ...
    So, the problem stems from the way property values with spaces are handled by the Linux implementation of the JRE.
    Has anyone else come across this behaviour?
    Regards,
    Chris.

    G'day,
    AndrewThompson64 wrote:
    If there is one, the best thing to do is raise a bug report, but first you'll need a test case.
    Something with source, JNLP and build file provided. In fact, if you can produce that in a Zip archive available on the net, I can download it and run it both Win 7 & Ubuntu for a further test. Good call - narrowing down a test-case helped me pin down the problem.1. Download the test-case here.
    2. Unzip to /tmp:
    cd /tmp
    unzip JnlpPropertyWithSpacesBug.zip
    3. Test 1:
    javaws file:///tmp/JnlpPropertyWithSpacesBug/test.jnlp
    This should result in the message: System.getProperty("jnlp.my.property") returns null
    This is the correct result.
    4. Test 2:
    javaws /tmp/custom.jnlp
    On Linux, this should result in the message: +System.getProperty("jnlp.my.property") returns {color:#ff0000}"{color}should not be enclosed in double-quotes{color:#ff0000}"{color}+
    This result is incorrect (shouldn't have double quotes).
    Note that custom.jnlp is a customized version of JnlpPropertyWithSpacesBug/test.jnlp:
    1. attributes have been added to the java tag
    2. a property tag has been added for a secure property: sun.java2d.noddraw
    3. a property tag has been added for a jnlp property: jnlp.my.property
    All three are needed to produce the bug. It only occurs on when the Linux JRE is used (6.0_20; Ubuntu 10.04).
    This simulates the situation in which a custom JNLP descriptor is dynamically generated, e.g. to invoke the application with custom system properties.
    There will be extra chance of test results if you can provide a link directly to the JNLP file on the net. The test case would need to be small and sand-boxed, of course.Any suggestions as to where you can freely host Java Web-Start applications?
    Thanks,
    Chris.
    Edited by: cpudney on Aug 18, 2010 2:06 PM

Maybe you are looking for