Values not available in Table

Hi
I have created one node  with attributes following properties and mapped to one view.
Cardinality = 0..n
Selection =  0..n
Fields :
f1 - Dropdown
f2
f3 - Date
f4
In the view, i created table and assigned to those fields. I wrote below code for insert record in table
  DATA : lt_ACTIONPLAN TYPE STANDARD TABLE OF ZST_ACTIONPLAN,
         wa_ACTIONPLAN TYPE ZST_ACTIONPLAN.
  DATA lo_nd_action_plan TYPE REF TO if_wd_context_node.
  DATA lo_el_action_plan TYPE REF TO if_wd_context_element.
  DATA ls_action_plan TYPE wd_this->element_action_plan.
navigate from <CONTEXT> to <ACTION_PLAN> via lead selection
  lo_nd_action_plan = wd_context->get_child_node( name = wd_this->wdctx_action_plan ).
  lo_el_action_plan = lo_nd_action_plan->get_element(  ).
wa_actionplan-f1 = 'hi'.
wa_actionplan-f2= 'mm'.
wa_actionplan-f3 = sy-datum.
wa_actionplan-f4 = 'test'.
append wa_actionplan to lt_ACTIONPLAN.
lo_nd_action_plan->BIND_ELEMENTS( NEW_ITEMS = lt_ACTIONPLAN ).
When i am execute my wdy applicaton, it shows following error
The following error text was processed in the system WLT : The ASSERT condition was violated.
Anyone help me

Hi Muthu
Check the following examples and used appropriate things in your program.
Accessing the Context Nodes and Node Elements at Runtime                    #
This document shows how to read, change, add, or delete               #
information stored in the controller context.                        
Assumption:
Node name is:      flights
View name is:      input_view
==============================================================
Accessing a Context Node
==============================================================
DATA: node_flights TYPE REF TO if_wd_context_node.
" get flight node via lead selection
node_flights = wd_context->get_child_node( name = 'FLIGHTS' ).
OR
node_flights = wd_context->get_child_node( name = if_input_view=>wdctx_flights ).
NOTE:
For each controller (<ctrl>), an interface is generated having the name IF_<ctrl>.
For each node <node> of a controller context, a constant (WDCTX_<node>) is generated in this interface; it has the name of the node (in uppercase letters) as its value. This constant can be used to access the context node.
==============================================================
Accessing Node Element
==============================================================
DATA:     node_flights TYPE REF TO if_wd_conext_node.
     elem_flights TYPE REF TO if_wd_context_element.
" Get flight node via lead selection
node_flights = wd_context->get_child_node( name = 'FLIGHTS' ).
" Get element via lead selection
elem_flights = node_flights->get_element( ).
" Handle exception if lead selection is not set
if ( elem_flights is initial ).
endif.
NOTE:
The element with index n can be accessed using the method get_element( index = n ) . The number of elements in a collection can be obtained from the method get_element_count( )
==============================================================
Summary
==============================================================
Action :      Ref. to node <node> of controller <ctrl>          
Method:     r_node = wd_context->get_child_element( name = if_<ctrl>=>wdctx_<node> ).
Action :      Reference to element at lead selection
Method:     r_element = r_node->get_element( ).
Action:     Reference to element with index n
Method:     r_element = r_node->get_element( index = n ).
Action:     Get number of elements in collection
Method:     n = r_node->get_element_count( ).
==============================================================
Accessing Attributes value of a Node Element
==============================================================
DATA:     node_flights TYPE REF TO if_wd_context_node,
     elem_flights TYPE REF TO if_wd_context_element,
     item_connid TYPE if_componentcontroller=>element_flights-connid,
     stru_flights TYPE if_componentcontroller=>element_flights,
     it_flights type if_componentcontroller=>elements_flight.
" Get node via lead selection
node_flights = wd_context->get_child_node( name = 'FLIGHTS' ).
" Get element via lead selection
elem_flights = node_flights->get_element( ).
" Get a single attribute value.
elem_flights->get_attribute(
     EXPORTING
          name = 'CONNID'
     IMPORTING
          value = item_connid ).
" Get all statically declared attributes
elem_flights->get_static_attributes(
     IMPORTING
          static_attributes = stru_flights ).
" Get all static attributes of all node element
node_flights->get_static_attributes_table(
     IMPORTING
          table = it_flights ).
NOTE:
For each node <node> of a controller context, a structure type
element_<node> is implicitly generated in the interface IF_<ctrl>. The structure fields correspond to the attributes a node element consists of. This constant can be used to type a variable, which is filled by the methods listed above.
In addition, for each node <node> of a controller context, a standard table type elements_<node> is implicitly generated in the interface IF_<ctrl>. The line type of this table is element_<node>. This constant can be used to type an internal table that can hold the attributes of multiple node elements.
==============================================================
Changing Attribute Values of a given Node Element
==============================================================
DATA:     node_flights TYPE REF TO if_wd_context_node,
     elem_flights TYPE REF TO if_wd_context_element,
     stru_flights if_componentcontroller=>element_flights.
" Get node via lead selection
node_flights = wd_context->get_child_node( name = 'FLIGHTS' ).
" Get element via lead selection
elem_flights = node_flights->get_element( ).
" Set single attriubute value
elem_flights->ser_attribute(
     EXPORTING
          name = 'CONNID'
          value = '0405' ).
" Set statically declared attributes
stru_flights-carrid = 'US'.
stru_flights_connid = '0017'.
elem_flights->set_static_attributes(
     EXPORTING
          static_attributes = stru_flights ).
==============================================================
Adding new Elements to a Context Node
==============================================================
DATA:     node_flights TYPE REF TO if_wd_context_node,
     first_flight_elem TYPE REF TO if_wd_context_element,
     stru_flights TYPE if_componentcontroller=>element_flights,
     it_flights TYPE if_componentcontroller=>elements_flights.
" Get node via lead selection
node_flights = wd_context->get_child_node( name = 'FLIGHTS' ).
" Create new node element for node FLIGHTS
first_flight_elem = node_flights->create_element( ).
" Set attribute values for newly created node element
first_flight_elem->set_attribute( name = 'CARRID' value = 'US' ).
first_flight_elem->set_attribute( name = 'CONNID' value = '0017' ).
" Bind newly created element to node
node_flights->bind_element(
     new_item = first_flight_elem
     set_initial_elements = abap_false ).
" Bind structure to node
stru_flights-carrid = 'US'.
stru_flights-connid = '0017'.
node_flights->bind_structure(
     new_item = stru_flights
     set_initial_elements = abap_false ).
" Bind internal table to node
stru_flights-carrid = 'US'.
stru_flights-connid = '0017'.
APPEND stru_flights TO it_flights.
stru_flights-carrid = 'AA'.
stru_flights-connid = '0055'.
APPEND stru_flights TO it_flights.
node_flights->bind_table( new_item = it_flights ).
NOTE:
The parameter SET_INITIAL_ELEMENTS allows to delete all existing elements of a node and bind only the actual element to the node. In this case the parameter must be set to abap_true (default value). If the structure should be added to the node as an additional element then the parameter must be set to abap_false.
==============================================================
Deleting Elements from a Context Node
==============================================================
DATA:     node_flights TYPE REF TO if_wd_context_node,
     elem_flights TYPE REF TO if_wd_context_element.
" Get node via lead selection
node_flights = wd_context->get_child_node( name = 'FLIGHTS' ).
" Get element via lead selection
elem_flights = node_flights->get_element( ).
" Remove element from node
node_flight = remove_element( element = elem_flights ).
IF STILL YOU ARE FINDING ANY PROBLEM TRY TO CHANGE THE CARDINALITY PROPERTY TO 1..N.

Similar Messages

  • Dashboard Prompt using values not from the table

    Hi,
    I have a requirement from the client to design a dashboard report like the following.
    Dashboard prompt will have 4 filters, three filters come from the table, but the fourth filter will have 3 values not from the table. The fourth filter will have values like "Report with Sales Amount", "Report with Purchase Amount", "Report with both Purchase and Sales". I have three different Table reports designed for each of the fourth filter choices. But how do I implement it, both in the dashboard prompt as well as navigating to the rite report based on the selection.
    Is my approach correct.
    Thanks for your time and help.

    The fourth prompt where you have "Report with Sales Amount", "Report with Purchase Amount", "Report with both Purchase and Sales" you pull a dummy column into the prompt and write a sql in show.
    would be something like
    SELECT Case when 1=0 then "Dimension- Customer"."Cust Name" else 'Report with Sales Amount' end FROM Sales UNION SELECT Case when 1=0 then "Dimension- Customer"."Cust Name" else 'Report with Purchase Amount' end FROM Sales
    and in the prompt set a presentation variable say var_criteria
    Now create report2 for with a some randomn column and another column will have the values that you want to display for example 'Report with Sales Amount'
    Create a filter on the 2nd column and reference the presentation variable var_criteria and default it to 'Report with Sales Amount'
    On the dashboard page in the section place the report and enable guided navigatoin by selecting report 2.
    Please let me know if you have any questions.
    thanks,
    deep

  • Value not available in the context node

    Hi,
    I have created one custom component through BSP_WD_CMPWB  with only one view called u2018partneru2019 with sample button.
    In this view partner ,then  created one  model context node with reference to  u2018 BuilHeaderSearchu2019 search component with only one attribute  u201CPartner IDu201D.
    When I test the component , WebUI  screen shows partner id input box, and sample button. After  entering partner id value in the input box, then I am pressing sample button. But entered value not  available in the context node.  Please help me, how can i get this value?
    Kathir.

    Hi,
    Check the set_method of that attribute and compare with standard.
    Regards,
    Shobhit

  • AFRC values not available completely

    Hi Experts
                In the table  AFRC, RUECK , RMZHL values are not available completely, whats the reason, and how to get these values from the tables except AFRU based on the AUFNR value.
    Thanks in advance.
    Regards
    Rajaram

    Why the RUECK,RMZHL values are not available in the table AFKO.
    Can anyone help me out this.
    Regards
    Rajaram

  • Excise values not updated BSAS Table

    Excise Gate Pass when reversed thr T. code J1IH, The reversed entry is generated but it is not linked with original entry and are not moving to table BSAS. Instead when invoice is reversed thr VF11, further entry is generated and original and new entries are reflected ion BSAS
    Thanks
    Mahesh

    Hi Umesh,
    How did you change the characteristic values for what object?
    For example, if you are changing the material master which has class type 300 class assigned, then you have to use engineering change management to change the classification data, and you need to ensure you have activated ECM for Class Type 300 and object MARA in O1CL:
    1.O1CL ->
          Object Table -> MARA
             Class Type -> 300
                           Details
                              ECH(times) (untick -> tick)
    2.Click the save icon to save settings
    3.O1CL -> Objects ->
              Class Type:300,Object:MARA
                           Details
                              ECH(times) (untick -> tick)
    4.Save settings.
    Then after you change the material classification with change number, you will find the change document for the classification in classification view: menu  Environment -> change docs.
    The values and changes are also stored in table AUSP with the change number, but only when you use change number, the changes could be stored also.
    Regards,
    Rachel

  • How to disply error messages if values not available fpr F4 help

    Hi,
    I have implemented F4 help for a selection screen field using function module.
    I want to throw a customized error message if no value is available.
    In my case if no value is available it gives standard message no value available.
    I have tried but it gives a dump.
    Please suggest.
    Thanks and Regards
    Shraddha

    for F4 help defenitely you will be having a select query to populate into internal table
    if it is so
    after the select query with sy-subrc check
    if yes
    then it will proceed with the function module
    if no then throw error message
    message
    use this code
    form f_f4help .
      data : begin of it_itab occurs 1,
               username type usr02-bname,
               end of it_itab.
      select bname from usr02 into table it_itab.
    if sy-subrc = 0
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield        = 'BNAME'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'P_USER'
          value_org       = 'S'
        tables
          value_tab       = it_itab[]
        exceptions
          parameter_error = 1
          no_values_found = 2
          others          = 3.
      if sy-subrc  ne 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    else.
    message with error.
    endif.
    endform.
       cheers
    s.janagar

  • Production Version Value Not available in AFPO

    Dear All,
    in AFPO table Production Version Field is available but with out value.. what could be the reason. if i need value what i need to do.. Please advice.
    Thanks you.
    Best Regards,
    Suresh

    check the following
    PV is created after order is created.
    When creating production order you have not selected PV.
    If the setting is made in MRP4, selection method = 3
    or
    in img OPL8
    Planning tab master data-->PV = make it zero = 0
    The production order created cannot be changed, if possible reverse it and read the master data again after creating the PV.
    please come back if you need clarrification

  • Formula column value not updating in table?

    Hi all,
    I create the sample for master/detail form. In detail for prdcode,rate,qty,amount is there. When select prdcode it fetching prdcode,rate in a record and if you type the qty the amout will come based on formula(property) :qty*:rate.
    It is available on screen. But when i store the data, in backend table the amount is be a null.
    What is the problem.
    Help me in this regards,
    kanish

    Hi kanish
    Regarding Nul...
    -u have to make sure that the formula is working fine and displaying the result in the form screen
    -then the item u r storing MUST be a db item >yes and has a column name
    -first of all select Help > display_error in the forms runtime may a db item error arais and the record is not correctly saved as u imagined.
    u have 2 choices for the solution , i had both before may be it's not very cute but it will work...
    1. In when-validate-item Trigger or related item triggers pls follow
    SELECT Nvl(( :qty*:rate ) ,0)
    INTO :UR_ITEM
    FROM DUAL;2.In Pre-Update,Pre-Insert & Pre-Delete Triggers Pls assign the result of ur formula column to the item u want to calc as supposing u r doing the calc of formula in non-db item , then put the following in triggers mentioned ...
    : item_name :=:qty*:rate;Hope this helps...
    Regards,
    Amatu Allah.

  • Superscripts/Subscripts Not Available in Tables?

    I've noticed that I cannot format text as a superscript/subscript if the text is in a cell of a table. Once the cell loses focus, the text goes back to plain old default format. Is there something I should be doing?
    My workaround thus far has been to use MathType, but that's hardly an appropriate fix.
    I've tried this in Pages & Keynote as well...no luck in either case.
    Pubb

    Hi Jerrold
    If I remember well, the cell must be containing text, if it's a numeric one, the styles created from Format > Font > Baseline disappear when the focus is no longer in the cell.
    In the Help they are described for TEXT. A numeric value is not TEXT.
    Making Text Subscript or Superscript
    You can raise or lower text from its baseline.
    To make text subscript or superscript:
    1 Select the text you want to raise or lower, or click where you want to type new text.
    2 To create a subscript or superscript that has a smaller font size than the text it accompanies, choose Format > Font > Baseline > Subscript. Or choose Format > Font > Baseline > Superscript.
    To raise or lower text relative to the other text on the same line, choose Raise or Lower from the Baseline submenu.
    To restore text to the same baseline as the body text, choose Use Default from the Baseline submenu.
    To specify a precise amount to raise or lower text, use the Text inspector. Click
    Inspector in the toolbar, click Text, click More, and then use the Baseline Shift controls.
    You can add Subscript and Superscript icons to the toolbar. Choose View > Customize Toolbar, drag the icons to the toolbar, and then click Done.
    Yvan KOENIG (from FRANCE jeudi 5 février 2009 21:49:27)

  • Settlement Receiver Value not Saved in Table Control Program

    Hi,
    I have Table control program regarding to Equipment Log, where in output it show the Equipment details with Account assignment category, General settlement receiver, Shift Hours, Work Hours, Idle Hrs, Maint. Hrs., Production Hours etc...
    In report, we have a formula i.e.
    Shift Hrs. = Work Hours + Idle Hrs + Maint. Hrs. + Production Hours.
    and all those fields are linked to each other.
    If we want that Work Hours should be 0, then msg showing - Working Hrs. should be entered. , means without enter Working Hrs. value we cann't save it.
    Now we removed the link of Working Hrs to others, means if we insert value 0 of Working Hrs., no msg showing. BUT Problem is this after remove this link, General settlement receiver value should not be saved.
    We want Work Hrs. as 0 value and General settlement receiver value must not be BLANK. It should be Saved.
    Plz guide..

    hi
    write a if statement after the Shift Hrs. = Work Hours + Idle Hrs + Maint. Hrs. + Production Hours.
    if work hours = 0, message i000 with 'Working Hrs. should be entered'.
    else ,write:/ shift hrs.end if. try to create a button for save when you click data will be saved or create a subrountine perform shift hrs than use if loop and select form end form inside keep Shift Hrs. = Work Hours + Idle Hrs + Maint. Hrs. + Production Hours.
    thanking you

  • Why header value not in Item table

    hi sapgurus
        why the value of VBAK-VBELN not present in its item table VBAP-VBELN.plz give reason.
        thankx in advance..

    HI Rakesh,
    If u r talking about the whole record in VBAP then it is possible. But if it is only with the field VBELN then ideally its not possible. But some one has modified VBAP table data from SE16N transaction.
    When we create an order VBAK and VBAP tables will be filled with header and item details. But later
    If u delete all the line items from the order then in ur VBAP table there won't be any entries for that VBELN while ur VBAK still have an entry. Just open that order in VA03 and see if it has any line items. I hope there won't be any.
    If u need still more clarity then create an order and check the tables. Later delete all the line items from the order and check the atbles again.
    Thanks,
    Vinod.

  • Change logs not available for tables

    Hi Experts,
    Is there any change logs available for the  tables PCEC, FTXP, T030
    We need to add logs so that we can keep track of the changes.
    Please let me know if someone knows the solution.
    Regards,
    Srinivas

    Dear Srinivas,
    Go to SE11 and key in your table, then select Display.
    In the top, you will be able to see Technical Settings Button. click on it.
    It will show you the technical details for that table.
    There will be an indicator at the bottom LOG DATA CHANGES.
    If this indicator has been set, then only the changes will be recorded.
    For change log, you shall make use of the transaction SCU3.
    AUT10 shall also be used.
    thank you
    Venkatesh

  • Filter default values not available

    I created filter, for example:
    1
    2
    3
    but when I preview my dashboard - no default value (first value  '1') transferred into destination
    When I set default value(value '1') in destination and preview - no value exist in destination
    And only when I choose value from filter - destination became choosen value
    How to pass filter default value ?

    Hi,
    As you know Filter component filters the data for the selected values, but this component has the peculiar feature that it filters and displays only the result fields after filter without displaying the field present in the filter criteria.
    Example:
    your data is of the form:
    Prod1           Reg1           Mat1        10
    Prod1           Reg2           Mat2        20
    Prod2           Reg1           Mat1        30
    Prod2           Reg2           Mat2        40
    if the filter component has 2 filters for product and region then on selection of Prod1 and Reg1 the destination will display
    Mat1   10
    It displays only fields not present in filter criteria from the source data into destination.
    Hope this helps.
    Bhavna.

  • Values not available for iput help (for Bex)

    Hi Friends,
                  When I am trying to give a value as input for a Bex query. I am getting a validation error saying that the value is invalid. For example:I had given YDRP_Y01 as the input for executing the query. It is giving an error that the YDRP_Y01 is not a valid value.
    I am having these values in the underlying multiprovider for the same infoobject. When i am trying for input help by pressing F4, even then i am not able to find these objects.
    Somebody please help me in resolving the issue.
    Regards
    Sunil

    Hi Sunil,
    I am having these values in the underlying multiprovider for the same infoobject. When i am trying for input help by pressing F4, even then i am not able to find these objects.
    check Master data of that infoobject, whether it contains value "YDRP_Y01". when selecting F4, data come from Infoprovider or master data according the selection made at infoprovider or infoobject.
    Best Regards.

  • Register RG23AECS not available in table J_2IACCBAL

    Hi experts
    I'm uploading excise opening entries in table J_2IACCBAL.
    Here when i'm trying to upload closing balances in register RG23AECS from Utilitise - Table contents - create entries i'm getting error enter valid value.
    In data element for register names i don't find register RG23AECS. How do I proceed further for uploading the balances in the same register?
    Thanks in advance.
    Sonal

    Hi,
    Please go to SE11. Enter Table Name J_2IACCBAL. Now click on Display. Go to Utilities > Table Contents > Create Entries
    Now enter your Excise Group. Enter Register RG23AECS. Enter date, Plant, opening and closing balance as required by you.
    And now save the entries.
    Regards,
    Jigar

Maybe you are looking for