Dropdown by Index: Initial lead selection

All,
<b>This is my requirement:</b> I have a dropdown (By Index), By default I wanted to have blank as selected value.
If user selected any of the value, it has to be seleted value.
<b>What i did so far is:</b>
I set selection of node to 0..1, cardinality as 0;n and set initializeLeadSelection to false
<b>The problem:</b> I have is, by default im getting the blank space in dropdown, no issue here.
but when user selects any value from drop down, it always showing the space. not the selected value.
Thanks ...
BM

You might try this:
Create a context value node "Items", cardinality 0:N, selection 0:1 with a supply function "supplyItems".
In the supply function, create the node elements that should appear in the dropdown-list.
void supplyItems(IItemsNode node, ...)
  for (int i = 0; i < wdContext.nodeR().size(); ++i)
    IRElement e = wdContext.nodeR().getRElementAt(i);
    IItemsElement item = node.createItemsElement();
    node.addElement(item);
    item.setRD(e.getRid());
    item.setOrg(getOrgUnitName(e.getOrgunitid()));
  node.setLeadSelection(IWDNode.NO_SELECTION);
At the event handler that calls the BAPI and changes the model node content, just call wdContext.nodeItems().invalidate() to trigger the supply function and will the items with the updated values from the model.
(You might also give your context nodes and attributes more useful names)
Armin

Similar Messages

  • Problem with table cell editors - Dropdown by Index, getting lead selection

    Hi experts,
    I have a table editor with 5 columns
    1st column is a Drop Down byIndex.
    My contex looks like this
    AS_DATA(Parent Node cardinality 1.1, selection 0-1)
          HEADER (NODE)
          DETAILS(NODE cardinality 0..n, selection 0-1)
             ACTIVITY_TYPES (NODE cardinality 0..n selection 0-1 ) "node for drop down
             description - attribute
             unit
             quantity
    i have bound details node to table data source.
    i have a tool bar button 'Add Line item' which will add a new line item to the table.
    (i am adding a blank line to the table that is bound to table )
    Its working fine. but when ever i add more than one row, the selection made in the previous rows drop down is lost.
    its initializing. where could be the problem.
    My code
    data LO_ND_INV_TYPE type ref to IF_WD_CONTEXT_NODE.
      data LO_EL_INV_TYPE type ref to IF_WD_CONTEXT_ELEMENT.
      data LS_INV_TYPE type WD_THIS->ELEMENT_INV_TYPE.
      data LV_INV_TYPE type WD_THIS->ELEMENT_INV_TYPE-INV_TYPE.
      data LO_ND_DETAILS type ref to IF_WD_CONTEXT_NODE.
      data LT_DETAILS type WD_THIS->ELEMENTS_DETAILS.
      data LS_DETAILS like line of LT_DETAILS.
      data:  WD_NODE type ref to IF_WD_CONTEXT_NODE,
            LR_ELEMENT type ref to IF_WD_CONTEXT_ELEMENT.
      data LO_ND_INV_PATTERN type ref to IF_WD_CONTEXT_NODE.
      data LO_EL_INV_PATTERN type ref to IF_WD_CONTEXT_ELEMENT.
      data LS_INV_PATTERN type WD_THIS->ELEMENT_INV_PATTERN.
      data LV_INV_PAT type WD_THIS->ELEMENT_INV_PATTERN-INV_TYPE.
      data LO_ND_ACTIVITY_TYPES type ref to IF_WD_CONTEXT_NODE.
      data LT_ACTIVITY_TYPES type WD_THIS->ELEMENTS_ACTIVITY_TYPES.
      data LW_ACTIVITY_TYPES type WD_THIS->ELEMENT_ACTIVITY_TYPES.
        data LO_EL_ACTIVITY_TYPES type ref to IF_WD_CONTEXT_ELEMENT.
    *     navigate from <CONTEXT> to <DETAILS> via lead selection
        LO_ND_DETAILS = WD_CONTEXT->PATH_GET_NODE( PATH = `AS_DATA.DETAILS` ).
        LO_ND_DETAILS->GET_STATIC_ATTRIBUTES_TABLE(
          importing TABLE = LT_DETAILS ).
    * Append an empty row to lt_details
        append LS_DETAILS to LT_DETAILS.
        LO_ND_DETAILS->BIND_TABLE(
        NEW_ITEMS = LT_DETAILS ).
    * Get values for dropdown
    call method WD_ASSIST->GET_ACTIVITY_TYPE
          exporting
            I_INV_CAT_ID     = LV_INV_PAT
          importing
            ET_ACTIVITY_TYPE = LT_ACTIVITY_TYPES.
        LW_ACTIVITY_TYPES-ID = 'Select a Activity type'.
        LW_ACTIVITY_TYPES-TEXT = 'Select a Activity type'.
        insert LW_ACTIVITY_TYPES into LT_ACTIVITY_TYPES index 1.
        loop at LT_DETAILS into LS_DETAILS.
          LV_TABIX = SY-TABIX.
          LR_ELEMENT = LO_ND_DETAILS->GET_ELEMENT( LV_TABIX ).
          WD_NODE = LR_ELEMENT->GET_CHILD_NODE( 'ACTIVITY_TYPES' ).
    *lv_index = wd_node->get_lead_selection_index( ). " it is dumping at this statement when i try to get lead selection
          WD_NODE->BIND_TABLE( NEW_ITEMS =  LT_ACTIVITY_TYPES ). " data for dropdown
        endloop.
    any clue on what am i missing will be appreciated.
    I am getting dump when i try to get the lead selection
    Ajay

    You only have only one option in the DDI to display in the example. when you have multiple values
    i assume that by adding an empty row like this will lose the SELECTION MADE in DDI. (Correct me If i am wrong)
    somehow i believe that we need to bind the DD values using  SET LEAD SELECTION INDEX METHOD FOR THE DDI when they are already selected and trying to BIND.
    *LO_ND_DETAILS->GET_STATIC_ATTRIBUTES_TABLE(*
          *importing TABLE = LT_DETAILS ).*
    ** Append an empty row to lt_details*
        *append LS_DETAILS to LT_DETAILS.*
        *LO_ND_DETAILS->BIND_TABLE(*
        *NEW_ITEMS = LT_DETAILS ).*
    even though the above code will have the selected value, the SELECTIONS MADE will be initialize.
    you need to bind it explicitly.
    you have to create an element and bind the DDI values for adding an row as SARAVANAN said.
    or i guess you can continue with you code but need to use SET LEAD to display the correct SELECTIONS MADE
    loop at LT_DETAILS into LS_DETAILS.
          LV_TABIX = SY-TABIX.
          LR_ELEMENT = LO_ND_DETAILS->GET_ELEMENT( LV_TABIX ).
          WD_NODE = LR_ELEMENT->GET_CHILD_NODE( 'ACTIVITY_TYPES' ).
          WD_NODE->BIND_TABLE( NEW_ITEMS =  LT_ACTIVITY_TYPES ). " data for dropdown
    *" try to set the desired value in the DDI when you have multiple values using SET LEAD*
        endloop.

  • Lead selection Disable

    Experts,
    Actually i want to disable the selection of table while loading. and if i select some fields i want to show in same page in one transparent container.
    So Initially only table should shown with disable the selection of table. And when i select the row the transparent container should show.
    Thanks
    Nityanand Arya

    Hi friend,
    You can Achieve this by two way either set the node's Initialized Lead Selection Property to false or set it on the run time by setting the nodes setLeadSelection Property to -1.
    wdContext.nodeValueNode.setLeadSelection(-1);
    Regards
    Jeetendra

  • Remove lead selection

    hi all,
       I have a value node whose initial lead selection is false. when i select the row and delete then automatically the next row is leadselected. but i do not want the next row to be selected.
    how can we do this?
    Thanks in advance,
    gopi

    Hi,
    try this,
    wdContext.node<ContextNode>().setLeadSelection(-1);
    hope this will work.
    regards
    karthik

  • Index of the Table control - No lead selection activated

    Hi guys,
    I have a table control where there is no lead selection.... One colum of the table contains push button on all rows and I need to find the row id based on the click of the which row button... How to do this???
    regards,
    Prabhu

    Hi Prabhu ,
    write the below piece of code in the button Action .
    DATA lo_nd_node_table TYPE REF TO if_wd_context_node.
      DATA lo_el_node_table TYPE REF TO if_wd_context_element.
      DATA ls_node_table TYPE wd_this->Element_node_table.
    *   navigate from <CONTEXT> to <NODE_TABLE> via lead selection
      lo_nd_node_table = wd_context->get_child_node( name = wd_this->wdctx_node_table ).
      CALL METHOD wdevent->get_context_element
        EXPORTING
          name  = 'CONTEXT_ELEMENT'
        RECEIVING
          value = lo_el_node_table.  " getting the clicked line
      CALL METHOD lo_nd_node_table->SET_LEAD_SELECTION
        EXPORTING
          ELEMENT = lo_el_node_table.  " Setting the lead
      data lv_index type i.
      CALL METHOD lo_nd_node_table->GET_LEAD_SELECTION_INDEX
        RECEIVING
          INDEX = lv_index. " getting the index of the lead line
    Hope it will Helpfull .
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Jun 28, 2010 12:04 PM

  • Getting the selected index of a table (CL_WD_TABLE) without lead-selection

    Hi
    When I click in a table-UI (not alv-table) on a f4-help, I can search with se11-searchhelp on a field. After I choose something, I should also fill some other fields in the same row.
    In the table I have no lead-selection. So, I am searching for a method that gets me the selected index. The element-class for the table-UI is CL_WD_TABLE.
    Once I have the selected index, I could change the fields in the same row inside the WDDOMODIFYVIEW.
    With activated node-selection it can be, that the user selects one row, but he starts the f4-help on another row (the lead-selection doesn't change).
    I have seen this article, but i hope that for the table-UI it is different than with alv:
    [ON_CELL_ACTION triggered only by ENTER ?]

    Hi Lorenzo,
    I'm trying to do the same thing and came up with this solution. In WDDOMODIFYVIEW, since we cannot know in which table row the user clicked the search help, I simply loop through all the rows of the table. For each row, I delegate to a method in the Component Controller which sets the specified index as the table's lead selection then reads the selected table row from the context. I can then populate fields in the selected row as needed.
    METHOD wddomodifyview .
       DATA lo_componentcontroller TYPE REF TO ig_componentcontroller.
       DATA lo_nd_items TYPE REF TO if_wd_context_node.
       DATA lt_items TYPE wd_this->elements_items.
    * -- Upon return from the search help, populate table row details
       lo_componentcontroller = wd_this->get_componentcontroller_ctr( ).
       lo_nd_items = wd_context->get_child_node( name = wd_this->wdctx_items ).
       lo_nd_items->get_static_attributes_table( IMPORTING table = lt_items ).
    * Since we cannot know in which table row the user requested the search help,
    * loop through all table rows, populating table row details as needed.
       DESCRIBE TABLE lt_items LINES sy-tfill.
       DO sy-tfill TIMES.
    *   Delegate to the Component Controller
         lo_componentcontroller->get_table_row_detail( sy-index ).
       ENDDO.
    ENDMETHOD.

  • Change lead selection in dropdown by key

    Hi,
    I am using dropdown by key in one of my application.
    I am getting some values by calling a FM.FM
    returning me a table . My context for the dropdown is from the structure of the table.
    --drpplan(node)
      ---code -(attribute)
      -- desc-(attribute)
    I am binding the values from the table to the node info and to code attribute to populate the dropdown by key.
    It is working fine.
    My requirement is when user selects some thing from dropdown corresponding description should show in a textview.
    If I used a dropdown by key I know I dnt have write any code for this as the lead selection autometically changes. How to do this in dropdown by key.
    I konw I can write in the onselect method, call the FM again and read the table  with sected key and set the value.
    But in this approch I am calling FM twice hitting the db again.
    Is there any other way out. ?
    Thanks,
    Prosun

    u can store the data in an internal table when the FM is 1st called.
    And retrieve the describtion at  selection event.

  • Lead selection Issue

    Hi all,
      I am having dropdown by index as a table column. I am filling the node by supply function.
    IPublicTests.ITabNode node = testController.wdGetContext().nodeTab();
    int size = srcNode.size();
    for (int i = 0; i< size; i++)
    IPublicTests.ITabElement srcElement = srcNode.getTabElementAt(i);
    com.sap.wdp.IPrivateView.IActionElement element = node.createActionElement();
      element.setActioncode(srcElement.getid() + "   " + srcElement.getDes());
    node.addElement(element);
    My dropdown is filling correctly.
    But i want to display different values to be selected initially based on some condition ,in each rows dropdown.
    How to set different lead values for each rows initially..
    Plz its urgent...
    Thanks&Regards
    Karthik.

    Hi Karthikeyan,
    Let your Value node corresponding to your table be 'Tab'
    and your this tabnode's subnode(for dropdown by index) be 'Action'.
    And this  'Action' node's value attribute(for dropdown by index element) be 'ActionCode'.
    Then take the propety of 'ActionCode' attribute.
    set 'Calculated' as true.
    Then goto implementation. there will be 2 methods(getter and setter methods for the attribute
    In the getter method set value to Action Code for a condition.
    If it is not working, try the same  with dropdown by Key. Surely it will work, for this
    'tab' be ur table node, and its attribute 'ActionCode' be your attribute for 'dropdown by key. Implement EVS to populate values to dropdown.
    Set its  'Calculated=true'.
    Then in Gettermethod,
    public java.lang.String getTabActionCode(IPrivateTestCompView.ITabElement element)
        //@@begin getTabActionCode(IPrivateTestCompView.ITabElement)
        //element refers to a table's row.'val' be another coumn attribute
        String actioncode="";
        if(element.getVal().equals("V1"))
               actioncode="T1"; //t1 be the key for dropdown.
               element.setActionCode(actioncode);
        return actioncode;
        //@@end
    Hope it will work
    thanks
    SMitha

  • DropDown by index not clearing previous values

    Dropdown by index issue.
    I am having a problem with my dropdown not clearing previous entries. 
    I have a webdynpro that has two views, main and appraisal.  I can enter the appraisal view from the main.  The appraisal view contains a drop down. At this point, I the dropdown appears to work correctly.  However, if I then enter a second appraisal, the drop down displays the value from the previous entry.  I tried clearing out the drop down in wddomodifyview, but that just cleared out the actual line of the previous selection in the drop down, so I removed that code.
    Here is what I have done so far.
    Under Context in the appraisal view, I have created a node named DD1_1 which contains the attributes rating and rtext.
    I have created a Supply Function attached to it called DD_MAPPING1_1, which contains the following code:
    method DD_MAPPING1_1 .
    * create local data variable to access context information
      Data: context_node type ref to if_wd_context_node.
    * create table based on context structure
      Data: it_rating type STANDARD TABLE OF if_appraisal=>element_DD1_1,
            wa_rating like line of it_rating.
      clear wa_rating.
      wa_rating-rating = ' '. wa_rating-rtext = ' '.
      append wa_rating to it_rating.
      wa_rating-rating = '1'. wa_rating-rtext = 'Below Expectations'.
      append wa_rating to it_rating.
      wa_rating-rating = '2'. wa_rating-rtext = 'Met Expectations (low)'.
      append wa_rating to it_rating.
      wa_rating-rating = '3'. wa_rating-rtext = 'Met Expectations (medium)'.
      append wa_rating to it_rating.
      wa_rating-rating = '4'. wa_rating-rtext = 'Met Expectations (high)'.
      append wa_rating to it_rating.
      wa_rating-rating = '5'. wa_rating-rtext = 'Exceeded Expectations'.
      append wa_rating to it_rating.
      context_node = wd_context->get_child_node( name = 'DD1_1').
      context_node->BIND_TABLE( it_rating ).
    endmethod.
    I feel I am missing something, but seeing this is my first time attempting a dropdown, I am not certain what.
    Any assistance would be appreciated.

    I have tried this code in the inbound plug handler:
      DATA lo_nd_dd1_1 TYPE REF TO if_wd_context_node.
      DATA lo_el_dd1_1 TYPE REF TO if_wd_context_element.
    * navigate from <CONTEXT> to <DD1_1> via lead selection
      lo_nd_dd1_1 = wd_context->get_child_node( name = wd_this->wdctx_dd1_1 ).
    * get element via lead selection
      lo_el_dd1_1 = lo_nd_dd1_1->get_element( ).
      clear lo_el_dd1_1.
      lo_nd_dd1_1->set_lead_selection(
        element = lo_el_dd1_1
    and the program is bombing out with the message
    Invalid index 0 when setting lead selection; context node: APPRAISAL.1.DD1_1
    Should I be using set_lead_selection_index?
    Thank you for all your help.
    Edited by: Ed Left on May 19, 2010 5:25 PM

  • WDABAP: note of change of Lead Selection overall component

    Hi,
    I would like to build a similiar wd-application like wd-component 'wdt_master_detail'. There you will see a table with fly-data and below some details of the actual selected row of the table (by lead selection).
    The difference is that I want to seperate the data retrieval in a model-component(z_model) and for the table / details two seperate wd-components(z_table / z_detail) which mapps the fly-data. The wd-application instantiate a wd-component (z_container) which includes in its view z_table and z_detail.
    When the lead selection changes(by selecting a new row in the table of z_table) the details of z_detail should change to the details of the element with the lead selection. But this does not work! By node->get_lead_selection_index in z_detail I get only the inital lead-selection. node->get_lead_selection_index in z_table provides the right index.
    I tried also following: z_table calls z_model->set_lead_selection and this method set the lead selection of the original node new. But this does not help.
    Has someone an idee what I have to do that the component z_detail receive the information? Has the z_model to raise an event with the information of the new index? I hope not.
    Thanks a lot!
    Regards,
    Marcel
    added 1:
    I have an assumption why it does not work:
    Maybe z_table and z_detail instantiates two separate z_model.
    So a solution would be that z_container instantiates z_model and provide this instance to z_table and z_detail but I have absolutly no idee whether and how this could be working... Please kindly help.
    added 2:
    I thinking further a little bit loud...
    I have the idea that z_container mapps the context from z_model and set this these to input-node.
    z_table and z_detail mapps from z_container. ok, if I would like to create many application then I have to create related components(z_comp_appl_xx) and these components includes z_container. This would be maybe the solution if there is a instance problem(see added1) but I have tested and the details screen gets NOT the lead selection
    Message was edited by: Marcel Schreier

    Hi Marcel,
    to extend Thomas comments, here are some suggestions to turn it into code. Hope it helps.
    option A)
    assuming you name the usages in z_container "usage_z_model", "usage_Z_table", "usage_Z_detail":
    in componentcontroller of z_container methode wddoinit() do the following:
    DATA lr_model_usage    TYPE REF TO    if_wd_component_usage.
    lr_model_usage =   wd_this->wd_cpuse_usage_z_model( ).
    IF lr_model_usage->has_active_component( ) IS INITIAL.
      lr_model_usage->create_component( ).
    ENDIF.
    DATA lr_usage    TYPE REF TO    if_wd_component_usage.
    lr_usage =   wd_this->wd_cpuse_usage_z_table( ).
    IF lr_usage->has_active_component( ) IS INITIAL.
      lr_usage->create_component( model_usage = lr_model_usage ).
    ENDIF.
    lr_usage =   wd_this->wd_cpuse_usage_z_detail( ).
    IF lr_usage->has_active_component( ) IS INITIAL.
      lr_usage->create_component( model_usage = lr_model_usage ).
    ENDIF.
    Following this way, it is required to name the usages of z_model in component z_table and z_detail "MODEL_USAGE".
    option B)
    in componentcontroller of z_table and z_detail create an interface-methode set_usage() with one parameter ir_usage type if_wd_component_usage
      DATA lr_usage  TYPE REF TO  if_wd_component_usage.
      lr_usage = wd_this->wd_cpuse_usage_z_model( ).
      lr_usage->enter_referencing_mode( ir_usage ).
    in component z_container method wddoinit() do the following:
    DATA lr_usage    TYPE REF TO    if_wd_component_usage.
    DATA lr_if_ctr_z_table TYPE REF TO iwci_z_table.
    DATA lr_if_ctr_z_detail TYPE REF TO iwci_z_detail.
    DATA lr_model_usage    TYPE REF TO    if_wd_component_usage.
    *-- create instance of z_model
    lr_model_usage =   wd_this->wd_cpuse_usage_z_model( ).
    IF lr_model_usage->has_active_component( ) IS INITIAL.
      lr_model_usage->create_component( ).
    ENDIF.
    *-- create instance of z_table
    lr_usage =   wd_this->wd_cpuse_usage_z_table( ).
    IF lr_usage->has_active_component( ) IS INITIAL.
      lr_usage->create_component( ).
    ENDIF.
    *-- set usage
    lr_if_ctr_z_table =   wd_this->wd_cpifc_usgae_z_table( ).
    lr_if_ctr_z_table->set_usage( model_usage = lr_usage).
    *-- create instance of z_deatil
    lr_usage =   wd_this->wd_cpuse_usage_z_detail( ).
    IF lr_usage->has_active_component( ) IS INITIAL.
      lr_usage->create_component( model_usage = lr_model_usage ).
    ENDIF.
    *-- set usage
    lr_if_ctr_z_detail =   wd_this->wd_cpifc_usage_z_detail( ).
    lr_if_ctr_z_detail->set_usage( model_usage = lr_usage).
    regards, Ulli

  • ECATT abends during recording when lead selection is set to 0 on web dynpro

    We have a web dynpro application that works ok when running by itself.   When we tried to record ECATT testing on it, it abended after we click on a selection from a list of values.    The error on the browser indicated an error on the "lead select".   After reviewing the dump, we found that it abends on an exception when the lead selection on the ALV is not set.   When we changed our code to set the lead selection to 1, the ECATT recording worked.
    We have a requirement to set the lead selection of ALV to 0 so we need to change back our code.   We just did the setting to 1 just to get ECATT recording to work for now.    Does anybody know why ECATT requires this?   Is there a support packs that fixes this?
    Here is a snippet from ST22 for more details on this:
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_WD_CONTEXT
    Date and Time          2007/02/07 14:50:06
    Short text
    An exception occurred that was not caught.
    What happened?
    The exception 'CX_WD_CONTEXT' was raised, but it was not caught anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
    'CL_WDR_CONTEXT_NODE===========CP' has to be
    terminated.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    An exception occurred which is explained in detail below.
    The exception, which is assigned to class 'CX_WD_CONTEXT', was not caught and
    therefore caused a runtime error.
    The reason for the exception is:
    The lead selection has not been set. VIEW_TABLE
    How to correct the error
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "UNCAUGHT_EXCEPTION" "CX_WD_CONTEXT"
    "CL_WDR_CONTEXT_NODE===========CP" or "CL_WDR_CONTEXT_NODE===========CM00V"
    "_RAISE_ELEMENT_NOT_FOUND"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    System environment
    SAP-Release 700
    Application server... "torsapd01"
    Network address...... "10.2.75.183"
    Operating system..... "Windows NT"
    Release.............. "5.2"
    Hardware type........ "4x AMD64 Level"
    Character length.... 8 Bits
    Pointer length....... 64 Bits
    Work process number.. 0
    Shortdump setting.... "full"
    Database server... "TORSAPD01"
    Database type..... "MSSQL"
    Database name..... "PR3"
    Database user ID.. "dbo"
    Char.set.... "English_United State"
    SAP kernel....... 700
    created (date)... "Aug 28 2006 22:20:27"
    create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
    Database version. "SQL_Server_8.00 "
    Patch level. 75
    Patch text.. " "
    Database............. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
    SAP database version. 700
    Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
    Memory consumption
    Roll.... 16128
    EM...... 16759616
    Heap.... 0
    Page.... 0
    MM Used. 12713776
    MM Free. 4042608
    User and Transaction
    Client.............. 200
    User................ "SIC0010"
    Language Key........ "E"
    Transaction......... " "
    Program............. "CL_WDR_CONTEXT_NODE===========CP"
    Screen.............. "SAPMHTTP 0010"
    Screen Line......... 2
    Information on Caller ofr "HTTP" Connection:
    Plug-in Type.......... "HTTP"
    Caller IP............. "10.49.77.47"
    Caller Port........... 8000
    Universal Resource Id. "/sap/bc/webdynpro/sap/zpr3_base_price/"
    Information on where terminated
    Termination occurred in the ABAP program "CL_WDR_CONTEXT_NODE===========CP" -
    in "_RAISE_ELEMENT_NOT_FOUND".
    The main program was "SAPMHTTP ".
    In the source code you have the termination point in line 11
    of the (Include) program "CL_WDR_CONTEXT_NODE===========CM00V".
    Source Code Extract
    Line
    SourceCde
    1
    method RAISEELEMENT_NOT_FOUND.
    2
    data: l_count type I,
    3
    l_node_name type string.
    4
    5
    l_node_name = if_wd_context_node~get_path( ).
    6
    7
    l_count = if_wd_context_node~get_element_count( ).
    8
    if l_count = 0.
    9
    raise exception type cx_wd_context exporting textid = cx_wd_context=>NODE_EMPTY node_nam
    10
    elseif element_index = if_wd_context_node=>use_lead_selection.
    >>>>>
    raise exception type cx_wd_context exporting textid = cx_wd_context=>NO_LEAD_SELECTION n
    12
    else.
    13
    raise exception type cx_wd_context exporting textid = cx_wd_context=>ELEMENT_NOT_FOUND n
    14
    endif.
    15
    endmethod.
    Contents of system fields
    Name
    Val.
    SY-SUBRC
    0
    SY-INDEX
    1
    SY-TABIX
    0
    SY-DBCNT
    2
    SY-FDPOS
    0
    SY-LSIND
    0
    SY-PAGNO
    0
    SY-LINNO
    1
    SY-COLNO
    1
    SY-PFKEY
    SY-UCOMM
    SY-TITLE
    HTTP Control
    SY-MSGTY
    E
    SY-MSGID
    TD
    SY-MSGNO
    600
    SY-MSGV1
    000003587101
    SY-MSGV2
    0001
    SY-MSGV3
    EN
    SY-MSGV4
    SY-MODNO
    0
    SY-DATUM
    20070207
    SY-UZEIT
    145005
    SY-XPROG
    SAPCNVE
    SY-XFORM
    CONVERSION_EXIT

    Hi Eugene,
    i suggest you raise an SMP ticket for these.
    Looks like a bug at first glance.
    regards
    Phil

  • Lead Selection does not work after setting filter for ALV.

    Hi, Can you please suggest on below scenario :
    I have a Node with a sub node in it .
    I am using the supply function on Sub Node to retrieve the date based on Parent Node.
    There are two ALV's to display parent and item data. The issue is when a filter(user defined filter) is done on Parent table, the supply function does not work. The value is that of the selected row before setting the filter. Even after removing the filter, the item data is stuck and does not change on Lead Selection.
    One thing I noticed is if the child table is a table UI, there is no issue. The only problem is when the second table is ALV
    Thanks In Advance

    Hi Prashanthi,
    Your issue can be resolved as below
    Create an event handler method 'set_alv_data'  for the event 'ON_LEAD_SELECT' of parent alv
    Write the below code inside the event handler method
    METHOD set_alv_data.
      DATA lo_node TYPE REF TO if_wd_context_node.
      DATA lv_path TYPE string.
      DATA lv_index TYPE string.
      lv_index = r_param->index.
      CONDENSE lv_index.
      CONCATENATE wd_this->wdctx_my_parent_node
      lv_index
      wd_this->wdctx_my_child_node
      INTO lv_path SEPARATED BY '.'.
      lo_node = wd_context->path_get_node(
          path                          = lv_path
      DATA lo_interface TYPE REF TO iwci_salv_wd_table.
      lo_interface = wd_this->wd_cpifc_alv_child( ). "get the ref of alv comp of child
      lo_interface->set_data(
        EXPORTING
    *    only_if_new_descr =
          r_node_data       = lo_node
    ENDMETHOD.
    The above code sets the data node of child alv based on lead selection of parent alv data.
    Note: Replace 'parent_node', 'child_node'  with your nodes & 'alv_child' with your alv component name of child alv.
    If you want to control the data of child alv on filter function, you can use the event ON_STD_FUNCTION_AFTE and once you define the filter you get the r_param->id = 'SALV_WD_FILTER_DEFINE'  & now you can clear data of child alv.
    Hope this helps you.
    Regards,
    Rama

  • How to disable a lead selected item in a radio button group ?

    Hi,
    I have a radio button group and there are entries to create radio buttons dynamically. means there is only one radio button group in the UI design and in runtime I will be having two radio buttons (For ex: Yes and No ) . Now If I want to disable either Yes or No radio button, I am unable to do so. because If I disable the radio button group it disables both.  So, I can have lead selected item for ex: Yes which I want to disable. I want to know specifically how this Yes button to be disabled by taking lead selected index item.
    Please help.
    Thanks
    Praveen

    Try setting the radio button value of the lead selected button to abap_false/space.

  • How to delete the record in the table without using lead selection?

    hi,
    I have added the separate column "delete" to the table uielement and so for each record or row of the table the appropriate "delete" link to action will be there................the code below works when the particular row is selected through lead selection only.......
    help me how to delete without using lead selection.....
      DATA:
      NODE_MODULE                         TYPE REF TO IF_WD_CONTEXT_NODE,
      ELEM_MODULE                         TYPE REF TO IF_WD_CONTEXT_ELEMENT,
      STRU_MODULE                         TYPE IF_V_MODULE=>ELEMENT_MODULE .
       data itab TYPE TABLE OF zac_modules.
      navigate from <CONTEXT> to <MODULE> via lead selection
      NODE_MODULE = WD_CONTEXT->GET_CHILD_NODE( NAME = `MODULE` ).
      get element via lead selection
      ELEM_MODULE = NODE_MODULE->GET_ELEMENT(  ).
      get all declared attributes
      ELEM_MODULE->GET_STATIC_ATTRIBUTES(
        IMPORTING
          STATIC_ATTRIBUTES = STRU_MODULE ).
    NODE_MODULE->GET_STATIC_ATTRIBUTES_TABLE(
        IMPORTING
         TABLE  = itab )
    DELETE itab WHERE zmodule_id = STRU_MODULE-zmodule_id.
    CALL METHOD NODE_MODULE->BIND_TABLE
        EXPORTING
          NEW_ITEMS            = itab
       SET_INITIAL_ELEMENTS = ABAP_TRUE
       INDEX                =
    ENDMETHOD.

    Hi  ,
    The onclick event provides you with a standard paramater "CONTEXT_ELEMENT" which has the element from which the event is triggered.
    so you can declare this in the handler(if it is not there) and use it as follows.
    CONTEXT_ELEMENT  TYPE REF TO IF_WD_CONTEXT_ELEMENT  an importing paramater.
    DATA:
    NODE_MODULE TYPE REF TO IF_WD_CONTEXT_NODE,
    ELEM_MODULE TYPE REF TO IF_WD_CONTEXT_ELEMENT,
    STRU_MODULE TYPE IF_V_MODULE=>ELEMENT_MODULE .
    data itab TYPE TABLE OF zac_modules.
    CONTEXT_ELEMENT->GET_STATIC_ATTRIBUTES(
    IMPORTING
    STATIC_ATTRIBUTES = STRU_MODULE ). "Using the context_element paramater to get the static attributes.
    NODE_MODULE->GET_STATIC_ATTRIBUTES_TABLE(
    IMPORTING
    TABLE = itab )   "getting all the data.
    DELETE itab WHERE zmodule_id = STRU_MODULE-zmodule_id. "deleting the particular row from the table and binding it.
    CALL METHOD NODE_MODULE->BIND_TABLE
    EXPORTING
    NEW_ITEMS = itab
    * SET_INITIAL_ELEMENTS = ABAP_TRUE
    * INDEX =
    thanks,
    Aditya.

  • Dynamic creation of Dropdown by Index in the view

    Hi,
    Please help me how to create Dropdown by Index dynamically.
    The scenario is in a view, part of view is Static and other part is Dynamic.
    Dynamic part display depends on entry  selected from Static part of the view.
    I am using method WDDOMODIFYVIEW to implement this. I could successfully generate Group, Caption, TextView view
    element dynamically but with Dropdown by Index, I am getting runtime error.
    New Dropdown by Index will belong to Dyanmically generated Group in 'ROOTELEMENTCONTAINER' and new Context node will be created in CONTEXT for Dynamic Dropdown by Index .
    Thanks, in advance ,for your help.

    Thanks Amit and Lekha for your replies.
    I tried the code but still I am getting the same error.
      lr_rootnode_info = wd_context->get_node_info( ).
      lr_rootnode_info = lr_rootnode_info->get_child_node( 'ADD_DATA' ).
      call method lr_rootnode_info->add_new_child_node( exporting name = lv_node_name                                                                    is_mandatory = abap_false
                                                                  is_multiple = abap_true
                                                                  is_multiple_selection = abap_true
                                                                  is_singleton = abap_false
                                                                  is_initialize_lead_selection = abap_true
                                                                  is_static = abap_false
                                                        receiving child_node_info = lr_rootnode_info ).
    ****----------------Get instance of new node
      concatenate 'ADD_DATA.' lv_node_name INTO lv_child_node.
      lr_dyn_node = wd_context->get_child_node( name = lv_child_node ).
    ***----------------Prepare properties of attribute and add to context node
    *data:lo_nd_add_data type ref to if_wd_context_node,
    *     lo_nd_lv_node_name type ref to  if_wd_context_node,
    *     lo_el_lv_node_name type ref to  if_wd_context_element.
    *lo_nd_add_data = wd_context->get_child_node( name = wd_this->wdctx_add_data ).
    *lo_nd_lv_node_name = lo_nd_add_data->get_child_node( name = lv_node_name ).
    *lo_el_lv_node_name = lo_nd_lv_node_name->get_element(  ).
      concatenate is_char-descr_char 'ID' into lv_attname.
      translate lv_attname to upper case.
      condense lv_attname no-gaps.
      lr_attribute-name = lv_attname.
      lr_attribute-type_name = 'STRING'.
      lr_attribute-value_help_mode = '0'.
      lr_rootnode_info->add_attribute( exporting attribute_info = lr_attribute ).
      lr_element = lr_dyn_node->create_element( ).
      lr_dyn_node->bind_element( new_item = lr_element
                                 set_initial_elements = abap_true ).
      concatenate lv_node_name '.' lv_attname into   lv_bindtext.
      lr_ddbyidx = CL_WD_DROPDOWN_BY_IDX=>NEW_DROPDOWN_BY_IDX( id = iv_name
                                                    view = ir_view
                                                    label_for = iv_textviewid
                                                    bind_texts = lv_bindtext ).
      lr_row_grid_data = cl_wd_grid_data=>new_grid_data( element = lr_ddbyidx ).
    *******To set the TextView to the Group_2
      lr_group2->add_child( lr_ddbyidx ).
    Please help.
    Thanks.
    Edited by: Trupti Kallurwar on Oct 26, 2009 9:14 PM

Maybe you are looking for

  • How can i send data POST with a html link in a textfield

    Hello, This is my problem : I generate (from a php script) html links in a textfield. I would like for each link to send data with the POST method to an other script. My problem is that the getURL("lien", "", "POST") function can be use only by a mov

  • Windows 8.1 Onboard Keyboard and Touchpad Stopped Working.

    After upgrading to Win 8.1 my keyboard and touchpad stopped working suddenly.  They both worked fine for the entire Windows 8.0 release.  When I upgraded to 8.1, they both worked for about 3 months.  Then what started happening is the computer would

  • Warning when trying to open BI integration wizard

    Hi, when i try to open the BI integration wizard, i get a warning " warning 2003 : zoom to the current diagram to a level of an ivew or source " and then the wizard closes. Haradev

  • Everything prints in landscape

    Suddenly all my documents print in landscape mode. This is true for all programs and all printers (laser, inkjet). Clicking on portrait mode and/or landscape mode in 'page setup' has no effect. It looks fine in page preview mode Any suggestions? Than

  • How to add a checkbox to PHP in DW4?

    I'm using DW 4 and need to add a check box/tick box in a PHP document. Is there an easy way to do it in DW where it inputs the checkbox code & allows you to add text next to the checkbox?