Please provide solution

hi everyone,
I'm new to SAP ,the task provided to me is to display the data in the display fields when the particular cell in  table is selected
at the same time a button is provided  make new  entries into the table by clicking a button
but when iclick the new entry button the row which is already selected getting erased temporarily
but when i update the new record and save it it is also shown along with new record
the code i used is here below
method onactioncreate .
DATA:
      node_expenseset                     TYPE REF TO if_wd_context_node,
      elem_expenseset                    TYPE REF TO if_wd_context_element,
      stru_expenseset                    TYPE if_exp_main=>element_expenseset .
*   navigate from <CONTEXT> to <EXPENSESET> via lead selection
    node_expenseset = wd_context->get_child_node( 'EXPENSESET' ).
*   @TODO handle not set lead selection
    IF ( node_expenseset IS INITIAL ).
    ENDIF.
*   get element via lead selection
    elem_expenseset = node_expenseset->get_element(  ).
*   @TODO handle not set lead selection
    IF ( elem_expenseset IS INITIAL ).
    ENDIF.
  clear stru_expenseset.
*   get all declared attributes
    elem_expenseset->set_static_attributes(
      exporting
        static_attributes = stru_expenseset ).
*  data:
*    node_expenseset1                    type ref to if_wd_context_node,
*    elem_expenseset1                    type ref to if_wd_context_element,
*    stru_expenseset1                    type if_exp_main=>element_expenseset1 .
** navigate from <CONTEXT> to <EXPENSESET1> via lead selection
*  node_expenseset1 = wd_context->get_child_node( name = if_exp_main=>wdctx_expenseset1 ).
** get element via lead selection
*  elem_expenseset1 = node_expenseset1->get_element(  ).
** alternative access  via index
** Elem_Expenseset1 = Node_Expenseset1->get_Element( Index = 1 ).
** @TODO handle non existant child
** if ( Elem_Expenseset1 is initial ).
** endif.
*clear stru_expenseset1.
** get all declared attributes
*  elem_expenseset1->get_static_attributes(
*    importing
*      static_attributes = stru_expenseset1   ).
endmethod.
here both table and drill down report are binded to same node
can any one send me the code to clear only drill down report contents
thanks & Regards
Madhu

Hi madhu,
Try the following code to add new entries in the table by clicking the button,paste the code on action of the  add button
DATA:
      node_expenseset                     TYPE REF TO if_wd_context_node,
      elem_expenseset                    TYPE REF TO if_wd_context_element,
      stru_expenseset                    TYPE if_exp_main=>element_expenseset .
  navigate from <CONTEXT> to <EXPENSESET> via lead selection
    node_expenseset = wd_context->get_child_node( 'EXPENSESET' ).
  @TODO handle not set lead selection
    IF ( node_expenseset IS INITIAL ).
    ENDIF.
*create element
  elem_expenseset  = node_expenseset->create_element( ).
*Bind the element to the node
node_expenseset->bind_element(
               new_item = elem_expenseset
               set_initial_elements = abap_false
*set the newly created element to the lead selection
  node_expenseset->set_lead_selection( element = elem_expenseset ).
Thanks,
krishna

Similar Messages

  • I installed opera Mini Web browser 6.0.1. When open the application only blank page coming. Please provide solution. Kind Regards Nias Ahamed

    I installed opera Mini Web browser 6.0.1. When open the application only blank page coming. Please provide solution. Kind Regards Nias Ahamed

    If you have an internet connection (e.g., Safari works) try here:
    iOS: Troubleshooting applications purchased from the App Store

  • Please provide Solution for Customer Condition Group when defining 2 Chrt's

    Dear Guru's,
    Please provide Solution for Customer Condition Group when defining 2 Charecters or 2 digits.
    I have Completed all possible Combinations like AA,BA,1A,A1,01 to 99 etc.. Total Enteries reach upto 1200+ so I am unble to find no more Combinations( without Special Characters & no chance to increase other than 2 Char/digt)..
    Any body Suggest me any Good Combinations or Proper Alternative....
    Thanks,
    Panduranga

    Hi panduranga
    A Customer Condition Group is maintained in only 2 digits .If you want to go for more than 2 digits then you need to take the help of ABAP'er and you need to go for enhancement
    Regards
    Srinath

  • Hi..I m using iphone 5s...i have set password in phone...i came to know that if you click on home button twice rapidly it gets unlock...IOS 8.1...please provide solution on it....

    hi..I m using iphone 5s...i have set password in phone...i came to know that if you click on home button twice rapidly it gets unlock...IOS 8.1...please provide solution on it....

    I suggest that you run software update, after which you should have Safari 6.0.5 - then check Safari - Preferences - Privacy & see that 'Block cookies' is not set to Always.
    Failing that - switch Safari extensions Off via Safari - Preferences - Extensions & test again

  • Ios7 drains out mobile battery very quickly, please provide solution

    ios7 drains out mobile battery very quickly, please provide solution

    After doing the suggest post above. Make sure ALL setttings on the device such as wifi bluetooth and even fetching email times and all the other battery hogs.. if the issue is still there.. back up and restore the device

  • Please provide solution for filter

    hi  everyone
    I'm new to SAP
    can anyone please help me in solving the issue of filter
    i have tried the method in
    http://www.scribd.com/doc/29086467/WDA-Table-UI-Element-Filter
    and created a attribute  gt_expenseset of type zhr_emp_reimp_ex(my table)
    and
    supply function by name supply_expenseset
    the code in supply_expenseset is
    method supply_expenseset .
    * data declaration
      data:
        itab_expenseset            type if_componentcontroller=>elements_expenseset,
        stru_expenseset            like line of itab_expenseset.
    * @TODO compute values
    * e.g. call a data providing FuBa
      select * from zhr_emp_reimp_ex into corresponding fields of table itab_expenseset.
    * bind all the elements
      node->bind_table(
        new_items =  itab_expenseset
        set_initial_elements = abap_true ).
      wd_this->gt_expenseset = stru_expenseset.
    endmethod.
    and i have written the code in the event handler filter
    method onactionfilter .
    *   wd_this->table_control->apply_filter( ).
        DATA node_expenseset1                    TYPE REF TO if_wd_context_node.
        data elem_expenseset1                    TYPE REF TO if_wd_context_element.
        data stru_expenseset1                    TYPE wd_this->element_expenseset1 .
        data itab_expenseset                     type wd_this->elements_expenseset.
    * navigate from <CONTEXT> to <EXPENSESET1> via lead selection
      node_expenseset1 = wd_context->get_child_node( name = wd_this->wdctx_expenseset1 ).
    * get element via lead selection
      elem_expenseset1 = node_expenseset1->get_element(  ).
    IF elem_expenseset1 is INITIAL.
    return.
    ENDIF.
    * get all declared attributes
      elem_expenseset1->get_static_attributes(
        IMPORTING
          static_attributes = stru_expenseset1 ).
      DATA:
        node_expenseset                     TYPE REF TO if_wd_context_node,
        elem_expenseset                     TYPE REF TO if_wd_context_element,
        stru_expenseset                     TYPE wd_this->element_expenseset .
    *copy values
    itab_expenseset = wd_comp_controller->gt_expenseset.
    *if filter is defined for expense_set
    IF not stru_expenseset1-expense_set is initial.
      delete itab_expenseset where expense_set NP stru_expenseset1-expense_set.
    ENDIF.
    * navigate from <CONTEXT> to <EXPENSESET> via lead selection
      node_expenseset = wd_context->get_child_node( name = wd_this->wdctx_expenseset ).
    node_expenseset->bind_table( itab_expenseset ).
    endmethod.
    but the error im getting is itab-expenset cannot be converted to me->expenseset
    can any one help me please
    thanks & Regards
    Madhu

    Hi panduranga
    A Customer Condition Group is maintained in only 2 digits .If you want to go for more than 2 digits then you need to take the help of ABAP'er and you need to go for enhancement
    Regards
    Srinath

  • Please provide solution to this workflow error

    ORA-04068: existing state of packages has been discarded
    ORA-04065: not executed, altered or dropped stored procedure "SYS.DBMS_STANDARD"
    ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_STANDARD"
    ORA-06512: at "APPS.WF_ENGINE", line 4155
    ORA-06512: at "APPS.XXXX_PO_WF_TRAINING_PKG", line 105
    ORA-06512: at line 3
    Hi,
    when i am running 1 function from pkg i get above error.
    i am doing that for workflow.
    pls reply,
    regards,
    shreyans

    Hi,
    Better place to ask
    General EBS Discussion
    Or
    Check there is any INVALID object in APPS schema.
    Regards,
    Taj

  • Database shutting down Problem please give solution

    hii.......
    we have 7 databases in our server when i am restarting my serverComputer some Databases are shutting down (randomly)
    i have to manually starting(databases) again .
    Please provide solution
    Operating System - Windows Server 2003
    Oracle 10g- version - 10.2.0.1.0
    Thanks in Advance
    regards
    Dpj
    Edited by: user8029025 on Dec 16, 2009 11:11 PM
    Edited by: user8029025 on Dec 17, 2009 8:54 PM

    i have to manually starting(databases) again .
    Please provide solution
    in services try to set to automatically start when u restart system.
    sarah

  • I am having Samsung GT-S8530 Its BADA Operating System please provide Firefox for this

    The Mobile handset Samsung Wave 2 GT-S8530 Model works on BADA OS developed by Samsung. Kindly provide browser with Flash support for this OS. I love using firefox as its a secured browser please provide solution immediately

    Answered at https://support.mozilla.com/en-US/questions/789084

  • TS1702 I just bought a new iphone 5S and once turned on and pushed the button restore from Icloud, I'm stil stuck in this section i can't do anything plus i turned it off and on again and still not working, please provide me with a solution very urgently!

    I just bought a new iphone 5S and once turned on and pushed the button restore from Icloud, I'm stil stuck in this section i can't do anything plus i turned it off and on again and still not working, please provide me with a solution very urgently!!
    Kindly note also that i did not work on this iphone before, i just turned it on and i cannot connect it to the itune and restore it as the itune cannot read the device since i'm not able to reach my home screen, I am stuck in my restoring screen.
    Please help!!!!

    You dont have any data on your phone yet right?
    If you dont connect your device to the computer and
    Press and hold the Sleep/Wake button and the Home button together for at least 15 seconds, until the Apple logo appears.
    after that click okay when it says itunes has detected an iphone in recovery mode. Then click restore
    after that try again

  • Please provide me some real time gaps(SD) in projects and their solutions

    hiiiiii everybody
                             please provide me some real time gaps(SD) in projects and their solutions for the sake of Interviews.
    Thanks and Regards

    hiiiiii everybody
                             please provide me some real time gaps(SD) in projects and their solutions for the sake of Interviews.
    Thanks and Regards

  • Getting 'Out of memory' error while opening the file. I have tried several versions of Adobe 7.0,9.0,X1. It is creating issue to convert PDF into TIFF. Please provide the solution ASAP

    Hello All,
    I am getting 'Out of memory' error while opening the file. I have tried several versions of Adobe 7.0,9.0,X1.
    Also, it is creating issue to convert PDF into TIFF. Please provide the solution ASAP.

    I am using Adobe reader XI. When i open PDF it gives "OUT of memory" error after scrolling PDF gives another alert "Insufficient data for an image". after clicking both alerts it loads full data of PDF. It is not happening with all PDFs. couple of PDFs are facing this issue. Because of this error my software is not able to print these PDFS into TIFF. My OS in window7*64. I tried it on win2012R2 and XP. Same issue is generating there.
    It has become critical issue for my production.

  • When i open my itunes of recent edition , i am getting error as  "itunes.exe has been set to run in compatabiltity mode " Though i reinstalled it several times from last days ,the problem is not solved. Please provide the solution asap.

    When i open my itunes of recent edition 12.0, i am getting error as "itunes.exe has been set to run in compatabiltity mode " Though i reinstalled it several times from last days ,the problem is not solved. Please provide the solution asap.

    Try iTunes for Windows: How to turn off Compatibility Mode.
    tt2

  • Please provide a solution to get FaceTime on iphone without jailbreaking.

    Dear Concerns,
    please provide a solution to get FaceTime on iphone without doing jail breaking.

    This is very well known that FaceTime is disabled in Middle Eastern countries and that it is the Governments that ban it and not Apple.
    Basically, you may not be using your phone in a Middle Eastern country that bans FaceTime, but your phone may have originated from a Middle Eastern Country and if this is the case there is nothing at all that you can do to get FaceTime on your phone.
    Where did you get your phone?
    You cannot get FaceTime on your phone either via updates or though the Apple store or App store or anything else for that matter.  If your phone does not have FaceTime, then you can never get it on that phone and you will have to buy a new phone if you want it.
    Also, what is this with addressing people as Concern?  This is a user to user technical support forum and NOT Apple.  We are all just user.

  • I am getting message "Sorry, your browser/program is not supported by Web Dynpro! " Please provide the solution

    I am getting following message displayed, for one of the website.
    "Sorry, your browser/program is not supported by Web Dynpro! "
    Please provide the solution
    Regards
    Rajesh R Rakesh

    Use a browser that is supported.

Maybe you are looking for